2026-03-17 17:43:14,491 - api_logger - INFO - Router cargado: /bankaccount
2026-03-17 17:43:14,526 - api_logger - INFO - Router cargado: /catalogs
2026-03-17 17:43:14,529 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-17 17:43:14,529 - api_logger - INFO - Router cargado: /export
2026-03-17 17:43:14,533 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-17 17:43:14,533 - api_logger - INFO - Router cargado: /menu_options
2026-03-17 17:43:14,541 - api_logger - INFO - Router cargado: /movements_banks
2026-03-17 17:43:14,542 - api_logger - INFO - Router cargado: /payment
2026-03-17 17:43:14,542 - api_logger - INFO - Router cargado: /plans
2026-03-17 17:43:14,544 - api_logger - INFO - Router cargado: /users
2026-03-17 17:43:14,545 - api_logger - INFO - Router cargado: /webservices
2026-03-17 17:43:14,546 - api_logger - INFO - Router cargado: /auth
2026-03-17 17:43:14,548 - api_logger - INFO - Router cargado: 
2026-03-17 17:43:23,970 - api_logger - INFO - Router cargado: /bankaccount
2026-03-17 17:43:24,003 - api_logger - INFO - Router cargado: /catalogs
2026-03-17 17:43:24,005 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-17 17:43:24,006 - api_logger - INFO - Router cargado: /export
2026-03-17 17:43:24,010 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-17 17:43:24,010 - api_logger - INFO - Router cargado: /menu_options
2026-03-17 17:43:24,017 - api_logger - INFO - Router cargado: /movements_banks
2026-03-17 17:43:24,018 - api_logger - INFO - Router cargado: /payment
2026-03-17 17:43:24,018 - api_logger - INFO - Router cargado: /plans
2026-03-17 17:43:24,020 - api_logger - INFO - Router cargado: /users
2026-03-17 17:43:24,021 - api_logger - INFO - Router cargado: /webservices
2026-03-17 17:43:24,022 - api_logger - INFO - Router cargado: /auth
2026-03-17 17:43:24,024 - api_logger - INFO - Router cargado: 
2026-03-17 17:43:24,802 - api_logger - INFO - Router cargado: /bankaccount
2026-03-17 17:43:24,835 - api_logger - INFO - Router cargado: /catalogs
2026-03-17 17:43:24,838 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-17 17:43:24,839 - api_logger - INFO - Router cargado: /export
2026-03-17 17:43:24,842 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-17 17:43:24,842 - api_logger - INFO - Router cargado: /menu_options
2026-03-17 17:43:24,850 - api_logger - INFO - Router cargado: /movements_banks
2026-03-17 17:43:24,851 - api_logger - INFO - Router cargado: /payment
2026-03-17 17:43:24,851 - api_logger - INFO - Router cargado: /plans
2026-03-17 17:43:24,853 - api_logger - INFO - Router cargado: /users
2026-03-17 17:43:24,854 - api_logger - INFO - Router cargado: /webservices
2026-03-17 17:43:24,856 - api_logger - INFO - Router cargado: /auth
2026-03-17 17:43:24,857 - api_logger - INFO - Router cargado: 
2026-03-17 17:43:24,882 - api_logger - INFO - Router cargado: /bankaccount
2026-03-17 17:43:24,910 - api_logger - INFO - Router cargado: /catalogs
2026-03-17 17:43:24,913 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-17 17:43:24,914 - api_logger - INFO - Router cargado: /export
2026-03-17 17:43:24,918 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-17 17:43:24,918 - api_logger - INFO - Router cargado: /menu_options
2026-03-17 17:43:24,925 - api_logger - INFO - Router cargado: /movements_banks
2026-03-17 17:43:24,926 - api_logger - INFO - Router cargado: /payment
2026-03-17 17:43:24,926 - api_logger - INFO - Router cargado: /plans
2026-03-17 17:43:24,927 - api_logger - INFO - Router cargado: /users
2026-03-17 17:43:24,928 - api_logger - INFO - Router cargado: /webservices
2026-03-17 17:43:24,930 - api_logger - INFO - Router cargado: /auth
2026-03-17 17:43:24,933 - api_logger - INFO - Router cargado: 
2026-03-17 17:59:33,352 - api_logger - INFO - Router cargado: /bankaccount
2026-03-17 17:59:33,391 - api_logger - INFO - Router cargado: /catalogs
2026-03-17 17:59:33,393 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-17 17:59:33,394 - api_logger - INFO - Router cargado: /export
2026-03-17 17:59:33,398 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-17 17:59:33,398 - api_logger - INFO - Router cargado: /menu_options
2026-03-17 17:59:33,405 - api_logger - INFO - Router cargado: /movements_banks
2026-03-17 17:59:33,406 - api_logger - INFO - Router cargado: /payment
2026-03-17 17:59:33,406 - api_logger - INFO - Router cargado: /plans
2026-03-17 17:59:33,408 - api_logger - INFO - Router cargado: /users
2026-03-17 17:59:33,409 - api_logger - INFO - Router cargado: /webservices
2026-03-17 17:59:33,410 - api_logger - INFO - Router cargado: /auth
2026-03-17 17:59:33,412 - api_logger - INFO - Router cargado: 
2026-03-17 17:59:33,490 - api_logger - INFO - Router cargado: /bankaccount
2026-03-17 17:59:33,523 - api_logger - INFO - Router cargado: /catalogs
2026-03-17 17:59:33,525 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-17 17:59:33,526 - api_logger - INFO - Router cargado: /export
2026-03-17 17:59:33,529 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-17 17:59:33,529 - api_logger - INFO - Router cargado: /menu_options
2026-03-17 17:59:33,536 - api_logger - INFO - Router cargado: /movements_banks
2026-03-17 17:59:33,537 - api_logger - INFO - Router cargado: /payment
2026-03-17 17:59:33,537 - api_logger - INFO - Router cargado: /plans
2026-03-17 17:59:33,538 - api_logger - INFO - Router cargado: /users
2026-03-17 17:59:33,539 - api_logger - INFO - Router cargado: /webservices
2026-03-17 17:59:33,540 - api_logger - INFO - Router cargado: /auth
2026-03-17 17:59:33,542 - api_logger - INFO - Router cargado: 
2026-03-17 18:10:00,180 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: 403: {'error': 'pending_verification', 'message': 'Tu cuenta aún no ha sido verificada.'}
2026-03-17 18:11:24,445 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: 401: Credenciales incorrectas, numero de intentos restantes: 2.
2026-03-17 18:11:34,518 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: 401: Credenciales incorrectas, numero de intentos restantes: 1.
2026-03-17 18:11:39,772 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: 401: Credenciales incorrectas, numero de intentos restantes: 0.
2026-03-17 18:11:59,484 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: 423: Cuenta bloqueada.
2026-03-17 18:33:14,050 - api_logger - INFO - EmailService inicializado con timeout: 17 segundos
2026-03-17 18:33:14,324 - api_logger - DEBUG - Renderizando plantilla recovery_password.html con datos: {'username': 'Gus', 'reset_url': 'http://localhost:8000/v1/recovery/verify?tknrc=a74909b6-57aa-48ba-affe-95776dc28a73', 'time_expire': 60, 'year': '2026', 'company_name': 'Ilexlumina'}
2026-03-17 18:35:37,845 - api_logger - INFO - Router cargado: /bankaccount
2026-03-17 18:35:37,882 - api_logger - INFO - Router cargado: /catalogs
2026-03-17 18:35:37,886 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-17 18:35:37,887 - api_logger - INFO - Router cargado: /export
2026-03-17 18:35:37,891 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-17 18:35:37,891 - api_logger - INFO - Router cargado: /menu_options
2026-03-17 18:35:37,899 - api_logger - INFO - Router cargado: /movements_banks
2026-03-17 18:35:37,900 - api_logger - INFO - Router cargado: /payment
2026-03-17 18:35:37,900 - api_logger - INFO - Router cargado: /plans
2026-03-17 18:35:37,902 - api_logger - INFO - Router cargado: /users
2026-03-17 18:35:37,903 - api_logger - INFO - Router cargado: /webservices
2026-03-17 18:35:37,904 - api_logger - INFO - Router cargado: /auth
2026-03-17 18:35:37,906 - api_logger - INFO - Router cargado: 
2026-03-17 18:35:38,792 - api_logger - INFO - Router cargado: /bankaccount
2026-03-17 18:35:38,828 - api_logger - INFO - Router cargado: /catalogs
2026-03-17 18:35:38,832 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-17 18:35:38,833 - api_logger - INFO - Router cargado: /export
2026-03-17 18:35:38,836 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-17 18:35:38,836 - api_logger - INFO - Router cargado: /menu_options
2026-03-17 18:35:38,845 - api_logger - INFO - Router cargado: /movements_banks
2026-03-17 18:35:38,846 - api_logger - INFO - Router cargado: /payment
2026-03-17 18:35:38,846 - api_logger - INFO - Router cargado: /plans
2026-03-17 18:35:38,848 - api_logger - INFO - Router cargado: /users
2026-03-17 18:35:38,849 - api_logger - INFO - Router cargado: /webservices
2026-03-17 18:35:38,851 - api_logger - INFO - Router cargado: /auth
2026-03-17 18:35:38,853 - api_logger - INFO - Router cargado: 
2026-03-17 18:35:38,876 - api_logger - INFO - Router cargado: /bankaccount
2026-03-17 18:35:38,905 - api_logger - INFO - Router cargado: /catalogs
2026-03-17 18:35:38,908 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-17 18:35:38,909 - api_logger - INFO - Router cargado: /export
2026-03-17 18:35:38,913 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-17 18:35:38,913 - api_logger - INFO - Router cargado: /menu_options
2026-03-17 18:35:38,921 - api_logger - INFO - Router cargado: /movements_banks
2026-03-17 18:35:38,922 - api_logger - INFO - Router cargado: /payment
2026-03-17 18:35:38,922 - api_logger - INFO - Router cargado: /plans
2026-03-17 18:35:38,924 - api_logger - INFO - Router cargado: /users
2026-03-17 18:35:38,925 - api_logger - INFO - Router cargado: /webservices
2026-03-17 18:35:38,926 - api_logger - INFO - Router cargado: /auth
2026-03-17 18:35:38,928 - api_logger - INFO - Router cargado: 
2026-03-17 18:37:43,432 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: 401: Credenciales incorrectas, numero de intentos restantes: 2.
2026-03-17 18:46:15,554 - api_logger - ERROR - Error al verificar cuenta: 409: La cuenta ya está verificada
2026-03-17 18:46:39,938 - api_logger - ERROR - Error al verificar cuenta: 409: La cuenta ya está verificada
2026-03-17 18:49:33,095 - api_logger - INFO - EmailService inicializado con timeout: 17 segundos
2026-03-17 18:49:33,095 - api_logger - DEBUG - Renderizando plantilla registration_email.html con datos: {'username': 'Gus', 'verification_url': 'http://localhost:8000/v1/verify-email?tkn=e93af5b2-130e-44cb-89c2-0a95ed1c404d', 'year': '2026', 'company_name': 'Ilexlumina'}
2026-03-17 18:52:47,666 - api_logger - INFO - Router cargado: /bankaccount
2026-03-17 18:52:47,705 - api_logger - INFO - Router cargado: /catalogs
2026-03-17 18:52:47,708 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-17 18:52:47,709 - api_logger - INFO - Router cargado: /export
2026-03-17 18:52:47,713 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-17 18:52:47,713 - api_logger - INFO - Router cargado: /menu_options
2026-03-17 18:52:47,721 - api_logger - INFO - Router cargado: /movements_banks
2026-03-17 18:52:47,722 - api_logger - INFO - Router cargado: /payment
2026-03-17 18:52:47,722 - api_logger - INFO - Router cargado: /plans
2026-03-17 18:52:47,724 - api_logger - INFO - Router cargado: /users
2026-03-17 18:52:47,726 - api_logger - INFO - Router cargado: /webservices
2026-03-17 18:52:47,728 - api_logger - INFO - Router cargado: /auth
2026-03-17 18:52:47,730 - api_logger - INFO - Router cargado: 
2026-03-17 18:52:48,628 - api_logger - INFO - Router cargado: /bankaccount
2026-03-17 18:52:48,664 - api_logger - INFO - Router cargado: /catalogs
2026-03-17 18:52:48,668 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-17 18:52:48,669 - api_logger - INFO - Router cargado: /export
2026-03-17 18:52:48,673 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-17 18:52:48,674 - api_logger - INFO - Router cargado: /menu_options
2026-03-17 18:52:48,682 - api_logger - INFO - Router cargado: /movements_banks
2026-03-17 18:52:48,682 - api_logger - INFO - Router cargado: /payment
2026-03-17 18:52:48,683 - api_logger - INFO - Router cargado: /plans
2026-03-17 18:52:48,684 - api_logger - INFO - Router cargado: /users
2026-03-17 18:52:48,685 - api_logger - INFO - Router cargado: /webservices
2026-03-17 18:52:48,687 - api_logger - INFO - Router cargado: /auth
2026-03-17 18:52:48,689 - api_logger - INFO - Router cargado: 
2026-03-17 18:52:48,716 - api_logger - INFO - Router cargado: /bankaccount
2026-03-17 18:52:48,744 - api_logger - INFO - Router cargado: /catalogs
2026-03-17 18:52:48,746 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-17 18:52:48,747 - api_logger - INFO - Router cargado: /export
2026-03-17 18:52:48,751 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-17 18:52:48,752 - api_logger - INFO - Router cargado: /menu_options
2026-03-17 18:52:48,760 - api_logger - INFO - Router cargado: /movements_banks
2026-03-17 18:52:48,761 - api_logger - INFO - Router cargado: /payment
2026-03-17 18:52:48,761 - api_logger - INFO - Router cargado: /plans
2026-03-17 18:52:48,763 - api_logger - INFO - Router cargado: /users
2026-03-17 18:52:48,764 - api_logger - INFO - Router cargado: /webservices
2026-03-17 18:52:48,765 - api_logger - INFO - Router cargado: /auth
2026-03-17 18:52:48,766 - api_logger - INFO - Router cargado: 
2026-03-19 16:41:41,440 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 16:41:41,472 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 16:41:41,474 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 16:41:41,475 - api_logger - INFO - Router cargado: /export
2026-03-19 16:41:41,479 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 16:41:41,479 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 16:41:41,486 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 16:41:41,487 - api_logger - INFO - Router cargado: /payment
2026-03-19 16:41:41,487 - api_logger - INFO - Router cargado: /plans
2026-03-19 16:41:41,488 - api_logger - INFO - Router cargado: /users
2026-03-19 16:41:41,489 - api_logger - INFO - Router cargado: /webservices
2026-03-19 16:41:41,491 - api_logger - INFO - Router cargado: /auth
2026-03-19 16:41:41,492 - api_logger - INFO - Router cargado: 
2026-03-19 16:41:41,492 - api_logger - INFO - Router cargado: /licenses
2026-03-19 16:41:42,274 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 16:41:42,305 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 16:41:42,308 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 16:41:42,309 - api_logger - INFO - Router cargado: /export
2026-03-19 16:41:42,312 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 16:41:42,312 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 16:41:42,319 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 16:41:42,320 - api_logger - INFO - Router cargado: /payment
2026-03-19 16:41:42,320 - api_logger - INFO - Router cargado: /plans
2026-03-19 16:41:42,322 - api_logger - INFO - Router cargado: /users
2026-03-19 16:41:42,323 - api_logger - INFO - Router cargado: /webservices
2026-03-19 16:41:42,324 - api_logger - INFO - Router cargado: /auth
2026-03-19 16:41:42,326 - api_logger - INFO - Router cargado: 
2026-03-19 16:41:42,326 - api_logger - INFO - Router cargado: /licenses
2026-03-19 16:41:42,353 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 16:41:42,379 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 16:41:42,382 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 16:41:42,383 - api_logger - INFO - Router cargado: /export
2026-03-19 16:41:42,385 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 16:41:42,386 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 16:41:42,392 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 16:41:42,393 - api_logger - INFO - Router cargado: /payment
2026-03-19 16:41:42,393 - api_logger - INFO - Router cargado: /plans
2026-03-19 16:41:42,394 - api_logger - INFO - Router cargado: /users
2026-03-19 16:41:42,396 - api_logger - INFO - Router cargado: /webservices
2026-03-19 16:41:42,397 - api_logger - INFO - Router cargado: /auth
2026-03-19 16:41:42,400 - api_logger - INFO - Router cargado: 
2026-03-19 16:41:42,400 - api_logger - INFO - Router cargado: /licenses
2026-03-19 16:41:54,586 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 16:41:54,618 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 16:41:54,621 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 16:41:54,622 - api_logger - INFO - Router cargado: /export
2026-03-19 16:41:54,625 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 16:41:54,626 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 16:41:54,633 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 16:41:54,634 - api_logger - INFO - Router cargado: /payment
2026-03-19 16:41:54,634 - api_logger - INFO - Router cargado: /plans
2026-03-19 16:41:54,636 - api_logger - INFO - Router cargado: /users
2026-03-19 16:41:54,637 - api_logger - INFO - Router cargado: /webservices
2026-03-19 16:41:54,638 - api_logger - INFO - Router cargado: /auth
2026-03-19 16:41:54,640 - api_logger - INFO - Router cargado: 
2026-03-19 16:41:54,640 - api_logger - INFO - Router cargado: /licenses
2026-03-19 16:41:54,661 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 16:41:54,688 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 16:41:54,691 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 16:41:54,691 - api_logger - INFO - Router cargado: /export
2026-03-19 16:41:54,694 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 16:41:54,695 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 16:41:54,702 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 16:41:54,703 - api_logger - INFO - Router cargado: /payment
2026-03-19 16:41:54,703 - api_logger - INFO - Router cargado: /plans
2026-03-19 16:41:54,704 - api_logger - INFO - Router cargado: /users
2026-03-19 16:41:54,705 - api_logger - INFO - Router cargado: /webservices
2026-03-19 16:41:54,706 - api_logger - INFO - Router cargado: /auth
2026-03-19 16:41:54,709 - api_logger - INFO - Router cargado: 
2026-03-19 16:41:54,710 - api_logger - INFO - Router cargado: /licenses
2026-03-19 16:42:04,881 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: 403: {'error': 'pending_verification', 'message': 'Tu cuenta aún no ha sido verificada.'}
2026-03-19 16:44:04,459 - api_logger - ERROR - Error inesperado: 'LicenseManager' object has no attribute 'get_subuser_detail'
2026-03-19 16:47:27,290 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 16:47:27,323 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 16:47:27,326 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 16:47:27,327 - api_logger - INFO - Router cargado: /export
2026-03-19 16:47:27,330 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 16:47:27,330 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 16:47:27,339 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 16:47:27,340 - api_logger - INFO - Router cargado: /payment
2026-03-19 16:47:27,340 - api_logger - INFO - Router cargado: /plans
2026-03-19 16:47:27,341 - api_logger - INFO - Router cargado: /users
2026-03-19 16:47:27,343 - api_logger - INFO - Router cargado: /webservices
2026-03-19 16:47:27,344 - api_logger - INFO - Router cargado: /auth
2026-03-19 16:47:27,346 - api_logger - INFO - Router cargado: 
2026-03-19 16:47:27,346 - api_logger - INFO - Router cargado: /licenses
2026-03-19 16:47:28,097 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 16:47:28,128 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 16:47:28,130 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 16:47:28,131 - api_logger - INFO - Router cargado: /export
2026-03-19 16:47:28,135 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 16:47:28,135 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 16:47:28,142 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 16:47:28,143 - api_logger - INFO - Router cargado: /payment
2026-03-19 16:47:28,143 - api_logger - INFO - Router cargado: /plans
2026-03-19 16:47:28,144 - api_logger - INFO - Router cargado: /users
2026-03-19 16:47:28,146 - api_logger - INFO - Router cargado: /webservices
2026-03-19 16:47:28,147 - api_logger - INFO - Router cargado: /auth
2026-03-19 16:47:28,148 - api_logger - INFO - Router cargado: 
2026-03-19 16:47:28,149 - api_logger - INFO - Router cargado: /licenses
2026-03-19 16:47:28,168 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 16:47:28,195 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 16:47:28,197 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 16:47:28,198 - api_logger - INFO - Router cargado: /export
2026-03-19 16:47:28,201 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 16:47:28,201 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 16:47:28,208 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 16:47:28,208 - api_logger - INFO - Router cargado: /payment
2026-03-19 16:47:28,209 - api_logger - INFO - Router cargado: /plans
2026-03-19 16:47:28,210 - api_logger - INFO - Router cargado: /users
2026-03-19 16:47:28,211 - api_logger - INFO - Router cargado: /webservices
2026-03-19 16:47:28,212 - api_logger - INFO - Router cargado: /auth
2026-03-19 16:47:28,215 - api_logger - INFO - Router cargado: 
2026-03-19 16:47:28,215 - api_logger - INFO - Router cargado: /licenses
2026-03-19 16:47:31,879 - api_logger - ERROR - Error inesperado: 'LicensesManager' object has no attribute 'get_subuser_detail'
2026-03-19 16:47:51,721 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 16:47:51,754 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 16:47:51,756 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 16:47:51,757 - api_logger - INFO - Router cargado: /export
2026-03-19 16:47:51,761 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 16:47:51,761 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 16:47:51,768 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 16:47:51,769 - api_logger - INFO - Router cargado: /payment
2026-03-19 16:47:51,769 - api_logger - INFO - Router cargado: /plans
2026-03-19 16:47:51,771 - api_logger - INFO - Router cargado: /users
2026-03-19 16:47:51,772 - api_logger - INFO - Router cargado: /webservices
2026-03-19 16:47:51,773 - api_logger - INFO - Router cargado: /auth
2026-03-19 16:47:51,775 - api_logger - INFO - Router cargado: 
2026-03-19 16:47:51,775 - api_logger - INFO - Router cargado: /licenses
2026-03-19 16:47:51,796 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 16:47:51,823 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 16:47:51,825 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 16:47:51,826 - api_logger - INFO - Router cargado: /export
2026-03-19 16:47:51,829 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 16:47:51,829 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 16:47:51,836 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 16:47:51,837 - api_logger - INFO - Router cargado: /payment
2026-03-19 16:47:51,837 - api_logger - INFO - Router cargado: /plans
2026-03-19 16:47:51,838 - api_logger - INFO - Router cargado: /users
2026-03-19 16:47:51,839 - api_logger - INFO - Router cargado: /webservices
2026-03-19 16:47:51,840 - api_logger - INFO - Router cargado: /auth
2026-03-19 16:47:51,843 - api_logger - INFO - Router cargado: 
2026-03-19 16:47:51,843 - api_logger - INFO - Router cargado: /licenses
2026-03-19 16:48:44,114 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 16:48:44,147 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 16:48:44,150 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 16:48:44,151 - api_logger - INFO - Router cargado: /export
2026-03-19 16:48:44,154 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 16:48:44,155 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 16:48:44,162 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 16:48:44,163 - api_logger - INFO - Router cargado: /payment
2026-03-19 16:48:44,163 - api_logger - INFO - Router cargado: /plans
2026-03-19 16:48:44,164 - api_logger - INFO - Router cargado: /users
2026-03-19 16:48:44,165 - api_logger - INFO - Router cargado: /webservices
2026-03-19 16:48:44,167 - api_logger - INFO - Router cargado: /auth
2026-03-19 16:48:44,168 - api_logger - INFO - Router cargado: 
2026-03-19 16:48:44,169 - api_logger - INFO - Router cargado: /licenses
2026-03-19 16:48:44,189 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 16:48:44,215 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 16:48:44,218 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 16:48:44,219 - api_logger - INFO - Router cargado: /export
2026-03-19 16:48:44,222 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 16:48:44,222 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 16:48:44,229 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 16:48:44,229 - api_logger - INFO - Router cargado: /payment
2026-03-19 16:48:44,230 - api_logger - INFO - Router cargado: /plans
2026-03-19 16:48:44,231 - api_logger - INFO - Router cargado: /users
2026-03-19 16:48:44,232 - api_logger - INFO - Router cargado: /webservices
2026-03-19 16:48:44,233 - api_logger - INFO - Router cargado: /auth
2026-03-19 16:48:44,236 - api_logger - INFO - Router cargado: 
2026-03-19 16:48:44,236 - api_logger - INFO - Router cargado: /licenses
2026-03-19 16:48:53,685 - api_logger - ERROR - Error inesperado: LicensesWithPayments.get_rows() missing 1 required positional argument: 'owner_id'
2026-03-19 16:49:39,111 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 16:49:39,143 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 16:49:39,145 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 16:49:39,146 - api_logger - INFO - Router cargado: /export
2026-03-19 16:49:39,150 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 16:49:39,150 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 16:49:39,157 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 16:49:39,158 - api_logger - INFO - Router cargado: /payment
2026-03-19 16:49:39,158 - api_logger - INFO - Router cargado: /plans
2026-03-19 16:49:39,159 - api_logger - INFO - Router cargado: /users
2026-03-19 16:49:39,161 - api_logger - INFO - Router cargado: /webservices
2026-03-19 16:49:39,162 - api_logger - INFO - Router cargado: /auth
2026-03-19 16:49:39,163 - api_logger - INFO - Router cargado: 
2026-03-19 16:49:39,164 - api_logger - INFO - Router cargado: /licenses
2026-03-19 16:49:39,184 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 16:49:39,211 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 16:49:39,213 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 16:49:39,214 - api_logger - INFO - Router cargado: /export
2026-03-19 16:49:39,217 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 16:49:39,217 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 16:49:39,224 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 16:49:39,225 - api_logger - INFO - Router cargado: /payment
2026-03-19 16:49:39,225 - api_logger - INFO - Router cargado: /plans
2026-03-19 16:49:39,226 - api_logger - INFO - Router cargado: /users
2026-03-19 16:49:39,228 - api_logger - INFO - Router cargado: /webservices
2026-03-19 16:49:39,229 - api_logger - INFO - Router cargado: /auth
2026-03-19 16:49:39,232 - api_logger - INFO - Router cargado: 
2026-03-19 16:49:39,232 - api_logger - INFO - Router cargado: /licenses
2026-03-19 16:50:53,433 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 16:50:53,465 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 16:50:53,467 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 16:50:53,468 - api_logger - INFO - Router cargado: /export
2026-03-19 16:50:53,472 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 16:50:53,472 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 16:50:53,479 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 16:50:53,480 - api_logger - INFO - Router cargado: /payment
2026-03-19 16:50:53,480 - api_logger - INFO - Router cargado: /plans
2026-03-19 16:50:53,482 - api_logger - INFO - Router cargado: /users
2026-03-19 16:50:53,483 - api_logger - INFO - Router cargado: /webservices
2026-03-19 16:50:53,485 - api_logger - INFO - Router cargado: /auth
2026-03-19 16:50:53,486 - api_logger - INFO - Router cargado: 
2026-03-19 16:50:53,486 - api_logger - INFO - Router cargado: /licenses
2026-03-19 16:50:53,508 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 16:50:53,535 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 16:50:53,538 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 16:50:53,539 - api_logger - INFO - Router cargado: /export
2026-03-19 16:50:53,542 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 16:50:53,542 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 16:50:53,549 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 16:50:53,550 - api_logger - INFO - Router cargado: /payment
2026-03-19 16:50:53,550 - api_logger - INFO - Router cargado: /plans
2026-03-19 16:50:53,551 - api_logger - INFO - Router cargado: /users
2026-03-19 16:50:53,552 - api_logger - INFO - Router cargado: /webservices
2026-03-19 16:50:53,553 - api_logger - INFO - Router cargado: /auth
2026-03-19 16:50:53,556 - api_logger - INFO - Router cargado: 
2026-03-19 16:50:53,557 - api_logger - INFO - Router cargado: /licenses
2026-03-19 16:52:14,407 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 16:52:14,439 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 16:52:14,441 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 16:52:14,442 - api_logger - INFO - Router cargado: /export
2026-03-19 16:52:14,445 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 16:52:14,446 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 16:52:14,453 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 16:52:14,454 - api_logger - INFO - Router cargado: /payment
2026-03-19 16:52:14,454 - api_logger - INFO - Router cargado: /plans
2026-03-19 16:52:14,455 - api_logger - INFO - Router cargado: /users
2026-03-19 16:52:14,457 - api_logger - INFO - Router cargado: /webservices
2026-03-19 16:52:14,458 - api_logger - INFO - Router cargado: /auth
2026-03-19 16:52:14,460 - api_logger - INFO - Router cargado: 
2026-03-19 16:52:14,460 - api_logger - INFO - Router cargado: /licenses
2026-03-19 16:52:14,480 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 16:52:14,508 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 16:52:14,510 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 16:52:14,511 - api_logger - INFO - Router cargado: /export
2026-03-19 16:52:14,514 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 16:52:14,514 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 16:52:14,521 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 16:52:14,522 - api_logger - INFO - Router cargado: /payment
2026-03-19 16:52:14,522 - api_logger - INFO - Router cargado: /plans
2026-03-19 16:52:14,523 - api_logger - INFO - Router cargado: /users
2026-03-19 16:52:14,525 - api_logger - INFO - Router cargado: /webservices
2026-03-19 16:52:14,526 - api_logger - INFO - Router cargado: /auth
2026-03-19 16:52:14,529 - api_logger - INFO - Router cargado: 
2026-03-19 16:52:14,529 - api_logger - INFO - Router cargado: /licenses
2026-03-19 16:52:24,800 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 16:52:24,831 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 16:52:24,834 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 16:52:24,835 - api_logger - INFO - Router cargado: /export
2026-03-19 16:52:24,838 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 16:52:24,838 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 16:52:24,846 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 16:52:24,846 - api_logger - INFO - Router cargado: /payment
2026-03-19 16:52:24,847 - api_logger - INFO - Router cargado: /plans
2026-03-19 16:52:24,848 - api_logger - INFO - Router cargado: /users
2026-03-19 16:52:24,849 - api_logger - INFO - Router cargado: /webservices
2026-03-19 16:52:24,851 - api_logger - INFO - Router cargado: /auth
2026-03-19 16:52:24,852 - api_logger - INFO - Router cargado: 
2026-03-19 16:52:24,852 - api_logger - INFO - Router cargado: /licenses
2026-03-19 16:52:24,873 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 16:52:24,900 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 16:52:24,902 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 16:52:24,903 - api_logger - INFO - Router cargado: /export
2026-03-19 16:52:24,906 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 16:52:24,906 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 16:52:24,913 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 16:52:24,914 - api_logger - INFO - Router cargado: /payment
2026-03-19 16:52:24,914 - api_logger - INFO - Router cargado: /plans
2026-03-19 16:52:24,915 - api_logger - INFO - Router cargado: /users
2026-03-19 16:52:24,916 - api_logger - INFO - Router cargado: /webservices
2026-03-19 16:52:24,918 - api_logger - INFO - Router cargado: /auth
2026-03-19 16:52:24,921 - api_logger - INFO - Router cargado: 
2026-03-19 16:52:24,921 - api_logger - INFO - Router cargado: /licenses
2026-03-19 16:52:50,205 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 16:52:50,238 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 16:52:50,240 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 16:52:50,241 - api_logger - INFO - Router cargado: /export
2026-03-19 16:52:50,245 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 16:52:50,245 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 16:52:50,253 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 16:52:50,254 - api_logger - INFO - Router cargado: /payment
2026-03-19 16:52:50,254 - api_logger - INFO - Router cargado: /plans
2026-03-19 16:52:50,255 - api_logger - INFO - Router cargado: /users
2026-03-19 16:52:50,256 - api_logger - INFO - Router cargado: /webservices
2026-03-19 16:52:50,258 - api_logger - INFO - Router cargado: /auth
2026-03-19 16:52:50,259 - api_logger - INFO - Router cargado: 
2026-03-19 16:52:50,260 - api_logger - INFO - Router cargado: /licenses
2026-03-19 16:52:50,282 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 16:52:50,309 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 16:52:50,311 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 16:52:50,312 - api_logger - INFO - Router cargado: /export
2026-03-19 16:52:50,315 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 16:52:50,315 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 16:52:50,323 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 16:52:50,323 - api_logger - INFO - Router cargado: /payment
2026-03-19 16:52:50,323 - api_logger - INFO - Router cargado: /plans
2026-03-19 16:52:50,325 - api_logger - INFO - Router cargado: /users
2026-03-19 16:52:50,326 - api_logger - INFO - Router cargado: /webservices
2026-03-19 16:52:50,327 - api_logger - INFO - Router cargado: /auth
2026-03-19 16:52:50,331 - api_logger - INFO - Router cargado: 
2026-03-19 16:52:50,331 - api_logger - INFO - Router cargado: /licenses
2026-03-19 16:52:54,915 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 16:52:54,947 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 16:52:54,950 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 16:52:54,950 - api_logger - INFO - Router cargado: /export
2026-03-19 16:52:54,954 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 16:52:54,954 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 16:52:54,961 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 16:52:54,962 - api_logger - INFO - Router cargado: /payment
2026-03-19 16:52:54,962 - api_logger - INFO - Router cargado: /plans
2026-03-19 16:52:54,964 - api_logger - INFO - Router cargado: /users
2026-03-19 16:52:54,965 - api_logger - INFO - Router cargado: /webservices
2026-03-19 16:52:54,966 - api_logger - INFO - Router cargado: /auth
2026-03-19 16:52:54,968 - api_logger - INFO - Router cargado: 
2026-03-19 16:52:54,968 - api_logger - INFO - Router cargado: /licenses
2026-03-19 16:52:54,988 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 16:52:55,014 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 16:52:55,017 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 16:52:55,018 - api_logger - INFO - Router cargado: /export
2026-03-19 16:52:55,021 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 16:52:55,021 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 16:52:55,028 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 16:52:55,029 - api_logger - INFO - Router cargado: /payment
2026-03-19 16:52:55,029 - api_logger - INFO - Router cargado: /plans
2026-03-19 16:52:55,030 - api_logger - INFO - Router cargado: /users
2026-03-19 16:52:55,031 - api_logger - INFO - Router cargado: /webservices
2026-03-19 16:52:55,032 - api_logger - INFO - Router cargado: /auth
2026-03-19 16:52:55,035 - api_logger - INFO - Router cargado: 
2026-03-19 16:52:55,035 - api_logger - INFO - Router cargado: /licenses
2026-03-19 16:53:33,626 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 16:53:33,659 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 16:53:33,662 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 16:53:33,663 - api_logger - INFO - Router cargado: /export
2026-03-19 16:53:33,666 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 16:53:33,667 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 16:53:33,675 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 16:53:33,675 - api_logger - INFO - Router cargado: /payment
2026-03-19 16:53:33,675 - api_logger - INFO - Router cargado: /plans
2026-03-19 16:53:33,677 - api_logger - INFO - Router cargado: /users
2026-03-19 16:53:33,678 - api_logger - INFO - Router cargado: /webservices
2026-03-19 16:53:33,680 - api_logger - INFO - Router cargado: /auth
2026-03-19 16:53:33,681 - api_logger - INFO - Router cargado: 
2026-03-19 16:53:33,682 - api_logger - INFO - Router cargado: /licenses
2026-03-19 16:53:33,706 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 16:53:33,733 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 16:53:33,735 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 16:53:33,736 - api_logger - INFO - Router cargado: /export
2026-03-19 16:53:33,739 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 16:53:33,739 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 16:53:33,747 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 16:53:33,748 - api_logger - INFO - Router cargado: /payment
2026-03-19 16:53:33,748 - api_logger - INFO - Router cargado: /plans
2026-03-19 16:53:33,749 - api_logger - INFO - Router cargado: /users
2026-03-19 16:53:33,750 - api_logger - INFO - Router cargado: /webservices
2026-03-19 16:53:33,751 - api_logger - INFO - Router cargado: /auth
2026-03-19 16:53:33,755 - api_logger - INFO - Router cargado: 
2026-03-19 16:53:33,755 - api_logger - INFO - Router cargado: /licenses
2026-03-19 16:53:44,117 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 16:53:44,149 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 16:53:44,151 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 16:53:44,152 - api_logger - INFO - Router cargado: /export
2026-03-19 16:53:44,156 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 16:53:44,156 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 16:53:44,164 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 16:53:44,164 - api_logger - INFO - Router cargado: /payment
2026-03-19 16:53:44,164 - api_logger - INFO - Router cargado: /plans
2026-03-19 16:53:44,166 - api_logger - INFO - Router cargado: /users
2026-03-19 16:53:44,167 - api_logger - INFO - Router cargado: /webservices
2026-03-19 16:53:44,169 - api_logger - INFO - Router cargado: /auth
2026-03-19 16:53:44,170 - api_logger - INFO - Router cargado: 
2026-03-19 16:53:44,170 - api_logger - INFO - Router cargado: /licenses
2026-03-19 16:53:44,192 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 16:53:44,219 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 16:53:44,221 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 16:53:44,222 - api_logger - INFO - Router cargado: /export
2026-03-19 16:53:44,225 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 16:53:44,225 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 16:53:44,232 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 16:53:44,232 - api_logger - INFO - Router cargado: /payment
2026-03-19 16:53:44,233 - api_logger - INFO - Router cargado: /plans
2026-03-19 16:53:44,234 - api_logger - INFO - Router cargado: /users
2026-03-19 16:53:44,235 - api_logger - INFO - Router cargado: /webservices
2026-03-19 16:53:44,236 - api_logger - INFO - Router cargado: /auth
2026-03-19 16:53:44,239 - api_logger - INFO - Router cargado: 
2026-03-19 16:53:44,239 - api_logger - INFO - Router cargado: /licenses
2026-03-19 16:54:55,955 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 16:54:55,987 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 16:54:55,990 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 16:54:55,990 - api_logger - INFO - Router cargado: /export
2026-03-19 16:54:55,994 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 16:54:55,994 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 16:54:56,002 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 16:54:56,002 - api_logger - INFO - Router cargado: /payment
2026-03-19 16:54:56,003 - api_logger - INFO - Router cargado: /plans
2026-03-19 16:54:56,004 - api_logger - INFO - Router cargado: /users
2026-03-19 16:54:56,005 - api_logger - INFO - Router cargado: /webservices
2026-03-19 16:54:56,007 - api_logger - INFO - Router cargado: /auth
2026-03-19 16:54:56,009 - api_logger - INFO - Router cargado: 
2026-03-19 16:54:56,009 - api_logger - INFO - Router cargado: /licenses
2026-03-19 16:54:56,087 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 16:54:56,115 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 16:54:56,118 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 16:54:56,118 - api_logger - INFO - Router cargado: /export
2026-03-19 16:54:56,122 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 16:54:56,122 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 16:54:56,129 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 16:54:56,130 - api_logger - INFO - Router cargado: /payment
2026-03-19 16:54:56,130 - api_logger - INFO - Router cargado: /plans
2026-03-19 16:54:56,132 - api_logger - INFO - Router cargado: /users
2026-03-19 16:54:56,133 - api_logger - INFO - Router cargado: /webservices
2026-03-19 16:54:56,134 - api_logger - INFO - Router cargado: /auth
2026-03-19 16:54:56,137 - api_logger - INFO - Router cargado: 
2026-03-19 16:54:56,138 - api_logger - INFO - Router cargado: /licenses
2026-03-19 16:59:25,882 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 16:59:25,914 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 16:59:25,916 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 16:59:25,917 - api_logger - INFO - Router cargado: /export
2026-03-19 16:59:25,921 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 16:59:25,921 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 16:59:25,929 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 16:59:25,930 - api_logger - INFO - Router cargado: /payment
2026-03-19 16:59:25,931 - api_logger - INFO - Router cargado: /plans
2026-03-19 16:59:25,933 - api_logger - INFO - Router cargado: /users
2026-03-19 16:59:25,935 - api_logger - INFO - Router cargado: /webservices
2026-03-19 16:59:25,936 - api_logger - INFO - Router cargado: /auth
2026-03-19 16:59:25,938 - api_logger - INFO - Router cargado: 
2026-03-19 16:59:25,938 - api_logger - INFO - Router cargado: /licenses
2026-03-19 16:59:25,959 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 16:59:25,986 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 16:59:25,988 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 16:59:25,989 - api_logger - INFO - Router cargado: /export
2026-03-19 16:59:25,992 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 16:59:25,992 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 16:59:26,000 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 16:59:26,000 - api_logger - INFO - Router cargado: /payment
2026-03-19 16:59:26,000 - api_logger - INFO - Router cargado: /plans
2026-03-19 16:59:26,002 - api_logger - INFO - Router cargado: /users
2026-03-19 16:59:26,003 - api_logger - INFO - Router cargado: /webservices
2026-03-19 16:59:26,004 - api_logger - INFO - Router cargado: /auth
2026-03-19 16:59:26,007 - api_logger - INFO - Router cargado: 
2026-03-19 16:59:26,008 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:00:29,689 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:00:29,721 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:00:29,723 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:00:29,724 - api_logger - INFO - Router cargado: /export
2026-03-19 17:00:29,728 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:00:29,728 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:00:29,735 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:00:29,736 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:00:29,736 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:00:29,738 - api_logger - INFO - Router cargado: /users
2026-03-19 17:00:29,740 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:00:29,741 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:00:29,743 - api_logger - INFO - Router cargado: 
2026-03-19 17:00:29,743 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:00:29,767 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:00:29,794 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:00:29,796 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:00:29,797 - api_logger - INFO - Router cargado: /export
2026-03-19 17:00:29,800 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:00:29,800 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:00:29,807 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:00:29,808 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:00:29,808 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:00:29,809 - api_logger - INFO - Router cargado: /users
2026-03-19 17:00:29,810 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:00:29,812 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:00:29,815 - api_logger - INFO - Router cargado: 
2026-03-19 17:00:29,815 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:01:59,752 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:01:59,784 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:01:59,786 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:01:59,787 - api_logger - INFO - Router cargado: /export
2026-03-19 17:01:59,791 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:01:59,791 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:01:59,798 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:01:59,799 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:01:59,799 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:01:59,801 - api_logger - INFO - Router cargado: /users
2026-03-19 17:01:59,802 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:01:59,803 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:01:59,805 - api_logger - INFO - Router cargado: 
2026-03-19 17:01:59,805 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:01:59,825 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:01:59,852 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:01:59,854 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:01:59,855 - api_logger - INFO - Router cargado: /export
2026-03-19 17:01:59,858 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:01:59,858 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:01:59,865 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:01:59,866 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:01:59,866 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:01:59,867 - api_logger - INFO - Router cargado: /users
2026-03-19 17:01:59,869 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:01:59,870 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:01:59,874 - api_logger - INFO - Router cargado: 
2026-03-19 17:01:59,874 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:02:03,068 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:02:03,101 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:02:03,103 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:02:03,104 - api_logger - INFO - Router cargado: /export
2026-03-19 17:02:03,108 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:02:03,108 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:02:03,116 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:02:03,117 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:02:03,117 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:02:03,118 - api_logger - INFO - Router cargado: /users
2026-03-19 17:02:03,120 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:02:03,121 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:02:03,123 - api_logger - INFO - Router cargado: 
2026-03-19 17:02:03,123 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:02:03,144 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:02:03,171 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:02:03,173 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:02:03,174 - api_logger - INFO - Router cargado: /export
2026-03-19 17:02:03,177 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:02:03,177 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:02:03,184 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:02:03,184 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:02:03,185 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:02:03,186 - api_logger - INFO - Router cargado: /users
2026-03-19 17:02:03,187 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:02:03,188 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:02:03,191 - api_logger - INFO - Router cargado: 
2026-03-19 17:02:03,191 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:02:26,188 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:02:26,220 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:02:26,222 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:02:26,223 - api_logger - INFO - Router cargado: /export
2026-03-19 17:02:26,226 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:02:26,227 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:02:26,234 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:02:26,235 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:02:26,235 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:02:26,236 - api_logger - INFO - Router cargado: /users
2026-03-19 17:02:26,237 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:02:26,239 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:02:26,240 - api_logger - INFO - Router cargado: 
2026-03-19 17:02:26,241 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:02:26,261 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:02:26,287 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:02:26,290 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:02:26,291 - api_logger - INFO - Router cargado: /export
2026-03-19 17:02:26,294 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:02:26,294 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:02:26,301 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:02:26,301 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:02:26,302 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:02:26,303 - api_logger - INFO - Router cargado: /users
2026-03-19 17:02:26,304 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:02:26,305 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:02:26,308 - api_logger - INFO - Router cargado: 
2026-03-19 17:02:26,308 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:02:28,982 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:02:29,015 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:02:29,017 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:02:29,018 - api_logger - INFO - Router cargado: /export
2026-03-19 17:02:29,022 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:02:29,022 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:02:29,030 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:02:29,030 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:02:29,030 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:02:29,032 - api_logger - INFO - Router cargado: /users
2026-03-19 17:02:29,033 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:02:29,035 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:02:29,036 - api_logger - INFO - Router cargado: 
2026-03-19 17:02:29,036 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:02:29,057 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:02:29,084 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:02:29,086 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:02:29,087 - api_logger - INFO - Router cargado: /export
2026-03-19 17:02:29,090 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:02:29,090 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:02:29,097 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:02:29,098 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:02:29,098 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:02:29,099 - api_logger - INFO - Router cargado: /users
2026-03-19 17:02:29,100 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:02:29,101 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:02:29,104 - api_logger - INFO - Router cargado: 
2026-03-19 17:02:29,104 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:02:57,028 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:02:57,060 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:02:57,062 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:02:57,063 - api_logger - INFO - Router cargado: /export
2026-03-19 17:02:57,067 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:02:57,067 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:02:57,074 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:02:57,075 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:02:57,075 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:02:57,077 - api_logger - INFO - Router cargado: /users
2026-03-19 17:02:57,078 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:02:57,079 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:02:57,081 - api_logger - INFO - Router cargado: 
2026-03-19 17:02:57,081 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:02:57,102 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:02:57,129 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:02:57,131 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:02:57,132 - api_logger - INFO - Router cargado: /export
2026-03-19 17:02:57,135 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:02:57,135 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:02:57,142 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:02:57,143 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:02:57,143 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:02:57,144 - api_logger - INFO - Router cargado: /users
2026-03-19 17:02:57,145 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:02:57,146 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:02:57,149 - api_logger - INFO - Router cargado: 
2026-03-19 17:02:57,149 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:03:09,623 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:03:09,659 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:03:09,662 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:03:09,663 - api_logger - INFO - Router cargado: /export
2026-03-19 17:03:09,666 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:03:09,667 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:03:09,674 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:03:09,674 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:03:09,675 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:03:09,676 - api_logger - INFO - Router cargado: /users
2026-03-19 17:03:09,677 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:03:09,679 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:03:09,680 - api_logger - INFO - Router cargado: 
2026-03-19 17:03:09,681 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:03:09,703 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:03:09,731 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:03:09,734 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:03:09,734 - api_logger - INFO - Router cargado: /export
2026-03-19 17:03:09,737 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:03:09,738 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:03:09,745 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:03:09,746 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:03:09,746 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:03:09,747 - api_logger - INFO - Router cargado: /users
2026-03-19 17:03:09,748 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:03:09,749 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:03:09,753 - api_logger - INFO - Router cargado: 
2026-03-19 17:03:09,753 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:03:15,397 - api_logger - ERROR - Error al obtener detalle de su licensia: 404: No se encontró información para esta licencia.
2026-03-19 17:03:28,407 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:03:28,438 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:03:28,440 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:03:28,441 - api_logger - INFO - Router cargado: /export
2026-03-19 17:03:28,445 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:03:28,445 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:03:28,452 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:03:28,453 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:03:28,453 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:03:28,455 - api_logger - INFO - Router cargado: /users
2026-03-19 17:03:28,456 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:03:28,457 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:03:28,459 - api_logger - INFO - Router cargado: 
2026-03-19 17:03:28,459 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:03:28,479 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:03:28,506 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:03:28,508 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:03:28,509 - api_logger - INFO - Router cargado: /export
2026-03-19 17:03:28,512 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:03:28,512 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:03:28,519 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:03:28,520 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:03:28,520 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:03:28,521 - api_logger - INFO - Router cargado: /users
2026-03-19 17:03:28,522 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:03:28,524 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:03:28,527 - api_logger - INFO - Router cargado: 
2026-03-19 17:03:28,527 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:05:09,207 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:05:09,238 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:05:09,241 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:05:09,242 - api_logger - INFO - Router cargado: /export
2026-03-19 17:05:09,245 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:05:09,245 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:05:09,253 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:05:09,253 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:05:09,253 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:05:09,255 - api_logger - INFO - Router cargado: /users
2026-03-19 17:05:09,256 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:05:09,258 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:05:09,259 - api_logger - INFO - Router cargado: 
2026-03-19 17:05:09,259 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:05:09,279 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:05:09,305 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:05:09,308 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:05:09,308 - api_logger - INFO - Router cargado: /export
2026-03-19 17:05:09,312 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:05:09,312 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:05:09,319 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:05:09,319 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:05:09,319 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:05:09,321 - api_logger - INFO - Router cargado: /users
2026-03-19 17:05:09,322 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:05:09,323 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:05:09,326 - api_logger - INFO - Router cargado: 
2026-03-19 17:05:09,326 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:06:59,304 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:06:59,336 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:06:59,338 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:06:59,339 - api_logger - INFO - Router cargado: /export
2026-03-19 17:06:59,343 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:06:59,343 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:06:59,350 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:06:59,351 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:06:59,351 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:06:59,352 - api_logger - INFO - Router cargado: /users
2026-03-19 17:06:59,354 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:06:59,355 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:06:59,357 - api_logger - INFO - Router cargado: 
2026-03-19 17:06:59,357 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:06:59,378 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:06:59,405 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:06:59,407 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:06:59,408 - api_logger - INFO - Router cargado: /export
2026-03-19 17:06:59,411 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:06:59,411 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:06:59,418 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:06:59,419 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:06:59,419 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:06:59,420 - api_logger - INFO - Router cargado: /users
2026-03-19 17:06:59,421 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:06:59,422 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:06:59,425 - api_logger - INFO - Router cargado: 
2026-03-19 17:06:59,425 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:07:17,188 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:07:17,220 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:07:17,223 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:07:17,224 - api_logger - INFO - Router cargado: /export
2026-03-19 17:07:17,227 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:07:17,228 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:07:17,236 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:07:17,237 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:07:17,237 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:07:17,238 - api_logger - INFO - Router cargado: /users
2026-03-19 17:07:17,240 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:07:17,241 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:07:17,243 - api_logger - INFO - Router cargado: 
2026-03-19 17:07:17,243 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:07:17,265 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:07:17,294 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:07:17,297 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:07:17,298 - api_logger - INFO - Router cargado: /export
2026-03-19 17:07:17,301 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:07:17,301 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:07:17,308 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:07:17,309 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:07:17,309 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:07:17,310 - api_logger - INFO - Router cargado: /users
2026-03-19 17:07:17,312 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:07:17,313 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:07:17,317 - api_logger - INFO - Router cargado: 
2026-03-19 17:07:17,317 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:07:21,893 - api_logger - ERROR - Error al obtener detalle de su licensia: 404: No se encontró información para esta licencia.
2026-03-19 17:08:08,637 - api_logger - ERROR - Error al obtener detalle de su licensia: 404: No se encontró información para esta licencia.
2026-03-19 17:08:41,770 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:08:41,802 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:08:41,805 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:08:41,806 - api_logger - INFO - Router cargado: /export
2026-03-19 17:08:41,809 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:08:41,809 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:08:41,817 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:08:41,817 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:08:41,818 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:08:41,819 - api_logger - INFO - Router cargado: /users
2026-03-19 17:08:41,820 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:08:41,822 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:08:41,823 - api_logger - INFO - Router cargado: 
2026-03-19 17:08:41,823 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:08:41,843 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:08:41,870 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:08:41,873 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:08:41,874 - api_logger - INFO - Router cargado: /export
2026-03-19 17:08:41,877 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:08:41,877 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:08:41,884 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:08:41,885 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:08:41,885 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:08:41,886 - api_logger - INFO - Router cargado: /users
2026-03-19 17:08:41,887 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:08:41,888 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:08:41,891 - api_logger - INFO - Router cargado: 
2026-03-19 17:08:41,891 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:09:18,111 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:09:18,143 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:09:18,145 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:09:18,146 - api_logger - INFO - Router cargado: /export
2026-03-19 17:09:18,150 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:09:18,150 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:09:18,157 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:09:18,158 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:09:18,158 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:09:18,159 - api_logger - INFO - Router cargado: /users
2026-03-19 17:09:18,161 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:09:18,162 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:09:18,164 - api_logger - INFO - Router cargado: 
2026-03-19 17:09:18,164 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:09:18,184 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:09:18,210 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:09:18,213 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:09:18,214 - api_logger - INFO - Router cargado: /export
2026-03-19 17:09:18,217 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:09:18,217 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:09:18,224 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:09:18,224 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:09:18,224 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:09:18,226 - api_logger - INFO - Router cargado: /users
2026-03-19 17:09:18,227 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:09:18,228 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:09:18,231 - api_logger - INFO - Router cargado: 
2026-03-19 17:09:18,231 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:09:21,236 - api_logger - ERROR - Error inesperado: name 'id_licens' is not defined
2026-03-19 17:09:33,026 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:09:33,057 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:09:33,060 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:09:33,061 - api_logger - INFO - Router cargado: /export
2026-03-19 17:09:33,064 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:09:33,064 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:09:33,071 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:09:33,072 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:09:33,072 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:09:33,074 - api_logger - INFO - Router cargado: /users
2026-03-19 17:09:33,075 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:09:33,076 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:09:33,078 - api_logger - INFO - Router cargado: 
2026-03-19 17:09:33,078 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:09:33,098 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:09:33,124 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:09:33,127 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:09:33,128 - api_logger - INFO - Router cargado: /export
2026-03-19 17:09:33,131 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:09:33,131 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:09:33,138 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:09:33,138 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:09:33,138 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:09:33,140 - api_logger - INFO - Router cargado: /users
2026-03-19 17:09:33,141 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:09:33,142 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:09:33,145 - api_logger - INFO - Router cargado: 
2026-03-19 17:09:33,145 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:09:47,957 - api_logger - ERROR - Error al obtener detalle de su licencia: 404: No se encontró información para esta licencia.
2026-03-19 17:11:04,199 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:11:04,231 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:11:04,234 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:11:04,234 - api_logger - INFO - Router cargado: /export
2026-03-19 17:11:04,238 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:11:04,238 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:11:04,246 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:11:04,247 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:11:04,247 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:11:04,249 - api_logger - INFO - Router cargado: /users
2026-03-19 17:11:04,250 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:11:04,251 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:11:04,253 - api_logger - INFO - Router cargado: 
2026-03-19 17:11:04,253 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:11:04,276 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:11:04,305 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:11:04,307 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:11:04,308 - api_logger - INFO - Router cargado: /export
2026-03-19 17:11:04,311 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:11:04,311 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:11:04,318 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:11:04,319 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:11:04,319 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:11:04,320 - api_logger - INFO - Router cargado: /users
2026-03-19 17:11:04,321 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:11:04,323 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:11:04,326 - api_logger - INFO - Router cargado: 
2026-03-19 17:11:04,326 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:11:08,391 - api_logger - ERROR - Error al obtener detalle de su licencia: 404: No se encontró información para esta licencia.
2026-03-19 17:19:26,592 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:19:26,625 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:19:26,627 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:19:26,628 - api_logger - INFO - Router cargado: /export
2026-03-19 17:19:26,632 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:19:26,632 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:19:26,639 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:19:26,640 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:19:26,640 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:19:26,642 - api_logger - INFO - Router cargado: /users
2026-03-19 17:19:26,643 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:19:26,644 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:19:26,646 - api_logger - INFO - Router cargado: 
2026-03-19 17:19:26,646 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:19:27,389 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:19:27,420 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:19:27,423 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:19:27,424 - api_logger - INFO - Router cargado: /export
2026-03-19 17:19:27,427 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:19:27,427 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:19:27,435 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:19:27,435 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:19:27,436 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:19:27,437 - api_logger - INFO - Router cargado: /users
2026-03-19 17:19:27,438 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:19:27,440 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:19:27,442 - api_logger - INFO - Router cargado: 
2026-03-19 17:19:27,442 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:19:27,462 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:19:27,488 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:19:27,491 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:19:27,492 - api_logger - INFO - Router cargado: /export
2026-03-19 17:19:27,495 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:19:27,495 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:19:27,502 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:19:27,503 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:19:27,503 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:19:27,504 - api_logger - INFO - Router cargado: /users
2026-03-19 17:19:27,505 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:19:27,506 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:19:27,510 - api_logger - INFO - Router cargado: 
2026-03-19 17:19:27,510 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:19:35,118 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:19:35,149 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:19:35,151 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:19:35,152 - api_logger - INFO - Router cargado: /export
2026-03-19 17:19:35,156 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:19:35,156 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:19:35,163 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:19:35,164 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:19:35,164 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:19:35,165 - api_logger - INFO - Router cargado: /users
2026-03-19 17:19:35,166 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:19:35,168 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:19:35,170 - api_logger - INFO - Router cargado: 
2026-03-19 17:19:35,170 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:19:35,190 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:19:35,217 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:19:35,219 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:19:35,220 - api_logger - INFO - Router cargado: /export
2026-03-19 17:19:35,223 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:19:35,223 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:19:35,231 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:19:35,231 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:19:35,231 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:19:35,233 - api_logger - INFO - Router cargado: /users
2026-03-19 17:19:35,234 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:19:35,235 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:19:35,238 - api_logger - INFO - Router cargado: 
2026-03-19 17:19:35,238 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:19:45,115 - api_logger - WARNING - [LicensesManager] Sin resultados | id_license=5464 | user=gustavo@geniubs.com
2026-03-19 17:19:45,115 - api_logger - ERROR - Error al obtener detalle de su licencia: 404: No se encontró información para esta licencia.
2026-03-19 17:19:53,278 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:19:53,310 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:19:53,313 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:19:53,314 - api_logger - INFO - Router cargado: /export
2026-03-19 17:19:53,317 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:19:53,317 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:19:53,325 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:19:53,325 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:19:53,326 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:19:53,327 - api_logger - INFO - Router cargado: /users
2026-03-19 17:19:53,328 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:19:53,330 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:19:53,331 - api_logger - INFO - Router cargado: 
2026-03-19 17:19:53,331 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:19:53,352 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:19:53,378 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:19:53,381 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:19:53,381 - api_logger - INFO - Router cargado: /export
2026-03-19 17:19:53,385 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:19:53,385 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:19:53,392 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:19:53,392 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:19:53,393 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:19:53,394 - api_logger - INFO - Router cargado: /users
2026-03-19 17:19:53,395 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:19:53,396 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:19:53,399 - api_logger - INFO - Router cargado: 
2026-03-19 17:19:53,399 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:19:59,147 - api_logger - WARNING - [LicensesManager] Sin resultados | id_license=5464 | user=gustavo@geniubs.com
2026-03-19 17:19:59,147 - api_logger - ERROR - Error al obtener detalle de su licencia: 404: No se encontró información para esta licencia.
2026-03-19 17:20:55,248 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:20:55,282 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:20:55,285 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:20:55,286 - api_logger - INFO - Router cargado: /export
2026-03-19 17:20:55,290 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:20:55,290 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:20:55,297 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:20:55,298 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:20:55,298 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:20:55,301 - api_logger - INFO - Router cargado: /users
2026-03-19 17:20:55,302 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:20:55,304 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:20:55,306 - api_logger - INFO - Router cargado: 
2026-03-19 17:20:55,307 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:20:55,330 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:20:55,359 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:20:55,362 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:20:55,363 - api_logger - INFO - Router cargado: /export
2026-03-19 17:20:55,366 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:20:55,366 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:20:55,373 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:20:55,374 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:20:55,374 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:20:55,376 - api_logger - INFO - Router cargado: /users
2026-03-19 17:20:55,377 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:20:55,378 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:20:55,382 - api_logger - INFO - Router cargado: 
2026-03-19 17:20:55,382 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:20:58,344 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:20:58,376 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:20:58,378 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:20:58,379 - api_logger - INFO - Router cargado: /export
2026-03-19 17:20:58,383 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:20:58,383 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:20:58,390 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:20:58,391 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:20:58,391 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:20:58,392 - api_logger - INFO - Router cargado: /users
2026-03-19 17:20:58,394 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:20:58,395 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:20:58,397 - api_logger - INFO - Router cargado: 
2026-03-19 17:20:58,397 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:20:58,418 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:20:58,446 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:20:58,448 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:20:58,449 - api_logger - INFO - Router cargado: /export
2026-03-19 17:20:58,452 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:20:58,452 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:20:58,459 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:20:58,460 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:20:58,460 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:20:58,461 - api_logger - INFO - Router cargado: /users
2026-03-19 17:20:58,462 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:20:58,463 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:20:58,466 - api_logger - INFO - Router cargado: 
2026-03-19 17:20:58,467 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:21:01,003 - api_logger - ERROR - Error inesperado: type object 'Licenses' has no attribute 'i'
2026-03-19 17:21:21,960 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:21:21,993 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:21:21,996 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:21:21,997 - api_logger - INFO - Router cargado: /export
2026-03-19 17:21:22,000 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:21:22,001 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:21:22,008 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:21:22,009 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:21:22,009 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:21:22,010 - api_logger - INFO - Router cargado: /users
2026-03-19 17:21:22,012 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:21:22,013 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:21:22,014 - api_logger - INFO - Router cargado: 
2026-03-19 17:21:22,015 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:21:22,037 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:21:22,065 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:21:22,067 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:21:22,068 - api_logger - INFO - Router cargado: /export
2026-03-19 17:21:22,071 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:21:22,072 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:21:22,079 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:21:22,079 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:21:22,079 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:21:22,081 - api_logger - INFO - Router cargado: /users
2026-03-19 17:21:22,082 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:21:22,083 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:21:22,086 - api_logger - INFO - Router cargado: 
2026-03-19 17:21:22,086 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:21:25,124 - api_logger - ERROR - Error inesperado: type object 'Licenses' has no attribute 'i'
2026-03-19 17:21:28,388 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:21:28,420 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:21:28,422 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:21:28,423 - api_logger - INFO - Router cargado: /export
2026-03-19 17:21:28,427 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:21:28,427 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:21:28,435 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:21:28,435 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:21:28,435 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:21:28,437 - api_logger - INFO - Router cargado: /users
2026-03-19 17:21:28,438 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:21:28,440 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:21:28,441 - api_logger - INFO - Router cargado: 
2026-03-19 17:21:28,441 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:21:28,462 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:21:28,489 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:21:28,492 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:21:28,493 - api_logger - INFO - Router cargado: /export
2026-03-19 17:21:28,496 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:21:28,496 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:21:28,503 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:21:28,504 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:21:28,504 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:21:28,505 - api_logger - INFO - Router cargado: /users
2026-03-19 17:21:28,506 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:21:28,507 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:21:28,510 - api_logger - INFO - Router cargado: 
2026-03-19 17:21:28,511 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:21:56,279 - api_logger - WARNING - [LicensesManager] Sin resultados | id_license=5464 | user=gustavo@geniubs.com
2026-03-19 17:21:56,279 - api_logger - ERROR - Error al obtener detalle de su licencia: 404: No se encontró información para esta licencia.
2026-03-19 17:23:05,091 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:23:05,126 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:23:05,128 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:23:05,129 - api_logger - INFO - Router cargado: /export
2026-03-19 17:23:05,133 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:23:05,133 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:23:05,141 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:23:05,141 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:23:05,142 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:23:05,143 - api_logger - INFO - Router cargado: /users
2026-03-19 17:23:05,144 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:23:05,146 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:23:05,147 - api_logger - INFO - Router cargado: 
2026-03-19 17:23:05,148 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:23:05,170 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:23:05,197 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:23:05,199 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:23:05,200 - api_logger - INFO - Router cargado: /export
2026-03-19 17:23:05,203 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:23:05,203 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:23:05,210 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:23:05,211 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:23:05,211 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:23:05,212 - api_logger - INFO - Router cargado: /users
2026-03-19 17:23:05,214 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:23:05,215 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:23:05,218 - api_logger - INFO - Router cargado: 
2026-03-19 17:23:05,218 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:43:40,842 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:43:40,876 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:43:40,878 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:43:40,879 - api_logger - INFO - Router cargado: /export
2026-03-19 17:43:40,883 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:43:40,883 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:43:40,890 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:43:40,891 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:43:40,892 - api_logger - INFO - Router cargado: /users
2026-03-19 17:43:40,894 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:43:40,895 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:43:40,896 - api_logger - INFO - Router cargado: 
2026-03-19 17:43:40,896 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:43:40,897 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:43:41,659 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:43:41,691 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:43:41,694 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:43:41,695 - api_logger - INFO - Router cargado: /export
2026-03-19 17:43:41,699 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:43:41,699 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:43:41,706 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:43:41,707 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:43:41,709 - api_logger - INFO - Router cargado: /users
2026-03-19 17:43:41,710 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:43:41,711 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:43:41,713 - api_logger - INFO - Router cargado: 
2026-03-19 17:43:41,713 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:43:41,713 - api_logger - INFO - Router cargado: /plans
2026-03-19 17:43:41,734 - api_logger - INFO - Router cargado: /bankaccount
2026-03-19 17:43:41,761 - api_logger - INFO - Router cargado: /catalogs
2026-03-19 17:43:41,764 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-19 17:43:41,765 - api_logger - INFO - Router cargado: /export
2026-03-19 17:43:41,768 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-19 17:43:41,768 - api_logger - INFO - Router cargado: /menu_options
2026-03-19 17:43:41,775 - api_logger - INFO - Router cargado: /movements_banks
2026-03-19 17:43:41,776 - api_logger - INFO - Router cargado: /payment
2026-03-19 17:43:41,777 - api_logger - INFO - Router cargado: /users
2026-03-19 17:43:41,778 - api_logger - INFO - Router cargado: /webservices
2026-03-19 17:43:41,780 - api_logger - INFO - Router cargado: /auth
2026-03-19 17:43:41,781 - api_logger - INFO - Router cargado: 
2026-03-19 17:43:41,781 - api_logger - INFO - Router cargado: /licenses
2026-03-19 17:43:41,781 - api_logger - INFO - Router cargado: /plans
2026-03-30 10:59:53,037 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 10:59:53,072 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 10:59:53,074 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 10:59:53,075 - api_logger - INFO - Router cargado: /export
2026-03-30 10:59:53,079 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 10:59:53,079 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 10:59:53,087 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 10:59:53,087 - api_logger - INFO - Router cargado: /payment
2026-03-30 10:59:53,089 - api_logger - INFO - Router cargado: /users
2026-03-30 10:59:53,090 - api_logger - INFO - Router cargado: /webservices
2026-03-30 10:59:53,092 - api_logger - INFO - Router cargado: /auth
2026-03-30 10:59:53,093 - api_logger - INFO - Router cargado: 
2026-03-30 10:59:53,093 - api_logger - INFO - Router cargado: /licenses
2026-03-30 10:59:53,093 - api_logger - INFO - Router cargado: /plans
2026-03-30 10:59:53,943 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 10:59:53,979 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 10:59:53,982 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 10:59:53,983 - api_logger - INFO - Router cargado: /export
2026-03-30 10:59:53,987 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 10:59:53,987 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 10:59:53,994 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 10:59:53,995 - api_logger - INFO - Router cargado: /payment
2026-03-30 10:59:53,996 - api_logger - INFO - Router cargado: /users
2026-03-30 10:59:53,998 - api_logger - INFO - Router cargado: /webservices
2026-03-30 10:59:53,999 - api_logger - INFO - Router cargado: /auth
2026-03-30 10:59:54,000 - api_logger - INFO - Router cargado: 
2026-03-30 10:59:54,001 - api_logger - INFO - Router cargado: /licenses
2026-03-30 10:59:54,001 - api_logger - INFO - Router cargado: /plans
2026-03-30 10:59:54,031 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 10:59:54,058 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 10:59:54,060 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 10:59:54,061 - api_logger - INFO - Router cargado: /export
2026-03-30 10:59:54,064 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 10:59:54,064 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 10:59:54,071 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 10:59:54,072 - api_logger - INFO - Router cargado: /payment
2026-03-30 10:59:54,073 - api_logger - INFO - Router cargado: /users
2026-03-30 10:59:54,074 - api_logger - INFO - Router cargado: /webservices
2026-03-30 10:59:54,076 - api_logger - INFO - Router cargado: /auth
2026-03-30 10:59:54,077 - api_logger - INFO - Router cargado: 
2026-03-30 10:59:54,077 - api_logger - INFO - Router cargado: /licenses
2026-03-30 10:59:54,077 - api_logger - INFO - Router cargado: /plans
2026-03-30 11:04:54,626 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 11:04:54,661 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 11:04:54,663 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 11:04:54,664 - api_logger - INFO - Router cargado: /export
2026-03-30 11:04:54,668 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 11:04:54,668 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 11:04:54,676 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 11:04:54,677 - api_logger - INFO - Router cargado: /payment
2026-03-30 11:04:54,678 - api_logger - INFO - Router cargado: /users
2026-03-30 11:04:54,680 - api_logger - INFO - Router cargado: /webservices
2026-03-30 11:04:54,681 - api_logger - INFO - Router cargado: /auth
2026-03-30 11:04:54,682 - api_logger - INFO - Router cargado: 
2026-03-30 11:04:54,683 - api_logger - INFO - Router cargado: /licenses
2026-03-30 11:04:54,683 - api_logger - INFO - Router cargado: /plans
2026-03-30 11:04:54,705 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 11:04:54,734 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 11:04:54,737 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 11:04:54,738 - api_logger - INFO - Router cargado: /export
2026-03-30 11:04:54,741 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 11:04:54,741 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 11:04:54,748 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 11:04:54,749 - api_logger - INFO - Router cargado: /payment
2026-03-30 11:04:54,750 - api_logger - INFO - Router cargado: /users
2026-03-30 11:04:54,751 - api_logger - INFO - Router cargado: /webservices
2026-03-30 11:04:54,752 - api_logger - INFO - Router cargado: /auth
2026-03-30 11:04:54,754 - api_logger - INFO - Router cargado: 
2026-03-30 11:04:54,754 - api_logger - INFO - Router cargado: /licenses
2026-03-30 11:04:54,754 - api_logger - INFO - Router cargado: /plans
2026-03-30 11:07:58,656 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 11:07:58,691 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 11:07:58,694 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 11:07:58,695 - api_logger - INFO - Router cargado: /export
2026-03-30 11:07:58,700 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 11:07:58,700 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 11:07:58,708 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 11:07:58,709 - api_logger - INFO - Router cargado: /payment
2026-03-30 11:07:58,711 - api_logger - INFO - Router cargado: /users
2026-03-30 11:07:58,713 - api_logger - INFO - Router cargado: /webservices
2026-03-30 11:07:58,714 - api_logger - INFO - Router cargado: /auth
2026-03-30 11:07:58,716 - api_logger - INFO - Router cargado: 
2026-03-30 11:07:58,716 - api_logger - INFO - Router cargado: /licenses
2026-03-30 11:07:58,716 - api_logger - INFO - Router cargado: /plans
2026-03-30 11:07:58,739 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 11:07:58,769 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 11:07:58,771 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 11:07:58,772 - api_logger - INFO - Router cargado: /export
2026-03-30 11:07:58,775 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 11:07:58,775 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 11:07:58,783 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 11:07:58,783 - api_logger - INFO - Router cargado: /payment
2026-03-30 11:07:58,785 - api_logger - INFO - Router cargado: /users
2026-03-30 11:07:58,786 - api_logger - INFO - Router cargado: /webservices
2026-03-30 11:07:58,787 - api_logger - INFO - Router cargado: /auth
2026-03-30 11:07:58,789 - api_logger - INFO - Router cargado: 
2026-03-30 11:07:58,789 - api_logger - INFO - Router cargado: /licenses
2026-03-30 11:07:58,789 - api_logger - INFO - Router cargado: /plans
2026-03-30 11:10:01,975 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 11:10:02,008 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 11:10:02,010 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 11:10:02,011 - api_logger - INFO - Router cargado: /export
2026-03-30 11:10:02,015 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 11:10:02,015 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 11:10:02,022 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 11:10:02,023 - api_logger - INFO - Router cargado: /payment
2026-03-30 11:10:02,025 - api_logger - INFO - Router cargado: /users
2026-03-30 11:10:02,026 - api_logger - INFO - Router cargado: /webservices
2026-03-30 11:10:02,027 - api_logger - INFO - Router cargado: /auth
2026-03-30 11:10:02,029 - api_logger - INFO - Router cargado: 
2026-03-30 11:10:02,029 - api_logger - INFO - Router cargado: /licenses
2026-03-30 11:10:02,029 - api_logger - INFO - Router cargado: /plans
2026-03-30 11:10:02,049 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 11:10:02,077 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 11:10:02,079 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 11:10:02,080 - api_logger - INFO - Router cargado: /export
2026-03-30 11:10:02,083 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 11:10:02,083 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 11:10:02,090 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 11:10:02,091 - api_logger - INFO - Router cargado: /payment
2026-03-30 11:10:02,092 - api_logger - INFO - Router cargado: /users
2026-03-30 11:10:02,093 - api_logger - INFO - Router cargado: /webservices
2026-03-30 11:10:02,095 - api_logger - INFO - Router cargado: /auth
2026-03-30 11:10:02,096 - api_logger - INFO - Router cargado: 
2026-03-30 11:10:02,096 - api_logger - INFO - Router cargado: /licenses
2026-03-30 11:10:02,096 - api_logger - INFO - Router cargado: /plans
2026-03-30 11:14:50,196 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 11:14:50,230 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 11:14:50,232 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 11:14:50,233 - api_logger - INFO - Router cargado: /export
2026-03-30 11:14:50,237 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 11:14:50,237 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 11:14:50,245 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 11:14:50,246 - api_logger - INFO - Router cargado: /payment
2026-03-30 11:14:50,247 - api_logger - INFO - Router cargado: /users
2026-03-30 11:14:50,249 - api_logger - INFO - Router cargado: /webservices
2026-03-30 11:14:50,250 - api_logger - INFO - Router cargado: /auth
2026-03-30 11:14:50,252 - api_logger - INFO - Router cargado: 
2026-03-30 11:14:50,252 - api_logger - INFO - Router cargado: /licenses
2026-03-30 11:14:50,252 - api_logger - INFO - Router cargado: /plans
2026-03-30 11:14:50,273 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 11:14:50,300 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 11:14:50,303 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 11:14:50,303 - api_logger - INFO - Router cargado: /export
2026-03-30 11:14:50,306 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 11:14:50,307 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 11:14:50,314 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 11:14:50,314 - api_logger - INFO - Router cargado: /payment
2026-03-30 11:14:50,315 - api_logger - INFO - Router cargado: /users
2026-03-30 11:14:50,317 - api_logger - INFO - Router cargado: /webservices
2026-03-30 11:14:50,318 - api_logger - INFO - Router cargado: /auth
2026-03-30 11:14:50,319 - api_logger - INFO - Router cargado: 
2026-03-30 11:14:50,319 - api_logger - INFO - Router cargado: /licenses
2026-03-30 11:14:50,319 - api_logger - INFO - Router cargado: /plans
2026-03-30 11:45:31,671 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 11:45:31,709 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 11:45:31,712 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 11:45:31,713 - api_logger - INFO - Router cargado: /export
2026-03-30 11:45:31,717 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 11:45:31,717 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 11:45:31,725 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 11:45:31,726 - api_logger - INFO - Router cargado: /payment
2026-03-30 11:45:31,728 - api_logger - INFO - Router cargado: /users
2026-03-30 11:45:31,730 - api_logger - INFO - Router cargado: /webservices
2026-03-30 11:45:31,731 - api_logger - INFO - Router cargado: /auth
2026-03-30 11:45:31,733 - api_logger - INFO - Router cargado: 
2026-03-30 11:45:31,733 - api_logger - INFO - Router cargado: /licenses
2026-03-30 11:45:31,733 - api_logger - INFO - Router cargado: /plans
2026-03-30 11:45:31,760 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 11:45:31,793 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 11:45:31,796 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 11:45:31,797 - api_logger - INFO - Router cargado: /export
2026-03-30 11:45:31,800 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 11:45:31,801 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 11:45:31,809 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 11:45:31,809 - api_logger - INFO - Router cargado: /payment
2026-03-30 11:45:31,811 - api_logger - INFO - Router cargado: /users
2026-03-30 11:45:31,812 - api_logger - INFO - Router cargado: /webservices
2026-03-30 11:45:31,814 - api_logger - INFO - Router cargado: /auth
2026-03-30 11:45:31,815 - api_logger - INFO - Router cargado: 
2026-03-30 11:45:31,816 - api_logger - INFO - Router cargado: /licenses
2026-03-30 11:45:31,816 - api_logger - INFO - Router cargado: /plans
2026-03-30 11:45:58,544 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 11:45:58,576 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 11:45:58,578 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 11:45:58,579 - api_logger - INFO - Router cargado: /export
2026-03-30 11:45:58,583 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 11:45:58,583 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 11:45:58,590 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 11:45:58,591 - api_logger - INFO - Router cargado: /payment
2026-03-30 11:45:58,593 - api_logger - INFO - Router cargado: /users
2026-03-30 11:45:58,594 - api_logger - INFO - Router cargado: /webservices
2026-03-30 11:45:58,595 - api_logger - INFO - Router cargado: /auth
2026-03-30 11:45:58,597 - api_logger - INFO - Router cargado: 
2026-03-30 11:45:58,597 - api_logger - INFO - Router cargado: /licenses
2026-03-30 11:45:58,597 - api_logger - INFO - Router cargado: /plans
2026-03-30 11:45:58,618 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 11:45:58,645 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 11:45:58,647 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 11:45:58,648 - api_logger - INFO - Router cargado: /export
2026-03-30 11:45:58,651 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 11:45:58,651 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 11:45:58,658 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 11:45:58,659 - api_logger - INFO - Router cargado: /payment
2026-03-30 11:45:58,660 - api_logger - INFO - Router cargado: /users
2026-03-30 11:45:58,662 - api_logger - INFO - Router cargado: /webservices
2026-03-30 11:45:58,663 - api_logger - INFO - Router cargado: /auth
2026-03-30 11:45:58,664 - api_logger - INFO - Router cargado: 
2026-03-30 11:45:58,665 - api_logger - INFO - Router cargado: /licenses
2026-03-30 11:45:58,665 - api_logger - INFO - Router cargado: /plans
2026-03-30 11:52:59,887 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 11:52:59,925 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 11:52:59,929 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 11:52:59,930 - api_logger - INFO - Router cargado: /export
2026-03-30 11:52:59,935 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 11:52:59,935 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 11:52:59,945 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 11:52:59,945 - api_logger - INFO - Router cargado: /payment
2026-03-30 11:52:59,947 - api_logger - INFO - Router cargado: /users
2026-03-30 11:52:59,948 - api_logger - INFO - Router cargado: /webservices
2026-03-30 11:52:59,950 - api_logger - INFO - Router cargado: /auth
2026-03-30 11:52:59,951 - api_logger - INFO - Router cargado: 
2026-03-30 11:52:59,951 - api_logger - INFO - Router cargado: /licenses
2026-03-30 11:52:59,951 - api_logger - INFO - Router cargado: /plans
2026-03-30 11:52:59,973 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 11:53:00,002 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 11:53:00,004 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 11:53:00,005 - api_logger - INFO - Router cargado: /export
2026-03-30 11:53:00,008 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 11:53:00,008 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 11:53:00,016 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 11:53:00,017 - api_logger - INFO - Router cargado: /payment
2026-03-30 11:53:00,018 - api_logger - INFO - Router cargado: /users
2026-03-30 11:53:00,019 - api_logger - INFO - Router cargado: /webservices
2026-03-30 11:53:00,021 - api_logger - INFO - Router cargado: /auth
2026-03-30 11:53:00,022 - api_logger - INFO - Router cargado: 
2026-03-30 11:53:00,022 - api_logger - INFO - Router cargado: /licenses
2026-03-30 11:53:00,023 - api_logger - INFO - Router cargado: /plans
2026-03-30 11:53:08,593 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 11:53:08,632 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 11:53:08,635 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 11:53:08,636 - api_logger - INFO - Router cargado: /export
2026-03-30 11:53:08,640 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 11:53:08,640 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 11:53:08,649 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 11:53:08,650 - api_logger - INFO - Router cargado: /payment
2026-03-30 11:53:08,651 - api_logger - INFO - Router cargado: /users
2026-03-30 11:53:08,653 - api_logger - INFO - Router cargado: /webservices
2026-03-30 11:53:08,654 - api_logger - INFO - Router cargado: /auth
2026-03-30 11:53:08,656 - api_logger - INFO - Router cargado: 
2026-03-30 11:53:08,656 - api_logger - INFO - Router cargado: /licenses
2026-03-30 11:53:08,656 - api_logger - INFO - Router cargado: /plans
2026-03-30 11:53:08,686 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 11:53:08,716 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 11:53:08,719 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 11:53:08,720 - api_logger - INFO - Router cargado: /export
2026-03-30 11:53:08,723 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 11:53:08,724 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 11:53:08,732 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 11:53:08,733 - api_logger - INFO - Router cargado: /payment
2026-03-30 11:53:08,735 - api_logger - INFO - Router cargado: /users
2026-03-30 11:53:08,737 - api_logger - INFO - Router cargado: /webservices
2026-03-30 11:53:08,738 - api_logger - INFO - Router cargado: /auth
2026-03-30 11:53:08,740 - api_logger - INFO - Router cargado: 
2026-03-30 11:53:08,740 - api_logger - INFO - Router cargado: /licenses
2026-03-30 11:53:08,740 - api_logger - INFO - Router cargado: /plans
2026-03-30 11:53:39,720 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 11:53:39,752 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 11:53:39,754 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 11:53:39,755 - api_logger - INFO - Router cargado: /export
2026-03-30 11:53:39,759 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 11:53:39,759 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 11:53:39,766 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 11:53:39,767 - api_logger - INFO - Router cargado: /payment
2026-03-30 11:53:39,769 - api_logger - INFO - Router cargado: /users
2026-03-30 11:53:39,770 - api_logger - INFO - Router cargado: /webservices
2026-03-30 11:53:39,771 - api_logger - INFO - Router cargado: /auth
2026-03-30 11:53:39,773 - api_logger - INFO - Router cargado: 
2026-03-30 11:53:39,773 - api_logger - INFO - Router cargado: /licenses
2026-03-30 11:53:39,773 - api_logger - INFO - Router cargado: /plans
2026-03-30 11:53:39,794 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 11:53:39,821 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 11:53:39,824 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 11:53:39,824 - api_logger - INFO - Router cargado: /export
2026-03-30 11:53:39,827 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 11:53:39,828 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 11:53:39,835 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 11:53:39,835 - api_logger - INFO - Router cargado: /payment
2026-03-30 11:53:39,836 - api_logger - INFO - Router cargado: /users
2026-03-30 11:53:39,838 - api_logger - INFO - Router cargado: /webservices
2026-03-30 11:53:39,839 - api_logger - INFO - Router cargado: /auth
2026-03-30 11:53:39,840 - api_logger - INFO - Router cargado: 
2026-03-30 11:53:39,840 - api_logger - INFO - Router cargado: /licenses
2026-03-30 11:53:39,840 - api_logger - INFO - Router cargado: /plans
2026-03-30 12:16:09,499 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 12:16:09,531 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 12:16:09,534 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 12:16:09,535 - api_logger - INFO - Router cargado: /export
2026-03-30 12:16:09,539 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 12:16:09,539 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 12:16:09,546 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 12:16:09,547 - api_logger - INFO - Router cargado: /payment
2026-03-30 12:16:09,548 - api_logger - INFO - Router cargado: /users
2026-03-30 12:16:09,550 - api_logger - INFO - Router cargado: /webservices
2026-03-30 12:16:09,551 - api_logger - INFO - Router cargado: /auth
2026-03-30 12:16:09,553 - api_logger - INFO - Router cargado: 
2026-03-30 12:16:09,553 - api_logger - INFO - Router cargado: /licenses
2026-03-30 12:16:09,553 - api_logger - INFO - Router cargado: /plans
2026-03-30 12:16:09,628 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 12:16:09,656 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 12:16:09,658 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 12:16:09,659 - api_logger - INFO - Router cargado: /export
2026-03-30 12:16:09,662 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 12:16:09,662 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 12:16:09,670 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 12:16:09,671 - api_logger - INFO - Router cargado: /payment
2026-03-30 12:16:09,672 - api_logger - INFO - Router cargado: /users
2026-03-30 12:16:09,673 - api_logger - INFO - Router cargado: /webservices
2026-03-30 12:16:09,675 - api_logger - INFO - Router cargado: /auth
2026-03-30 12:16:09,676 - api_logger - INFO - Router cargado: 
2026-03-30 12:16:09,676 - api_logger - INFO - Router cargado: /licenses
2026-03-30 12:16:09,676 - api_logger - INFO - Router cargado: /plans
2026-03-30 12:17:07,668 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 12:17:07,706 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 12:17:07,708 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 12:17:07,709 - api_logger - INFO - Router cargado: /export
2026-03-30 12:17:07,713 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 12:17:07,713 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 12:17:07,722 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 12:17:07,723 - api_logger - INFO - Router cargado: /payment
2026-03-30 12:17:07,725 - api_logger - INFO - Router cargado: /users
2026-03-30 12:17:07,726 - api_logger - INFO - Router cargado: /webservices
2026-03-30 12:17:07,728 - api_logger - INFO - Router cargado: /auth
2026-03-30 12:17:07,730 - api_logger - INFO - Router cargado: 
2026-03-30 12:17:07,730 - api_logger - INFO - Router cargado: /licenses
2026-03-30 12:17:07,730 - api_logger - INFO - Router cargado: /plans
2026-03-30 12:17:07,762 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 12:17:07,790 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 12:17:07,793 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 12:17:07,794 - api_logger - INFO - Router cargado: /export
2026-03-30 12:17:07,797 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 12:17:07,797 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 12:17:07,805 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 12:17:07,805 - api_logger - INFO - Router cargado: /payment
2026-03-30 12:17:07,806 - api_logger - INFO - Router cargado: /users
2026-03-30 12:17:07,808 - api_logger - INFO - Router cargado: /webservices
2026-03-30 12:17:07,809 - api_logger - INFO - Router cargado: /auth
2026-03-30 12:17:07,811 - api_logger - INFO - Router cargado: 
2026-03-30 12:17:07,811 - api_logger - INFO - Router cargado: /licenses
2026-03-30 12:17:07,811 - api_logger - INFO - Router cargado: /plans
2026-03-30 12:18:15,812 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 12:18:15,844 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 12:18:15,846 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 12:18:15,847 - api_logger - INFO - Router cargado: /export
2026-03-30 12:18:15,851 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 12:18:15,851 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 12:18:15,858 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 12:18:15,859 - api_logger - INFO - Router cargado: /payment
2026-03-30 12:18:15,861 - api_logger - INFO - Router cargado: /users
2026-03-30 12:18:15,862 - api_logger - INFO - Router cargado: /webservices
2026-03-30 12:18:15,864 - api_logger - INFO - Router cargado: /auth
2026-03-30 12:18:15,865 - api_logger - INFO - Router cargado: 
2026-03-30 12:18:15,865 - api_logger - INFO - Router cargado: /licenses
2026-03-30 12:18:15,865 - api_logger - INFO - Router cargado: /plans
2026-03-30 12:18:15,887 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 12:18:15,914 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 12:18:15,916 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 12:18:15,917 - api_logger - INFO - Router cargado: /export
2026-03-30 12:18:15,920 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 12:18:15,920 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 12:18:15,927 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 12:18:15,928 - api_logger - INFO - Router cargado: /payment
2026-03-30 12:18:15,929 - api_logger - INFO - Router cargado: /users
2026-03-30 12:18:15,930 - api_logger - INFO - Router cargado: /webservices
2026-03-30 12:18:15,931 - api_logger - INFO - Router cargado: /auth
2026-03-30 12:18:15,933 - api_logger - INFO - Router cargado: 
2026-03-30 12:18:15,933 - api_logger - INFO - Router cargado: /licenses
2026-03-30 12:18:15,933 - api_logger - INFO - Router cargado: /plans
2026-03-30 12:19:31,629 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 12:19:31,663 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 12:19:31,666 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 12:19:31,667 - api_logger - INFO - Router cargado: /export
2026-03-30 12:19:31,671 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 12:19:31,671 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 12:19:31,680 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 12:19:31,681 - api_logger - INFO - Router cargado: /payment
2026-03-30 12:19:31,683 - api_logger - INFO - Router cargado: /users
2026-03-30 12:19:31,684 - api_logger - INFO - Router cargado: /webservices
2026-03-30 12:19:31,686 - api_logger - INFO - Router cargado: /auth
2026-03-30 12:19:31,689 - api_logger - INFO - Router cargado: 
2026-03-30 12:19:31,689 - api_logger - INFO - Router cargado: /licenses
2026-03-30 12:19:31,689 - api_logger - INFO - Router cargado: /plans
2026-03-30 12:19:31,713 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 12:19:31,742 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 12:19:31,745 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 12:19:31,746 - api_logger - INFO - Router cargado: /export
2026-03-30 12:19:31,749 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 12:19:31,749 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 12:19:31,757 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 12:19:31,758 - api_logger - INFO - Router cargado: /payment
2026-03-30 12:19:31,762 - api_logger - INFO - Router cargado: /users
2026-03-30 12:19:31,763 - api_logger - INFO - Router cargado: /webservices
2026-03-30 12:19:31,764 - api_logger - INFO - Router cargado: /auth
2026-03-30 12:19:31,766 - api_logger - INFO - Router cargado: 
2026-03-30 12:19:31,767 - api_logger - INFO - Router cargado: /licenses
2026-03-30 12:19:31,767 - api_logger - INFO - Router cargado: /plans
2026-03-30 12:20:02,155 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: 423: Cuenta bloqueada.
2026-03-30 12:20:31,719 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: 401: Credenciales incorrectas, numero de intentos restantes: 2.
2026-03-30 12:20:38,526 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: 401: Credenciales incorrectas, numero de intentos restantes: 1.
2026-03-30 12:20:43,204 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: 401: Credenciales incorrectas, numero de intentos restantes: 0.
2026-03-30 12:23:25,483 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-03-30 12:23:26,254 - api_logger - DEBUG - Renderizando account_blocked.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'failed_attempts', 'reset_url', 'blocked_at', 'ip_address']
2026-03-30 12:23:26,264 - api_logger - ERROR - Ocurrió un error inesperado al procesar la solicitud de authenticacion: user: gustavo@geniubs.com: 'EmailService' object has no attribute '_send'
2026-03-30 12:26:33,432 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 12:26:33,464 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 12:26:33,466 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 12:26:33,467 - api_logger - INFO - Router cargado: /export
2026-03-30 12:26:33,471 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 12:26:33,471 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 12:26:33,479 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 12:26:33,479 - api_logger - INFO - Router cargado: /payment
2026-03-30 12:26:33,481 - api_logger - INFO - Router cargado: /users
2026-03-30 12:26:33,482 - api_logger - INFO - Router cargado: /webservices
2026-03-30 12:26:33,484 - api_logger - INFO - Router cargado: /auth
2026-03-30 12:26:33,485 - api_logger - INFO - Router cargado: 
2026-03-30 12:26:33,485 - api_logger - INFO - Router cargado: /licenses
2026-03-30 12:26:33,485 - api_logger - INFO - Router cargado: /plans
2026-03-30 12:26:33,507 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 12:26:33,537 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 12:26:33,539 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 12:26:33,540 - api_logger - INFO - Router cargado: /export
2026-03-30 12:26:33,544 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 12:26:33,544 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 12:26:33,551 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 12:26:33,552 - api_logger - INFO - Router cargado: /payment
2026-03-30 12:26:33,553 - api_logger - INFO - Router cargado: /users
2026-03-30 12:26:33,554 - api_logger - INFO - Router cargado: /webservices
2026-03-30 12:26:33,556 - api_logger - INFO - Router cargado: /auth
2026-03-30 12:26:33,558 - api_logger - INFO - Router cargado: 
2026-03-30 12:26:33,558 - api_logger - INFO - Router cargado: /licenses
2026-03-30 12:26:33,558 - api_logger - INFO - Router cargado: /plans
2026-03-30 12:26:36,683 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: 423: Cuenta bloqueada.
2026-03-30 12:28:35,541 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: 401: Credenciales incorrectas, numero de intentos restantes: 2.
2026-03-30 12:28:38,660 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: 401: Credenciales incorrectas, numero de intentos restantes: 1.
2026-03-30 12:28:53,364 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: 401: Credenciales incorrectas, numero de intentos restantes: 0.
2026-03-30 12:33:40,260 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 12:33:40,293 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 12:33:40,296 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 12:33:40,297 - api_logger - INFO - Router cargado: /export
2026-03-30 12:33:40,300 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 12:33:40,301 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 12:33:40,308 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 12:33:40,309 - api_logger - INFO - Router cargado: /payment
2026-03-30 12:33:40,311 - api_logger - INFO - Router cargado: /users
2026-03-30 12:33:40,312 - api_logger - INFO - Router cargado: /webservices
2026-03-30 12:33:40,314 - api_logger - INFO - Router cargado: /auth
2026-03-30 12:33:40,315 - api_logger - INFO - Router cargado: 
2026-03-30 12:33:40,316 - api_logger - INFO - Router cargado: /licenses
2026-03-30 12:33:40,316 - api_logger - INFO - Router cargado: /plans
2026-03-30 12:33:40,339 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 12:33:40,366 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 12:33:40,369 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 12:33:40,370 - api_logger - INFO - Router cargado: /export
2026-03-30 12:33:40,373 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 12:33:40,373 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 12:33:40,382 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 12:33:40,382 - api_logger - INFO - Router cargado: /payment
2026-03-30 12:33:40,384 - api_logger - INFO - Router cargado: /users
2026-03-30 12:33:40,385 - api_logger - INFO - Router cargado: /webservices
2026-03-30 12:33:40,386 - api_logger - INFO - Router cargado: /auth
2026-03-30 12:33:40,388 - api_logger - INFO - Router cargado: 
2026-03-30 12:33:40,388 - api_logger - INFO - Router cargado: /licenses
2026-03-30 12:33:40,388 - api_logger - INFO - Router cargado: /plans
2026-03-30 12:34:13,616 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 12:34:13,649 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 12:34:13,651 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 12:34:13,652 - api_logger - INFO - Router cargado: /export
2026-03-30 12:34:13,656 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 12:34:13,656 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 12:34:13,664 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 12:34:13,665 - api_logger - INFO - Router cargado: /payment
2026-03-30 12:34:13,666 - api_logger - INFO - Router cargado: /users
2026-03-30 12:34:13,667 - api_logger - INFO - Router cargado: /webservices
2026-03-30 12:34:13,669 - api_logger - INFO - Router cargado: /auth
2026-03-30 12:34:13,671 - api_logger - INFO - Router cargado: 
2026-03-30 12:34:13,671 - api_logger - INFO - Router cargado: /licenses
2026-03-30 12:34:13,671 - api_logger - INFO - Router cargado: /plans
2026-03-30 12:34:13,692 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 12:34:13,720 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 12:34:13,722 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 12:34:13,723 - api_logger - INFO - Router cargado: /export
2026-03-30 12:34:13,726 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 12:34:13,727 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 12:34:13,734 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 12:34:13,734 - api_logger - INFO - Router cargado: /payment
2026-03-30 12:34:13,736 - api_logger - INFO - Router cargado: /users
2026-03-30 12:34:13,737 - api_logger - INFO - Router cargado: /webservices
2026-03-30 12:34:13,738 - api_logger - INFO - Router cargado: /auth
2026-03-30 12:34:13,740 - api_logger - INFO - Router cargado: 
2026-03-30 12:34:13,740 - api_logger - INFO - Router cargado: /licenses
2026-03-30 12:34:13,740 - api_logger - INFO - Router cargado: /plans
2026-03-30 12:34:29,250 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-03-30 12:34:30,228 - api_logger - DEBUG - Renderizando account_blocked.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'failed_attempts', 'reset_url', 'blocked_at', 'ip_address']
2026-03-30 12:34:34,250 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: 423: Tu cuenta ha quedado bloqueada.
2026-03-30 12:36:02,013 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: 423: Cuenta bloqueada.
2026-03-30 12:38:32,459 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: 401: Credenciales incorrectas, numero de intentos restantes: 2.
2026-03-30 12:38:36,136 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: 401: Credenciales incorrectas, numero de intentos restantes: 1.
2026-03-30 12:38:44,013 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-03-30 12:38:44,097 - api_logger - DEBUG - Renderizando account_blocked.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'failed_attempts', 'reset_url', 'blocked_at', 'ip_address']
2026-03-30 12:38:46,509 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: 423: Tu cuenta ha quedado bloqueada.
2026-03-30 12:39:05,167 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: 423: Cuenta bloqueada.
2026-03-30 12:42:53,986 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 12:42:54,023 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 12:42:54,026 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 12:42:54,027 - api_logger - INFO - Router cargado: /export
2026-03-30 12:42:54,031 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 12:42:54,031 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 12:42:54,039 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 12:42:54,040 - api_logger - INFO - Router cargado: /payment
2026-03-30 12:42:54,041 - api_logger - INFO - Router cargado: /users
2026-03-30 12:42:54,043 - api_logger - INFO - Router cargado: /webservices
2026-03-30 12:42:54,044 - api_logger - INFO - Router cargado: /auth
2026-03-30 12:42:54,046 - api_logger - INFO - Router cargado: 
2026-03-30 12:42:54,046 - api_logger - INFO - Router cargado: /licenses
2026-03-30 12:42:54,046 - api_logger - INFO - Router cargado: /plans
2026-03-30 12:42:54,071 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 12:42:54,102 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 12:42:54,105 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 12:42:54,106 - api_logger - INFO - Router cargado: /export
2026-03-30 12:42:54,109 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 12:42:54,109 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 12:42:54,117 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 12:42:54,118 - api_logger - INFO - Router cargado: /payment
2026-03-30 12:42:54,120 - api_logger - INFO - Router cargado: /users
2026-03-30 12:42:54,121 - api_logger - INFO - Router cargado: /webservices
2026-03-30 12:42:54,122 - api_logger - INFO - Router cargado: /auth
2026-03-30 12:42:54,124 - api_logger - INFO - Router cargado: 
2026-03-30 12:42:54,124 - api_logger - INFO - Router cargado: /licenses
2026-03-30 12:42:54,124 - api_logger - INFO - Router cargado: /plans
2026-03-30 12:42:59,024 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 12:42:59,057 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 12:42:59,060 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 12:42:59,061 - api_logger - INFO - Router cargado: /export
2026-03-30 12:42:59,065 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 12:42:59,065 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 12:42:59,073 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 12:42:59,074 - api_logger - INFO - Router cargado: /payment
2026-03-30 12:42:59,076 - api_logger - INFO - Router cargado: /users
2026-03-30 12:42:59,077 - api_logger - INFO - Router cargado: /webservices
2026-03-30 12:42:59,079 - api_logger - INFO - Router cargado: /auth
2026-03-30 12:42:59,080 - api_logger - INFO - Router cargado: 
2026-03-30 12:42:59,080 - api_logger - INFO - Router cargado: /licenses
2026-03-30 12:42:59,080 - api_logger - INFO - Router cargado: /plans
2026-03-30 12:42:59,102 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 12:42:59,131 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 12:42:59,133 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 12:42:59,134 - api_logger - INFO - Router cargado: /export
2026-03-30 12:42:59,137 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 12:42:59,137 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 12:42:59,144 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 12:42:59,145 - api_logger - INFO - Router cargado: /payment
2026-03-30 12:42:59,146 - api_logger - INFO - Router cargado: /users
2026-03-30 12:42:59,148 - api_logger - INFO - Router cargado: /webservices
2026-03-30 12:42:59,149 - api_logger - INFO - Router cargado: /auth
2026-03-30 12:42:59,150 - api_logger - INFO - Router cargado: 
2026-03-30 12:42:59,150 - api_logger - INFO - Router cargado: /licenses
2026-03-30 12:42:59,150 - api_logger - INFO - Router cargado: /plans
2026-03-30 12:43:05,933 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: 423: Cuenta bloqueada.
2026-03-30 12:43:27,991 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: 401: Credenciales incorrectas, numero de intentos restantes: 2.
2026-03-30 12:43:33,104 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: 401: Credenciales incorrectas, numero de intentos restantes: 1.
2026-03-30 12:43:39,485 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-03-30 12:43:39,485 - api_logger - DEBUG - Renderizando account_blocked.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'failed_attempts', 'reset_url', 'blocked_at', 'ip_address']
2026-03-30 12:43:41,795 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: 423: Tu cuenta ha quedado bloqueada.
2026-03-30 16:14:20,439 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:14:20,471 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:14:20,474 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:14:20,475 - api_logger - INFO - Router cargado: /export
2026-03-30 16:14:20,478 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:14:20,478 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:14:20,487 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:14:20,487 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:14:20,489 - api_logger - INFO - Router cargado: /users
2026-03-30 16:14:20,490 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:14:20,492 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:14:20,493 - api_logger - INFO - Router cargado: 
2026-03-30 16:14:20,493 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:14:20,493 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:14:20,551 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:14:20,579 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:14:20,581 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:14:20,582 - api_logger - INFO - Router cargado: /export
2026-03-30 16:14:20,585 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:14:20,586 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:14:20,593 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:14:20,594 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:14:20,595 - api_logger - INFO - Router cargado: /users
2026-03-30 16:14:20,597 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:14:20,598 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:14:20,600 - api_logger - INFO - Router cargado: 
2026-03-30 16:14:20,600 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:14:20,600 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:14:28,333 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:14:28,367 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:14:28,369 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:14:28,370 - api_logger - INFO - Router cargado: /export
2026-03-30 16:14:28,374 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:14:28,375 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:14:28,383 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:14:28,383 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:14:28,385 - api_logger - INFO - Router cargado: /users
2026-03-30 16:14:28,387 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:14:28,388 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:14:28,390 - api_logger - INFO - Router cargado: 
2026-03-30 16:14:28,390 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:14:28,390 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:14:28,414 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:14:28,443 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:14:28,446 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:14:28,447 - api_logger - INFO - Router cargado: /export
2026-03-30 16:14:28,450 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:14:28,451 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:14:28,458 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:14:28,459 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:14:28,460 - api_logger - INFO - Router cargado: /users
2026-03-30 16:14:28,462 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:14:28,463 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:14:28,464 - api_logger - INFO - Router cargado: 
2026-03-30 16:14:28,465 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:14:28,465 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:21:31,738 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:21:31,815 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:21:31,818 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:21:31,819 - api_logger - INFO - Router cargado: /export
2026-03-30 16:21:31,823 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:21:31,823 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:21:31,830 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:21:31,831 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:21:31,834 - api_logger - INFO - Router cargado: /users
2026-03-30 16:21:31,841 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:21:31,846 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:21:31,852 - api_logger - INFO - Router cargado: 
2026-03-30 16:21:31,852 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:21:31,853 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:21:32,002 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:21:32,061 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:21:32,064 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:21:32,065 - api_logger - INFO - Router cargado: /export
2026-03-30 16:21:32,068 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:21:32,068 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:21:32,090 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:21:32,091 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:21:32,094 - api_logger - INFO - Router cargado: /users
2026-03-30 16:21:32,096 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:21:32,100 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:21:32,103 - api_logger - INFO - Router cargado: 
2026-03-30 16:21:32,104 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:21:32,104 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:22:01,826 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:22:01,888 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:22:01,894 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:22:01,896 - api_logger - INFO - Router cargado: /export
2026-03-30 16:22:01,904 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:22:01,904 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:22:01,920 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:22:01,921 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:22:01,922 - api_logger - INFO - Router cargado: /users
2026-03-30 16:22:01,924 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:22:01,925 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:22:01,927 - api_logger - INFO - Router cargado: 
2026-03-30 16:22:01,927 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:22:01,927 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:22:01,967 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:22:02,023 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:22:02,027 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:22:02,028 - api_logger - INFO - Router cargado: /export
2026-03-30 16:22:02,035 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:22:02,035 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:22:02,046 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:22:02,047 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:22:02,048 - api_logger - INFO - Router cargado: /users
2026-03-30 16:22:02,050 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:22:02,051 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:22:02,054 - api_logger - INFO - Router cargado: 
2026-03-30 16:22:02,054 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:22:02,054 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:22:45,658 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-03-30 16:22:45,658 - api_logger - ERROR - Ocurrió un error inesperado al procesar la solicitud de authenticacion: user: gustavo@geniubs.com: 'datetime.datetime' object has no attribute 'upper'
2026-03-30 16:23:49,451 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:23:49,483 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:23:49,486 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:23:49,487 - api_logger - INFO - Router cargado: /export
2026-03-30 16:23:49,490 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:23:49,490 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:23:49,498 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:23:49,499 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:23:49,500 - api_logger - INFO - Router cargado: /users
2026-03-30 16:23:49,501 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:23:49,503 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:23:49,504 - api_logger - INFO - Router cargado: 
2026-03-30 16:23:49,504 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:23:49,504 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:23:49,526 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:23:49,553 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:23:49,555 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:23:49,556 - api_logger - INFO - Router cargado: /export
2026-03-30 16:23:49,560 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:23:49,560 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:23:49,567 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:23:49,568 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:23:49,569 - api_logger - INFO - Router cargado: /users
2026-03-30 16:23:49,570 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:23:49,571 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:23:49,573 - api_logger - INFO - Router cargado: 
2026-03-30 16:23:49,573 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:23:49,573 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:23:55,366 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:23:55,398 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:23:55,400 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:23:55,401 - api_logger - INFO - Router cargado: /export
2026-03-30 16:23:55,405 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:23:55,405 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:23:55,413 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:23:55,413 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:23:55,415 - api_logger - INFO - Router cargado: /users
2026-03-30 16:23:55,416 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:23:55,418 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:23:55,419 - api_logger - INFO - Router cargado: 
2026-03-30 16:23:55,420 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:23:55,420 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:23:55,441 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:23:55,469 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:23:55,471 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:23:55,472 - api_logger - INFO - Router cargado: /export
2026-03-30 16:23:55,475 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:23:55,476 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:23:55,483 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:23:55,483 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:23:55,485 - api_logger - INFO - Router cargado: /users
2026-03-30 16:23:55,486 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:23:55,487 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:23:55,489 - api_logger - INFO - Router cargado: 
2026-03-30 16:23:55,489 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:23:55,489 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:24:21,036 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-03-30 16:24:21,070 - api_logger - DEBUG - Renderizando account_blocked.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'failed_attempts', 'reset_url', 'blocked_at', 'ip_address']
2026-03-30 16:24:25,026 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: 423: Tu cuenta ha quedado bloqueada.
2026-03-30 16:37:14,154 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:37:14,188 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:37:14,190 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:37:14,191 - api_logger - INFO - Router cargado: /export
2026-03-30 16:37:14,195 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:37:14,195 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:37:14,203 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:37:14,203 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:37:14,205 - api_logger - INFO - Router cargado: /users
2026-03-30 16:37:14,206 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:37:14,208 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:37:14,209 - api_logger - INFO - Router cargado: 
2026-03-30 16:37:14,210 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:37:14,210 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:37:14,268 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:37:14,298 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:37:14,301 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:37:14,302 - api_logger - INFO - Router cargado: /export
2026-03-30 16:37:14,305 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:37:14,306 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:37:14,314 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:37:14,314 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:37:14,316 - api_logger - INFO - Router cargado: /users
2026-03-30 16:37:14,317 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:37:14,318 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:37:14,320 - api_logger - INFO - Router cargado: 
2026-03-30 16:37:14,320 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:37:14,320 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:37:16,295 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:37:16,328 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:37:16,330 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:37:16,331 - api_logger - INFO - Router cargado: /export
2026-03-30 16:37:16,335 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:37:16,335 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:37:16,343 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:37:16,343 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:37:16,345 - api_logger - INFO - Router cargado: /users
2026-03-30 16:37:16,346 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:37:16,348 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:37:16,349 - api_logger - INFO - Router cargado: 
2026-03-30 16:37:16,349 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:37:16,350 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:37:16,370 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:37:16,397 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:37:16,400 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:37:16,401 - api_logger - INFO - Router cargado: /export
2026-03-30 16:37:16,404 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:37:16,404 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:37:16,411 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:37:16,412 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:37:16,413 - api_logger - INFO - Router cargado: /users
2026-03-30 16:37:16,414 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:37:16,416 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:37:16,417 - api_logger - INFO - Router cargado: 
2026-03-30 16:37:16,417 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:37:16,417 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:40:49,166 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:40:49,199 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:40:49,202 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:40:49,203 - api_logger - INFO - Router cargado: /export
2026-03-30 16:40:49,206 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:40:49,206 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:40:49,214 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:40:49,214 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:40:49,216 - api_logger - INFO - Router cargado: /users
2026-03-30 16:40:49,217 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:40:49,218 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:40:49,220 - api_logger - INFO - Router cargado: 
2026-03-30 16:40:49,220 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:40:49,220 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:40:49,241 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:40:49,268 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:40:49,270 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:40:49,271 - api_logger - INFO - Router cargado: /export
2026-03-30 16:40:49,275 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:40:49,275 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:40:49,282 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:40:49,282 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:40:49,284 - api_logger - INFO - Router cargado: /users
2026-03-30 16:40:49,285 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:40:49,286 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:40:49,287 - api_logger - INFO - Router cargado: 
2026-03-30 16:40:49,288 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:40:49,288 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:41:52,649 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:41:52,684 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:41:52,687 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:41:52,689 - api_logger - INFO - Router cargado: /export
2026-03-30 16:41:52,693 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:41:52,693 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:41:52,701 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:41:52,702 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:41:52,704 - api_logger - INFO - Router cargado: /users
2026-03-30 16:41:52,706 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:41:52,707 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:41:52,709 - api_logger - INFO - Router cargado: 
2026-03-30 16:41:52,709 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:41:52,709 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:41:52,733 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:41:52,761 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:41:52,763 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:41:52,764 - api_logger - INFO - Router cargado: /export
2026-03-30 16:41:52,767 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:41:52,767 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:41:52,774 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:41:52,775 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:41:52,776 - api_logger - INFO - Router cargado: /users
2026-03-30 16:41:52,777 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:41:52,778 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:41:52,780 - api_logger - INFO - Router cargado: 
2026-03-30 16:41:52,780 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:41:52,780 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:42:19,242 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-03-30 16:42:19,248 - api_logger - DEBUG - Renderizando account_blocked.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'failed_attempts', 'reset_url', 'blocked_at', 'ip_address']
2026-03-30 16:42:22,123 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: 423: Tu cuenta ha quedado bloqueada.
2026-03-30 16:47:50,848 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:47:50,909 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:47:50,914 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:47:50,916 - api_logger - INFO - Router cargado: /export
2026-03-30 16:47:50,923 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:47:50,923 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:47:50,935 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:47:50,936 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:47:50,938 - api_logger - INFO - Router cargado: /users
2026-03-30 16:47:50,939 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:47:50,941 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:47:50,942 - api_logger - INFO - Router cargado: 
2026-03-30 16:47:50,942 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:47:50,942 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:47:51,047 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:47:51,094 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:47:51,098 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:47:51,099 - api_logger - INFO - Router cargado: /export
2026-03-30 16:47:51,105 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:47:51,106 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:47:51,122 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:47:51,123 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:47:51,127 - api_logger - INFO - Router cargado: /users
2026-03-30 16:47:51,130 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:47:51,133 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:47:51,137 - api_logger - INFO - Router cargado: 
2026-03-30 16:47:51,137 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:47:51,137 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:48:15,084 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:48:15,117 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:48:15,120 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:48:15,121 - api_logger - INFO - Router cargado: /export
2026-03-30 16:48:15,124 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:48:15,124 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:48:15,132 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:48:15,133 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:48:15,134 - api_logger - INFO - Router cargado: /users
2026-03-30 16:48:15,136 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:48:15,137 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:48:15,138 - api_logger - INFO - Router cargado: 
2026-03-30 16:48:15,139 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:48:15,139 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:48:15,159 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:48:15,187 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:48:15,190 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:48:15,190 - api_logger - INFO - Router cargado: /export
2026-03-30 16:48:15,194 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:48:15,194 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:48:15,201 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:48:15,202 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:48:15,203 - api_logger - INFO - Router cargado: /users
2026-03-30 16:48:15,204 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:48:15,205 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:48:15,207 - api_logger - INFO - Router cargado: 
2026-03-30 16:48:15,207 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:48:15,207 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:49:16,796 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:49:16,881 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:49:16,888 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:49:16,890 - api_logger - INFO - Router cargado: /export
2026-03-30 16:49:16,900 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:49:16,900 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:49:16,908 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:49:16,909 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:49:16,911 - api_logger - INFO - Router cargado: /users
2026-03-30 16:49:16,912 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:49:16,914 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:49:16,915 - api_logger - INFO - Router cargado: 
2026-03-30 16:49:16,915 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:49:16,915 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:49:16,975 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:49:17,026 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:49:17,029 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:49:17,030 - api_logger - INFO - Router cargado: /export
2026-03-30 16:49:17,033 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:49:17,033 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:49:17,041 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:49:17,042 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:49:17,043 - api_logger - INFO - Router cargado: /users
2026-03-30 16:49:17,046 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:49:17,051 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:49:17,057 - api_logger - INFO - Router cargado: 
2026-03-30 16:49:17,058 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:49:17,059 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:49:26,092 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:49:26,173 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:49:26,178 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:49:26,181 - api_logger - INFO - Router cargado: /export
2026-03-30 16:49:26,189 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:49:26,189 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:49:26,201 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:49:26,202 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:49:26,203 - api_logger - INFO - Router cargado: /users
2026-03-30 16:49:26,205 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:49:26,206 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:49:26,208 - api_logger - INFO - Router cargado: 
2026-03-30 16:49:26,208 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:49:26,208 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:49:27,909 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:49:27,974 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:49:27,980 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:49:27,982 - api_logger - INFO - Router cargado: /export
2026-03-30 16:49:27,992 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:49:27,992 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:49:28,008 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:49:28,009 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:49:28,012 - api_logger - INFO - Router cargado: /users
2026-03-30 16:49:28,014 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:49:28,016 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:49:28,017 - api_logger - INFO - Router cargado: 
2026-03-30 16:49:28,017 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:49:28,017 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:49:28,055 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:49:28,109 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:49:28,114 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:49:28,116 - api_logger - INFO - Router cargado: /export
2026-03-30 16:49:28,122 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:49:28,123 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:49:28,135 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:49:28,136 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:49:28,138 - api_logger - INFO - Router cargado: /users
2026-03-30 16:49:28,139 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:49:28,140 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:49:28,142 - api_logger - INFO - Router cargado: 
2026-03-30 16:49:28,142 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:49:28,142 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:49:35,907 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-03-30 16:49:35,914 - api_logger - DEBUG - Renderizando account_blocked.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'failed_attempts', 'reset_url', 'blocked_at', 'ip_address']
2026-03-30 16:49:38,262 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: 423: Tu cuenta ha quedado bloqueada.
2026-03-30 16:50:47,805 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:50:47,863 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:50:47,866 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:50:47,868 - api_logger - INFO - Router cargado: /export
2026-03-30 16:50:47,876 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:50:47,877 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:50:47,898 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:50:47,900 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:50:47,904 - api_logger - INFO - Router cargado: /users
2026-03-30 16:50:47,908 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:50:47,911 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:50:47,914 - api_logger - INFO - Router cargado: 
2026-03-30 16:50:47,915 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:50:47,915 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:50:47,954 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:50:48,017 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:50:48,022 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:50:48,024 - api_logger - INFO - Router cargado: /export
2026-03-30 16:50:48,032 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:50:48,032 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:50:48,046 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:50:48,047 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:50:48,049 - api_logger - INFO - Router cargado: /users
2026-03-30 16:50:48,050 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:50:48,052 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:50:48,053 - api_logger - INFO - Router cargado: 
2026-03-30 16:50:48,054 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:50:48,054 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:51:08,294 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:51:08,326 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:51:08,329 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:51:08,330 - api_logger - INFO - Router cargado: /export
2026-03-30 16:51:08,334 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:51:08,334 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:51:08,341 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:51:08,342 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:51:08,344 - api_logger - INFO - Router cargado: /users
2026-03-30 16:51:08,345 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:51:08,347 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:51:08,348 - api_logger - INFO - Router cargado: 
2026-03-30 16:51:08,348 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:51:08,348 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:51:08,369 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:51:08,397 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:51:08,399 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:51:08,400 - api_logger - INFO - Router cargado: /export
2026-03-30 16:51:08,403 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:51:08,404 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:51:08,411 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:51:08,412 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:51:08,413 - api_logger - INFO - Router cargado: /users
2026-03-30 16:51:08,414 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:51:08,415 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:51:08,417 - api_logger - INFO - Router cargado: 
2026-03-30 16:51:08,417 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:51:08,417 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:51:20,036 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: 423: Cuenta bloqueada.
2026-03-30 16:51:44,440 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-03-30 16:51:44,446 - api_logger - ERROR - Ocurrió un error inesperado al procesar la solicitud de authenticacion: user: gustavo@geniubs.com: Not naive datetime (tzinfo is already set)
2026-03-30 16:56:01,592 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:56:01,626 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:56:01,629 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:56:01,630 - api_logger - INFO - Router cargado: /export
2026-03-30 16:56:01,633 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:56:01,634 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:56:01,641 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:56:01,642 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:56:01,644 - api_logger - INFO - Router cargado: /users
2026-03-30 16:56:01,645 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:56:01,647 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:56:01,649 - api_logger - INFO - Router cargado: 
2026-03-30 16:56:01,649 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:56:01,649 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:56:01,716 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:56:01,745 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:56:01,747 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:56:01,748 - api_logger - INFO - Router cargado: /export
2026-03-30 16:56:01,751 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:56:01,752 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:56:01,759 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:56:01,760 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:56:01,761 - api_logger - INFO - Router cargado: /users
2026-03-30 16:56:01,762 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:56:01,764 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:56:01,765 - api_logger - INFO - Router cargado: 
2026-03-30 16:56:01,765 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:56:01,765 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:56:03,171 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:56:03,204 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:56:03,206 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:56:03,207 - api_logger - INFO - Router cargado: /export
2026-03-30 16:56:03,211 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:56:03,211 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:56:03,219 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:56:03,219 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:56:03,221 - api_logger - INFO - Router cargado: /users
2026-03-30 16:56:03,222 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:56:03,224 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:56:03,226 - api_logger - INFO - Router cargado: 
2026-03-30 16:56:03,226 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:56:03,226 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:56:03,249 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:56:03,279 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:56:03,282 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:56:03,283 - api_logger - INFO - Router cargado: /export
2026-03-30 16:56:03,286 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:56:03,286 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:56:03,294 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:56:03,295 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:56:03,297 - api_logger - INFO - Router cargado: /users
2026-03-30 16:56:03,299 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:56:03,300 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:56:03,302 - api_logger - INFO - Router cargado: 
2026-03-30 16:56:03,302 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:56:03,302 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:57:14,543 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:57:14,575 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:57:14,578 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:57:14,578 - api_logger - INFO - Router cargado: /export
2026-03-30 16:57:14,582 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:57:14,582 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:57:14,590 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:57:14,590 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:57:14,592 - api_logger - INFO - Router cargado: /users
2026-03-30 16:57:14,594 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:57:14,595 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:57:14,597 - api_logger - INFO - Router cargado: 
2026-03-30 16:57:14,597 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:57:14,597 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:57:14,619 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:57:14,646 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:57:14,648 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:57:14,649 - api_logger - INFO - Router cargado: /export
2026-03-30 16:57:14,652 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:57:14,653 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:57:14,660 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:57:14,660 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:57:14,662 - api_logger - INFO - Router cargado: /users
2026-03-30 16:57:14,663 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:57:14,664 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:57:14,666 - api_logger - INFO - Router cargado: 
2026-03-30 16:57:14,666 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:57:14,666 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:57:46,993 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:57:47,025 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:57:47,028 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:57:47,029 - api_logger - INFO - Router cargado: /export
2026-03-30 16:57:47,032 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:57:47,032 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:57:47,040 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:57:47,041 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:57:47,042 - api_logger - INFO - Router cargado: /users
2026-03-30 16:57:47,044 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:57:47,046 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:57:47,047 - api_logger - INFO - Router cargado: 
2026-03-30 16:57:47,047 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:57:47,047 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:57:47,068 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 16:57:47,095 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 16:57:47,097 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 16:57:47,098 - api_logger - INFO - Router cargado: /export
2026-03-30 16:57:47,101 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 16:57:47,101 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 16:57:47,109 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 16:57:47,109 - api_logger - INFO - Router cargado: /payment
2026-03-30 16:57:47,111 - api_logger - INFO - Router cargado: /users
2026-03-30 16:57:47,112 - api_logger - INFO - Router cargado: /webservices
2026-03-30 16:57:47,113 - api_logger - INFO - Router cargado: /auth
2026-03-30 16:57:47,115 - api_logger - INFO - Router cargado: 
2026-03-30 16:57:47,115 - api_logger - INFO - Router cargado: /licenses
2026-03-30 16:57:47,115 - api_logger - INFO - Router cargado: /plans
2026-03-30 16:57:52,039 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: 423: Cuenta bloqueada.
2026-03-30 16:58:10,313 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-03-30 16:58:10,313 - api_logger - ERROR - Error: La fecha debe estar en UTC
2026-03-30 16:58:10,313 - api_logger - DEBUG - Renderizando account_blocked.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'failed_attempts', 'reset_url', 'blocked_at', 'ip_address']
2026-03-30 16:58:12,935 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: 423: Tu cuenta ha quedado bloqueada.
2026-03-30 18:35:40,579 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 18:35:40,612 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 18:35:40,615 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 18:35:40,616 - api_logger - INFO - Router cargado: /export
2026-03-30 18:35:40,619 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 18:35:40,620 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 18:35:40,627 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 18:35:40,628 - api_logger - INFO - Router cargado: /payment
2026-03-30 18:35:40,630 - api_logger - INFO - Router cargado: /users
2026-03-30 18:35:40,631 - api_logger - INFO - Router cargado: /webservices
2026-03-30 18:35:40,632 - api_logger - INFO - Router cargado: /auth
2026-03-30 18:35:40,634 - api_logger - INFO - Router cargado: 
2026-03-30 18:35:40,634 - api_logger - INFO - Router cargado: /licenses
2026-03-30 18:35:40,634 - api_logger - INFO - Router cargado: /plans
2026-03-30 18:35:40,693 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 18:35:40,720 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 18:35:40,722 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 18:35:40,723 - api_logger - INFO - Router cargado: /export
2026-03-30 18:35:40,726 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 18:35:40,727 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 18:35:40,734 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 18:35:40,734 - api_logger - INFO - Router cargado: /payment
2026-03-30 18:35:40,736 - api_logger - INFO - Router cargado: /users
2026-03-30 18:35:40,737 - api_logger - INFO - Router cargado: /webservices
2026-03-30 18:35:40,738 - api_logger - INFO - Router cargado: /auth
2026-03-30 18:35:40,740 - api_logger - INFO - Router cargado: 
2026-03-30 18:35:40,740 - api_logger - INFO - Router cargado: /licenses
2026-03-30 18:35:40,740 - api_logger - INFO - Router cargado: /plans
2026-03-30 18:35:48,858 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 18:35:48,889 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 18:35:48,892 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 18:35:48,893 - api_logger - INFO - Router cargado: /export
2026-03-30 18:35:48,897 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 18:35:48,897 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 18:35:48,904 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 18:35:48,905 - api_logger - INFO - Router cargado: /payment
2026-03-30 18:35:48,906 - api_logger - INFO - Router cargado: /users
2026-03-30 18:35:48,908 - api_logger - INFO - Router cargado: /webservices
2026-03-30 18:35:48,909 - api_logger - INFO - Router cargado: /auth
2026-03-30 18:35:48,911 - api_logger - INFO - Router cargado: 
2026-03-30 18:35:48,911 - api_logger - INFO - Router cargado: /licenses
2026-03-30 18:35:48,911 - api_logger - INFO - Router cargado: /plans
2026-03-30 18:35:48,932 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 18:35:48,960 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 18:35:48,962 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 18:35:48,963 - api_logger - INFO - Router cargado: /export
2026-03-30 18:35:48,966 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 18:35:48,966 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 18:35:48,973 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 18:35:48,974 - api_logger - INFO - Router cargado: /payment
2026-03-30 18:35:48,975 - api_logger - INFO - Router cargado: /users
2026-03-30 18:35:48,977 - api_logger - INFO - Router cargado: /webservices
2026-03-30 18:35:48,978 - api_logger - INFO - Router cargado: /auth
2026-03-30 18:35:48,979 - api_logger - INFO - Router cargado: 
2026-03-30 18:35:48,979 - api_logger - INFO - Router cargado: /licenses
2026-03-30 18:35:48,980 - api_logger - INFO - Router cargado: /plans
2026-03-30 18:35:55,283 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 18:35:55,316 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 18:35:55,319 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 18:35:55,320 - api_logger - INFO - Router cargado: /export
2026-03-30 18:35:55,324 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 18:35:55,324 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 18:35:55,331 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 18:35:55,332 - api_logger - INFO - Router cargado: /payment
2026-03-30 18:35:55,334 - api_logger - INFO - Router cargado: /users
2026-03-30 18:35:55,335 - api_logger - INFO - Router cargado: /webservices
2026-03-30 18:35:55,337 - api_logger - INFO - Router cargado: /auth
2026-03-30 18:35:55,338 - api_logger - INFO - Router cargado: 
2026-03-30 18:35:55,338 - api_logger - INFO - Router cargado: /licenses
2026-03-30 18:35:55,339 - api_logger - INFO - Router cargado: /plans
2026-03-30 18:35:55,359 - api_logger - INFO - Router cargado: /bankaccount
2026-03-30 18:35:55,387 - api_logger - INFO - Router cargado: /catalogs
2026-03-30 18:35:55,390 - api_logger - INFO - Router cargado: /catalogsloadables
2026-03-30 18:35:55,391 - api_logger - INFO - Router cargado: /export
2026-03-30 18:35:55,394 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-03-30 18:35:55,394 - api_logger - INFO - Router cargado: /menu_options
2026-03-30 18:35:55,401 - api_logger - INFO - Router cargado: /movements_banks
2026-03-30 18:35:55,402 - api_logger - INFO - Router cargado: /payment
2026-03-30 18:35:55,403 - api_logger - INFO - Router cargado: /users
2026-03-30 18:35:55,404 - api_logger - INFO - Router cargado: /webservices
2026-03-30 18:35:55,405 - api_logger - INFO - Router cargado: /auth
2026-03-30 18:35:55,407 - api_logger - INFO - Router cargado: 
2026-03-30 18:35:55,407 - api_logger - INFO - Router cargado: /licenses
2026-03-30 18:35:55,407 - api_logger - INFO - Router cargado: /plans
2026-03-30 18:36:10,174 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-03-30 18:36:10,189 - api_logger - DEBUG - Renderizando account_blocked.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'failed_attempts', 'reset_url', 'blocked_at', 'ip_address']
2026-03-30 18:36:12,986 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: 423: Tu cuenta ha quedado bloqueada.
2026-03-30 18:36:46,215 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-03-30 18:36:46,216 - api_logger - DEBUG - Renderizando account_blocked.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'failed_attempts', 'reset_url', 'blocked_at', 'ip_address']
2026-03-30 18:36:47,715 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: 423: Tu cuenta ha quedado bloqueada.
2026-03-30 19:08:15,547 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: 423: Cuenta bloqueada.
2026-04-10 07:16:43,205 - api_logger - INFO - Router cargado: /bankaccount
2026-04-10 07:16:43,242 - api_logger - INFO - Router cargado: /catalogs
2026-04-10 07:16:43,245 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-10 07:16:43,246 - api_logger - INFO - Router cargado: /export
2026-04-10 07:16:43,249 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-10 07:16:43,249 - api_logger - INFO - Router cargado: /menu_options
2026-04-10 07:16:43,257 - api_logger - INFO - Router cargado: /movements_banks
2026-04-10 07:16:43,260 - api_logger - INFO - Router cargado: /users
2026-04-10 07:16:43,261 - api_logger - INFO - Router cargado: /webservices
2026-04-10 07:16:43,263 - api_logger - INFO - Router cargado: /auth
2026-04-10 07:16:43,264 - api_logger - INFO - Router cargado: 
2026-04-10 07:16:43,265 - api_logger - INFO - Router cargado: /licenses
2026-04-10 07:16:43,265 - api_logger - INFO - Router cargado: /plans
2026-04-10 07:16:43,265 - api_logger - INFO - Router cargado: /payment
2026-04-10 07:16:44,137 - api_logger - INFO - Router cargado: /bankaccount
2026-04-10 07:16:44,168 - api_logger - INFO - Router cargado: /catalogs
2026-04-10 07:16:44,171 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-10 07:16:44,172 - api_logger - INFO - Router cargado: /export
2026-04-10 07:16:44,175 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-10 07:16:44,176 - api_logger - INFO - Router cargado: /menu_options
2026-04-10 07:16:44,183 - api_logger - INFO - Router cargado: /movements_banks
2026-04-10 07:16:44,185 - api_logger - INFO - Router cargado: /users
2026-04-10 07:16:44,186 - api_logger - INFO - Router cargado: /webservices
2026-04-10 07:16:44,187 - api_logger - INFO - Router cargado: /auth
2026-04-10 07:16:44,189 - api_logger - INFO - Router cargado: 
2026-04-10 07:16:44,189 - api_logger - INFO - Router cargado: /licenses
2026-04-10 07:16:44,189 - api_logger - INFO - Router cargado: /plans
2026-04-10 07:16:44,190 - api_logger - INFO - Router cargado: /payment
2026-04-10 07:16:44,218 - api_logger - INFO - Router cargado: /bankaccount
2026-04-10 07:16:44,247 - api_logger - INFO - Router cargado: /catalogs
2026-04-10 07:16:44,250 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-10 07:16:44,251 - api_logger - INFO - Router cargado: /export
2026-04-10 07:16:44,254 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-10 07:16:44,254 - api_logger - INFO - Router cargado: /menu_options
2026-04-10 07:16:44,261 - api_logger - INFO - Router cargado: /movements_banks
2026-04-10 07:16:44,262 - api_logger - INFO - Router cargado: /users
2026-04-10 07:16:44,264 - api_logger - INFO - Router cargado: /webservices
2026-04-10 07:16:44,265 - api_logger - INFO - Router cargado: /auth
2026-04-10 07:16:44,266 - api_logger - INFO - Router cargado: 
2026-04-10 07:16:44,266 - api_logger - INFO - Router cargado: /licenses
2026-04-10 07:16:44,266 - api_logger - INFO - Router cargado: /plans
2026-04-10 07:16:44,269 - api_logger - INFO - Router cargado: /payment
2026-04-13 08:08:47,087 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 08:08:47,122 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 08:08:47,124 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 08:08:47,125 - api_logger - INFO - Router cargado: /export
2026-04-13 08:08:47,128 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 08:08:47,129 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 08:08:47,136 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 08:08:47,138 - api_logger - INFO - Router cargado: /users
2026-04-13 08:08:47,139 - api_logger - INFO - Router cargado: /webservices
2026-04-13 08:08:47,140 - api_logger - INFO - Router cargado: /auth
2026-04-13 08:08:47,141 - api_logger - INFO - Router cargado: 
2026-04-13 08:08:47,141 - api_logger - INFO - Router cargado: /licenses
2026-04-13 08:08:47,141 - api_logger - INFO - Router cargado: /plans
2026-04-13 08:08:47,142 - api_logger - INFO - Router cargado: /payment
2026-04-13 08:08:47,929 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 08:08:47,961 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 08:08:47,964 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 08:08:47,964 - api_logger - INFO - Router cargado: /export
2026-04-13 08:08:47,968 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 08:08:47,968 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 08:08:47,975 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 08:08:47,977 - api_logger - INFO - Router cargado: /users
2026-04-13 08:08:47,978 - api_logger - INFO - Router cargado: /webservices
2026-04-13 08:08:47,980 - api_logger - INFO - Router cargado: /auth
2026-04-13 08:08:47,981 - api_logger - INFO - Router cargado: 
2026-04-13 08:08:47,981 - api_logger - INFO - Router cargado: /licenses
2026-04-13 08:08:47,981 - api_logger - INFO - Router cargado: /plans
2026-04-13 08:08:47,982 - api_logger - INFO - Router cargado: /payment
2026-04-13 08:08:48,007 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 08:08:48,034 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 08:08:48,037 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 08:08:48,037 - api_logger - INFO - Router cargado: /export
2026-04-13 08:08:48,041 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 08:08:48,041 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 08:08:48,048 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 08:08:48,049 - api_logger - INFO - Router cargado: /users
2026-04-13 08:08:48,050 - api_logger - INFO - Router cargado: /webservices
2026-04-13 08:08:48,052 - api_logger - INFO - Router cargado: /auth
2026-04-13 08:08:48,052 - api_logger - INFO - Router cargado: 
2026-04-13 08:08:48,053 - api_logger - INFO - Router cargado: /licenses
2026-04-13 08:08:48,053 - api_logger - INFO - Router cargado: /plans
2026-04-13 08:08:48,053 - api_logger - INFO - Router cargado: /payment
2026-04-13 08:09:25,951 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 08:09:25,985 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 08:09:25,988 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 08:09:25,988 - api_logger - INFO - Router cargado: /export
2026-04-13 08:09:25,992 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 08:09:25,992 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 08:09:25,999 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 08:09:26,001 - api_logger - INFO - Router cargado: /users
2026-04-13 08:09:26,002 - api_logger - INFO - Router cargado: /webservices
2026-04-13 08:09:26,004 - api_logger - INFO - Router cargado: /auth
2026-04-13 08:09:26,004 - api_logger - INFO - Router cargado: 
2026-04-13 08:09:26,005 - api_logger - INFO - Router cargado: /licenses
2026-04-13 08:09:26,005 - api_logger - INFO - Router cargado: /plans
2026-04-13 08:09:26,005 - api_logger - INFO - Router cargado: /payment
2026-04-13 08:09:26,755 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 08:09:26,788 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 08:09:26,790 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 08:09:26,791 - api_logger - INFO - Router cargado: /export
2026-04-13 08:09:26,795 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 08:09:26,795 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 08:09:26,802 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 08:09:26,804 - api_logger - INFO - Router cargado: /users
2026-04-13 08:09:26,805 - api_logger - INFO - Router cargado: /webservices
2026-04-13 08:09:26,807 - api_logger - INFO - Router cargado: /auth
2026-04-13 08:09:26,808 - api_logger - INFO - Router cargado: 
2026-04-13 08:09:26,808 - api_logger - INFO - Router cargado: /licenses
2026-04-13 08:09:26,808 - api_logger - INFO - Router cargado: /plans
2026-04-13 08:09:26,809 - api_logger - INFO - Router cargado: /payment
2026-04-13 08:09:26,830 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 08:09:26,857 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 08:09:26,860 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 08:09:26,861 - api_logger - INFO - Router cargado: /export
2026-04-13 08:09:26,864 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 08:09:26,864 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 08:09:26,871 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 08:09:26,873 - api_logger - INFO - Router cargado: /users
2026-04-13 08:09:26,875 - api_logger - INFO - Router cargado: /webservices
2026-04-13 08:09:26,876 - api_logger - INFO - Router cargado: /auth
2026-04-13 08:09:26,877 - api_logger - INFO - Router cargado: 
2026-04-13 08:09:26,877 - api_logger - INFO - Router cargado: /licenses
2026-04-13 08:09:26,877 - api_logger - INFO - Router cargado: /plans
2026-04-13 08:09:26,878 - api_logger - INFO - Router cargado: /payment
2026-04-13 08:10:15,549 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 08:10:15,580 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 08:10:15,582 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 08:10:15,583 - api_logger - INFO - Router cargado: /export
2026-04-13 08:10:15,586 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 08:10:15,587 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 08:10:15,594 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 08:10:15,595 - api_logger - INFO - Router cargado: /users
2026-04-13 08:10:15,597 - api_logger - INFO - Router cargado: /webservices
2026-04-13 08:10:15,598 - api_logger - INFO - Router cargado: /auth
2026-04-13 08:10:15,599 - api_logger - INFO - Router cargado: 
2026-04-13 08:10:15,599 - api_logger - INFO - Router cargado: /licenses
2026-04-13 08:10:15,599 - api_logger - INFO - Router cargado: /plans
2026-04-13 08:10:15,600 - api_logger - INFO - Router cargado: /payment
2026-04-13 08:10:15,621 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 08:10:15,649 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 08:10:15,651 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 08:10:15,652 - api_logger - INFO - Router cargado: /export
2026-04-13 08:10:15,655 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 08:10:15,655 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 08:10:15,662 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 08:10:15,663 - api_logger - INFO - Router cargado: /users
2026-04-13 08:10:15,665 - api_logger - INFO - Router cargado: /webservices
2026-04-13 08:10:15,666 - api_logger - INFO - Router cargado: /auth
2026-04-13 08:10:15,667 - api_logger - INFO - Router cargado: 
2026-04-13 08:10:15,667 - api_logger - INFO - Router cargado: /licenses
2026-04-13 08:10:15,667 - api_logger - INFO - Router cargado: /plans
2026-04-13 08:10:15,667 - api_logger - INFO - Router cargado: /payment
2026-04-13 08:17:13,455 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 08:17:13,487 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 08:17:13,490 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 08:17:13,490 - api_logger - INFO - Router cargado: /export
2026-04-13 08:17:13,494 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 08:17:13,494 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 08:17:13,502 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 08:17:13,503 - api_logger - INFO - Router cargado: /users
2026-04-13 08:17:13,504 - api_logger - INFO - Router cargado: /webservices
2026-04-13 08:17:13,506 - api_logger - INFO - Router cargado: /auth
2026-04-13 08:17:13,507 - api_logger - INFO - Router cargado: 
2026-04-13 08:17:13,507 - api_logger - INFO - Router cargado: /licenses
2026-04-13 08:17:13,507 - api_logger - INFO - Router cargado: /plans
2026-04-13 08:17:13,508 - api_logger - INFO - Router cargado: /payment
2026-04-13 08:17:13,529 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 08:17:13,556 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 08:17:13,559 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 08:17:13,559 - api_logger - INFO - Router cargado: /export
2026-04-13 08:17:13,563 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 08:17:13,563 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 08:17:13,570 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 08:17:13,571 - api_logger - INFO - Router cargado: /users
2026-04-13 08:17:13,573 - api_logger - INFO - Router cargado: /webservices
2026-04-13 08:17:13,574 - api_logger - INFO - Router cargado: /auth
2026-04-13 08:17:13,575 - api_logger - INFO - Router cargado: 
2026-04-13 08:17:13,575 - api_logger - INFO - Router cargado: /licenses
2026-04-13 08:17:13,575 - api_logger - INFO - Router cargado: /plans
2026-04-13 08:17:13,575 - api_logger - INFO - Router cargado: /payment
2026-04-13 08:20:07,234 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 08:20:07,267 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 08:20:07,270 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 08:20:07,271 - api_logger - INFO - Router cargado: /export
2026-04-13 08:20:07,275 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 08:20:07,275 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 08:20:07,283 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 08:20:07,285 - api_logger - INFO - Router cargado: /users
2026-04-13 08:20:07,286 - api_logger - INFO - Router cargado: /webservices
2026-04-13 08:20:07,288 - api_logger - INFO - Router cargado: /auth
2026-04-13 08:20:07,289 - api_logger - INFO - Router cargado: 
2026-04-13 08:20:07,289 - api_logger - INFO - Router cargado: /licenses
2026-04-13 08:20:07,289 - api_logger - INFO - Router cargado: /plans
2026-04-13 08:20:07,290 - api_logger - INFO - Router cargado: /payment
2026-04-13 08:20:07,311 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 08:20:07,340 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 08:20:07,342 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 08:20:07,343 - api_logger - INFO - Router cargado: /export
2026-04-13 08:20:07,347 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 08:20:07,347 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 08:20:07,354 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 08:20:07,356 - api_logger - INFO - Router cargado: /users
2026-04-13 08:20:07,357 - api_logger - INFO - Router cargado: /webservices
2026-04-13 08:20:07,358 - api_logger - INFO - Router cargado: /auth
2026-04-13 08:20:07,359 - api_logger - INFO - Router cargado: 
2026-04-13 08:20:07,359 - api_logger - INFO - Router cargado: /licenses
2026-04-13 08:20:07,360 - api_logger - INFO - Router cargado: /plans
2026-04-13 08:20:07,360 - api_logger - INFO - Router cargado: /payment
2026-04-13 08:20:28,383 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 08:20:28,416 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 08:20:28,419 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 08:20:28,420 - api_logger - INFO - Router cargado: /export
2026-04-13 08:20:28,423 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 08:20:28,423 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 08:20:28,431 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 08:20:28,433 - api_logger - INFO - Router cargado: /users
2026-04-13 08:20:28,434 - api_logger - INFO - Router cargado: /webservices
2026-04-13 08:20:28,436 - api_logger - INFO - Router cargado: /auth
2026-04-13 08:20:28,436 - api_logger - INFO - Router cargado: 
2026-04-13 08:20:28,437 - api_logger - INFO - Router cargado: /licenses
2026-04-13 08:20:28,437 - api_logger - INFO - Router cargado: /plans
2026-04-13 08:20:28,437 - api_logger - INFO - Router cargado: /payment
2026-04-13 08:20:28,459 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 08:20:28,486 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 08:20:28,488 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 08:20:28,489 - api_logger - INFO - Router cargado: /export
2026-04-13 08:20:28,492 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 08:20:28,492 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 08:20:28,500 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 08:20:28,502 - api_logger - INFO - Router cargado: /users
2026-04-13 08:20:28,503 - api_logger - INFO - Router cargado: /webservices
2026-04-13 08:20:28,504 - api_logger - INFO - Router cargado: /auth
2026-04-13 08:20:28,505 - api_logger - INFO - Router cargado: 
2026-04-13 08:20:28,505 - api_logger - INFO - Router cargado: /licenses
2026-04-13 08:20:28,505 - api_logger - INFO - Router cargado: /plans
2026-04-13 08:20:28,506 - api_logger - INFO - Router cargado: /payment
2026-04-13 08:21:01,556 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-13 08:21:01,557 - api_logger - DEBUG - Renderizando verify_account.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'verification_url', 'expire_time', 'expiration_time_unit']
2026-04-13 09:44:54,955 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-13 09:44:54,955 - api_logger - DEBUG - Renderizando verify_account.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'verification_url', 'expire_time', 'expiration_time_unit']
2026-04-13 10:42:41,995 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-13 10:42:41,995 - api_logger - DEBUG - Renderizando verify_account.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'verification_url', 'expire_time', 'expiration_time_unit']
2026-04-13 10:49:29,055 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 10:49:29,088 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 10:49:29,090 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 10:49:29,091 - api_logger - INFO - Router cargado: /export
2026-04-13 10:49:29,095 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 10:49:29,095 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 10:49:29,102 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 10:49:29,104 - api_logger - INFO - Router cargado: /users
2026-04-13 10:49:29,105 - api_logger - INFO - Router cargado: /webservices
2026-04-13 10:49:29,107 - api_logger - INFO - Router cargado: /auth
2026-04-13 10:49:29,108 - api_logger - INFO - Router cargado: 
2026-04-13 10:49:29,108 - api_logger - INFO - Router cargado: /licenses
2026-04-13 10:49:29,108 - api_logger - INFO - Router cargado: /plans
2026-04-13 10:49:29,109 - api_logger - INFO - Router cargado: /payment
2026-04-13 10:49:29,130 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 10:49:29,158 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 10:49:29,160 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 10:49:29,161 - api_logger - INFO - Router cargado: /export
2026-04-13 10:49:29,164 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 10:49:29,164 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 10:49:29,172 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 10:49:29,173 - api_logger - INFO - Router cargado: /users
2026-04-13 10:49:29,174 - api_logger - INFO - Router cargado: /webservices
2026-04-13 10:49:29,176 - api_logger - INFO - Router cargado: /auth
2026-04-13 10:49:29,177 - api_logger - INFO - Router cargado: 
2026-04-13 10:49:29,177 - api_logger - INFO - Router cargado: /licenses
2026-04-13 10:49:29,177 - api_logger - INFO - Router cargado: /plans
2026-04-13 10:49:29,177 - api_logger - INFO - Router cargado: /payment
2026-04-13 10:49:39,773 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 10:49:39,806 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 10:49:39,808 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 10:49:39,809 - api_logger - INFO - Router cargado: /export
2026-04-13 10:49:39,813 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 10:49:39,813 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 10:49:39,821 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 10:49:39,822 - api_logger - INFO - Router cargado: /users
2026-04-13 10:49:39,824 - api_logger - INFO - Router cargado: /webservices
2026-04-13 10:49:39,825 - api_logger - INFO - Router cargado: /auth
2026-04-13 10:49:39,826 - api_logger - INFO - Router cargado: 
2026-04-13 10:49:39,826 - api_logger - INFO - Router cargado: /licenses
2026-04-13 10:49:39,826 - api_logger - INFO - Router cargado: /plans
2026-04-13 10:49:39,827 - api_logger - INFO - Router cargado: /payment
2026-04-13 10:49:39,847 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 10:49:39,875 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 10:49:39,877 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 10:49:39,878 - api_logger - INFO - Router cargado: /export
2026-04-13 10:49:39,881 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 10:49:39,881 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 10:49:39,888 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 10:49:39,889 - api_logger - INFO - Router cargado: /users
2026-04-13 10:49:39,891 - api_logger - INFO - Router cargado: /webservices
2026-04-13 10:49:39,892 - api_logger - INFO - Router cargado: /auth
2026-04-13 10:49:39,893 - api_logger - INFO - Router cargado: 
2026-04-13 10:49:39,893 - api_logger - INFO - Router cargado: /licenses
2026-04-13 10:49:39,893 - api_logger - INFO - Router cargado: /plans
2026-04-13 10:49:39,894 - api_logger - INFO - Router cargado: /payment
2026-04-13 11:18:57,049 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 11:18:57,083 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 11:18:57,085 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 11:18:57,086 - api_logger - INFO - Router cargado: /export
2026-04-13 11:18:57,090 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 11:18:57,090 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 11:18:57,098 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 11:18:57,099 - api_logger - INFO - Router cargado: /users
2026-04-13 11:18:57,101 - api_logger - INFO - Router cargado: /webservices
2026-04-13 11:18:57,102 - api_logger - INFO - Router cargado: /auth
2026-04-13 11:18:57,103 - api_logger - INFO - Router cargado: 
2026-04-13 11:18:57,103 - api_logger - INFO - Router cargado: /licenses
2026-04-13 11:18:57,103 - api_logger - INFO - Router cargado: /plans
2026-04-13 11:18:57,104 - api_logger - INFO - Router cargado: /payment
2026-04-13 11:18:57,126 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 11:18:57,153 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 11:18:57,156 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 11:18:57,157 - api_logger - INFO - Router cargado: /export
2026-04-13 11:18:57,160 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 11:18:57,160 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 11:18:57,167 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 11:18:57,169 - api_logger - INFO - Router cargado: /users
2026-04-13 11:18:57,170 - api_logger - INFO - Router cargado: /webservices
2026-04-13 11:18:57,171 - api_logger - INFO - Router cargado: /auth
2026-04-13 11:18:57,172 - api_logger - INFO - Router cargado: 
2026-04-13 11:18:57,172 - api_logger - INFO - Router cargado: /licenses
2026-04-13 11:18:57,172 - api_logger - INFO - Router cargado: /plans
2026-04-13 11:18:57,173 - api_logger - INFO - Router cargado: /payment
2026-04-13 12:37:29,079 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 12:37:29,115 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 12:37:29,120 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 12:37:29,121 - api_logger - INFO - Router cargado: /export
2026-04-13 12:37:29,125 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 12:37:29,125 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 12:37:29,133 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 12:37:29,135 - api_logger - INFO - Router cargado: /users
2026-04-13 12:37:29,137 - api_logger - INFO - Router cargado: /webservices
2026-04-13 12:37:29,138 - api_logger - INFO - Router cargado: /auth
2026-04-13 12:37:29,139 - api_logger - INFO - Router cargado: 
2026-04-13 12:37:29,140 - api_logger - INFO - Router cargado: /licenses
2026-04-13 12:37:29,140 - api_logger - INFO - Router cargado: /plans
2026-04-13 12:37:29,140 - api_logger - INFO - Router cargado: /payment
2026-04-13 12:37:29,166 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 12:37:29,198 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 12:37:29,200 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 12:37:29,201 - api_logger - INFO - Router cargado: /export
2026-04-13 12:37:29,206 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 12:37:29,206 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 12:37:29,214 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 12:37:29,215 - api_logger - INFO - Router cargado: /users
2026-04-13 12:37:29,216 - api_logger - INFO - Router cargado: /webservices
2026-04-13 12:37:29,218 - api_logger - INFO - Router cargado: /auth
2026-04-13 12:37:29,219 - api_logger - INFO - Router cargado: 
2026-04-13 12:37:29,219 - api_logger - INFO - Router cargado: /licenses
2026-04-13 12:37:29,219 - api_logger - INFO - Router cargado: /plans
2026-04-13 12:37:29,220 - api_logger - INFO - Router cargado: /payment
2026-04-13 12:38:09,901 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-13 12:38:09,901 - api_logger - DEBUG - Renderizando verify_account.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'verification_url', 'expire_time', 'expiration_time_unit']
2026-04-13 12:54:18,929 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 12:54:18,963 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 12:54:18,965 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 12:54:18,966 - api_logger - INFO - Router cargado: /export
2026-04-13 12:54:18,970 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 12:54:18,970 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 12:54:18,978 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 12:54:18,979 - api_logger - INFO - Router cargado: /users
2026-04-13 12:54:18,981 - api_logger - INFO - Router cargado: /webservices
2026-04-13 12:54:18,982 - api_logger - INFO - Router cargado: /auth
2026-04-13 12:54:18,983 - api_logger - INFO - Router cargado: 
2026-04-13 12:54:18,983 - api_logger - INFO - Router cargado: /licenses
2026-04-13 12:54:18,983 - api_logger - INFO - Router cargado: /plans
2026-04-13 12:54:18,984 - api_logger - INFO - Router cargado: /payment
2026-04-13 12:54:19,006 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 12:54:19,033 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 12:54:19,036 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 12:54:19,037 - api_logger - INFO - Router cargado: /export
2026-04-13 12:54:19,040 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 12:54:19,040 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 12:54:19,047 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 12:54:19,049 - api_logger - INFO - Router cargado: /users
2026-04-13 12:54:19,050 - api_logger - INFO - Router cargado: /webservices
2026-04-13 12:54:19,052 - api_logger - INFO - Router cargado: /auth
2026-04-13 12:54:19,052 - api_logger - INFO - Router cargado: 
2026-04-13 12:54:19,053 - api_logger - INFO - Router cargado: /licenses
2026-04-13 12:54:19,053 - api_logger - INFO - Router cargado: /plans
2026-04-13 12:54:19,053 - api_logger - INFO - Router cargado: /payment
2026-04-13 12:56:15,271 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 12:56:15,307 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 12:56:15,309 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 12:56:15,310 - api_logger - INFO - Router cargado: /export
2026-04-13 12:56:15,314 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 12:56:15,315 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 12:56:15,323 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 12:56:15,325 - api_logger - INFO - Router cargado: /users
2026-04-13 12:56:15,326 - api_logger - INFO - Router cargado: /webservices
2026-04-13 12:56:15,327 - api_logger - INFO - Router cargado: /auth
2026-04-13 12:56:15,328 - api_logger - INFO - Router cargado: 
2026-04-13 12:56:15,328 - api_logger - INFO - Router cargado: /licenses
2026-04-13 12:56:15,329 - api_logger - INFO - Router cargado: /plans
2026-04-13 12:56:15,329 - api_logger - INFO - Router cargado: /payment
2026-04-13 12:56:15,352 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 12:56:15,384 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 12:56:15,387 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 12:56:15,388 - api_logger - INFO - Router cargado: /export
2026-04-13 12:56:15,391 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 12:56:15,391 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 12:56:15,399 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 12:56:15,400 - api_logger - INFO - Router cargado: /users
2026-04-13 12:56:15,401 - api_logger - INFO - Router cargado: /webservices
2026-04-13 12:56:15,403 - api_logger - INFO - Router cargado: /auth
2026-04-13 12:56:15,403 - api_logger - INFO - Router cargado: 
2026-04-13 12:56:15,404 - api_logger - INFO - Router cargado: /licenses
2026-04-13 12:56:15,404 - api_logger - INFO - Router cargado: /plans
2026-04-13 12:56:15,404 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:20:10,499 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:20:10,532 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:20:10,535 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:20:10,536 - api_logger - INFO - Router cargado: /export
2026-04-13 13:20:10,539 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:20:10,539 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:20:10,548 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:20:10,549 - api_logger - INFO - Router cargado: /users
2026-04-13 13:20:10,551 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:20:10,552 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:20:10,553 - api_logger - INFO - Router cargado: 
2026-04-13 13:20:10,553 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:20:10,553 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:20:10,554 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:20:10,574 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:20:10,605 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:20:10,609 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:20:10,610 - api_logger - INFO - Router cargado: /export
2026-04-13 13:20:10,615 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:20:10,615 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:20:10,626 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:20:10,627 - api_logger - INFO - Router cargado: /users
2026-04-13 13:20:10,629 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:20:10,630 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:20:10,631 - api_logger - INFO - Router cargado: 
2026-04-13 13:20:10,631 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:20:10,631 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:20:10,632 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:34:36,305 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:34:36,337 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:34:36,340 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:34:36,341 - api_logger - INFO - Router cargado: /export
2026-04-13 13:34:36,344 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:34:36,344 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:34:36,352 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:34:36,353 - api_logger - INFO - Router cargado: /users
2026-04-13 13:34:36,355 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:34:36,356 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:34:36,357 - api_logger - INFO - Router cargado: 
2026-04-13 13:34:36,357 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:34:36,357 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:34:36,358 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:34:36,380 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:34:36,407 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:34:36,409 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:34:36,410 - api_logger - INFO - Router cargado: /export
2026-04-13 13:34:36,413 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:34:36,414 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:34:36,421 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:34:36,422 - api_logger - INFO - Router cargado: /users
2026-04-13 13:34:36,423 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:34:36,425 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:34:36,425 - api_logger - INFO - Router cargado: 
2026-04-13 13:34:36,426 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:34:36,426 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:34:36,426 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:36:18,782 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:36:18,819 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:36:18,822 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:36:18,823 - api_logger - INFO - Router cargado: /export
2026-04-13 13:36:18,827 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:36:18,827 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:36:18,835 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:36:18,837 - api_logger - INFO - Router cargado: /users
2026-04-13 13:36:18,839 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:36:18,841 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:36:18,842 - api_logger - INFO - Router cargado: 
2026-04-13 13:36:18,842 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:36:18,842 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:36:18,843 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:36:18,866 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:36:18,894 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:36:18,897 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:36:18,898 - api_logger - INFO - Router cargado: /export
2026-04-13 13:36:18,901 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:36:18,901 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:36:18,908 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:36:18,910 - api_logger - INFO - Router cargado: /users
2026-04-13 13:36:18,911 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:36:18,912 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:36:18,913 - api_logger - INFO - Router cargado: 
2026-04-13 13:36:18,913 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:36:18,913 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:36:18,914 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:36:31,642 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:36:31,674 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:36:31,677 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:36:31,677 - api_logger - INFO - Router cargado: /export
2026-04-13 13:36:31,681 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:36:31,681 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:36:31,689 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:36:31,690 - api_logger - INFO - Router cargado: /users
2026-04-13 13:36:31,692 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:36:31,693 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:36:31,694 - api_logger - INFO - Router cargado: 
2026-04-13 13:36:31,694 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:36:31,694 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:36:31,695 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:36:31,716 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:36:31,744 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:36:31,746 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:36:31,747 - api_logger - INFO - Router cargado: /export
2026-04-13 13:36:31,750 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:36:31,750 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:36:31,758 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:36:31,759 - api_logger - INFO - Router cargado: /users
2026-04-13 13:36:31,760 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:36:31,761 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:36:31,762 - api_logger - INFO - Router cargado: 
2026-04-13 13:36:31,762 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:36:31,763 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:36:31,763 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:37:37,867 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:37:37,900 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:37:37,903 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:37:37,904 - api_logger - INFO - Router cargado: /export
2026-04-13 13:37:37,908 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:37:37,908 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:37:37,916 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:37:37,917 - api_logger - INFO - Router cargado: /users
2026-04-13 13:37:37,919 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:37:37,920 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:37:37,921 - api_logger - INFO - Router cargado: 
2026-04-13 13:37:37,921 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:37:37,922 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:37:37,922 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:37:37,944 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:37:37,973 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:37:37,975 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:37:37,976 - api_logger - INFO - Router cargado: /export
2026-04-13 13:37:37,979 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:37:37,979 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:37:37,987 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:37:37,988 - api_logger - INFO - Router cargado: /users
2026-04-13 13:37:37,990 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:37:37,991 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:37:37,992 - api_logger - INFO - Router cargado: 
2026-04-13 13:37:37,992 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:37:37,992 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:37:37,993 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:38:00,606 - api_logger - ERROR - Error searching record: (psycopg2.errors.InvalidTextRepresentation) invalid input syntax for type uuid: "12f51451-9092-4ca7-a2f0-1d21efcd2ad1adfasdf"
LINE 3: WHERE licensing.users.verification_token = '12f51451-9092-4c...
                                                   ^

[SQL: SELECT licensing.users.id AS licensing_users_id, licensing.users.email AS licensing_users_email, licensing.users.password_hash AS licensing_users_password_hash, licensing.users.first_name AS licensing_users_first_name, licensing.users.last_name AS licensing_users_last_name, licensing.users.phone AS licensing_users_phone, licensing.users.rfc AS licensing_users_rfc, licensing.users.company_name AS licensing_users_company_name, licensing.users.status AS licensing_users_status, licensing.users.email_verified AS licensing_users_email_verified, licensing.users.created_at AS licensing_users_created_at, licensing.users.updated_at AS licensing_users_updated_at, licensing.users.last_login AS licensing_users_last_login, licensing.users.verification_token AS licensing_users_verification_token, licensing.users.verification_token_expire_at AS licensing_users_verification_token_expire_at, licensing.users.reset_password_token AS licensing_users_reset_password_token, licensing.users.reset_token_expires_at AS licensing_users_reset_token_expires_at, licensing.users.surname AS licensing_users_surname, licensing.users.cp AS licensing_users_cp, licensing.users.failed_login_attempts AS licensing_users_failed_login_attempts, licensing.users.verification_token_attempts AS licensing_users_verification_token_attempts 
FROM licensing.users 
WHERE licensing.users.verification_token = %(verification_token_1)s]
[parameters: {'verification_token_1': '12f51451-9092-4ca7-a2f0-1d21efcd2ad1adfasdf'}]
(Background on this error at: https://sqlalche.me/e/20/9h9h)
2026-04-13 13:38:00,662 - api_logger - ERROR - Error inesperado: Token no válido
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/authenticate.py", line 150, in resend_verification
    rsl = await auth.request_new_verification_token(tkn, RegisterUser)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/services/AuthService.py", line 498, in request_new_verification_token
    raise NotFoundError("Token no válido")
app.exceptions.domain.NotFoundError: Token no válido
2026-04-13 13:38:26,788 - api_logger - ERROR - Error inesperado: Token no válido
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/authenticate.py", line 150, in resend_verification
    rsl = await auth.request_new_verification_token(tkn, RegisterUser)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/services/AuthService.py", line 498, in request_new_verification_token
    raise NotFoundError("Token no válido")
app.exceptions.domain.NotFoundError: Token no válido
2026-04-13 13:41:13,413 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:41:13,446 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:41:13,448 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:41:13,449 - api_logger - INFO - Router cargado: /export
2026-04-13 13:41:13,452 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:41:13,453 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:41:13,461 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:41:13,463 - api_logger - INFO - Router cargado: /users
2026-04-13 13:41:13,464 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:41:13,466 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:41:13,467 - api_logger - INFO - Router cargado: 
2026-04-13 13:41:13,467 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:41:13,467 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:41:13,468 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:41:14,233 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:41:14,265 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:41:14,268 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:41:14,269 - api_logger - INFO - Router cargado: /export
2026-04-13 13:41:14,272 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:41:14,272 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:41:14,280 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:41:14,281 - api_logger - INFO - Router cargado: /users
2026-04-13 13:41:14,283 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:41:14,284 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:41:14,285 - api_logger - INFO - Router cargado: 
2026-04-13 13:41:14,285 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:41:14,285 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:41:14,286 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:41:14,306 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:41:14,334 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:41:14,336 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:41:14,337 - api_logger - INFO - Router cargado: /export
2026-04-13 13:41:14,340 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:41:14,341 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:41:14,348 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:41:14,349 - api_logger - INFO - Router cargado: /users
2026-04-13 13:41:14,350 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:41:14,352 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:41:14,352 - api_logger - INFO - Router cargado: 
2026-04-13 13:41:14,353 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:41:14,353 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:41:14,353 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:41:19,166 - api_logger - ERROR - Error inesperado: Token no válido
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/authenticate.py", line 150, in resend_verification
    rsl = await auth.request_new_verification_token(tkn, RegisterUser)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/services/AuthService.py", line 498, in request_new_verification_token
    raise NotFoundError("Token no válido")
app.exceptions.domain.NotFoundError: Token no válido
2026-04-13 13:44:39,693 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:44:39,727 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:44:39,729 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:44:39,730 - api_logger - INFO - Router cargado: /export
2026-04-13 13:44:39,734 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:44:39,734 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:44:39,742 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:44:39,743 - api_logger - INFO - Router cargado: /users
2026-04-13 13:44:39,745 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:44:39,746 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:44:39,747 - api_logger - INFO - Router cargado: 
2026-04-13 13:44:39,747 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:44:39,747 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:44:39,748 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:44:39,774 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:44:39,807 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:44:39,809 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:44:39,810 - api_logger - INFO - Router cargado: /export
2026-04-13 13:44:39,813 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:44:39,813 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:44:39,820 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:44:39,822 - api_logger - INFO - Router cargado: /users
2026-04-13 13:44:39,823 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:44:39,824 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:44:39,825 - api_logger - INFO - Router cargado: 
2026-04-13 13:44:39,825 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:44:39,825 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:44:39,826 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:44:46,937 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:44:46,970 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:44:46,973 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:44:46,974 - api_logger - INFO - Router cargado: /export
2026-04-13 13:44:46,977 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:44:46,978 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:44:46,985 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:44:46,987 - api_logger - INFO - Router cargado: /users
2026-04-13 13:44:46,988 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:44:46,990 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:44:46,991 - api_logger - INFO - Router cargado: 
2026-04-13 13:44:46,991 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:44:46,991 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:44:46,992 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:44:47,014 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:44:47,041 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:44:47,044 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:44:47,045 - api_logger - INFO - Router cargado: /export
2026-04-13 13:44:47,048 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:44:47,048 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:44:47,055 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:44:47,057 - api_logger - INFO - Router cargado: /users
2026-04-13 13:44:47,058 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:44:47,059 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:44:47,060 - api_logger - INFO - Router cargado: 
2026-04-13 13:44:47,060 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:44:47,060 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:44:47,061 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:44:57,057 - api_logger - ERROR - Error inesperado: Token no válido
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/authenticate.py", line 150, in resend_verification
    rsl = await auth.request_new_verification_token(tkn, RegisterUser)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/services/AuthService.py", line 498, in request_new_verification_token
    raise NotFoundError("Token no válido")
app.exceptions.domain.NotFoundError: Token no válido
2026-04-13 13:45:09,432 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:45:09,467 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:45:09,470 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:45:09,471 - api_logger - INFO - Router cargado: /export
2026-04-13 13:45:09,475 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:45:09,475 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:45:09,483 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:45:09,484 - api_logger - INFO - Router cargado: /users
2026-04-13 13:45:09,486 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:45:09,487 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:45:09,488 - api_logger - INFO - Router cargado: 
2026-04-13 13:45:09,488 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:45:09,488 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:45:09,489 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:45:10,247 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:45:10,279 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:45:10,282 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:45:10,283 - api_logger - INFO - Router cargado: /export
2026-04-13 13:45:10,286 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:45:10,286 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:45:10,294 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:45:10,295 - api_logger - INFO - Router cargado: /users
2026-04-13 13:45:10,297 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:45:10,298 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:45:10,299 - api_logger - INFO - Router cargado: 
2026-04-13 13:45:10,299 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:45:10,299 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:45:10,300 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:45:10,320 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:45:10,347 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:45:10,349 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:45:10,350 - api_logger - INFO - Router cargado: /export
2026-04-13 13:45:10,353 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:45:10,353 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:45:10,360 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:45:10,362 - api_logger - INFO - Router cargado: /users
2026-04-13 13:45:10,363 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:45:10,364 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:45:10,365 - api_logger - INFO - Router cargado: 
2026-04-13 13:45:10,365 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:45:10,365 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:45:10,366 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:45:13,845 - api_logger - ERROR - Error inesperado: Token no válido
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/authenticate.py", line 150, in resend_verification
    rsl = await auth.request_new_verification_token(tkn, RegisterUser)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/services/AuthService.py", line 498, in request_new_verification_token
    raise NotFoundError("Token no válido")
app.exceptions.domain.NotFoundError: Token no válido
2026-04-13 13:46:49,971 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:46:50,004 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:46:50,006 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:46:50,007 - api_logger - INFO - Router cargado: /export
2026-04-13 13:46:50,011 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:46:50,011 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:46:50,018 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:46:50,020 - api_logger - INFO - Router cargado: /users
2026-04-13 13:46:50,021 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:46:50,023 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:46:50,024 - api_logger - INFO - Router cargado: 
2026-04-13 13:46:50,024 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:46:50,024 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:46:50,025 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:46:50,046 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:46:50,073 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:46:50,075 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:46:50,076 - api_logger - INFO - Router cargado: /export
2026-04-13 13:46:50,079 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:46:50,079 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:46:50,087 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:46:50,088 - api_logger - INFO - Router cargado: /users
2026-04-13 13:46:50,089 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:46:50,090 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:46:50,091 - api_logger - INFO - Router cargado: 
2026-04-13 13:46:50,091 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:46:50,091 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:46:50,092 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:47:55,974 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:47:56,007 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:47:56,009 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:47:56,010 - api_logger - INFO - Router cargado: /export
2026-04-13 13:47:56,014 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:47:56,014 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:47:56,021 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:47:56,023 - api_logger - INFO - Router cargado: /users
2026-04-13 13:47:56,024 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:47:56,026 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:47:56,027 - api_logger - INFO - Router cargado: 
2026-04-13 13:47:56,027 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:47:56,027 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:47:56,028 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:47:56,049 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:47:56,077 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:47:56,080 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:47:56,081 - api_logger - INFO - Router cargado: /export
2026-04-13 13:47:56,084 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:47:56,084 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:47:56,092 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:47:56,093 - api_logger - INFO - Router cargado: /users
2026-04-13 13:47:56,094 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:47:56,096 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:47:56,097 - api_logger - INFO - Router cargado: 
2026-04-13 13:47:56,097 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:47:56,097 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:47:56,097 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:49:22,477 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:49:22,513 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:49:22,516 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:49:22,517 - api_logger - INFO - Router cargado: /export
2026-04-13 13:49:22,521 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:49:22,522 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:49:22,530 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:49:22,532 - api_logger - INFO - Router cargado: /users
2026-04-13 13:49:22,533 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:49:22,535 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:49:22,536 - api_logger - INFO - Router cargado: 
2026-04-13 13:49:22,536 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:49:22,536 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:49:22,537 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:49:22,561 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:49:22,591 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:49:22,593 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:49:22,594 - api_logger - INFO - Router cargado: /export
2026-04-13 13:49:22,598 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:49:22,598 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:49:22,606 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:49:22,607 - api_logger - INFO - Router cargado: /users
2026-04-13 13:49:22,609 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:49:22,610 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:49:22,611 - api_logger - INFO - Router cargado: 
2026-04-13 13:49:22,611 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:49:22,611 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:49:22,612 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:50:05,559 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:50:05,594 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:50:05,597 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:50:05,598 - api_logger - INFO - Router cargado: /export
2026-04-13 13:50:05,602 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:50:05,602 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:50:05,610 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:50:05,612 - api_logger - INFO - Router cargado: /users
2026-04-13 13:50:05,614 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:50:05,615 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:50:05,616 - api_logger - INFO - Router cargado: 
2026-04-13 13:50:05,616 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:50:05,616 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:50:05,617 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:50:05,640 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:50:05,668 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:50:05,670 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:50:05,671 - api_logger - INFO - Router cargado: /export
2026-04-13 13:50:05,675 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:50:05,675 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:50:05,682 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:50:05,684 - api_logger - INFO - Router cargado: /users
2026-04-13 13:50:05,685 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:50:05,686 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:50:05,687 - api_logger - INFO - Router cargado: 
2026-04-13 13:50:05,687 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:50:05,687 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:50:05,688 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:50:21,499 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:50:21,532 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:50:21,535 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:50:21,536 - api_logger - INFO - Router cargado: /export
2026-04-13 13:50:21,540 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:50:21,540 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:50:21,547 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:50:21,549 - api_logger - INFO - Router cargado: /users
2026-04-13 13:50:21,550 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:50:21,552 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:50:21,553 - api_logger - INFO - Router cargado: 
2026-04-13 13:50:21,553 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:50:21,553 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:50:21,554 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:50:21,575 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:50:21,603 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:50:21,605 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:50:21,606 - api_logger - INFO - Router cargado: /export
2026-04-13 13:50:21,609 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:50:21,609 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:50:21,616 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:50:21,618 - api_logger - INFO - Router cargado: /users
2026-04-13 13:50:21,619 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:50:21,620 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:50:21,621 - api_logger - INFO - Router cargado: 
2026-04-13 13:50:21,621 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:50:21,621 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:50:21,622 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:50:29,333 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:50:29,366 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:50:29,369 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:50:29,370 - api_logger - INFO - Router cargado: /export
2026-04-13 13:50:29,373 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:50:29,373 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:50:29,381 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:50:29,383 - api_logger - INFO - Router cargado: /users
2026-04-13 13:50:29,385 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:50:29,386 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:50:29,387 - api_logger - INFO - Router cargado: 
2026-04-13 13:50:29,387 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:50:29,387 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:50:29,388 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:50:29,411 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:50:29,439 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:50:29,441 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:50:29,442 - api_logger - INFO - Router cargado: /export
2026-04-13 13:50:29,446 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:50:29,446 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:50:29,454 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:50:29,455 - api_logger - INFO - Router cargado: /users
2026-04-13 13:50:29,456 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:50:29,458 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:50:29,459 - api_logger - INFO - Router cargado: 
2026-04-13 13:50:29,459 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:50:29,459 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:50:29,459 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:50:36,693 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:50:36,724 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:50:36,727 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:50:36,728 - api_logger - INFO - Router cargado: /export
2026-04-13 13:50:36,731 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:50:36,732 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:50:36,739 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:50:36,741 - api_logger - INFO - Router cargado: /users
2026-04-13 13:50:36,742 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:50:36,743 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:50:36,744 - api_logger - INFO - Router cargado: 
2026-04-13 13:50:36,744 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:50:36,744 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:50:36,745 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:50:36,768 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:50:36,795 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:50:36,798 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:50:36,798 - api_logger - INFO - Router cargado: /export
2026-04-13 13:50:36,802 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:50:36,802 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:50:36,809 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:50:36,810 - api_logger - INFO - Router cargado: /users
2026-04-13 13:50:36,812 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:50:36,813 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:50:36,814 - api_logger - INFO - Router cargado: 
2026-04-13 13:50:36,814 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:50:36,814 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:50:36,814 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:50:51,490 - api_logger - ERROR - Error inesperado en http://localhost:8000/v1/auth/resend-verification?tkn=12f51451-9092-4ca7-a2f0-1d21efcd2ad1: name 'DOMAIN_TO_HTTP' is not defined
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/authenticate.py", line 150, in resend_verification
    rsl = await auth.request_new_verification_token(tkn, RegisterUser)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/services/AuthService.py", line 498, in request_new_verification_token
    raise NotFoundError("Token no válido")
app.exceptions.domain.NotFoundError: Token no válido

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 95, in __call__
    await self.simple_response(scope, receive, send, request_headers=headers)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 153, in simple_response
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 59, in wrapped_app
    response = await handler(conn, exc)
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/main.py", line 41, in domain_error_handler
    status_code=DOMAIN_TO_HTTP.get(type(exc), 400),
                ^^^^^^^^^^^^^^
NameError: name 'DOMAIN_TO_HTTP' is not defined
2026-04-13 13:56:54,217 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:56:54,256 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:56:54,259 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:56:54,260 - api_logger - INFO - Router cargado: /export
2026-04-13 13:56:54,264 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:56:54,265 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:56:54,272 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:56:54,274 - api_logger - INFO - Router cargado: /users
2026-04-13 13:56:54,275 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:56:54,277 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:56:54,278 - api_logger - INFO - Router cargado: 
2026-04-13 13:56:54,278 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:56:54,278 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:56:54,279 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:56:55,026 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:56:55,062 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:56:55,065 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:56:55,066 - api_logger - INFO - Router cargado: /export
2026-04-13 13:56:55,070 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:56:55,070 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:56:55,078 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:56:55,080 - api_logger - INFO - Router cargado: /users
2026-04-13 13:56:55,082 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:56:55,083 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:56:55,084 - api_logger - INFO - Router cargado: 
2026-04-13 13:56:55,084 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:56:55,085 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:56:55,085 - api_logger - INFO - Router cargado: /payment
2026-04-13 13:56:55,108 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 13:56:55,137 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 13:56:55,139 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 13:56:55,140 - api_logger - INFO - Router cargado: /export
2026-04-13 13:56:55,143 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 13:56:55,143 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 13:56:55,151 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 13:56:55,153 - api_logger - INFO - Router cargado: /users
2026-04-13 13:56:55,154 - api_logger - INFO - Router cargado: /webservices
2026-04-13 13:56:55,156 - api_logger - INFO - Router cargado: /auth
2026-04-13 13:56:55,157 - api_logger - INFO - Router cargado: 
2026-04-13 13:56:55,157 - api_logger - INFO - Router cargado: /licenses
2026-04-13 13:56:55,157 - api_logger - INFO - Router cargado: /plans
2026-04-13 13:56:55,158 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:01:01,307 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:01:01,342 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:01:01,345 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:01:01,346 - api_logger - INFO - Router cargado: /export
2026-04-13 14:01:01,349 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:01:01,350 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:01:01,357 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:01:01,359 - api_logger - INFO - Router cargado: /users
2026-04-13 14:01:01,360 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:01:01,362 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:01:01,363 - api_logger - INFO - Router cargado: 
2026-04-13 14:01:01,363 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:01:01,363 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:01:01,364 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:01:01,386 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:01:01,414 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:01:01,416 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:01:01,417 - api_logger - INFO - Router cargado: /export
2026-04-13 14:01:01,420 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:01:01,420 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:01:01,428 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:01:01,429 - api_logger - INFO - Router cargado: /users
2026-04-13 14:01:01,430 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:01:01,431 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:01:01,432 - api_logger - INFO - Router cargado: 
2026-04-13 14:01:01,432 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:01:01,432 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:01:01,433 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:01:10,202 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:01:10,234 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:01:10,237 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:01:10,238 - api_logger - INFO - Router cargado: /export
2026-04-13 14:01:10,241 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:01:10,241 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:01:10,249 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:01:10,250 - api_logger - INFO - Router cargado: /users
2026-04-13 14:01:10,252 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:01:10,253 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:01:10,254 - api_logger - INFO - Router cargado: 
2026-04-13 14:01:10,254 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:01:10,254 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:01:10,255 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:01:10,276 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:01:10,303 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:01:10,305 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:01:10,306 - api_logger - INFO - Router cargado: /export
2026-04-13 14:01:10,309 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:01:10,309 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:01:10,316 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:01:10,318 - api_logger - INFO - Router cargado: /users
2026-04-13 14:01:10,319 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:01:10,320 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:01:10,321 - api_logger - INFO - Router cargado: 
2026-04-13 14:01:10,321 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:01:10,321 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:01:10,322 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:01:22,420 - api_logger - DEBUG - [NotFoundError] http://localhost:8000/v1/auth/resend-verification?tkn=12f51451-9092-4ca7-a2f0-1d21efcd2ad1: Token no válido
2026-04-13 14:06:37,919 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:06:37,950 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:06:37,953 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:06:37,954 - api_logger - INFO - Router cargado: /export
2026-04-13 14:06:37,957 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:06:37,958 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:06:37,965 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:06:37,967 - api_logger - INFO - Router cargado: /users
2026-04-13 14:06:37,968 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:06:37,969 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:06:37,970 - api_logger - INFO - Router cargado: 
2026-04-13 14:06:37,970 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:06:37,971 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:06:37,971 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:06:37,993 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:06:38,020 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:06:38,022 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:06:38,023 - api_logger - INFO - Router cargado: /export
2026-04-13 14:06:38,027 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:06:38,027 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:06:38,034 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:06:38,035 - api_logger - INFO - Router cargado: /users
2026-04-13 14:06:38,037 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:06:38,038 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:06:38,039 - api_logger - INFO - Router cargado: 
2026-04-13 14:06:38,039 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:06:38,039 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:06:38,039 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:08:17,082 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:08:17,116 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:08:17,118 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:08:17,120 - api_logger - INFO - Router cargado: /export
2026-04-13 14:08:17,123 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:08:17,124 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:08:17,131 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:08:17,133 - api_logger - INFO - Router cargado: /users
2026-04-13 14:08:17,135 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:08:17,137 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:08:17,138 - api_logger - INFO - Router cargado: 
2026-04-13 14:08:17,138 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:08:17,138 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:08:17,139 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:08:17,163 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:08:17,190 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:08:17,192 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:08:17,193 - api_logger - INFO - Router cargado: /export
2026-04-13 14:08:17,196 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:08:17,197 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:08:17,204 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:08:17,205 - api_logger - INFO - Router cargado: /users
2026-04-13 14:08:17,207 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:08:17,208 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:08:17,209 - api_logger - INFO - Router cargado: 
2026-04-13 14:08:17,209 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:08:17,209 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:08:17,210 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:09:44,421 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:09:44,455 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:09:44,458 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:09:44,459 - api_logger - INFO - Router cargado: /export
2026-04-13 14:09:44,463 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:09:44,463 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:09:44,471 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:09:44,473 - api_logger - INFO - Router cargado: /users
2026-04-13 14:09:44,475 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:09:44,476 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:09:44,477 - api_logger - INFO - Router cargado: 
2026-04-13 14:09:44,477 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:09:44,478 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:09:44,479 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:09:44,501 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:09:44,529 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:09:44,532 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:09:44,533 - api_logger - INFO - Router cargado: /export
2026-04-13 14:09:44,536 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:09:44,536 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:09:44,543 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:09:44,545 - api_logger - INFO - Router cargado: /users
2026-04-13 14:09:44,546 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:09:44,547 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:09:44,548 - api_logger - INFO - Router cargado: 
2026-04-13 14:09:44,548 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:09:44,548 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:09:44,549 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:09:52,791 - api_logger - DEBUG - [NotFoundError] http://localhost:8000/v1/auth/resend-verification?tkn=12f51451-9092-4ca7-a2f0-1d21efcd2ad1: Token no válido
2026-04-13 14:10:01,803 - api_logger - DEBUG - [NotFoundError] http://localhost:8000/v1/auth/resend-verification?tkn=12f51451-9092-4ca7-a2f0-1d21efcd2ad1: Token no válido
2026-04-13 14:10:06,899 - api_logger - DEBUG - [NotFoundError] http://localhost:8000/v1/auth/resend-verification?tkn=12f51451-9092-4ca7-a2f0-1d21efcd2ad1: Token no válido
2026-04-13 14:21:56,865 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:21:56,900 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:21:56,903 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:21:56,904 - api_logger - INFO - Router cargado: /export
2026-04-13 14:21:56,908 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:21:56,908 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:21:56,916 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:21:56,918 - api_logger - INFO - Router cargado: /users
2026-04-13 14:21:56,919 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:21:56,921 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:21:56,922 - api_logger - INFO - Router cargado: 
2026-04-13 14:21:56,922 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:21:56,922 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:21:56,923 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:21:56,947 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:21:56,977 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:21:56,980 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:21:56,981 - api_logger - INFO - Router cargado: /export
2026-04-13 14:21:56,984 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:21:56,984 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:21:56,992 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:21:56,993 - api_logger - INFO - Router cargado: /users
2026-04-13 14:21:56,995 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:21:56,996 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:21:56,997 - api_logger - INFO - Router cargado: 
2026-04-13 14:21:56,997 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:21:56,997 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:21:56,997 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:33:08,767 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:33:08,801 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:33:08,804 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:33:08,805 - api_logger - INFO - Router cargado: /export
2026-04-13 14:33:08,809 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:33:08,809 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:33:08,817 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:33:08,819 - api_logger - INFO - Router cargado: /users
2026-04-13 14:33:08,820 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:33:08,822 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:33:08,823 - api_logger - INFO - Router cargado: 
2026-04-13 14:33:08,823 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:33:08,823 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:33:08,824 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:33:08,846 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:33:08,876 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:33:08,878 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:33:08,879 - api_logger - INFO - Router cargado: /export
2026-04-13 14:33:08,883 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:33:08,883 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:33:08,890 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:33:08,892 - api_logger - INFO - Router cargado: /users
2026-04-13 14:33:08,894 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:33:08,896 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:33:08,897 - api_logger - INFO - Router cargado: 
2026-04-13 14:33:08,897 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:33:08,897 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:33:08,897 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:33:40,079 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:33:40,112 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:33:40,114 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:33:40,115 - api_logger - INFO - Router cargado: /export
2026-04-13 14:33:40,119 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:33:40,119 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:33:40,126 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:33:40,128 - api_logger - INFO - Router cargado: /users
2026-04-13 14:33:40,129 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:33:40,131 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:33:40,132 - api_logger - INFO - Router cargado: 
2026-04-13 14:33:40,132 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:33:40,132 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:33:40,133 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:33:40,154 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:33:40,182 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:33:40,184 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:33:40,185 - api_logger - INFO - Router cargado: /export
2026-04-13 14:33:40,188 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:33:40,189 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:33:40,196 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:33:40,198 - api_logger - INFO - Router cargado: /users
2026-04-13 14:33:40,199 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:33:40,200 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:33:40,201 - api_logger - INFO - Router cargado: 
2026-04-13 14:33:40,201 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:33:40,201 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:33:40,202 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:33:41,871 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:33:41,905 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:33:41,908 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:33:41,909 - api_logger - INFO - Router cargado: /export
2026-04-13 14:33:41,912 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:33:41,912 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:33:41,920 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:33:41,922 - api_logger - INFO - Router cargado: /users
2026-04-13 14:33:41,924 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:33:41,925 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:33:41,926 - api_logger - INFO - Router cargado: 
2026-04-13 14:33:41,926 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:33:41,926 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:33:41,927 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:33:41,952 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:33:41,982 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:33:41,984 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:33:41,985 - api_logger - INFO - Router cargado: /export
2026-04-13 14:33:41,989 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:33:41,989 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:33:41,997 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:33:41,998 - api_logger - INFO - Router cargado: /users
2026-04-13 14:33:42,000 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:33:42,002 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:33:42,003 - api_logger - INFO - Router cargado: 
2026-04-13 14:33:42,003 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:33:42,003 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:33:42,004 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:33:43,883 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:33:43,918 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:33:43,921 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:33:43,922 - api_logger - INFO - Router cargado: /export
2026-04-13 14:33:43,926 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:33:43,926 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:33:43,934 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:33:43,936 - api_logger - INFO - Router cargado: /users
2026-04-13 14:33:43,937 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:33:43,939 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:33:43,941 - api_logger - INFO - Router cargado: 
2026-04-13 14:33:43,941 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:33:43,941 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:33:43,942 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:33:43,967 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:33:43,997 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:33:43,999 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:33:44,000 - api_logger - INFO - Router cargado: /export
2026-04-13 14:33:44,004 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:33:44,004 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:33:44,011 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:33:44,013 - api_logger - INFO - Router cargado: /users
2026-04-13 14:33:44,014 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:33:44,015 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:33:44,016 - api_logger - INFO - Router cargado: 
2026-04-13 14:33:44,017 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:33:44,017 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:33:44,017 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:33:45,270 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:33:45,304 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:33:45,307 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:33:45,308 - api_logger - INFO - Router cargado: /export
2026-04-13 14:33:45,312 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:33:45,312 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:33:45,321 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:33:45,324 - api_logger - INFO - Router cargado: /users
2026-04-13 14:33:45,325 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:33:45,327 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:33:45,328 - api_logger - INFO - Router cargado: 
2026-04-13 14:33:45,328 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:33:45,328 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:33:45,329 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:33:45,352 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:33:45,379 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:33:45,382 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:33:45,383 - api_logger - INFO - Router cargado: /export
2026-04-13 14:33:45,386 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:33:45,386 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:33:45,393 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:33:45,394 - api_logger - INFO - Router cargado: /users
2026-04-13 14:33:45,395 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:33:45,397 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:33:45,397 - api_logger - INFO - Router cargado: 
2026-04-13 14:33:45,398 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:33:45,398 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:33:45,398 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:33:47,077 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:33:47,111 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:33:47,114 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:33:47,115 - api_logger - INFO - Router cargado: /export
2026-04-13 14:33:47,119 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:33:47,119 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:33:47,126 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:33:47,128 - api_logger - INFO - Router cargado: /users
2026-04-13 14:33:47,130 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:33:47,971 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:33:48,004 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:33:48,007 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:33:48,008 - api_logger - INFO - Router cargado: /export
2026-04-13 14:33:48,012 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:33:48,012 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:33:48,020 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:33:48,021 - api_logger - INFO - Router cargado: /users
2026-04-13 14:33:48,023 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:33:48,024 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:33:48,025 - api_logger - INFO - Router cargado: 
2026-04-13 14:33:48,026 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:33:48,026 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:33:48,026 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:33:48,049 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:33:48,077 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:33:48,080 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:33:48,081 - api_logger - INFO - Router cargado: /export
2026-04-13 14:33:48,085 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:33:48,085 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:33:48,093 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:33:48,095 - api_logger - INFO - Router cargado: /users
2026-04-13 14:33:48,096 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:33:48,098 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:33:48,098 - api_logger - INFO - Router cargado: 
2026-04-13 14:33:48,098 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:33:48,099 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:33:48,099 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:33:54,450 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:33:54,483 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:33:54,486 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:33:54,487 - api_logger - INFO - Router cargado: /export
2026-04-13 14:33:54,490 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:33:54,491 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:33:54,499 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:33:54,501 - api_logger - INFO - Router cargado: /users
2026-04-13 14:33:54,502 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:33:54,503 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:33:54,504 - api_logger - INFO - Router cargado: 
2026-04-13 14:33:54,504 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:33:54,505 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:33:54,505 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:33:54,527 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:33:54,554 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:33:54,556 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:33:54,557 - api_logger - INFO - Router cargado: /export
2026-04-13 14:33:54,561 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:33:54,561 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:33:54,569 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:33:54,570 - api_logger - INFO - Router cargado: /users
2026-04-13 14:33:54,571 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:33:54,573 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:33:54,573 - api_logger - INFO - Router cargado: 
2026-04-13 14:33:54,574 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:33:54,574 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:33:54,574 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:33:56,007 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:33:56,039 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:33:56,042 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:33:56,043 - api_logger - INFO - Router cargado: /export
2026-04-13 14:33:56,046 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:33:56,047 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:33:56,054 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:33:56,056 - api_logger - INFO - Router cargado: /users
2026-04-13 14:33:56,057 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:33:56,059 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:33:56,060 - api_logger - INFO - Router cargado: 
2026-04-13 14:33:56,060 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:33:56,060 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:33:56,061 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:33:56,082 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:33:56,111 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:33:56,113 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:33:56,114 - api_logger - INFO - Router cargado: /export
2026-04-13 14:33:56,117 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:33:56,117 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:33:56,125 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:33:56,126 - api_logger - INFO - Router cargado: /users
2026-04-13 14:33:56,127 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:33:56,129 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:33:56,129 - api_logger - INFO - Router cargado: 
2026-04-13 14:33:56,130 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:33:56,130 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:33:56,130 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:33:57,037 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:33:57,071 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:33:57,073 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:33:57,074 - api_logger - INFO - Router cargado: /export
2026-04-13 14:33:57,078 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:33:57,078 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:33:57,086 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:33:57,088 - api_logger - INFO - Router cargado: /users
2026-04-13 14:33:57,089 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:33:57,090 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:33:57,091 - api_logger - INFO - Router cargado: 
2026-04-13 14:33:57,092 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:33:57,092 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:33:57,092 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:33:57,114 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:33:57,142 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:33:57,145 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:33:57,146 - api_logger - INFO - Router cargado: /export
2026-04-13 14:33:57,149 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:33:57,149 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:33:57,157 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:33:57,158 - api_logger - INFO - Router cargado: /users
2026-04-13 14:33:57,159 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:33:57,161 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:33:57,161 - api_logger - INFO - Router cargado: 
2026-04-13 14:33:57,162 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:33:57,162 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:33:57,162 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:33:59,008 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:33:59,043 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:33:59,046 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:33:59,047 - api_logger - INFO - Router cargado: /export
2026-04-13 14:33:59,051 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:33:59,051 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:33:59,059 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:33:59,060 - api_logger - INFO - Router cargado: /users
2026-04-13 14:33:59,062 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:33:59,063 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:33:59,064 - api_logger - INFO - Router cargado: 
2026-04-13 14:33:59,064 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:33:59,065 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:33:59,065 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:33:59,088 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:33:59,118 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:33:59,121 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:33:59,122 - api_logger - INFO - Router cargado: /export
2026-04-13 14:33:59,125 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:33:59,125 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:33:59,132 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:33:59,134 - api_logger - INFO - Router cargado: /users
2026-04-13 14:33:59,135 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:33:59,136 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:33:59,137 - api_logger - INFO - Router cargado: 
2026-04-13 14:33:59,138 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:33:59,138 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:33:59,138 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:34:00,080 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:34:00,112 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:34:00,114 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:34:00,115 - api_logger - INFO - Router cargado: /export
2026-04-13 14:34:00,119 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:34:00,119 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:34:00,127 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:34:00,129 - api_logger - INFO - Router cargado: /users
2026-04-13 14:34:00,130 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:34:00,131 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:34:00,132 - api_logger - INFO - Router cargado: 
2026-04-13 14:34:00,133 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:34:00,133 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:34:00,133 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:34:00,156 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:34:00,183 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:34:00,186 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:34:00,187 - api_logger - INFO - Router cargado: /export
2026-04-13 14:34:00,190 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:34:00,190 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:34:00,197 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:34:00,199 - api_logger - INFO - Router cargado: /users
2026-04-13 14:34:00,200 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:34:00,201 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:34:00,202 - api_logger - INFO - Router cargado: 
2026-04-13 14:34:00,202 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:34:00,202 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:34:00,203 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:34:17,160 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:34:17,194 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:34:17,196 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:34:17,197 - api_logger - INFO - Router cargado: /export
2026-04-13 14:34:17,201 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:34:17,201 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:34:17,209 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:34:17,211 - api_logger - INFO - Router cargado: /users
2026-04-13 14:34:17,212 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:34:17,213 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:34:17,214 - api_logger - INFO - Router cargado: 
2026-04-13 14:34:17,215 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:34:17,215 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:34:17,216 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:34:17,240 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:34:17,271 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:34:17,273 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:34:17,274 - api_logger - INFO - Router cargado: /export
2026-04-13 14:34:17,277 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:34:17,277 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:34:17,284 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:34:17,286 - api_logger - INFO - Router cargado: /users
2026-04-13 14:34:17,287 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:34:17,288 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:34:17,289 - api_logger - INFO - Router cargado: 
2026-04-13 14:34:17,289 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:34:17,289 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:34:17,290 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:34:18,202 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:34:18,235 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:34:18,237 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:34:18,238 - api_logger - INFO - Router cargado: /export
2026-04-13 14:34:18,242 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:34:18,242 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:34:18,250 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:34:18,252 - api_logger - INFO - Router cargado: /users
2026-04-13 14:34:18,253 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:34:18,255 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:34:18,256 - api_logger - INFO - Router cargado: 
2026-04-13 14:34:18,256 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:34:18,256 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:34:18,257 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:34:18,279 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:34:18,307 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:34:18,310 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:34:18,311 - api_logger - INFO - Router cargado: /export
2026-04-13 14:34:18,314 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:34:18,314 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:34:18,321 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:34:18,323 - api_logger - INFO - Router cargado: /users
2026-04-13 14:34:18,324 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:34:18,325 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:34:18,326 - api_logger - INFO - Router cargado: 
2026-04-13 14:34:18,327 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:34:18,327 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:34:18,327 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:34:22,084 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:34:22,118 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:34:22,121 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:34:22,122 - api_logger - INFO - Router cargado: /export
2026-04-13 14:34:22,126 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:34:22,126 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:34:22,134 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:34:22,136 - api_logger - INFO - Router cargado: /users
2026-04-13 14:34:22,137 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:34:22,139 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:34:22,140 - api_logger - INFO - Router cargado: 
2026-04-13 14:34:22,140 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:34:22,140 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:34:22,141 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:34:22,166 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:34:22,197 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:34:22,199 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:34:22,200 - api_logger - INFO - Router cargado: /export
2026-04-13 14:34:22,203 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:34:22,203 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:34:22,211 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:34:22,212 - api_logger - INFO - Router cargado: /users
2026-04-13 14:34:22,214 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:34:22,215 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:34:22,216 - api_logger - INFO - Router cargado: 
2026-04-13 14:34:22,216 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:34:22,216 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:34:22,217 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:34:25,408 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:34:25,442 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:34:25,445 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:34:25,446 - api_logger - INFO - Router cargado: /export
2026-04-13 14:34:25,450 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:34:25,450 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:34:25,459 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:34:25,460 - api_logger - INFO - Router cargado: /users
2026-04-13 14:34:25,462 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:34:25,463 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:34:25,464 - api_logger - INFO - Router cargado: 
2026-04-13 14:34:25,465 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:34:25,465 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:34:25,466 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:34:25,491 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:34:25,521 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:34:25,523 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:34:25,524 - api_logger - INFO - Router cargado: /export
2026-04-13 14:34:25,527 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:34:25,528 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:34:25,535 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:34:25,536 - api_logger - INFO - Router cargado: /users
2026-04-13 14:34:25,538 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:34:25,539 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:34:25,540 - api_logger - INFO - Router cargado: 
2026-04-13 14:34:25,540 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:34:25,540 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:34:25,541 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:34:29,589 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:34:29,623 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:34:29,625 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:34:29,626 - api_logger - INFO - Router cargado: /export
2026-04-13 14:34:29,630 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:34:29,630 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:34:29,638 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:34:29,640 - api_logger - INFO - Router cargado: /users
2026-04-13 14:34:29,641 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:34:29,642 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:34:29,643 - api_logger - INFO - Router cargado: 
2026-04-13 14:34:29,643 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:34:29,643 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:34:29,644 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:34:29,666 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:34:29,694 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:34:29,696 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:34:29,697 - api_logger - INFO - Router cargado: /export
2026-04-13 14:34:29,700 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:34:29,700 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:34:29,708 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:34:29,709 - api_logger - INFO - Router cargado: /users
2026-04-13 14:34:29,711 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:34:29,712 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:34:29,713 - api_logger - INFO - Router cargado: 
2026-04-13 14:34:29,713 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:34:29,713 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:34:29,713 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:34:32,446 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:34:32,481 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:34:32,484 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:34:32,485 - api_logger - INFO - Router cargado: /export
2026-04-13 14:34:32,489 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:34:32,489 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:34:32,497 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:34:32,499 - api_logger - INFO - Router cargado: /users
2026-04-13 14:34:32,500 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:34:32,501 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:34:32,502 - api_logger - INFO - Router cargado: 
2026-04-13 14:34:32,502 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:34:32,503 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:34:32,503 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:34:32,525 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:34:32,554 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:34:32,556 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:34:32,557 - api_logger - INFO - Router cargado: /export
2026-04-13 14:34:32,560 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:34:32,561 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:34:32,568 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:34:32,570 - api_logger - INFO - Router cargado: /users
2026-04-13 14:34:32,571 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:34:32,572 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:34:32,573 - api_logger - INFO - Router cargado: 
2026-04-13 14:34:32,573 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:34:32,573 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:34:32,574 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:34:36,227 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:34:36,260 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:34:36,263 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:34:36,264 - api_logger - INFO - Router cargado: /export
2026-04-13 14:34:36,268 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:34:36,268 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:34:36,276 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:34:36,277 - api_logger - INFO - Router cargado: /users
2026-04-13 14:34:36,279 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:34:36,280 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:34:36,281 - api_logger - INFO - Router cargado: 
2026-04-13 14:34:36,281 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:34:36,281 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:34:36,282 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:34:36,305 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:34:36,334 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:34:36,336 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:34:36,337 - api_logger - INFO - Router cargado: /export
2026-04-13 14:34:36,341 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:34:36,341 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:34:36,349 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:34:36,350 - api_logger - INFO - Router cargado: /users
2026-04-13 14:34:36,352 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:34:36,353 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:34:36,354 - api_logger - INFO - Router cargado: 
2026-04-13 14:34:36,354 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:34:36,354 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:34:36,355 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:34:37,801 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:34:37,835 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:34:37,838 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:34:37,839 - api_logger - INFO - Router cargado: /export
2026-04-13 14:34:37,842 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:34:37,842 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:34:37,850 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:34:37,852 - api_logger - INFO - Router cargado: /users
2026-04-13 14:34:37,854 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:34:37,855 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:34:37,856 - api_logger - INFO - Router cargado: 
2026-04-13 14:34:37,856 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:34:37,856 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:34:37,857 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:34:37,879 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:34:37,907 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:34:37,909 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:34:37,910 - api_logger - INFO - Router cargado: /export
2026-04-13 14:34:37,914 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:34:37,914 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:34:37,921 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:34:37,922 - api_logger - INFO - Router cargado: /users
2026-04-13 14:34:37,924 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:34:37,925 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:34:37,926 - api_logger - INFO - Router cargado: 
2026-04-13 14:34:37,926 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:34:37,926 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:34:37,927 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:34:46,091 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:34:46,130 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:34:46,133 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:34:46,134 - api_logger - INFO - Router cargado: /export
2026-04-13 14:34:46,138 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:34:46,138 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:34:46,146 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:34:46,148 - api_logger - INFO - Router cargado: /users
2026-04-13 14:34:46,149 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:34:46,151 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:34:46,152 - api_logger - INFO - Router cargado: 
2026-04-13 14:34:46,152 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:34:46,152 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:34:46,153 - api_logger - INFO - Router cargado: /payment
2026-04-13 14:34:46,176 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 14:34:46,204 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 14:34:46,207 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 14:34:46,208 - api_logger - INFO - Router cargado: /export
2026-04-13 14:34:46,211 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 14:34:46,211 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 14:34:46,219 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 14:34:46,221 - api_logger - INFO - Router cargado: /users
2026-04-13 14:34:46,222 - api_logger - INFO - Router cargado: /webservices
2026-04-13 14:34:46,223 - api_logger - INFO - Router cargado: /auth
2026-04-13 14:34:46,224 - api_logger - INFO - Router cargado: 
2026-04-13 14:34:46,224 - api_logger - INFO - Router cargado: /licenses
2026-04-13 14:34:46,225 - api_logger - INFO - Router cargado: /plans
2026-04-13 14:34:46,225 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:28:16,477 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:28:16,509 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:28:16,512 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:28:16,513 - api_logger - INFO - Router cargado: /export
2026-04-13 15:28:16,516 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:28:16,517 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:28:16,524 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:28:16,526 - api_logger - INFO - Router cargado: /users
2026-04-13 15:28:16,527 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:28:16,529 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:28:16,530 - api_logger - INFO - Router cargado: 
2026-04-13 15:28:16,530 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:28:16,530 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:28:16,531 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:28:16,553 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:28:16,581 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:28:16,583 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:28:16,584 - api_logger - INFO - Router cargado: /export
2026-04-13 15:28:16,588 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:28:16,588 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:28:16,595 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:28:16,596 - api_logger - INFO - Router cargado: /users
2026-04-13 15:28:16,598 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:28:16,599 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:28:16,600 - api_logger - INFO - Router cargado: 
2026-04-13 15:28:16,600 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:28:16,600 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:28:16,601 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:28:41,686 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:28:41,724 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:28:41,727 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:28:41,728 - api_logger - INFO - Router cargado: /export
2026-04-13 15:28:41,731 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:28:41,732 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:28:41,739 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:28:41,741 - api_logger - INFO - Router cargado: /users
2026-04-13 15:28:41,742 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:28:41,744 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:28:41,745 - api_logger - INFO - Router cargado: 
2026-04-13 15:28:41,745 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:28:41,745 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:28:41,746 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:28:41,769 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:28:41,797 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:28:41,799 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:28:41,800 - api_logger - INFO - Router cargado: /export
2026-04-13 15:28:41,803 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:28:41,804 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:28:41,811 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:28:41,812 - api_logger - INFO - Router cargado: /users
2026-04-13 15:28:41,813 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:28:41,815 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:28:41,815 - api_logger - INFO - Router cargado: 
2026-04-13 15:28:41,815 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:28:41,816 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:28:41,816 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:30:53,772 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:30:53,807 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:30:53,810 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:30:53,811 - api_logger - INFO - Router cargado: /export
2026-04-13 15:30:53,815 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:30:53,815 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:30:53,823 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:30:53,824 - api_logger - INFO - Router cargado: /users
2026-04-13 15:30:53,826 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:30:53,827 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:30:53,828 - api_logger - INFO - Router cargado: 
2026-04-13 15:30:53,828 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:30:53,829 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:30:53,829 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:30:53,852 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:30:53,881 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:30:53,884 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:30:53,885 - api_logger - INFO - Router cargado: /export
2026-04-13 15:30:53,889 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:30:53,889 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:30:53,897 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:30:53,899 - api_logger - INFO - Router cargado: /users
2026-04-13 15:30:53,901 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:30:53,902 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:30:53,903 - api_logger - INFO - Router cargado: 
2026-04-13 15:30:53,903 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:30:53,903 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:30:53,904 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:31:01,463 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:31:01,499 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:31:01,502 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:31:01,503 - api_logger - INFO - Router cargado: /export
2026-04-13 15:31:01,507 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:31:01,507 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:31:01,516 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:31:01,517 - api_logger - INFO - Router cargado: /users
2026-04-13 15:31:01,519 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:31:01,521 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:31:01,522 - api_logger - INFO - Router cargado: 
2026-04-13 15:31:01,522 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:31:01,522 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:31:01,523 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:31:01,546 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:31:01,577 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:31:01,580 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:31:01,581 - api_logger - INFO - Router cargado: /export
2026-04-13 15:31:01,584 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:31:01,585 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:31:01,592 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:31:01,594 - api_logger - INFO - Router cargado: /users
2026-04-13 15:31:01,595 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:31:01,597 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:31:01,598 - api_logger - INFO - Router cargado: 
2026-04-13 15:31:01,598 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:31:01,598 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:31:01,598 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:31:14,945 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:31:14,977 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:31:14,979 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:31:14,980 - api_logger - INFO - Router cargado: /export
2026-04-13 15:31:14,984 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:31:14,984 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:31:14,992 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:31:14,993 - api_logger - INFO - Router cargado: /users
2026-04-13 15:31:14,995 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:31:14,996 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:31:14,997 - api_logger - INFO - Router cargado: 
2026-04-13 15:31:14,997 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:31:14,997 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:31:14,998 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:31:15,021 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:31:15,048 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:31:15,050 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:31:15,051 - api_logger - INFO - Router cargado: /export
2026-04-13 15:31:15,054 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:31:15,055 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:31:15,062 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:31:15,063 - api_logger - INFO - Router cargado: /users
2026-04-13 15:31:15,064 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:31:15,066 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:31:15,066 - api_logger - INFO - Router cargado: 
2026-04-13 15:31:15,067 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:31:15,067 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:31:15,067 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:31:20,714 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:31:20,749 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:31:20,751 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:31:20,752 - api_logger - INFO - Router cargado: /export
2026-04-13 15:31:20,756 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:31:20,756 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:31:20,764 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:31:20,766 - api_logger - INFO - Router cargado: /users
2026-04-13 15:31:20,767 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:31:20,769 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:31:20,770 - api_logger - INFO - Router cargado: 
2026-04-13 15:31:20,771 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:31:20,771 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:31:20,771 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:31:20,794 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:31:20,822 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:31:20,824 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:31:20,825 - api_logger - INFO - Router cargado: /export
2026-04-13 15:31:20,829 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:31:20,829 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:31:20,836 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:31:20,837 - api_logger - INFO - Router cargado: /users
2026-04-13 15:31:20,839 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:31:20,840 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:31:20,841 - api_logger - INFO - Router cargado: 
2026-04-13 15:31:20,841 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:31:20,841 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:31:20,842 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:40:31,246 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:40:31,282 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:40:31,284 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:40:31,285 - api_logger - INFO - Router cargado: /export
2026-04-13 15:40:31,289 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:40:31,289 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:40:31,297 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:40:31,299 - api_logger - INFO - Router cargado: /users
2026-04-13 15:40:31,300 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:40:31,302 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:40:31,303 - api_logger - INFO - Router cargado: 
2026-04-13 15:40:31,303 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:40:31,303 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:40:31,304 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:40:31,326 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:40:31,356 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:40:31,358 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:40:31,359 - api_logger - INFO - Router cargado: /export
2026-04-13 15:40:31,362 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:40:31,362 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:40:31,370 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:40:31,371 - api_logger - INFO - Router cargado: /users
2026-04-13 15:40:31,373 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:40:31,374 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:40:31,375 - api_logger - INFO - Router cargado: 
2026-04-13 15:40:31,375 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:40:31,375 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:40:31,375 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:43:56,587 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:43:56,624 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:43:56,627 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:43:56,628 - api_logger - INFO - Router cargado: /export
2026-04-13 15:43:56,632 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:43:56,632 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:43:56,641 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:43:56,643 - api_logger - INFO - Router cargado: /users
2026-04-13 15:43:56,645 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:43:56,646 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:43:56,647 - api_logger - INFO - Router cargado: 
2026-04-13 15:43:56,648 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:43:56,648 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:43:56,649 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:43:56,671 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:43:56,701 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:43:56,703 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:43:56,704 - api_logger - INFO - Router cargado: /export
2026-04-13 15:43:56,707 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:43:56,707 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:43:56,715 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:43:56,716 - api_logger - INFO - Router cargado: /users
2026-04-13 15:43:56,718 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:43:56,719 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:43:56,720 - api_logger - INFO - Router cargado: 
2026-04-13 15:43:56,720 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:43:56,720 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:43:56,721 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:44:11,594 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:44:11,627 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:44:11,629 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:44:11,630 - api_logger - INFO - Router cargado: /export
2026-04-13 15:44:11,634 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:44:11,634 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:44:11,642 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:44:11,643 - api_logger - INFO - Router cargado: /users
2026-04-13 15:44:11,645 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:44:11,646 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:44:11,647 - api_logger - INFO - Router cargado: 
2026-04-13 15:44:11,647 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:44:11,647 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:44:11,648 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:44:11,669 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:44:11,696 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:44:11,699 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:44:11,699 - api_logger - INFO - Router cargado: /export
2026-04-13 15:44:11,703 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:44:11,703 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:44:11,710 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:44:11,711 - api_logger - INFO - Router cargado: /users
2026-04-13 15:44:11,713 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:44:11,714 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:44:11,715 - api_logger - INFO - Router cargado: 
2026-04-13 15:44:11,715 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:44:11,715 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:44:11,716 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:44:22,992 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:44:23,026 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:44:23,029 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:44:23,030 - api_logger - INFO - Router cargado: /export
2026-04-13 15:44:23,034 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:44:23,034 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:44:23,042 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:44:23,044 - api_logger - INFO - Router cargado: /users
2026-04-13 15:44:23,046 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:44:23,047 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:44:23,048 - api_logger - INFO - Router cargado: 
2026-04-13 15:44:23,048 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:44:23,048 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:44:23,049 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:44:23,072 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:44:23,100 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:44:23,103 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:44:23,104 - api_logger - INFO - Router cargado: /export
2026-04-13 15:44:23,107 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:44:23,107 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:44:23,115 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:44:23,116 - api_logger - INFO - Router cargado: /users
2026-04-13 15:44:23,118 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:44:23,119 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:44:23,120 - api_logger - INFO - Router cargado: 
2026-04-13 15:44:23,120 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:44:23,120 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:44:23,121 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:44:31,271 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:44:31,304 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:44:31,307 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:44:31,308 - api_logger - INFO - Router cargado: /export
2026-04-13 15:44:31,311 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:44:31,311 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:44:31,320 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:44:31,321 - api_logger - INFO - Router cargado: /users
2026-04-13 15:44:31,323 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:44:31,324 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:44:31,325 - api_logger - INFO - Router cargado: 
2026-04-13 15:44:31,325 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:44:31,325 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:44:31,326 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:44:31,349 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:44:31,377 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:44:31,379 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:44:31,380 - api_logger - INFO - Router cargado: /export
2026-04-13 15:44:31,383 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:44:31,384 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:44:31,391 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:44:31,393 - api_logger - INFO - Router cargado: /users
2026-04-13 15:44:31,394 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:44:31,395 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:44:31,396 - api_logger - INFO - Router cargado: 
2026-04-13 15:44:31,396 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:44:31,396 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:44:31,397 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:44:36,045 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:44:36,084 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:44:36,086 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:44:36,087 - api_logger - INFO - Router cargado: /export
2026-04-13 15:44:36,092 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:44:36,093 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:44:36,101 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:44:36,103 - api_logger - INFO - Router cargado: /users
2026-04-13 15:44:36,105 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:44:36,106 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:44:36,107 - api_logger - INFO - Router cargado: 
2026-04-13 15:44:36,107 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:44:36,108 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:44:36,108 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:44:36,134 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:44:36,165 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:44:36,168 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:44:36,169 - api_logger - INFO - Router cargado: /export
2026-04-13 15:44:36,173 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:44:36,173 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:44:36,182 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:44:36,184 - api_logger - INFO - Router cargado: /users
2026-04-13 15:44:36,185 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:44:36,187 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:44:36,188 - api_logger - INFO - Router cargado: 
2026-04-13 15:44:36,188 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:44:36,188 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:44:36,189 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:44:51,830 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:44:51,865 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:44:51,868 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:44:51,869 - api_logger - INFO - Router cargado: /export
2026-04-13 15:44:51,872 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:44:51,872 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:44:51,880 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:44:51,882 - api_logger - INFO - Router cargado: /users
2026-04-13 15:44:51,883 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:44:51,885 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:44:51,886 - api_logger - INFO - Router cargado: 
2026-04-13 15:44:51,886 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:44:51,886 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:44:51,887 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:44:51,909 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:44:51,937 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:44:51,940 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:44:51,941 - api_logger - INFO - Router cargado: /export
2026-04-13 15:44:51,944 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:44:51,944 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:44:51,951 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:44:51,953 - api_logger - INFO - Router cargado: /users
2026-04-13 15:44:51,954 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:44:51,956 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:44:51,957 - api_logger - INFO - Router cargado: 
2026-04-13 15:44:51,957 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:44:51,957 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:44:51,957 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:44:57,031 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:44:57,066 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:44:57,069 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:44:57,070 - api_logger - INFO - Router cargado: /export
2026-04-13 15:44:57,075 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:44:57,075 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:44:57,084 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:44:57,086 - api_logger - INFO - Router cargado: /users
2026-04-13 15:44:57,087 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:44:57,089 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:44:57,090 - api_logger - INFO - Router cargado: 
2026-04-13 15:44:57,090 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:44:57,090 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:44:57,091 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:44:57,114 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:44:57,145 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:44:57,148 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:44:57,148 - api_logger - INFO - Router cargado: /export
2026-04-13 15:44:57,152 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:44:57,153 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:44:57,160 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:44:57,161 - api_logger - INFO - Router cargado: /users
2026-04-13 15:44:57,163 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:44:57,164 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:44:57,165 - api_logger - INFO - Router cargado: 
2026-04-13 15:44:57,165 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:44:57,165 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:44:57,166 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:45:06,129 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:45:06,163 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:45:06,166 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:45:06,167 - api_logger - INFO - Router cargado: /export
2026-04-13 15:45:06,171 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:45:06,171 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:45:06,179 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:45:06,181 - api_logger - INFO - Router cargado: /users
2026-04-13 15:45:06,183 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:45:06,184 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:45:06,185 - api_logger - INFO - Router cargado: 
2026-04-13 15:45:06,185 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:45:06,185 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:45:06,186 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:45:06,209 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:45:06,238 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:45:06,241 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:45:06,242 - api_logger - INFO - Router cargado: /export
2026-04-13 15:45:06,245 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:45:06,246 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:45:06,254 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:45:06,255 - api_logger - INFO - Router cargado: /users
2026-04-13 15:45:06,256 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:45:06,257 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:45:06,258 - api_logger - INFO - Router cargado: 
2026-04-13 15:45:06,258 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:45:06,259 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:45:06,259 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:45:12,095 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:45:12,129 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:45:12,132 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:45:12,133 - api_logger - INFO - Router cargado: /export
2026-04-13 15:45:12,136 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:45:12,137 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:45:12,144 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:45:12,146 - api_logger - INFO - Router cargado: /users
2026-04-13 15:45:12,147 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:45:12,149 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:45:12,150 - api_logger - INFO - Router cargado: 
2026-04-13 15:45:12,150 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:45:12,150 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:45:12,151 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:45:12,172 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:45:12,200 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:45:12,202 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:45:12,203 - api_logger - INFO - Router cargado: /export
2026-04-13 15:45:12,206 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:45:12,206 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:45:12,214 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:45:12,215 - api_logger - INFO - Router cargado: /users
2026-04-13 15:45:12,216 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:45:12,218 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:45:12,218 - api_logger - INFO - Router cargado: 
2026-04-13 15:45:12,219 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:45:12,219 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:45:12,219 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:45:23,454 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:45:23,488 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:45:23,491 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:45:23,492 - api_logger - INFO - Router cargado: /export
2026-04-13 15:45:23,495 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:45:23,495 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:45:23,503 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:45:23,505 - api_logger - INFO - Router cargado: /users
2026-04-13 15:45:23,506 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:45:23,508 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:45:23,509 - api_logger - INFO - Router cargado: 
2026-04-13 15:45:23,509 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:45:23,509 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:45:23,510 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:45:23,536 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:45:23,567 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:45:23,571 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:45:23,572 - api_logger - INFO - Router cargado: /export
2026-04-13 15:45:23,576 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:45:23,576 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:45:23,585 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:45:23,587 - api_logger - INFO - Router cargado: /users
2026-04-13 15:45:23,589 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:45:23,590 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:45:23,592 - api_logger - INFO - Router cargado: 
2026-04-13 15:45:23,592 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:45:23,592 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:45:23,593 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:49:06,910 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:49:06,946 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:49:06,949 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:49:06,950 - api_logger - INFO - Router cargado: /export
2026-04-13 15:49:06,953 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:49:06,954 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:49:06,961 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:49:06,963 - api_logger - INFO - Router cargado: /users
2026-04-13 15:49:06,964 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:49:06,966 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:49:06,967 - api_logger - INFO - Router cargado: 
2026-04-13 15:49:06,967 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:49:06,967 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:49:06,968 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:49:06,996 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:49:07,026 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:49:07,028 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:49:07,029 - api_logger - INFO - Router cargado: /export
2026-04-13 15:49:07,033 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:49:07,033 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:49:07,041 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:49:07,042 - api_logger - INFO - Router cargado: /users
2026-04-13 15:49:07,044 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:49:07,045 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:49:07,046 - api_logger - INFO - Router cargado: 
2026-04-13 15:49:07,046 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:49:07,046 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:49:07,047 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:50:02,080 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:50:02,113 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:50:02,116 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:50:02,117 - api_logger - INFO - Router cargado: /export
2026-04-13 15:50:02,120 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:50:02,120 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:50:02,128 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:50:02,130 - api_logger - INFO - Router cargado: /users
2026-04-13 15:50:02,131 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:50:02,133 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:50:02,134 - api_logger - INFO - Router cargado: 
2026-04-13 15:50:02,134 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:50:02,134 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:50:02,135 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:50:02,160 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:50:02,188 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:50:02,190 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:50:02,191 - api_logger - INFO - Router cargado: /export
2026-04-13 15:50:02,195 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:50:02,195 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:50:02,202 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:50:02,203 - api_logger - INFO - Router cargado: /users
2026-04-13 15:50:02,205 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:50:02,206 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:50:02,207 - api_logger - INFO - Router cargado: 
2026-04-13 15:50:02,207 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:50:02,207 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:50:02,208 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:50:12,570 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:50:12,604 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:50:12,607 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:50:12,608 - api_logger - INFO - Router cargado: /export
2026-04-13 15:50:12,612 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:50:12,612 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:50:12,620 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:50:12,622 - api_logger - INFO - Router cargado: /users
2026-04-13 15:50:12,623 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:50:12,625 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:50:12,626 - api_logger - INFO - Router cargado: 
2026-04-13 15:50:12,626 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:50:12,626 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:50:12,627 - api_logger - INFO - Router cargado: /payment
2026-04-13 15:50:12,651 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 15:50:12,680 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 15:50:12,683 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 15:50:12,684 - api_logger - INFO - Router cargado: /export
2026-04-13 15:50:12,688 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 15:50:12,688 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 15:50:12,696 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 15:50:12,697 - api_logger - INFO - Router cargado: /users
2026-04-13 15:50:12,699 - api_logger - INFO - Router cargado: /webservices
2026-04-13 15:50:12,700 - api_logger - INFO - Router cargado: /auth
2026-04-13 15:50:12,701 - api_logger - INFO - Router cargado: 
2026-04-13 15:50:12,701 - api_logger - INFO - Router cargado: /licenses
2026-04-13 15:50:12,701 - api_logger - INFO - Router cargado: /plans
2026-04-13 15:50:12,702 - api_logger - INFO - Router cargado: /payment
2026-04-13 16:14:23,805 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 16:14:23,840 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 16:14:23,842 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 16:14:23,844 - api_logger - INFO - Router cargado: /export
2026-04-13 16:14:23,848 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 16:14:23,848 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 16:14:23,855 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 16:14:23,857 - api_logger - INFO - Router cargado: /users
2026-04-13 16:14:23,859 - api_logger - INFO - Router cargado: /webservices
2026-04-13 16:14:23,860 - api_logger - INFO - Router cargado: /auth
2026-04-13 16:14:23,861 - api_logger - INFO - Router cargado: 
2026-04-13 16:14:23,862 - api_logger - INFO - Router cargado: /licenses
2026-04-13 16:14:23,862 - api_logger - INFO - Router cargado: /plans
2026-04-13 16:14:23,862 - api_logger - INFO - Router cargado: /payment
2026-04-13 16:14:23,886 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 16:14:23,915 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 16:14:23,917 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 16:14:23,918 - api_logger - INFO - Router cargado: /export
2026-04-13 16:14:23,922 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 16:14:23,922 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 16:14:23,930 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 16:14:23,931 - api_logger - INFO - Router cargado: /users
2026-04-13 16:14:23,932 - api_logger - INFO - Router cargado: /webservices
2026-04-13 16:14:23,934 - api_logger - INFO - Router cargado: /auth
2026-04-13 16:14:23,935 - api_logger - INFO - Router cargado: 
2026-04-13 16:14:23,935 - api_logger - INFO - Router cargado: /licenses
2026-04-13 16:14:23,935 - api_logger - INFO - Router cargado: /plans
2026-04-13 16:14:23,936 - api_logger - INFO - Router cargado: /payment
2026-04-13 16:16:59,413 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 16:16:59,445 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 16:16:59,448 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 16:16:59,449 - api_logger - INFO - Router cargado: /export
2026-04-13 16:16:59,452 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 16:16:59,452 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 16:16:59,460 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 16:16:59,461 - api_logger - INFO - Router cargado: /users
2026-04-13 16:16:59,463 - api_logger - INFO - Router cargado: /webservices
2026-04-13 16:16:59,464 - api_logger - INFO - Router cargado: /auth
2026-04-13 16:16:59,465 - api_logger - INFO - Router cargado: 
2026-04-13 16:16:59,465 - api_logger - INFO - Router cargado: /licenses
2026-04-13 16:16:59,465 - api_logger - INFO - Router cargado: /plans
2026-04-13 16:16:59,466 - api_logger - INFO - Router cargado: /payment
2026-04-13 16:16:59,541 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/login: Usuario no encontrado.
2026-04-13 16:16:59,543 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 4.
2026-04-13 16:16:59,544 - api_logger - DEBUG - [LockedError] http://testserver/v1/auth/login: Cuenta bloqueada.
2026-04-13 16:16:59,546 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/auth/login: Tu cuenta aún no ha sido verificada.
2026-04-13 16:16:59,547 - api_logger - DEBUG - [UnavailableForLegalReasonsError] http://testserver/v1/auth/login: Tu cuenta ha sido suspendida.
2026-04-13 16:16:59,550 - api_logger - DEBUG - [ConflictError] http://testserver/v1/auth/register: El correo electrónico nuevo@example.com ya está registrado.
2026-04-13 16:16:59,553 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/recovery/passwd: Cuenta no registrada.
2026-04-13 16:16:59,556 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/reset/passwd: El token para permitir el cambio de contraseña ha expirado.
2026-04-13 16:16:59,558 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/resend-verification?tkn=bad-token: Token no válido
2026-04-13 16:16:59,560 - api_logger - DEBUG - [TooManyRequestsError] http://testserver/v1/auth/resend-verification?tkn=any-token: Has superado el límite de intentos.
2026-04-13 16:16:59,565 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getall: Sin cuentas registradas.
2026-04-13 16:16:59,568 - api_logger - DEBUG - [ConflictError] http://testserver/v1/bankaccount/create: La cuenta ya existe.
2026-04-13 16:16:59,571 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getbyid/999: Cuenta no encontrada.
2026-04-13 16:16:59,574 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/update/999: Cuenta no encontrada.
2026-04-13 16:16:59,576 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/delete/999: Cuenta no encontrada.
2026-04-13 16:16:59,579 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?current_page=0: current_page debe ser un valor positivo.
2026-04-13 16:16:59,581 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?page_size=200: page_size debe estar entre 1 y 100.
2026-04-13 16:16:59,593 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/create: El RFC ya está registrado.
2026-04-13 16:16:59,595 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/fiscalcustomer/create: No autorizado.
2026-04-13 16:16:59,599 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/update/999: RFC no encontrado.
2026-04-13 16:16:59,605 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/list/byid/999: RFC no encontrado.
2026-04-13 16:16:59,610 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/setselected/999: RFC no encontrado.
2026-04-13 16:16:59,613 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/getselected: Sin RFC seleccionado.
2026-04-13 16:16:59,616 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/licenses/info: Licencia no encontrada.
2026-04-13 16:16:59,618 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/licenses/info: Licencia suspendida.
2026-04-13 16:16:59,621 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/menu_options/get: Rol no encontrado.
2026-04-13 16:16:59,626 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/getall: Sin movimientos.
2026-04-13 16:16:59,629 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/get_selected_rfc: Sin RFC seleccionado.
2026-04-13 16:16:59,632 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/delete/999: Movimiento no encontrado.
2026-04-13 16:16:59,636 - api_logger - DEBUG - [DomainError] http://testserver/v1/movements_banks/upload/bbva: Formato de archivo inválido.
2026-04-13 16:16:59,640 - api_logger - DEBUG - [ConflictError] http://testserver/v1/payment/stripe/checkout: Suscripción activa.
2026-04-13 16:16:59,645 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/getsubscription: Sin suscripción activa.
2026-04-13 16:16:59,647 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/cancelsubscription/sub_INVALID: Suscripción no encontrada.
2026-04-13 16:16:59,653 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile: Usuario no encontrado.
2026-04-13 16:16:59,657 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile/update: Usuario no encontrado.
2026-04-13 16:16:59,660 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/users/subusers: No tienes permisos.
2026-04-13 16:16:59,663 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/detail?id=999: Subusuario no encontrado.
2026-04-13 16:16:59,668 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/delete?id_subuser=999: Subusuario no encontrado.
2026-04-13 16:16:59,672 - api_logger - DEBUG - [ConflictError] http://testserver/v1/users/subuser/create: El correo ya está registrado.
2026-04-13 16:19:29,117 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 16:19:29,149 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 16:19:29,152 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 16:19:29,153 - api_logger - INFO - Router cargado: /export
2026-04-13 16:19:29,157 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 16:19:29,157 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 16:19:29,164 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 16:19:29,166 - api_logger - INFO - Router cargado: /users
2026-04-13 16:19:29,167 - api_logger - INFO - Router cargado: /webservices
2026-04-13 16:19:29,169 - api_logger - INFO - Router cargado: /auth
2026-04-13 16:19:29,170 - api_logger - INFO - Router cargado: 
2026-04-13 16:19:29,170 - api_logger - INFO - Router cargado: /licenses
2026-04-13 16:19:29,170 - api_logger - INFO - Router cargado: /plans
2026-04-13 16:19:29,171 - api_logger - INFO - Router cargado: /payment
2026-04-13 16:19:29,212 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/login: Usuario no encontrado.
2026-04-13 16:19:29,214 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 4.
2026-04-13 16:19:29,215 - api_logger - DEBUG - [LockedError] http://testserver/v1/auth/login: Cuenta bloqueada.
2026-04-13 16:19:29,217 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/auth/login: Tu cuenta aún no ha sido verificada.
2026-04-13 16:19:29,218 - api_logger - DEBUG - [UnavailableForLegalReasonsError] http://testserver/v1/auth/login: Tu cuenta ha sido suspendida.
2026-04-13 16:19:29,222 - api_logger - DEBUG - [ConflictError] http://testserver/v1/auth/register: El correo electrónico nuevo@example.com ya está registrado.
2026-04-13 16:19:29,224 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/recovery/passwd: Cuenta no registrada.
2026-04-13 16:19:29,227 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/reset/passwd: El token para permitir el cambio de contraseña ha expirado.
2026-04-13 16:19:29,230 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/resend-verification?tkn=bad-token: Token no válido
2026-04-13 16:19:29,231 - api_logger - DEBUG - [TooManyRequestsError] http://testserver/v1/auth/resend-verification?tkn=any-token: Has superado el límite de intentos.
2026-04-13 16:19:29,236 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getall: Sin cuentas registradas.
2026-04-13 16:19:29,239 - api_logger - DEBUG - [ConflictError] http://testserver/v1/bankaccount/create: La cuenta ya existe.
2026-04-13 16:19:29,241 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getbyid/999: Cuenta no encontrada.
2026-04-13 16:19:29,245 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/update/999: Cuenta no encontrada.
2026-04-13 16:19:29,247 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/delete/999: Cuenta no encontrada.
2026-04-13 16:19:29,250 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?current_page=0: current_page debe ser un valor positivo.
2026-04-13 16:19:29,252 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?page_size=200: page_size debe estar entre 1 y 100.
2026-04-13 16:19:29,265 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/create: El RFC ya está registrado.
2026-04-13 16:19:29,266 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/fiscalcustomer/create: No autorizado.
2026-04-13 16:19:29,271 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/update/999: RFC no encontrado.
2026-04-13 16:19:29,276 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/list/byid/999: RFC no encontrado.
2026-04-13 16:19:29,281 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/setselected/999: RFC no encontrado.
2026-04-13 16:19:29,284 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/getselected: Sin RFC seleccionado.
2026-04-13 16:19:29,287 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/licenses/info: Licencia no encontrada.
2026-04-13 16:19:29,289 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/licenses/info: Licencia suspendida.
2026-04-13 16:19:29,292 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/menu_options/get: Rol no encontrado.
2026-04-13 16:19:29,297 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/getall: Sin movimientos.
2026-04-13 16:19:29,300 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/get_selected_rfc: Sin RFC seleccionado.
2026-04-13 16:19:29,303 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/delete/999: Movimiento no encontrado.
2026-04-13 16:19:29,308 - api_logger - DEBUG - [DomainError] http://testserver/v1/movements_banks/upload/bbva: Formato de archivo inválido.
2026-04-13 16:19:29,311 - api_logger - DEBUG - [ConflictError] http://testserver/v1/payment/stripe/checkout: Suscripción activa.
2026-04-13 16:19:29,315 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/getsubscription: Sin suscripción activa.
2026-04-13 16:19:29,318 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/cancelsubscription/sub_INVALID: Suscripción no encontrada.
2026-04-13 16:19:29,324 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile: Usuario no encontrado.
2026-04-13 16:19:29,328 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile/update: Usuario no encontrado.
2026-04-13 16:19:29,331 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/users/subusers: No tienes permisos.
2026-04-13 16:19:29,334 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/detail?id=999: Subusuario no encontrado.
2026-04-13 16:19:29,339 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/delete?id_subuser=999: Subusuario no encontrado.
2026-04-13 16:19:29,342 - api_logger - DEBUG - [ConflictError] http://testserver/v1/users/subuser/create: El correo ya está registrado.
2026-04-13 16:21:44,309 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 16:21:44,343 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 16:21:44,345 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 16:21:44,346 - api_logger - INFO - Router cargado: /export
2026-04-13 16:21:44,350 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 16:21:44,350 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 16:21:44,357 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 16:21:44,359 - api_logger - INFO - Router cargado: /users
2026-04-13 16:21:44,360 - api_logger - INFO - Router cargado: /webservices
2026-04-13 16:21:44,362 - api_logger - INFO - Router cargado: /auth
2026-04-13 16:21:44,363 - api_logger - INFO - Router cargado: 
2026-04-13 16:21:44,363 - api_logger - INFO - Router cargado: /licenses
2026-04-13 16:21:44,363 - api_logger - INFO - Router cargado: /plans
2026-04-13 16:21:44,364 - api_logger - INFO - Router cargado: /payment
2026-04-13 16:21:44,405 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/login: Usuario no encontrado.
2026-04-13 16:21:44,406 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 4.
2026-04-13 16:21:44,408 - api_logger - DEBUG - [LockedError] http://testserver/v1/auth/login: Cuenta bloqueada.
2026-04-13 16:21:44,409 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/auth/login: Tu cuenta aún no ha sido verificada.
2026-04-13 16:21:44,411 - api_logger - DEBUG - [UnavailableForLegalReasonsError] http://testserver/v1/auth/login: Tu cuenta ha sido suspendida.
2026-04-13 16:21:44,414 - api_logger - DEBUG - [ConflictError] http://testserver/v1/auth/register: El correo electrónico nuevo@example.com ya está registrado.
2026-04-13 16:21:44,417 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/recovery/passwd: Cuenta no registrada.
2026-04-13 16:21:44,420 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/reset/passwd: El token para permitir el cambio de contraseña ha expirado.
2026-04-13 16:21:44,423 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/resend-verification?tkn=bad-token: Token no válido
2026-04-13 16:21:44,425 - api_logger - DEBUG - [TooManyRequestsError] http://testserver/v1/auth/resend-verification?tkn=any-token: Has superado el límite de intentos.
2026-04-13 16:21:44,430 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getall: Sin cuentas registradas.
2026-04-13 16:21:44,433 - api_logger - DEBUG - [ConflictError] http://testserver/v1/bankaccount/create: La cuenta ya existe.
2026-04-13 16:21:44,436 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getbyid/999: Cuenta no encontrada.
2026-04-13 16:21:44,439 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/update/999: Cuenta no encontrada.
2026-04-13 16:21:44,442 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/delete/999: Cuenta no encontrada.
2026-04-13 16:21:44,445 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?current_page=0: current_page debe ser un valor positivo.
2026-04-13 16:21:44,446 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?page_size=200: page_size debe estar entre 1 y 100.
2026-04-13 16:21:44,458 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/create: El RFC ya está registrado.
2026-04-13 16:21:44,460 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/fiscalcustomer/create: No autorizado.
2026-04-13 16:21:44,465 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/update/999: RFC no encontrado.
2026-04-13 16:21:44,470 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/list/byid/999: RFC no encontrado.
2026-04-13 16:21:44,475 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/setselected/999: RFC no encontrado.
2026-04-13 16:21:44,479 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/getselected: Sin RFC seleccionado.
2026-04-13 16:21:44,482 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/licenses/info: Licencia no encontrada.
2026-04-13 16:21:44,484 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/licenses/info: Licencia suspendida.
2026-04-13 16:21:44,487 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/menu_options/get: Rol no encontrado.
2026-04-13 16:21:44,492 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/getall: Sin movimientos.
2026-04-13 16:21:44,495 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/get_selected_rfc: Sin RFC seleccionado.
2026-04-13 16:21:44,498 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/delete/999: Movimiento no encontrado.
2026-04-13 16:21:44,503 - api_logger - DEBUG - [DomainError] http://testserver/v1/movements_banks/upload/bbva: Formato de archivo inválido.
2026-04-13 16:21:44,506 - api_logger - DEBUG - [ConflictError] http://testserver/v1/payment/stripe/checkout: Suscripción activa.
2026-04-13 16:21:44,510 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/getsubscription: Sin suscripción activa.
2026-04-13 16:21:44,513 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/cancelsubscription/sub_INVALID: Suscripción no encontrada.
2026-04-13 16:21:44,519 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile: Usuario no encontrado.
2026-04-13 16:21:44,523 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile/update: Usuario no encontrado.
2026-04-13 16:21:44,526 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/users/subusers: No tienes permisos.
2026-04-13 16:21:44,529 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/detail?id=999: Subusuario no encontrado.
2026-04-13 16:21:44,534 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/delete?id_subuser=999: Subusuario no encontrado.
2026-04-13 16:21:44,538 - api_logger - DEBUG - [ConflictError] http://testserver/v1/users/subuser/create: El correo ya está registrado.
2026-04-13 16:21:59,892 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 16:21:59,924 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 16:21:59,926 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 16:21:59,927 - api_logger - INFO - Router cargado: /export
2026-04-13 16:21:59,931 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 16:21:59,931 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 16:21:59,938 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 16:21:59,940 - api_logger - INFO - Router cargado: /users
2026-04-13 16:21:59,941 - api_logger - INFO - Router cargado: /webservices
2026-04-13 16:21:59,942 - api_logger - INFO - Router cargado: /auth
2026-04-13 16:21:59,943 - api_logger - INFO - Router cargado: 
2026-04-13 16:21:59,943 - api_logger - INFO - Router cargado: /licenses
2026-04-13 16:21:59,943 - api_logger - INFO - Router cargado: /plans
2026-04-13 16:21:59,944 - api_logger - INFO - Router cargado: /payment
2026-04-13 16:21:59,974 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/login: Usuario no encontrado.
2026-04-13 16:21:59,975 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 4.
2026-04-13 16:21:59,977 - api_logger - DEBUG - [LockedError] http://testserver/v1/auth/login: Cuenta bloqueada.
2026-04-13 16:21:59,978 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/auth/login: Tu cuenta aún no ha sido verificada.
2026-04-13 16:21:59,980 - api_logger - DEBUG - [UnavailableForLegalReasonsError] http://testserver/v1/auth/login: Tu cuenta ha sido suspendida.
2026-04-13 16:21:59,983 - api_logger - DEBUG - [ConflictError] http://testserver/v1/auth/register: El correo electrónico nuevo@example.com ya está registrado.
2026-04-13 16:21:59,986 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/recovery/passwd: Cuenta no registrada.
2026-04-13 16:21:59,989 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/reset/passwd: El token para permitir el cambio de contraseña ha expirado.
2026-04-13 16:21:59,991 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/resend-verification?tkn=bad-token: Token no válido
2026-04-13 16:21:59,993 - api_logger - DEBUG - [TooManyRequestsError] http://testserver/v1/auth/resend-verification?tkn=any-token: Has superado el límite de intentos.
2026-04-13 16:22:31,951 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 16:22:31,982 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 16:22:31,985 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 16:22:31,986 - api_logger - INFO - Router cargado: /export
2026-04-13 16:22:31,989 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 16:22:31,989 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 16:22:31,997 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 16:22:31,998 - api_logger - INFO - Router cargado: /users
2026-04-13 16:22:32,000 - api_logger - INFO - Router cargado: /webservices
2026-04-13 16:22:32,001 - api_logger - INFO - Router cargado: /auth
2026-04-13 16:22:32,002 - api_logger - INFO - Router cargado: 
2026-04-13 16:22:32,002 - api_logger - INFO - Router cargado: /licenses
2026-04-13 16:22:32,002 - api_logger - INFO - Router cargado: /plans
2026-04-13 16:22:32,003 - api_logger - INFO - Router cargado: /payment
2026-04-13 16:22:32,030 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/login: Usuario no encontrado.
2026-04-13 16:24:45,242 - api_logger - DEBUG - [NotFoundError] http://localhost:8000/v1/auth/resend-verification?tkn=12f51451-9092-4ca7-a2f0-1d21efcd2ad1: Token no válido
2026-04-13 16:24:51,365 - api_logger - DEBUG - [NotFoundError] http://localhost:8000/v1/auth/resend-verification?tkn=12f51451-9092-4ca7-a2f0-1d21efcd2ad1: Token no válido
2026-04-13 16:28:28,709 - api_logger - DEBUG - [NotFoundError] http://localhost:8000/v1/auth/resend-verification?tkn=12f51451-9092-4ca7-a2f0-1d21efcd2ad1: Token no válido
2026-04-13 16:36:34,153 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 16:36:34,188 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 16:36:34,191 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 16:36:34,192 - api_logger - INFO - Router cargado: /export
2026-04-13 16:36:34,196 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 16:36:34,196 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 16:36:34,204 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 16:36:34,205 - api_logger - INFO - Router cargado: /users
2026-04-13 16:36:34,207 - api_logger - INFO - Router cargado: /webservices
2026-04-13 16:36:34,209 - api_logger - INFO - Router cargado: /auth
2026-04-13 16:36:34,209 - api_logger - INFO - Router cargado: 
2026-04-13 16:36:34,210 - api_logger - INFO - Router cargado: /licenses
2026-04-13 16:36:34,210 - api_logger - INFO - Router cargado: /plans
2026-04-13 16:36:34,211 - api_logger - INFO - Router cargado: /payment
2026-04-13 16:36:34,234 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 16:36:34,264 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 16:36:34,266 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 16:36:34,267 - api_logger - INFO - Router cargado: /export
2026-04-13 16:36:34,271 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 16:36:34,271 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 16:36:34,279 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 16:36:34,281 - api_logger - INFO - Router cargado: /users
2026-04-13 16:36:34,282 - api_logger - INFO - Router cargado: /webservices
2026-04-13 16:36:34,283 - api_logger - INFO - Router cargado: /auth
2026-04-13 16:36:34,284 - api_logger - INFO - Router cargado: 
2026-04-13 16:36:34,285 - api_logger - INFO - Router cargado: /licenses
2026-04-13 16:36:34,285 - api_logger - INFO - Router cargado: /plans
2026-04-13 16:36:34,285 - api_logger - INFO - Router cargado: /payment
2026-04-13 16:36:51,762 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 16:36:51,797 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 16:36:51,800 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 16:36:51,801 - api_logger - INFO - Router cargado: /export
2026-04-13 16:36:51,804 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 16:36:51,805 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 16:36:51,812 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 16:36:51,814 - api_logger - INFO - Router cargado: /users
2026-04-13 16:36:51,815 - api_logger - INFO - Router cargado: /webservices
2026-04-13 16:36:51,817 - api_logger - INFO - Router cargado: /auth
2026-04-13 16:36:51,818 - api_logger - INFO - Router cargado: 
2026-04-13 16:36:51,818 - api_logger - INFO - Router cargado: /licenses
2026-04-13 16:36:51,818 - api_logger - INFO - Router cargado: /plans
2026-04-13 16:36:51,819 - api_logger - INFO - Router cargado: /payment
2026-04-13 16:36:51,841 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 16:36:51,870 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 16:36:51,872 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 16:36:51,873 - api_logger - INFO - Router cargado: /export
2026-04-13 16:36:51,877 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 16:36:51,877 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 16:36:51,884 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 16:36:51,886 - api_logger - INFO - Router cargado: /users
2026-04-13 16:36:51,887 - api_logger - INFO - Router cargado: /webservices
2026-04-13 16:36:51,889 - api_logger - INFO - Router cargado: /auth
2026-04-13 16:36:51,889 - api_logger - INFO - Router cargado: 
2026-04-13 16:36:51,890 - api_logger - INFO - Router cargado: /licenses
2026-04-13 16:36:51,890 - api_logger - INFO - Router cargado: /plans
2026-04-13 16:36:51,890 - api_logger - INFO - Router cargado: /payment
2026-04-13 16:36:59,564 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 16:36:59,598 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 16:36:59,600 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 16:36:59,601 - api_logger - INFO - Router cargado: /export
2026-04-13 16:36:59,605 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 16:36:59,605 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 16:36:59,613 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 16:36:59,615 - api_logger - INFO - Router cargado: /users
2026-04-13 16:36:59,617 - api_logger - INFO - Router cargado: /webservices
2026-04-13 16:36:59,618 - api_logger - INFO - Router cargado: /auth
2026-04-13 16:36:59,619 - api_logger - INFO - Router cargado: 
2026-04-13 16:36:59,619 - api_logger - INFO - Router cargado: /licenses
2026-04-13 16:36:59,619 - api_logger - INFO - Router cargado: /plans
2026-04-13 16:36:59,620 - api_logger - INFO - Router cargado: /payment
2026-04-13 16:36:59,641 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 16:36:59,670 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 16:36:59,672 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 16:36:59,673 - api_logger - INFO - Router cargado: /export
2026-04-13 16:36:59,677 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 16:36:59,677 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 16:36:59,684 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 16:36:59,685 - api_logger - INFO - Router cargado: /users
2026-04-13 16:36:59,687 - api_logger - INFO - Router cargado: /webservices
2026-04-13 16:36:59,688 - api_logger - INFO - Router cargado: /auth
2026-04-13 16:36:59,689 - api_logger - INFO - Router cargado: 
2026-04-13 16:36:59,689 - api_logger - INFO - Router cargado: /licenses
2026-04-13 16:36:59,689 - api_logger - INFO - Router cargado: /plans
2026-04-13 16:36:59,690 - api_logger - INFO - Router cargado: /payment
2026-04-13 16:37:03,835 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 16:37:03,871 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 16:37:03,874 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 16:37:03,875 - api_logger - INFO - Router cargado: /export
2026-04-13 16:37:03,879 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 16:37:03,879 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 16:37:03,887 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 16:37:03,889 - api_logger - INFO - Router cargado: /users
2026-04-13 16:37:03,890 - api_logger - INFO - Router cargado: /webservices
2026-04-13 16:37:03,891 - api_logger - INFO - Router cargado: /auth
2026-04-13 16:37:03,892 - api_logger - INFO - Router cargado: 
2026-04-13 16:37:03,893 - api_logger - INFO - Router cargado: /licenses
2026-04-13 16:37:03,893 - api_logger - INFO - Router cargado: /plans
2026-04-13 16:37:03,893 - api_logger - INFO - Router cargado: /payment
2026-04-13 16:37:03,916 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 16:37:03,946 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 16:37:03,949 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 16:37:03,950 - api_logger - INFO - Router cargado: /export
2026-04-13 16:37:03,954 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 16:37:03,954 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 16:37:03,963 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 16:37:03,964 - api_logger - INFO - Router cargado: /users
2026-04-13 16:37:03,966 - api_logger - INFO - Router cargado: /webservices
2026-04-13 16:37:03,967 - api_logger - INFO - Router cargado: /auth
2026-04-13 16:37:03,968 - api_logger - INFO - Router cargado: 
2026-04-13 16:37:03,968 - api_logger - INFO - Router cargado: /licenses
2026-04-13 16:37:03,968 - api_logger - INFO - Router cargado: /plans
2026-04-13 16:37:03,969 - api_logger - INFO - Router cargado: /payment
2026-04-13 16:37:08,538 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 16:37:08,573 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 16:37:08,576 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 16:37:08,577 - api_logger - INFO - Router cargado: /export
2026-04-13 16:37:08,580 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 16:37:08,581 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 16:37:08,589 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 16:37:08,591 - api_logger - INFO - Router cargado: /users
2026-04-13 16:37:08,592 - api_logger - INFO - Router cargado: /webservices
2026-04-13 16:37:08,594 - api_logger - INFO - Router cargado: /auth
2026-04-13 16:37:08,595 - api_logger - INFO - Router cargado: 
2026-04-13 16:37:08,595 - api_logger - INFO - Router cargado: /licenses
2026-04-13 16:37:08,595 - api_logger - INFO - Router cargado: /plans
2026-04-13 16:37:08,596 - api_logger - INFO - Router cargado: /payment
2026-04-13 16:37:08,620 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 16:37:08,650 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 16:37:08,652 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 16:37:08,653 - api_logger - INFO - Router cargado: /export
2026-04-13 16:37:08,656 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 16:37:08,657 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 16:37:08,665 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 16:37:08,666 - api_logger - INFO - Router cargado: /users
2026-04-13 16:37:08,667 - api_logger - INFO - Router cargado: /webservices
2026-04-13 16:37:08,669 - api_logger - INFO - Router cargado: /auth
2026-04-13 16:37:08,670 - api_logger - INFO - Router cargado: 
2026-04-13 16:37:08,670 - api_logger - INFO - Router cargado: /licenses
2026-04-13 16:37:08,670 - api_logger - INFO - Router cargado: /plans
2026-04-13 16:37:08,671 - api_logger - INFO - Router cargado: /payment
2026-04-13 16:38:34,217 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 16:38:34,253 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 16:38:34,255 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 16:38:34,256 - api_logger - INFO - Router cargado: /export
2026-04-13 16:38:34,260 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 16:38:34,260 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 16:38:34,269 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 16:38:34,271 - api_logger - INFO - Router cargado: /users
2026-04-13 16:38:34,273 - api_logger - INFO - Router cargado: /webservices
2026-04-13 16:38:34,274 - api_logger - INFO - Router cargado: /auth
2026-04-13 16:38:34,275 - api_logger - INFO - Router cargado: 
2026-04-13 16:38:34,275 - api_logger - INFO - Router cargado: /licenses
2026-04-13 16:38:34,275 - api_logger - INFO - Router cargado: /plans
2026-04-13 16:38:34,276 - api_logger - INFO - Router cargado: /payment
2026-04-13 16:38:34,298 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 16:38:34,326 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 16:38:34,328 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 16:38:34,329 - api_logger - INFO - Router cargado: /export
2026-04-13 16:38:34,332 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 16:38:34,332 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 16:38:34,339 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 16:38:34,341 - api_logger - INFO - Router cargado: /users
2026-04-13 16:38:34,342 - api_logger - INFO - Router cargado: /webservices
2026-04-13 16:38:34,343 - api_logger - INFO - Router cargado: /auth
2026-04-13 16:38:34,344 - api_logger - INFO - Router cargado: 
2026-04-13 16:38:34,344 - api_logger - INFO - Router cargado: /licenses
2026-04-13 16:38:34,344 - api_logger - INFO - Router cargado: /plans
2026-04-13 16:38:34,345 - api_logger - INFO - Router cargado: /payment
2026-04-13 16:38:43,782 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 16:38:43,818 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 16:38:43,820 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 16:38:43,821 - api_logger - INFO - Router cargado: /export
2026-04-13 16:38:43,825 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 16:38:43,825 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 16:38:43,833 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 16:38:43,835 - api_logger - INFO - Router cargado: /users
2026-04-13 16:38:43,836 - api_logger - INFO - Router cargado: /webservices
2026-04-13 16:38:43,838 - api_logger - INFO - Router cargado: /auth
2026-04-13 16:38:43,839 - api_logger - INFO - Router cargado: 
2026-04-13 16:38:43,839 - api_logger - INFO - Router cargado: /licenses
2026-04-13 16:38:43,839 - api_logger - INFO - Router cargado: /plans
2026-04-13 16:38:43,840 - api_logger - INFO - Router cargado: /payment
2026-04-13 16:38:43,862 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 16:38:43,893 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 16:38:43,896 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 16:38:43,897 - api_logger - INFO - Router cargado: /export
2026-04-13 16:38:43,900 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 16:38:43,900 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 16:38:43,908 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 16:38:43,909 - api_logger - INFO - Router cargado: /users
2026-04-13 16:38:43,911 - api_logger - INFO - Router cargado: /webservices
2026-04-13 16:38:43,912 - api_logger - INFO - Router cargado: /auth
2026-04-13 16:38:43,913 - api_logger - INFO - Router cargado: 
2026-04-13 16:38:43,913 - api_logger - INFO - Router cargado: /licenses
2026-04-13 16:38:43,913 - api_logger - INFO - Router cargado: /plans
2026-04-13 16:38:43,914 - api_logger - INFO - Router cargado: /payment
2026-04-13 16:38:49,861 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 16:38:49,895 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 16:38:49,897 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 16:38:49,898 - api_logger - INFO - Router cargado: /export
2026-04-13 16:38:49,902 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 16:38:49,902 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 16:38:49,910 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 16:38:49,912 - api_logger - INFO - Router cargado: /users
2026-04-13 16:38:49,913 - api_logger - INFO - Router cargado: /webservices
2026-04-13 16:38:49,915 - api_logger - INFO - Router cargado: /auth
2026-04-13 16:38:49,916 - api_logger - INFO - Router cargado: 
2026-04-13 16:38:49,916 - api_logger - INFO - Router cargado: /licenses
2026-04-13 16:38:49,916 - api_logger - INFO - Router cargado: /plans
2026-04-13 16:38:49,917 - api_logger - INFO - Router cargado: /payment
2026-04-13 16:38:49,940 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 16:38:49,969 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 16:38:49,971 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 16:38:49,972 - api_logger - INFO - Router cargado: /export
2026-04-13 16:38:49,976 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 16:38:49,976 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 16:38:49,984 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 16:38:49,986 - api_logger - INFO - Router cargado: /users
2026-04-13 16:38:49,987 - api_logger - INFO - Router cargado: /webservices
2026-04-13 16:38:49,988 - api_logger - INFO - Router cargado: /auth
2026-04-13 16:38:49,989 - api_logger - INFO - Router cargado: 
2026-04-13 16:38:49,989 - api_logger - INFO - Router cargado: /licenses
2026-04-13 16:38:49,989 - api_logger - INFO - Router cargado: /plans
2026-04-13 16:38:49,990 - api_logger - INFO - Router cargado: /payment
2026-04-13 16:38:57,064 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 16:38:57,098 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 16:38:57,101 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 16:38:57,102 - api_logger - INFO - Router cargado: /export
2026-04-13 16:38:57,106 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 16:38:57,106 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 16:38:57,113 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 16:38:57,115 - api_logger - INFO - Router cargado: /users
2026-04-13 16:38:57,116 - api_logger - INFO - Router cargado: /webservices
2026-04-13 16:38:57,118 - api_logger - INFO - Router cargado: /auth
2026-04-13 16:38:57,119 - api_logger - INFO - Router cargado: 
2026-04-13 16:38:57,119 - api_logger - INFO - Router cargado: /licenses
2026-04-13 16:38:57,119 - api_logger - INFO - Router cargado: /plans
2026-04-13 16:38:57,120 - api_logger - INFO - Router cargado: /payment
2026-04-13 16:38:57,160 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/login: Usuario no encontrado.
2026-04-13 16:38:57,161 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 4.
2026-04-13 16:38:57,163 - api_logger - DEBUG - [LockedError] http://testserver/v1/auth/login: Cuenta bloqueada.
2026-04-13 16:38:57,165 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/auth/login: Tu cuenta aún no ha sido verificada.
2026-04-13 16:38:57,166 - api_logger - DEBUG - [UnavailableForLegalReasonsError] http://testserver/v1/auth/login: Tu cuenta ha sido suspendida.
2026-04-13 16:38:57,169 - api_logger - DEBUG - [ConflictError] http://testserver/v1/auth/register: El correo electrónico nuevo@example.com ya está registrado.
2026-04-13 16:38:57,172 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/recovery/passwd: Cuenta no registrada.
2026-04-13 16:38:57,175 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/reset/passwd: El token para permitir el cambio de contraseña ha expirado.
2026-04-13 16:38:57,177 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/resend-verification?tkn=bad-token: Token no válido
2026-04-13 16:38:57,179 - api_logger - DEBUG - [TooManyRequestsError] http://testserver/v1/auth/resend-verification?tkn=any-token: Has superado el límite de intentos.
2026-04-13 16:38:57,184 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getall: Sin cuentas registradas.
2026-04-13 16:38:57,186 - api_logger - DEBUG - [ConflictError] http://testserver/v1/bankaccount/create: La cuenta ya existe.
2026-04-13 16:38:57,189 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getbyid/999: Cuenta no encontrada.
2026-04-13 16:38:57,192 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/update/999: Cuenta no encontrada.
2026-04-13 16:38:57,195 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/delete/999: Cuenta no encontrada.
2026-04-13 16:38:57,198 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?current_page=0: current_page debe ser un valor positivo.
2026-04-13 16:38:57,199 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?page_size=200: page_size debe estar entre 1 y 100.
2026-04-13 16:38:57,210 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/create: El RFC ya está registrado.
2026-04-13 16:38:57,212 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/fiscalcustomer/create: No autorizado.
2026-04-13 16:38:57,216 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/update/999: RFC no encontrado.
2026-04-13 16:38:57,222 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/list/byid/999: RFC no encontrado.
2026-04-13 16:38:57,226 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/setselected/999: RFC no encontrado.
2026-04-13 16:38:57,229 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/getselected: Sin RFC seleccionado.
2026-04-13 16:38:57,233 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/licenses/info: Licencia no encontrada.
2026-04-13 16:38:57,234 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/licenses/info: Licencia suspendida.
2026-04-13 16:38:57,237 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/menu_options/get: Rol no encontrado.
2026-04-13 16:38:57,242 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/getall: Sin movimientos.
2026-04-13 16:38:57,245 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/get_selected_rfc: Sin RFC seleccionado.
2026-04-13 16:38:57,248 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/delete/999: Movimiento no encontrado.
2026-04-13 16:38:57,252 - api_logger - DEBUG - [DomainError] http://testserver/v1/movements_banks/upload/bbva: Formato de archivo inválido.
2026-04-13 16:38:57,255 - api_logger - DEBUG - [ConflictError] http://testserver/v1/payment/stripe/checkout: Suscripción activa.
2026-04-13 16:38:57,259 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/getsubscription: Sin suscripción activa.
2026-04-13 16:38:57,262 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/cancelsubscription/sub_INVALID: Suscripción no encontrada.
2026-04-13 16:38:57,268 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile: Usuario no encontrado.
2026-04-13 16:38:57,272 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile/update: Usuario no encontrado.
2026-04-13 16:38:57,275 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/users/subusers: No tienes permisos.
2026-04-13 16:38:57,278 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/detail?id=999: Subusuario no encontrado.
2026-04-13 16:38:57,283 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/delete?id_subuser=999: Subusuario no encontrado.
2026-04-13 16:38:57,286 - api_logger - DEBUG - [ConflictError] http://testserver/v1/users/subuser/create: El correo ya está registrado.
2026-04-13 16:39:27,116 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 16:39:27,150 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 16:39:27,152 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 16:39:27,153 - api_logger - INFO - Router cargado: /export
2026-04-13 16:39:27,157 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 16:39:27,157 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 16:39:27,164 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 16:39:27,166 - api_logger - INFO - Router cargado: /users
2026-04-13 16:39:27,167 - api_logger - INFO - Router cargado: /webservices
2026-04-13 16:39:27,168 - api_logger - INFO - Router cargado: /auth
2026-04-13 16:39:27,169 - api_logger - INFO - Router cargado: 
2026-04-13 16:39:27,170 - api_logger - INFO - Router cargado: /licenses
2026-04-13 16:39:27,170 - api_logger - INFO - Router cargado: /plans
2026-04-13 16:39:27,170 - api_logger - INFO - Router cargado: /payment
2026-04-13 16:39:27,196 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/login: Usuario no encontrado.
2026-04-13 16:39:33,634 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 16:39:33,670 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 16:39:33,673 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 16:39:33,674 - api_logger - INFO - Router cargado: /export
2026-04-13 16:39:33,677 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 16:39:33,678 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 16:39:33,685 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 16:39:33,687 - api_logger - INFO - Router cargado: /users
2026-04-13 16:39:33,688 - api_logger - INFO - Router cargado: /webservices
2026-04-13 16:39:33,690 - api_logger - INFO - Router cargado: /auth
2026-04-13 16:39:33,691 - api_logger - INFO - Router cargado: 
2026-04-13 16:39:33,691 - api_logger - INFO - Router cargado: /licenses
2026-04-13 16:39:33,691 - api_logger - INFO - Router cargado: /plans
2026-04-13 16:39:33,692 - api_logger - INFO - Router cargado: /payment
2026-04-13 16:39:33,721 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/login: Usuario no encontrado.
2026-04-13 16:39:33,723 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 4.
2026-04-13 16:39:33,725 - api_logger - DEBUG - [LockedError] http://testserver/v1/auth/login: Cuenta bloqueada.
2026-04-13 16:39:33,726 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/auth/login: Tu cuenta aún no ha sido verificada.
2026-04-13 16:39:33,728 - api_logger - DEBUG - [UnavailableForLegalReasonsError] http://testserver/v1/auth/login: Tu cuenta ha sido suspendida.
2026-04-13 16:39:33,731 - api_logger - DEBUG - [ConflictError] http://testserver/v1/auth/register: El correo electrónico nuevo@example.com ya está registrado.
2026-04-13 16:39:33,734 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/recovery/passwd: Cuenta no registrada.
2026-04-13 16:39:33,737 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/reset/passwd: El token para permitir el cambio de contraseña ha expirado.
2026-04-13 16:39:33,739 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/resend-verification?tkn=bad-token: Token no válido
2026-04-13 16:39:33,741 - api_logger - DEBUG - [TooManyRequestsError] http://testserver/v1/auth/resend-verification?tkn=any-token: Has superado el límite de intentos.
2026-04-13 17:03:30,466 - api_logger - DEBUG - [NotFoundError] http://localhost:8000/v1/auth/resend-verification?tkn=12f51451-9092-4ca7-a2f0-1d21efcd2ad1: Token no válido
2026-04-13 17:03:37,128 - api_logger - DEBUG - [NotFoundError] http://localhost:8000/v1/auth/resend-verification?tkn=12f51451-9092-4ca7-a2f0-1d21efcd2ad1: Token no válido
2026-04-13 17:07:46,266 - api_logger - DEBUG - [NotFoundError] http://localhost:8000/v1/auth/resend-verification?tkn=12f51451-9092-4ca7-a2f0-1d21efcd2ad1: Token no válido
2026-04-13 17:08:08,574 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-13 17:08:08,575 - api_logger - DEBUG - Renderizando verify_account.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'verification_url', 'expire_time', 'expiration_time_unit']
2026-04-13 17:22:24,958 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 17:22:24,999 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 17:22:25,001 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 17:22:25,002 - api_logger - INFO - Router cargado: /export
2026-04-13 17:22:25,007 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 17:22:25,007 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 17:22:25,015 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 17:22:25,016 - api_logger - INFO - Router cargado: /users
2026-04-13 17:22:25,018 - api_logger - INFO - Router cargado: /webservices
2026-04-13 17:22:25,019 - api_logger - INFO - Router cargado: /auth
2026-04-13 17:22:25,020 - api_logger - INFO - Router cargado: 
2026-04-13 17:22:25,021 - api_logger - INFO - Router cargado: /licenses
2026-04-13 17:22:25,021 - api_logger - INFO - Router cargado: /plans
2026-04-13 17:22:25,022 - api_logger - INFO - Router cargado: /payment
2026-04-13 17:22:25,062 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 17:22:25,090 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 17:22:25,094 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 17:22:25,095 - api_logger - INFO - Router cargado: /export
2026-04-13 17:22:25,099 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 17:22:25,099 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 17:22:25,107 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 17:22:25,108 - api_logger - INFO - Router cargado: /users
2026-04-13 17:22:25,110 - api_logger - INFO - Router cargado: /webservices
2026-04-13 17:22:25,111 - api_logger - INFO - Router cargado: /auth
2026-04-13 17:22:25,112 - api_logger - INFO - Router cargado: 
2026-04-13 17:22:25,112 - api_logger - INFO - Router cargado: /licenses
2026-04-13 17:22:25,112 - api_logger - INFO - Router cargado: /plans
2026-04-13 17:22:25,112 - api_logger - INFO - Router cargado: /payment
2026-04-13 17:24:11,123 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-13 17:24:11,123 - api_logger - DEBUG - Renderizando verify_account.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'verification_url', 'expire_time', 'expiration_time_unit']
2026-04-13 17:51:28,637 - api_logger - ERROR - Error searching record: (psycopg2.errors.InvalidTextRepresentation) invalid input syntax for type uuid: "cualquiercosa"
LINE 3: WHERE licensing.users.verification_token = 'cualquiercosa'
                                                   ^

[SQL: SELECT licensing.users.id AS licensing_users_id, licensing.users.email AS licensing_users_email, licensing.users.password_hash AS licensing_users_password_hash, licensing.users.first_name AS licensing_users_first_name, licensing.users.last_name AS licensing_users_last_name, licensing.users.phone AS licensing_users_phone, licensing.users.rfc AS licensing_users_rfc, licensing.users.company_name AS licensing_users_company_name, licensing.users.status AS licensing_users_status, licensing.users.email_verified AS licensing_users_email_verified, licensing.users.created_at AS licensing_users_created_at, licensing.users.updated_at AS licensing_users_updated_at, licensing.users.last_login AS licensing_users_last_login, licensing.users.verification_token AS licensing_users_verification_token, licensing.users.verification_token_expire_at AS licensing_users_verification_token_expire_at, licensing.users.reset_password_token AS licensing_users_reset_password_token, licensing.users.reset_token_expires_at AS licensing_users_reset_token_expires_at, licensing.users.surname AS licensing_users_surname, licensing.users.cp AS licensing_users_cp, licensing.users.failed_login_attempts AS licensing_users_failed_login_attempts, licensing.users.verification_token_attempts AS licensing_users_verification_token_attempts 
FROM licensing.users 
WHERE licensing.users.verification_token = %(verification_token_1)s]
[parameters: {'verification_token_1': 'cualquiercosa'}]
(Background on this error at: https://sqlalche.me/e/20/9h9h)
2026-04-13 17:51:28,691 - api_logger - DEBUG - [NotFoundError] http://localhost:8000/v1/auth/resend-verification?tkn=cualquiercosa: Token no válido
2026-04-13 17:57:55,319 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 17:57:55,353 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 17:57:55,356 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 17:57:55,357 - api_logger - INFO - Router cargado: /export
2026-04-13 17:57:55,360 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 17:57:55,361 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 17:57:55,368 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 17:57:55,370 - api_logger - INFO - Router cargado: /users
2026-04-13 17:57:55,371 - api_logger - INFO - Router cargado: /webservices
2026-04-13 17:57:55,372 - api_logger - INFO - Router cargado: /auth
2026-04-13 17:57:55,373 - api_logger - INFO - Router cargado: 
2026-04-13 17:57:55,374 - api_logger - INFO - Router cargado: /licenses
2026-04-13 17:57:55,374 - api_logger - INFO - Router cargado: /plans
2026-04-13 17:57:55,374 - api_logger - INFO - Router cargado: /payment
2026-04-13 17:57:56,139 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 17:57:56,173 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 17:57:56,175 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 17:57:56,176 - api_logger - INFO - Router cargado: /export
2026-04-13 17:57:56,180 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 17:57:56,180 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 17:57:56,188 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 17:57:56,189 - api_logger - INFO - Router cargado: /users
2026-04-13 17:57:56,191 - api_logger - INFO - Router cargado: /webservices
2026-04-13 17:57:56,192 - api_logger - INFO - Router cargado: /auth
2026-04-13 17:57:56,193 - api_logger - INFO - Router cargado: 
2026-04-13 17:57:56,193 - api_logger - INFO - Router cargado: /licenses
2026-04-13 17:57:56,193 - api_logger - INFO - Router cargado: /plans
2026-04-13 17:57:56,194 - api_logger - INFO - Router cargado: /payment
2026-04-13 17:57:56,215 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 17:57:56,243 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 17:57:56,245 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 17:57:56,246 - api_logger - INFO - Router cargado: /export
2026-04-13 17:57:56,249 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 17:57:56,249 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 17:57:56,257 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 17:57:56,258 - api_logger - INFO - Router cargado: /users
2026-04-13 17:57:56,260 - api_logger - INFO - Router cargado: /webservices
2026-04-13 17:57:56,261 - api_logger - INFO - Router cargado: /auth
2026-04-13 17:57:56,262 - api_logger - INFO - Router cargado: 
2026-04-13 17:57:56,262 - api_logger - INFO - Router cargado: /licenses
2026-04-13 17:57:56,262 - api_logger - INFO - Router cargado: /plans
2026-04-13 17:57:56,263 - api_logger - INFO - Router cargado: /payment
2026-04-13 18:11:27,301 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 18:11:27,335 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 18:11:27,338 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 18:11:27,339 - api_logger - INFO - Router cargado: /export
2026-04-13 18:11:27,343 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 18:11:27,343 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 18:11:27,350 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 18:11:27,352 - api_logger - INFO - Router cargado: /users
2026-04-13 18:11:27,353 - api_logger - INFO - Router cargado: /webservices
2026-04-13 18:11:27,354 - api_logger - INFO - Router cargado: /auth
2026-04-13 18:11:27,355 - api_logger - INFO - Router cargado: 
2026-04-13 18:11:27,355 - api_logger - INFO - Router cargado: /licenses
2026-04-13 18:11:27,356 - api_logger - INFO - Router cargado: /plans
2026-04-13 18:11:27,356 - api_logger - INFO - Router cargado: /payment
2026-04-13 18:11:27,386 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 18:11:27,418 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 18:11:27,421 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 18:11:27,421 - api_logger - INFO - Router cargado: /export
2026-04-13 18:11:27,425 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 18:11:27,425 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 18:11:27,432 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 18:11:27,433 - api_logger - INFO - Router cargado: /users
2026-04-13 18:11:27,435 - api_logger - INFO - Router cargado: /webservices
2026-04-13 18:11:27,436 - api_logger - INFO - Router cargado: /auth
2026-04-13 18:11:27,437 - api_logger - INFO - Router cargado: 
2026-04-13 18:11:27,437 - api_logger - INFO - Router cargado: /licenses
2026-04-13 18:11:27,437 - api_logger - INFO - Router cargado: /plans
2026-04-13 18:11:27,438 - api_logger - INFO - Router cargado: /payment
2026-04-13 18:23:22,902 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 18:23:22,935 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 18:23:22,938 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 18:23:22,938 - api_logger - INFO - Router cargado: /export
2026-04-13 18:23:22,942 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 18:23:22,942 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 18:23:22,950 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 18:23:22,952 - api_logger - INFO - Router cargado: /users
2026-04-13 18:23:22,954 - api_logger - INFO - Router cargado: /webservices
2026-04-13 18:23:22,955 - api_logger - INFO - Router cargado: /auth
2026-04-13 18:23:22,956 - api_logger - INFO - Router cargado: 
2026-04-13 18:23:22,956 - api_logger - INFO - Router cargado: /licenses
2026-04-13 18:23:22,956 - api_logger - INFO - Router cargado: /plans
2026-04-13 18:23:22,957 - api_logger - INFO - Router cargado: /payment
2026-04-13 18:23:22,981 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 18:23:23,017 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 18:23:23,020 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 18:23:23,021 - api_logger - INFO - Router cargado: /export
2026-04-13 18:23:23,025 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 18:23:23,025 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 18:23:23,032 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 18:23:23,033 - api_logger - INFO - Router cargado: /users
2026-04-13 18:23:23,035 - api_logger - INFO - Router cargado: /webservices
2026-04-13 18:23:23,036 - api_logger - INFO - Router cargado: /auth
2026-04-13 18:23:23,037 - api_logger - INFO - Router cargado: 
2026-04-13 18:23:23,037 - api_logger - INFO - Router cargado: /licenses
2026-04-13 18:23:23,037 - api_logger - INFO - Router cargado: /plans
2026-04-13 18:23:23,038 - api_logger - INFO - Router cargado: /payment
2026-04-13 18:25:01,958 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 18:25:01,991 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 18:25:01,994 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 18:25:01,995 - api_logger - INFO - Router cargado: /export
2026-04-13 18:25:01,998 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 18:25:01,999 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 18:25:02,006 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 18:25:02,008 - api_logger - INFO - Router cargado: /users
2026-04-13 18:25:02,009 - api_logger - INFO - Router cargado: /webservices
2026-04-13 18:25:02,010 - api_logger - INFO - Router cargado: /auth
2026-04-13 18:25:02,011 - api_logger - INFO - Router cargado: 
2026-04-13 18:25:02,012 - api_logger - INFO - Router cargado: /licenses
2026-04-13 18:25:02,012 - api_logger - INFO - Router cargado: /plans
2026-04-13 18:25:02,012 - api_logger - INFO - Router cargado: /payment
2026-04-13 18:25:02,037 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 18:25:02,064 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 18:25:02,066 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 18:25:02,067 - api_logger - INFO - Router cargado: /export
2026-04-13 18:25:02,070 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 18:25:02,071 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 18:25:02,078 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 18:25:02,080 - api_logger - INFO - Router cargado: /users
2026-04-13 18:25:02,081 - api_logger - INFO - Router cargado: /webservices
2026-04-13 18:25:02,082 - api_logger - INFO - Router cargado: /auth
2026-04-13 18:25:02,083 - api_logger - INFO - Router cargado: 
2026-04-13 18:25:02,083 - api_logger - INFO - Router cargado: /licenses
2026-04-13 18:25:02,083 - api_logger - INFO - Router cargado: /plans
2026-04-13 18:25:02,084 - api_logger - INFO - Router cargado: /payment
2026-04-13 18:25:08,803 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 18:25:08,839 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 18:25:08,842 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 18:25:08,843 - api_logger - INFO - Router cargado: /export
2026-04-13 18:25:08,847 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 18:25:08,847 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 18:25:08,855 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 18:25:08,856 - api_logger - INFO - Router cargado: /users
2026-04-13 18:25:08,857 - api_logger - INFO - Router cargado: /webservices
2026-04-13 18:25:08,859 - api_logger - INFO - Router cargado: /auth
2026-04-13 18:25:08,860 - api_logger - INFO - Router cargado: 
2026-04-13 18:25:08,860 - api_logger - INFO - Router cargado: /licenses
2026-04-13 18:25:08,860 - api_logger - INFO - Router cargado: /plans
2026-04-13 18:25:08,861 - api_logger - INFO - Router cargado: /payment
2026-04-13 18:25:08,881 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 18:25:08,909 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 18:25:08,911 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 18:25:08,912 - api_logger - INFO - Router cargado: /export
2026-04-13 18:25:08,915 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 18:25:08,915 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 18:25:08,922 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 18:25:08,924 - api_logger - INFO - Router cargado: /users
2026-04-13 18:25:08,925 - api_logger - INFO - Router cargado: /webservices
2026-04-13 18:25:08,926 - api_logger - INFO - Router cargado: /auth
2026-04-13 18:25:08,927 - api_logger - INFO - Router cargado: 
2026-04-13 18:25:08,927 - api_logger - INFO - Router cargado: /licenses
2026-04-13 18:25:08,927 - api_logger - INFO - Router cargado: /plans
2026-04-13 18:25:08,928 - api_logger - INFO - Router cargado: /payment
2026-04-13 18:25:18,347 - api_logger - WARNING - Charge fallido: card_declined - Your card has insufficient funds. - customer: cus_UHvNQjoDi3iBsZ
2026-04-13 18:25:21,711 - api_logger - ERROR - PaymentIntent fallido | customer: cus_UHvNQjoDi3iBsZ | decline_code: insufficient_funds | message: Your card has insufficient funds.
2026-04-13 18:26:48,495 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - customer: cus_UHvNQjoDi3iBsZ
2026-04-13 18:26:50,871 - api_logger - ERROR - PaymentIntent fallido | customer: cus_UHvNQjoDi3iBsZ | decline_code: lost_card | message: Your card was declined.
2026-04-13 18:28:05,412 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 18:28:05,445 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 18:28:05,447 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 18:28:05,448 - api_logger - INFO - Router cargado: /export
2026-04-13 18:28:05,451 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 18:28:05,452 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 18:28:05,459 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 18:28:05,461 - api_logger - INFO - Router cargado: /users
2026-04-13 18:28:05,462 - api_logger - INFO - Router cargado: /webservices
2026-04-13 18:28:05,463 - api_logger - INFO - Router cargado: /auth
2026-04-13 18:28:05,464 - api_logger - INFO - Router cargado: 
2026-04-13 18:28:05,464 - api_logger - INFO - Router cargado: /licenses
2026-04-13 18:28:05,464 - api_logger - INFO - Router cargado: /plans
2026-04-13 18:28:05,465 - api_logger - INFO - Router cargado: /payment
2026-04-13 18:28:05,485 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 18:28:05,516 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 18:28:05,519 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 18:28:05,520 - api_logger - INFO - Router cargado: /export
2026-04-13 18:28:05,523 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 18:28:05,523 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 18:28:05,530 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 18:28:05,532 - api_logger - INFO - Router cargado: /users
2026-04-13 18:28:05,533 - api_logger - INFO - Router cargado: /webservices
2026-04-13 18:28:05,534 - api_logger - INFO - Router cargado: /auth
2026-04-13 18:28:05,535 - api_logger - INFO - Router cargado: 
2026-04-13 18:28:05,535 - api_logger - INFO - Router cargado: /licenses
2026-04-13 18:28:05,535 - api_logger - INFO - Router cargado: /plans
2026-04-13 18:28:05,536 - api_logger - INFO - Router cargado: /payment
2026-04-13 18:28:12,838 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - customer: cus_UHvNQjoDi3iBsZ
2026-04-13 18:28:15,189 - api_logger - ERROR - PaymentIntent fallido | customer: cus_UHvNQjoDi3iBsZ | decline_code: lost_card | message: Your card was declined.
2026-04-13 18:28:57,652 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 18:28:57,685 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 18:28:57,687 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 18:28:57,688 - api_logger - INFO - Router cargado: /export
2026-04-13 18:28:57,692 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 18:28:57,692 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 18:28:57,700 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 18:28:57,701 - api_logger - INFO - Router cargado: /users
2026-04-13 18:28:57,703 - api_logger - INFO - Router cargado: /webservices
2026-04-13 18:28:57,704 - api_logger - INFO - Router cargado: /auth
2026-04-13 18:28:57,705 - api_logger - INFO - Router cargado: 
2026-04-13 18:28:57,705 - api_logger - INFO - Router cargado: /licenses
2026-04-13 18:28:57,705 - api_logger - INFO - Router cargado: /plans
2026-04-13 18:28:57,706 - api_logger - INFO - Router cargado: /payment
2026-04-13 18:28:57,727 - api_logger - INFO - Router cargado: /bankaccount
2026-04-13 18:28:57,754 - api_logger - INFO - Router cargado: /catalogs
2026-04-13 18:28:57,757 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-13 18:28:57,758 - api_logger - INFO - Router cargado: /export
2026-04-13 18:28:57,761 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-13 18:28:57,761 - api_logger - INFO - Router cargado: /menu_options
2026-04-13 18:28:57,768 - api_logger - INFO - Router cargado: /movements_banks
2026-04-13 18:28:57,770 - api_logger - INFO - Router cargado: /users
2026-04-13 18:28:57,771 - api_logger - INFO - Router cargado: /webservices
2026-04-13 18:28:57,772 - api_logger - INFO - Router cargado: /auth
2026-04-13 18:28:57,773 - api_logger - INFO - Router cargado: 
2026-04-13 18:28:57,773 - api_logger - INFO - Router cargado: /licenses
2026-04-13 18:28:57,774 - api_logger - INFO - Router cargado: /plans
2026-04-13 18:28:57,774 - api_logger - INFO - Router cargado: /payment
2026-04-13 18:29:05,928 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - customer: cus_UHvNQjoDi3iBsZ
2026-04-13 18:29:08,307 - api_logger - ERROR - PaymentIntent fallido | customer: cus_UHvNQjoDi3iBsZ | decline_code: lost_card | message: Your card was declined.
2026-04-14 00:16:27,025 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 00:16:27,058 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 00:16:27,061 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 00:16:27,062 - api_logger - INFO - Router cargado: /export
2026-04-14 00:16:27,065 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 00:16:27,065 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 00:16:27,073 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 00:16:27,075 - api_logger - INFO - Router cargado: /users
2026-04-14 00:16:27,076 - api_logger - INFO - Router cargado: /webservices
2026-04-14 00:16:27,078 - api_logger - INFO - Router cargado: /auth
2026-04-14 00:16:27,079 - api_logger - INFO - Router cargado: 
2026-04-14 00:16:27,079 - api_logger - INFO - Router cargado: /licenses
2026-04-14 00:16:27,079 - api_logger - INFO - Router cargado: /plans
2026-04-14 00:16:27,080 - api_logger - INFO - Router cargado: /payment
2026-04-14 00:16:27,102 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 00:16:27,129 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 00:16:27,131 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 00:16:27,132 - api_logger - INFO - Router cargado: /export
2026-04-14 00:16:27,135 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 00:16:27,136 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 00:16:27,143 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 00:16:27,144 - api_logger - INFO - Router cargado: /users
2026-04-14 00:16:27,145 - api_logger - INFO - Router cargado: /webservices
2026-04-14 00:16:27,146 - api_logger - INFO - Router cargado: /auth
2026-04-14 00:16:27,147 - api_logger - INFO - Router cargado: 
2026-04-14 00:16:27,147 - api_logger - INFO - Router cargado: /licenses
2026-04-14 00:16:27,148 - api_logger - INFO - Router cargado: /plans
2026-04-14 00:16:27,148 - api_logger - INFO - Router cargado: /payment
2026-04-14 00:16:52,203 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: batcaver7@gmail.com
2026-04-14 00:16:55,072 - api_logger - WARNING - Sin licencia para user_id: 96
2026-04-14 00:16:55,080 - api_logger - ERROR - PaymentIntent fallido | customer: cus_UHvNQjoDi3iBsZ | decline_code: lost_card | message: Your card was declined.
2026-04-14 00:20:34,173 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 00:20:34,205 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 00:20:34,208 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 00:20:34,209 - api_logger - INFO - Router cargado: /export
2026-04-14 00:20:34,213 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 00:20:34,213 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 00:20:34,220 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 00:20:34,222 - api_logger - INFO - Router cargado: /users
2026-04-14 00:20:34,223 - api_logger - INFO - Router cargado: /webservices
2026-04-14 00:20:34,225 - api_logger - INFO - Router cargado: /auth
2026-04-14 00:20:34,225 - api_logger - INFO - Router cargado: 
2026-04-14 00:20:34,226 - api_logger - INFO - Router cargado: /licenses
2026-04-14 00:20:34,226 - api_logger - INFO - Router cargado: /plans
2026-04-14 00:20:34,226 - api_logger - INFO - Router cargado: /payment
2026-04-14 00:20:34,247 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 00:20:34,275 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 00:20:34,278 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 00:20:34,279 - api_logger - INFO - Router cargado: /export
2026-04-14 00:20:34,282 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 00:20:34,282 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 00:20:34,290 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 00:20:34,291 - api_logger - INFO - Router cargado: /users
2026-04-14 00:20:34,293 - api_logger - INFO - Router cargado: /webservices
2026-04-14 00:20:34,294 - api_logger - INFO - Router cargado: /auth
2026-04-14 00:20:34,295 - api_logger - INFO - Router cargado: 
2026-04-14 00:20:34,295 - api_logger - INFO - Router cargado: /licenses
2026-04-14 00:20:34,295 - api_logger - INFO - Router cargado: /plans
2026-04-14 00:20:34,296 - api_logger - INFO - Router cargado: /payment
2026-04-14 00:42:40,803 - api_logger - WARNING - Charge fallido: expired_card - Your card has expired. - email: batcaver7@gmail.com
2026-04-14 00:42:42,998 - api_logger - WARNING - Sin licencia para user_id: 96
2026-04-14 00:42:43,006 - api_logger - ERROR - PaymentIntent fallido | customer: cus_UHvNQjoDi3iBsZ | decline_code: expired_card | message: Your card has expired.
2026-04-14 00:44:07,377 - api_logger - ERROR - PaymentIntent fallido | customer: cus_UHvNQjoDi3iBsZ | decline_code: None | message: The provided PaymentMethod has failed authentication. You can provide payment_method_data or a new PaymentMethod to attempt to fulfill this PaymentIntent again.
2026-04-14 00:45:50,647 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-14 00:45:50,647 - api_logger - DEBUG - Renderizando verify_account.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'verification_url', 'expire_time', 'expiration_time_unit']
2026-04-14 00:46:01,308 - api_logger - DEBUG - [NotFoundError] http://localhost:8000/v1/auth/resend-verification?tkn=8c060bdf-c007-4c3f-be7c-ffa306e24698: Token no válido
2026-04-14 00:49:19,633 - api_logger - ERROR - PaymentIntent fallido | customer: cus_UHvNQjoDi3iBsZ | decline_code: generic_decline | message: Your card was declined.
2026-04-14 00:49:26,374 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: batcaver7@gmail.com
2026-04-14 00:49:28,359 - api_logger - WARNING - Sin licencia para user_id: 96
2026-04-14 00:50:16,508 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 00:50:16,545 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 00:50:16,547 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 00:50:16,548 - api_logger - INFO - Router cargado: /export
2026-04-14 00:50:16,552 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 00:50:16,552 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 00:50:16,559 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 00:50:16,561 - api_logger - INFO - Router cargado: /users
2026-04-14 00:50:16,563 - api_logger - INFO - Router cargado: /webservices
2026-04-14 00:50:16,564 - api_logger - INFO - Router cargado: /auth
2026-04-14 00:50:16,565 - api_logger - INFO - Router cargado: 
2026-04-14 00:50:16,565 - api_logger - INFO - Router cargado: /licenses
2026-04-14 00:50:16,565 - api_logger - INFO - Router cargado: /plans
2026-04-14 00:50:16,566 - api_logger - INFO - Router cargado: /payment
2026-04-14 00:50:16,595 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 00:50:16,626 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 00:50:16,628 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 00:50:16,629 - api_logger - INFO - Router cargado: /export
2026-04-14 00:50:16,633 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 00:50:16,633 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 00:50:16,640 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 00:50:16,642 - api_logger - INFO - Router cargado: /users
2026-04-14 00:50:16,643 - api_logger - INFO - Router cargado: /webservices
2026-04-14 00:50:16,645 - api_logger - INFO - Router cargado: /auth
2026-04-14 00:50:16,646 - api_logger - INFO - Router cargado: 
2026-04-14 00:50:16,646 - api_logger - INFO - Router cargado: /licenses
2026-04-14 00:50:16,646 - api_logger - INFO - Router cargado: /plans
2026-04-14 00:50:16,647 - api_logger - INFO - Router cargado: /payment
2026-04-14 00:50:23,457 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: batcaver7@gmail.com
2026-04-14 00:50:25,473 - api_logger - WARNING - Sin licencia para user_id: 96
2026-04-14 00:50:25,591 - api_logger - ERROR - PaymentIntent fallido | customer: cus_UHvNQjoDi3iBsZ | decline_code: generic_decline | message: Your card was declined.
2026-04-14 00:52:41,365 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: batcaver7@gmail.com
2026-04-14 00:52:43,419 - api_logger - WARNING - Sin licencia para user_id: 96
2026-04-14 00:52:44,540 - api_logger - ERROR - PaymentIntent fallido | customer: cus_UHvNQjoDi3iBsZ | decline_code: generic_decline | message: Your card was declined.
2026-04-14 00:53:58,988 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: batcaver7@gmail.com
2026-04-14 00:54:00,956 - api_logger - WARNING - Sin licencia para user_id: 96
2026-04-14 00:54:00,958 - api_logger - ERROR - PaymentIntent fallido | customer: cus_UHvNQjoDi3iBsZ | decline_code: generic_decline | message: Your card was declined.
2026-04-14 01:00:01,416 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: None
2026-04-14 01:00:01,417 - api_logger - ERROR - charge.failed sin customer_email, no se puede registrar
2026-04-14 01:00:01,697 - api_logger - ERROR - PaymentIntent fallido | customer: cus_UKgJHhduuMxZtL | decline_code: generic_decline | message: Your card was declined.
2026-04-14 01:00:03,806 - api_logger - ERROR - Error inesperado en http://localhost:8000/v1/payment/stripe/webhook: Usuario no encontrado: None
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/payment.py", line 33, in stripe_webhook
    Stripe.handle_webhook(payload, sig_header)
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/services/Stripe.py", line 161, in handle_webhook
    handler(event)
    ~~~~~~~^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/services/Stripe.py", line 260, in __handle_payment_failed
    user, plan = Stripe.__resolve_user_and_plan(d["customer_email"], d["price_id"])
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/services/Stripe.py", line 469, in __resolve_user_and_plan
    raise Exception(f"Usuario no encontrado: {customer_email}")
Exception: Usuario no encontrado: None
2026-04-14 01:03:26,689 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 01:03:26,721 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 01:03:26,724 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 01:03:26,725 - api_logger - INFO - Router cargado: /export
2026-04-14 01:03:26,728 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 01:03:26,728 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 01:03:26,736 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 01:03:26,738 - api_logger - INFO - Router cargado: /users
2026-04-14 01:03:26,739 - api_logger - INFO - Router cargado: /webservices
2026-04-14 01:03:26,740 - api_logger - INFO - Router cargado: /auth
2026-04-14 01:03:26,741 - api_logger - INFO - Router cargado: 
2026-04-14 01:03:26,741 - api_logger - INFO - Router cargado: /licenses
2026-04-14 01:03:26,741 - api_logger - INFO - Router cargado: /plans
2026-04-14 01:03:26,742 - api_logger - INFO - Router cargado: /payment
2026-04-14 01:03:26,764 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 01:03:26,791 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 01:03:26,794 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 01:03:26,795 - api_logger - INFO - Router cargado: /export
2026-04-14 01:03:26,798 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 01:03:26,798 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 01:03:26,805 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 01:03:26,807 - api_logger - INFO - Router cargado: /users
2026-04-14 01:03:26,808 - api_logger - INFO - Router cargado: /webservices
2026-04-14 01:03:26,809 - api_logger - INFO - Router cargado: /auth
2026-04-14 01:03:26,810 - api_logger - INFO - Router cargado: 
2026-04-14 01:03:26,810 - api_logger - INFO - Router cargado: /licenses
2026-04-14 01:03:26,810 - api_logger - INFO - Router cargado: /plans
2026-04-14 01:03:26,811 - api_logger - INFO - Router cargado: /payment
2026-04-14 01:11:24,212 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 01:11:24,245 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 01:11:24,247 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 01:11:24,248 - api_logger - INFO - Router cargado: /export
2026-04-14 01:11:24,252 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 01:11:24,252 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 01:11:24,260 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 01:11:24,261 - api_logger - INFO - Router cargado: /users
2026-04-14 01:11:24,262 - api_logger - INFO - Router cargado: /webservices
2026-04-14 01:11:24,264 - api_logger - INFO - Router cargado: /auth
2026-04-14 01:11:24,265 - api_logger - INFO - Router cargado: 
2026-04-14 01:11:24,265 - api_logger - INFO - Router cargado: /licenses
2026-04-14 01:11:24,265 - api_logger - INFO - Router cargado: /plans
2026-04-14 01:11:24,266 - api_logger - INFO - Router cargado: /payment
2026-04-14 01:11:24,287 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 01:11:24,315 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 01:11:24,317 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 01:11:24,318 - api_logger - INFO - Router cargado: /export
2026-04-14 01:11:24,321 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 01:11:24,321 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 01:11:24,329 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 01:11:24,330 - api_logger - INFO - Router cargado: /users
2026-04-14 01:11:24,332 - api_logger - INFO - Router cargado: /webservices
2026-04-14 01:11:24,333 - api_logger - INFO - Router cargado: /auth
2026-04-14 01:11:24,334 - api_logger - INFO - Router cargado: 
2026-04-14 01:11:24,334 - api_logger - INFO - Router cargado: /licenses
2026-04-14 01:11:24,334 - api_logger - INFO - Router cargado: /plans
2026-04-14 01:11:24,335 - api_logger - INFO - Router cargado: /payment
2026-04-14 01:13:52,012 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 01:13:52,044 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 01:13:52,046 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 01:13:52,047 - api_logger - INFO - Router cargado: /export
2026-04-14 01:13:52,051 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 01:13:52,051 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 01:13:52,058 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 01:13:52,060 - api_logger - INFO - Router cargado: /users
2026-04-14 01:13:52,061 - api_logger - INFO - Router cargado: /webservices
2026-04-14 01:13:52,063 - api_logger - INFO - Router cargado: /auth
2026-04-14 01:13:52,064 - api_logger - INFO - Router cargado: 
2026-04-14 01:13:52,064 - api_logger - INFO - Router cargado: /licenses
2026-04-14 01:13:52,064 - api_logger - INFO - Router cargado: /plans
2026-04-14 01:13:52,064 - api_logger - INFO - Router cargado: /payment
2026-04-14 01:13:52,086 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 01:13:52,114 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 01:13:52,116 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 01:13:52,117 - api_logger - INFO - Router cargado: /export
2026-04-14 01:13:52,120 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 01:13:52,120 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 01:13:52,127 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 01:13:52,129 - api_logger - INFO - Router cargado: /users
2026-04-14 01:13:52,130 - api_logger - INFO - Router cargado: /webservices
2026-04-14 01:13:52,131 - api_logger - INFO - Router cargado: /auth
2026-04-14 01:13:52,132 - api_logger - INFO - Router cargado: 
2026-04-14 01:13:52,132 - api_logger - INFO - Router cargado: /licenses
2026-04-14 01:13:52,132 - api_logger - INFO - Router cargado: /plans
2026-04-14 01:13:52,133 - api_logger - INFO - Router cargado: /payment
2026-04-14 01:13:58,913 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 01:13:58,945 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 01:13:58,947 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 01:13:58,948 - api_logger - INFO - Router cargado: /export
2026-04-14 01:13:58,951 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 01:13:58,952 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 01:13:58,959 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 01:13:58,961 - api_logger - INFO - Router cargado: /users
2026-04-14 01:13:58,962 - api_logger - INFO - Router cargado: /webservices
2026-04-14 01:13:58,963 - api_logger - INFO - Router cargado: /auth
2026-04-14 01:13:58,964 - api_logger - INFO - Router cargado: 
2026-04-14 01:13:58,965 - api_logger - INFO - Router cargado: /licenses
2026-04-14 01:13:58,965 - api_logger - INFO - Router cargado: /plans
2026-04-14 01:13:58,965 - api_logger - INFO - Router cargado: /payment
2026-04-14 01:13:58,987 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 01:13:59,014 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 01:13:59,017 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 01:13:59,017 - api_logger - INFO - Router cargado: /export
2026-04-14 01:13:59,021 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 01:13:59,021 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 01:13:59,029 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 01:13:59,030 - api_logger - INFO - Router cargado: /users
2026-04-14 01:13:59,032 - api_logger - INFO - Router cargado: /webservices
2026-04-14 01:13:59,033 - api_logger - INFO - Router cargado: /auth
2026-04-14 01:13:59,034 - api_logger - INFO - Router cargado: 
2026-04-14 01:13:59,034 - api_logger - INFO - Router cargado: /licenses
2026-04-14 01:13:59,035 - api_logger - INFO - Router cargado: /plans
2026-04-14 01:13:59,035 - api_logger - INFO - Router cargado: /payment
2026-04-14 01:16:21,810 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 01:16:21,846 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 01:16:21,849 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 01:16:21,850 - api_logger - INFO - Router cargado: /export
2026-04-14 01:16:21,854 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 01:16:21,854 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 01:16:21,862 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 01:16:21,864 - api_logger - INFO - Router cargado: /users
2026-04-14 01:16:21,865 - api_logger - INFO - Router cargado: /webservices
2026-04-14 01:16:21,867 - api_logger - INFO - Router cargado: /auth
2026-04-14 01:16:21,868 - api_logger - INFO - Router cargado: 
2026-04-14 01:16:21,868 - api_logger - INFO - Router cargado: /licenses
2026-04-14 01:16:21,868 - api_logger - INFO - Router cargado: /plans
2026-04-14 01:16:21,869 - api_logger - INFO - Router cargado: /payment
2026-04-14 01:16:21,893 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 01:16:21,922 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 01:16:21,925 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 01:16:21,926 - api_logger - INFO - Router cargado: /export
2026-04-14 01:16:21,930 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 01:16:21,930 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 01:16:21,937 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 01:16:21,939 - api_logger - INFO - Router cargado: /users
2026-04-14 01:16:21,941 - api_logger - INFO - Router cargado: /webservices
2026-04-14 01:16:21,942 - api_logger - INFO - Router cargado: /auth
2026-04-14 01:16:21,943 - api_logger - INFO - Router cargado: 
2026-04-14 01:16:21,943 - api_logger - INFO - Router cargado: /licenses
2026-04-14 01:16:21,943 - api_logger - INFO - Router cargado: /plans
2026-04-14 01:16:21,944 - api_logger - INFO - Router cargado: /payment
2026-04-14 01:16:27,881 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 01:16:27,913 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 01:16:27,916 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 01:16:27,917 - api_logger - INFO - Router cargado: /export
2026-04-14 01:16:27,920 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 01:16:27,920 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 01:16:27,928 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 01:16:27,930 - api_logger - INFO - Router cargado: /users
2026-04-14 01:16:27,931 - api_logger - INFO - Router cargado: /webservices
2026-04-14 01:16:27,932 - api_logger - INFO - Router cargado: /auth
2026-04-14 01:16:27,933 - api_logger - INFO - Router cargado: 
2026-04-14 01:16:27,933 - api_logger - INFO - Router cargado: /licenses
2026-04-14 01:16:27,934 - api_logger - INFO - Router cargado: /plans
2026-04-14 01:16:27,934 - api_logger - INFO - Router cargado: /payment
2026-04-14 01:16:27,956 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 01:16:27,984 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 01:16:27,986 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 01:16:27,987 - api_logger - INFO - Router cargado: /export
2026-04-14 01:16:27,991 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 01:16:27,991 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 01:16:27,998 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 01:16:28,000 - api_logger - INFO - Router cargado: /users
2026-04-14 01:16:28,001 - api_logger - INFO - Router cargado: /webservices
2026-04-14 01:16:28,002 - api_logger - INFO - Router cargado: /auth
2026-04-14 01:16:28,003 - api_logger - INFO - Router cargado: 
2026-04-14 01:16:28,003 - api_logger - INFO - Router cargado: /licenses
2026-04-14 01:16:28,003 - api_logger - INFO - Router cargado: /plans
2026-04-14 01:16:28,004 - api_logger - INFO - Router cargado: /payment
2026-04-14 01:17:34,026 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 01:17:34,060 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 01:17:34,062 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 01:17:34,063 - api_logger - INFO - Router cargado: /export
2026-04-14 01:17:34,067 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 01:17:34,067 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 01:17:34,075 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 01:17:34,077 - api_logger - INFO - Router cargado: /users
2026-04-14 01:17:34,078 - api_logger - INFO - Router cargado: /webservices
2026-04-14 01:17:34,079 - api_logger - INFO - Router cargado: /auth
2026-04-14 01:17:34,080 - api_logger - INFO - Router cargado: 
2026-04-14 01:17:34,081 - api_logger - INFO - Router cargado: /licenses
2026-04-14 01:17:34,081 - api_logger - INFO - Router cargado: /plans
2026-04-14 01:17:34,081 - api_logger - INFO - Router cargado: /payment
2026-04-14 01:17:34,104 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 01:17:34,134 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 01:17:34,136 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 01:17:34,137 - api_logger - INFO - Router cargado: /export
2026-04-14 01:17:34,140 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 01:17:34,140 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 01:17:34,148 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 01:17:34,149 - api_logger - INFO - Router cargado: /users
2026-04-14 01:17:34,150 - api_logger - INFO - Router cargado: /webservices
2026-04-14 01:17:34,151 - api_logger - INFO - Router cargado: /auth
2026-04-14 01:17:34,152 - api_logger - INFO - Router cargado: 
2026-04-14 01:17:34,152 - api_logger - INFO - Router cargado: /licenses
2026-04-14 01:17:34,152 - api_logger - INFO - Router cargado: /plans
2026-04-14 01:17:34,153 - api_logger - INFO - Router cargado: /payment
2026-04-14 01:17:38,656 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 01:17:38,688 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 01:17:38,691 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 01:17:38,692 - api_logger - INFO - Router cargado: /export
2026-04-14 01:17:38,695 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 01:17:38,695 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 01:17:38,703 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 01:17:38,704 - api_logger - INFO - Router cargado: /users
2026-04-14 01:17:38,706 - api_logger - INFO - Router cargado: /webservices
2026-04-14 01:17:38,707 - api_logger - INFO - Router cargado: /auth
2026-04-14 01:17:38,708 - api_logger - INFO - Router cargado: 
2026-04-14 01:17:38,708 - api_logger - INFO - Router cargado: /licenses
2026-04-14 01:17:38,708 - api_logger - INFO - Router cargado: /plans
2026-04-14 01:17:38,709 - api_logger - INFO - Router cargado: /payment
2026-04-14 01:17:38,729 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 01:17:38,757 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 01:17:38,759 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 01:17:38,760 - api_logger - INFO - Router cargado: /export
2026-04-14 01:17:38,763 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 01:17:38,763 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 01:17:38,770 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 01:17:38,772 - api_logger - INFO - Router cargado: /users
2026-04-14 01:17:38,773 - api_logger - INFO - Router cargado: /webservices
2026-04-14 01:17:38,774 - api_logger - INFO - Router cargado: /auth
2026-04-14 01:17:38,775 - api_logger - INFO - Router cargado: 
2026-04-14 01:17:38,775 - api_logger - INFO - Router cargado: /licenses
2026-04-14 01:17:38,775 - api_logger - INFO - Router cargado: /plans
2026-04-14 01:17:38,776 - api_logger - INFO - Router cargado: /payment
2026-04-14 01:20:05,041 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 01:20:05,076 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 01:20:05,078 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 01:20:05,079 - api_logger - INFO - Router cargado: /export
2026-04-14 01:20:05,083 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 01:20:05,083 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 01:20:05,093 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 01:20:05,095 - api_logger - INFO - Router cargado: /users
2026-04-14 01:20:05,097 - api_logger - INFO - Router cargado: /webservices
2026-04-14 01:20:05,098 - api_logger - INFO - Router cargado: /auth
2026-04-14 01:20:05,099 - api_logger - INFO - Router cargado: 
2026-04-14 01:20:05,099 - api_logger - INFO - Router cargado: /licenses
2026-04-14 01:20:05,099 - api_logger - INFO - Router cargado: /plans
2026-04-14 01:20:05,100 - api_logger - INFO - Router cargado: /payment
2026-04-14 01:20:05,122 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 01:20:05,153 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 01:20:05,156 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 01:20:05,157 - api_logger - INFO - Router cargado: /export
2026-04-14 01:20:05,161 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 01:20:05,161 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 01:20:05,169 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 01:20:05,170 - api_logger - INFO - Router cargado: /users
2026-04-14 01:20:05,172 - api_logger - INFO - Router cargado: /webservices
2026-04-14 01:20:05,173 - api_logger - INFO - Router cargado: /auth
2026-04-14 01:20:05,174 - api_logger - INFO - Router cargado: 
2026-04-14 01:20:05,174 - api_logger - INFO - Router cargado: /licenses
2026-04-14 01:20:05,174 - api_logger - INFO - Router cargado: /plans
2026-04-14 01:20:05,175 - api_logger - INFO - Router cargado: /payment
2026-04-14 10:49:30,522 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 10:49:30,558 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 10:49:30,560 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 10:49:30,561 - api_logger - INFO - Router cargado: /export
2026-04-14 10:49:30,564 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 10:49:30,565 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 10:49:30,572 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 10:49:30,574 - api_logger - INFO - Router cargado: /users
2026-04-14 10:49:30,576 - api_logger - INFO - Router cargado: /webservices
2026-04-14 10:49:30,577 - api_logger - INFO - Router cargado: /auth
2026-04-14 10:49:30,578 - api_logger - INFO - Router cargado: 
2026-04-14 10:49:30,578 - api_logger - INFO - Router cargado: /licenses
2026-04-14 10:49:30,578 - api_logger - INFO - Router cargado: /plans
2026-04-14 10:49:30,579 - api_logger - INFO - Router cargado: /payment
2026-04-14 10:49:30,633 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/login: Usuario no encontrado.
2026-04-14 10:49:30,634 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 4.
2026-04-14 10:49:30,635 - api_logger - DEBUG - [LockedError] http://testserver/v1/auth/login: Cuenta bloqueada.
2026-04-14 10:49:30,637 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/auth/login: Tu cuenta aún no ha sido verificada.
2026-04-14 10:49:30,639 - api_logger - DEBUG - [UnavailableForLegalReasonsError] http://testserver/v1/auth/login: Tu cuenta ha sido suspendida.
2026-04-14 10:49:30,641 - api_logger - DEBUG - [ConflictError] http://testserver/v1/auth/register: El correo electrónico nuevo@example.com ya está registrado.
2026-04-14 10:49:30,644 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/recovery/passwd: Cuenta no registrada.
2026-04-14 10:49:30,647 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/reset/passwd: El token para permitir el cambio de contraseña ha expirado.
2026-04-14 10:49:30,650 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/resend-verification?tkn=bad-token: Token no válido
2026-04-14 10:49:30,651 - api_logger - DEBUG - [TooManyRequestsError] http://testserver/v1/auth/resend-verification?tkn=any-token: Has superado el límite de intentos.
2026-04-14 10:49:30,656 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getall: Sin cuentas registradas.
2026-04-14 10:49:30,659 - api_logger - DEBUG - [ConflictError] http://testserver/v1/bankaccount/create: La cuenta ya existe.
2026-04-14 10:49:30,661 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getbyid/999: Cuenta no encontrada.
2026-04-14 10:49:30,664 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/update/999: Cuenta no encontrada.
2026-04-14 10:49:30,668 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/delete/999: Cuenta no encontrada.
2026-04-14 10:49:30,671 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?current_page=0: current_page debe ser un valor positivo.
2026-04-14 10:49:30,672 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?page_size=200: page_size debe estar entre 1 y 100.
2026-04-14 10:49:30,685 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/create: El RFC ya está registrado.
2026-04-14 10:49:30,686 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/fiscalcustomer/create: No autorizado.
2026-04-14 10:49:30,691 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/update/999: RFC no encontrado.
2026-04-14 10:49:30,698 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/list/byid/999: RFC no encontrado.
2026-04-14 10:49:30,703 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/setselected/999: RFC no encontrado.
2026-04-14 10:49:30,706 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/getselected: Sin RFC seleccionado.
2026-04-14 10:49:30,709 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/licenses/info: Licencia no encontrada.
2026-04-14 10:49:30,711 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/licenses/info: Licencia suspendida.
2026-04-14 10:49:30,714 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/menu_options/get: Rol no encontrado.
2026-04-14 10:49:30,720 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/getall: Sin movimientos.
2026-04-14 10:49:30,723 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/get_selected_rfc: Sin RFC seleccionado.
2026-04-14 10:49:30,727 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/delete/999: Movimiento no encontrado.
2026-04-14 10:49:30,731 - api_logger - DEBUG - [DomainError] http://testserver/v1/movements_banks/upload/bbva: Formato de archivo inválido.
2026-04-14 10:49:30,780 - api_logger - DEBUG - [ConflictError] http://testserver/v1/payment/stripe/checkout: Suscripción activa.
2026-04-14 10:49:30,785 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/getsubscription: Sin suscripción activa.
2026-04-14 10:49:30,788 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/cancelsubscription/sub_INVALID: Suscripción no encontrada.
2026-04-14 10:49:30,794 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile: Usuario no encontrado.
2026-04-14 10:49:30,797 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile/update: Usuario no encontrado.
2026-04-14 10:49:30,800 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/users/subusers: No tienes permisos.
2026-04-14 10:49:30,803 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/detail?id=999: Subusuario no encontrado.
2026-04-14 10:49:30,808 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/delete?id_subuser=999: Subusuario no encontrado.
2026-04-14 10:49:30,812 - api_logger - DEBUG - [ConflictError] http://testserver/v1/users/subuser/create: El correo ya está registrado.
2026-04-14 10:52:52,950 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 10:52:52,985 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 10:52:52,988 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 10:52:52,989 - api_logger - INFO - Router cargado: /export
2026-04-14 10:52:52,993 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 10:52:52,993 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 10:52:53,001 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 10:52:53,002 - api_logger - INFO - Router cargado: /users
2026-04-14 10:52:53,004 - api_logger - INFO - Router cargado: /webservices
2026-04-14 10:52:53,005 - api_logger - INFO - Router cargado: /auth
2026-04-14 10:52:53,006 - api_logger - INFO - Router cargado: 
2026-04-14 10:52:53,006 - api_logger - INFO - Router cargado: /licenses
2026-04-14 10:52:53,007 - api_logger - INFO - Router cargado: /plans
2026-04-14 10:52:53,007 - api_logger - INFO - Router cargado: /payment
2026-04-14 10:52:53,056 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 10:52:53,084 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 10:52:53,087 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 10:52:53,088 - api_logger - INFO - Router cargado: /export
2026-04-14 10:52:53,091 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 10:52:53,091 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 10:52:53,100 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 10:52:53,101 - api_logger - INFO - Router cargado: /users
2026-04-14 10:52:53,103 - api_logger - INFO - Router cargado: /webservices
2026-04-14 10:52:53,104 - api_logger - INFO - Router cargado: /auth
2026-04-14 10:52:53,105 - api_logger - INFO - Router cargado: 
2026-04-14 10:52:53,105 - api_logger - INFO - Router cargado: /licenses
2026-04-14 10:52:53,105 - api_logger - INFO - Router cargado: /plans
2026-04-14 10:52:53,106 - api_logger - INFO - Router cargado: /payment
2026-04-14 10:54:55,533 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 10:54:55,569 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 10:54:55,572 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 10:54:55,573 - api_logger - INFO - Router cargado: /export
2026-04-14 10:54:55,577 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 10:54:55,577 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 10:54:55,586 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 10:54:55,588 - api_logger - INFO - Router cargado: /users
2026-04-14 10:54:55,589 - api_logger - INFO - Router cargado: /webservices
2026-04-14 10:54:55,591 - api_logger - INFO - Router cargado: /auth
2026-04-14 10:54:55,592 - api_logger - INFO - Router cargado: 
2026-04-14 10:54:55,592 - api_logger - INFO - Router cargado: /licenses
2026-04-14 10:54:55,592 - api_logger - INFO - Router cargado: /plans
2026-04-14 10:54:55,593 - api_logger - INFO - Router cargado: /payment
2026-04-14 10:54:55,616 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 10:54:55,648 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 10:54:55,651 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 10:54:55,652 - api_logger - INFO - Router cargado: /export
2026-04-14 10:54:55,655 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 10:54:55,655 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 10:54:55,663 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 10:54:55,664 - api_logger - INFO - Router cargado: /users
2026-04-14 10:54:55,665 - api_logger - INFO - Router cargado: /webservices
2026-04-14 10:54:55,667 - api_logger - INFO - Router cargado: /auth
2026-04-14 10:54:55,667 - api_logger - INFO - Router cargado: 
2026-04-14 10:54:55,667 - api_logger - INFO - Router cargado: /licenses
2026-04-14 10:54:55,668 - api_logger - INFO - Router cargado: /plans
2026-04-14 10:54:55,668 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:00:20,583 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:00:20,618 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:00:20,620 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:00:20,621 - api_logger - INFO - Router cargado: /export
2026-04-14 11:00:20,625 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:00:20,625 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:00:20,633 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:00:20,634 - api_logger - INFO - Router cargado: /users
2026-04-14 11:00:20,636 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:00:20,637 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:00:20,638 - api_logger - INFO - Router cargado: 
2026-04-14 11:00:20,638 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:00:20,639 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:00:20,639 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:00:20,661 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:00:20,691 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:00:20,694 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:00:20,695 - api_logger - INFO - Router cargado: /export
2026-04-14 11:00:20,698 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:00:20,699 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:00:20,707 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:00:20,709 - api_logger - INFO - Router cargado: /users
2026-04-14 11:00:20,711 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:00:20,713 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:00:20,714 - api_logger - INFO - Router cargado: 
2026-04-14 11:00:20,714 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:00:20,714 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:00:20,715 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:00:23,471 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:00:23,504 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:00:23,506 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:00:23,507 - api_logger - INFO - Router cargado: /export
2026-04-14 11:00:23,511 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:00:23,511 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:00:23,518 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:00:23,520 - api_logger - INFO - Router cargado: /users
2026-04-14 11:00:23,521 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:00:23,523 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:00:23,524 - api_logger - INFO - Router cargado: 
2026-04-14 11:00:23,524 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:00:23,524 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:00:23,524 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:00:23,546 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:00:23,574 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:00:23,576 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:00:23,577 - api_logger - INFO - Router cargado: /export
2026-04-14 11:00:23,580 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:00:23,580 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:00:23,587 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:00:23,589 - api_logger - INFO - Router cargado: /users
2026-04-14 11:00:23,590 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:00:23,591 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:00:23,592 - api_logger - INFO - Router cargado: 
2026-04-14 11:00:23,592 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:00:23,592 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:00:23,593 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:00:30,679 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:00:30,713 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:00:30,716 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:00:30,717 - api_logger - INFO - Router cargado: /export
2026-04-14 11:00:30,720 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:00:30,720 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:00:30,728 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:00:30,729 - api_logger - INFO - Router cargado: /users
2026-04-14 11:00:30,731 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:00:30,732 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:00:30,733 - api_logger - INFO - Router cargado: 
2026-04-14 11:00:30,733 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:00:30,733 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:00:30,734 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:00:30,796 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/login: Usuario no encontrado.
2026-04-14 11:00:30,798 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 4.
2026-04-14 11:00:30,799 - api_logger - DEBUG - [LockedError] http://testserver/v1/auth/login: Cuenta bloqueada.
2026-04-14 11:00:30,801 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/auth/login: Tu cuenta aún no ha sido verificada.
2026-04-14 11:00:30,803 - api_logger - DEBUG - [UnavailableForLegalReasonsError] http://testserver/v1/auth/login: Tu cuenta ha sido suspendida.
2026-04-14 11:00:30,806 - api_logger - DEBUG - [ConflictError] http://testserver/v1/auth/register: El correo electrónico nuevo@example.com ya está registrado.
2026-04-14 11:00:30,809 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/recovery/passwd: Cuenta no registrada.
2026-04-14 11:00:30,812 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/reset/passwd: El token para permitir el cambio de contraseña ha expirado.
2026-04-14 11:00:30,815 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/resend-verification?tkn=bad-token: Token no válido
2026-04-14 11:00:30,816 - api_logger - DEBUG - [TooManyRequestsError] http://testserver/v1/auth/resend-verification?tkn=any-token: Has superado el límite de intentos.
2026-04-14 11:00:30,821 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getall: Sin cuentas registradas.
2026-04-14 11:00:30,824 - api_logger - DEBUG - [ConflictError] http://testserver/v1/bankaccount/create: La cuenta ya existe.
2026-04-14 11:00:30,827 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getbyid/999: Cuenta no encontrada.
2026-04-14 11:00:30,830 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/update/999: Cuenta no encontrada.
2026-04-14 11:00:30,833 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/delete/999: Cuenta no encontrada.
2026-04-14 11:00:30,837 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?current_page=0: current_page debe ser un valor positivo.
2026-04-14 11:00:30,838 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?page_size=200: page_size debe estar entre 1 y 100.
2026-04-14 11:00:30,850 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/create: El RFC ya está registrado.
2026-04-14 11:00:30,851 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/fiscalcustomer/create: No autorizado.
2026-04-14 11:00:30,856 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/update/999: RFC no encontrado.
2026-04-14 11:00:30,862 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/list/byid/999: RFC no encontrado.
2026-04-14 11:00:30,867 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/setselected/999: RFC no encontrado.
2026-04-14 11:00:30,870 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/getselected: Sin RFC seleccionado.
2026-04-14 11:00:30,874 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/licenses/info: Licencia no encontrada.
2026-04-14 11:00:30,875 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/licenses/info: Licencia suspendida.
2026-04-14 11:00:30,879 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/menu_options/get: Rol no encontrado.
2026-04-14 11:00:30,884 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/getall: Sin movimientos.
2026-04-14 11:00:30,887 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/get_selected_rfc: Sin RFC seleccionado.
2026-04-14 11:00:30,890 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/delete/999: Movimiento no encontrado.
2026-04-14 11:00:30,894 - api_logger - DEBUG - [DomainError] http://testserver/v1/movements_banks/upload/bbva: Formato de archivo inválido.
2026-04-14 11:00:30,944 - api_logger - DEBUG - [ConflictError] http://testserver/v1/payment/stripe/checkout: Suscripción activa.
2026-04-14 11:00:30,948 - api_logger - ERROR - Error inesperado en http://testserver/v1/payment/stripe/getsubscription: 'id_l'
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/payment.py", line 40, in get_subscription
    info = lic_man.get_subscriptionid_stripe(token)
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/services/LicensesManager.py", line 29, in get_subscriptionid_stripe
    id_lic = tkn['id_l']
             ~~~^^^^^^^^
KeyError: 'id_l'
2026-04-14 11:00:30,960 - api_logger - ERROR - Error inesperado en http://testserver/v1/payment/stripe/getsubscription: 'id_l'
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/payment.py", line 40, in get_subscription
    info = lic_man.get_subscriptionid_stripe(token)
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/services/LicensesManager.py", line 29, in get_subscriptionid_stripe
    id_lic = tkn['id_l']
             ~~~^^^^^^^^
KeyError: 'id_l'
2026-04-14 11:00:30,966 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/cancelsubscription/sub_INVALID: Suscripción no encontrada.
2026-04-14 11:00:30,972 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile: Usuario no encontrado.
2026-04-14 11:00:30,976 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile/update: Usuario no encontrado.
2026-04-14 11:00:30,979 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/users/subusers: No tienes permisos.
2026-04-14 11:00:30,983 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/detail?id=999: Subusuario no encontrado.
2026-04-14 11:00:30,988 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/delete?id_subuser=999: Subusuario no encontrado.
2026-04-14 11:00:30,992 - api_logger - DEBUG - [ConflictError] http://testserver/v1/users/subuser/create: El correo ya está registrado.
2026-04-14 11:03:09,345 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: batcaver7@gmail.com
2026-04-14 11:03:12,791 - api_logger - WARNING - Sin licencia para user_id: 96
2026-04-14 11:03:12,800 - api_logger - ERROR - PaymentIntent fallido | customer: cus_UHvNQjoDi3iBsZ | decline_code: generic_decline | message: Your card was declined.
2026-04-14 11:05:24,116 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:05:24,150 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:05:24,153 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:05:24,154 - api_logger - INFO - Router cargado: /export
2026-04-14 11:05:24,158 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:05:24,158 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:05:24,167 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:05:24,169 - api_logger - INFO - Router cargado: /users
2026-04-14 11:05:24,170 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:05:24,171 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:05:24,173 - api_logger - INFO - Router cargado: 
2026-04-14 11:05:24,173 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:05:24,173 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:05:24,174 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:05:24,197 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:05:24,226 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:05:24,228 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:05:24,229 - api_logger - INFO - Router cargado: /export
2026-04-14 11:05:24,232 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:05:24,233 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:05:24,240 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:05:24,241 - api_logger - INFO - Router cargado: /users
2026-04-14 11:05:24,243 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:05:24,244 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:05:24,245 - api_logger - INFO - Router cargado: 
2026-04-14 11:05:24,245 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:05:24,245 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:05:24,246 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:07:55,510 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:07:55,545 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:07:55,547 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:07:55,548 - api_logger - INFO - Router cargado: /export
2026-04-14 11:07:55,552 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:07:55,552 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:07:55,560 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:07:55,561 - api_logger - INFO - Router cargado: /users
2026-04-14 11:07:55,563 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:07:55,564 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:07:55,565 - api_logger - INFO - Router cargado: 
2026-04-14 11:07:55,565 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:07:55,565 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:07:55,566 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:09:46,698 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:09:46,733 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:09:46,736 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:09:46,737 - api_logger - INFO - Router cargado: /export
2026-04-14 11:09:46,741 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:09:46,741 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:09:46,749 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:09:46,751 - api_logger - INFO - Router cargado: /users
2026-04-14 11:09:46,752 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:09:46,754 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:09:46,755 - api_logger - INFO - Router cargado: 
2026-04-14 11:09:46,755 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:09:46,755 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:09:46,756 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:09:46,781 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:09:46,810 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:09:46,812 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:09:46,813 - api_logger - INFO - Router cargado: /export
2026-04-14 11:09:46,816 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:09:46,816 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:09:46,824 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:09:46,826 - api_logger - INFO - Router cargado: /users
2026-04-14 11:09:46,827 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:09:46,828 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:09:46,829 - api_logger - INFO - Router cargado: 
2026-04-14 11:09:46,829 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:09:46,830 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:09:46,830 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:11:49,302 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:11:49,336 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:11:49,339 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:11:49,340 - api_logger - INFO - Router cargado: /export
2026-04-14 11:11:49,343 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:11:49,344 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:11:49,351 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:11:49,353 - api_logger - INFO - Router cargado: /users
2026-04-14 11:11:49,354 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:11:49,356 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:11:49,356 - api_logger - INFO - Router cargado: 
2026-04-14 11:11:49,357 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:11:49,357 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:11:49,358 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:11:49,402 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/login: Usuario no encontrado.
2026-04-14 11:11:49,404 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 4.
2026-04-14 11:11:49,406 - api_logger - DEBUG - [LockedError] http://testserver/v1/auth/login: Cuenta bloqueada.
2026-04-14 11:11:49,408 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/auth/login: Tu cuenta aún no ha sido verificada.
2026-04-14 11:11:49,409 - api_logger - DEBUG - [UnavailableForLegalReasonsError] http://testserver/v1/auth/login: Tu cuenta ha sido suspendida.
2026-04-14 11:11:49,412 - api_logger - DEBUG - [ConflictError] http://testserver/v1/auth/register: El correo electrónico nuevo@example.com ya está registrado.
2026-04-14 11:11:49,415 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/recovery/passwd: Cuenta no registrada.
2026-04-14 11:11:49,418 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/reset/passwd: El token para permitir el cambio de contraseña ha expirado.
2026-04-14 11:11:49,421 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/resend-verification?tkn=bad-token: Token no válido
2026-04-14 11:11:49,423 - api_logger - DEBUG - [TooManyRequestsError] http://testserver/v1/auth/resend-verification?tkn=any-token: Has superado el límite de intentos.
2026-04-14 11:11:49,428 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getall: Sin cuentas registradas.
2026-04-14 11:11:49,430 - api_logger - DEBUG - [ConflictError] http://testserver/v1/bankaccount/create: La cuenta ya existe.
2026-04-14 11:11:49,433 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getbyid/999: Cuenta no encontrada.
2026-04-14 11:11:49,437 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/update/999: Cuenta no encontrada.
2026-04-14 11:11:49,439 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/delete/999: Cuenta no encontrada.
2026-04-14 11:11:49,442 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?current_page=0: current_page debe ser un valor positivo.
2026-04-14 11:11:49,444 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?page_size=200: page_size debe estar entre 1 y 100.
2026-04-14 11:11:49,457 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/create: El RFC ya está registrado.
2026-04-14 11:11:49,459 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/fiscalcustomer/create: No autorizado.
2026-04-14 11:11:49,463 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/update/999: RFC no encontrado.
2026-04-14 11:11:49,468 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/list/byid/999: RFC no encontrado.
2026-04-14 11:11:49,474 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/setselected/999: RFC no encontrado.
2026-04-14 11:11:49,478 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/getselected: Sin RFC seleccionado.
2026-04-14 11:11:49,481 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/licenses/info: Licencia no encontrada.
2026-04-14 11:11:49,483 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/licenses/info: Licencia suspendida.
2026-04-14 11:11:49,485 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/menu_options/get: Rol no encontrado.
2026-04-14 11:11:49,490 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/getall: Sin movimientos.
2026-04-14 11:11:49,493 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/get_selected_rfc: Sin RFC seleccionado.
2026-04-14 11:11:49,496 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/delete/999: Movimiento no encontrado.
2026-04-14 11:11:49,500 - api_logger - DEBUG - [DomainError] http://testserver/v1/movements_banks/upload/bbva: Formato de archivo inválido.
2026-04-14 11:11:49,503 - api_logger - DEBUG - [ConflictError] http://testserver/v1/payment/stripe/checkout: Suscripción activa.
2026-04-14 11:11:49,508 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/getsubscription: Sin suscripción activa.
2026-04-14 11:11:49,511 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/cancelsubscription/sub_INVALID: Suscripción no encontrada.
2026-04-14 11:11:49,517 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile: Usuario no encontrado.
2026-04-14 11:11:49,521 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile/update: Usuario no encontrado.
2026-04-14 11:11:49,524 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/users/subusers: No tienes permisos.
2026-04-14 11:11:49,527 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/detail?id=999: Subusuario no encontrado.
2026-04-14 11:11:49,532 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/delete?id_subuser=999: Subusuario no encontrado.
2026-04-14 11:11:49,535 - api_logger - DEBUG - [ConflictError] http://testserver/v1/users/subuser/create: El correo ya está registrado.
2026-04-14 11:12:05,086 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:12:05,120 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:12:05,122 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:12:05,123 - api_logger - INFO - Router cargado: /export
2026-04-14 11:12:05,126 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:12:05,127 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:12:05,134 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:12:05,135 - api_logger - INFO - Router cargado: /users
2026-04-14 11:12:05,137 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:12:05,138 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:12:05,139 - api_logger - INFO - Router cargado: 
2026-04-14 11:12:05,139 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:12:05,139 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:12:05,140 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:12:08,720 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:12:08,752 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:12:08,755 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:12:08,756 - api_logger - INFO - Router cargado: /export
2026-04-14 11:12:08,759 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:12:08,759 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:12:08,767 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:12:08,768 - api_logger - INFO - Router cargado: /users
2026-04-14 11:12:08,770 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:12:08,771 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:12:08,772 - api_logger - INFO - Router cargado: 
2026-04-14 11:12:08,772 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:12:08,772 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:12:08,773 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:12:08,813 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/login: Usuario no encontrado.
2026-04-14 11:12:08,815 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 4.
2026-04-14 11:12:08,817 - api_logger - DEBUG - [LockedError] http://testserver/v1/auth/login: Cuenta bloqueada.
2026-04-14 11:12:08,819 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/auth/login: Tu cuenta aún no ha sido verificada.
2026-04-14 11:12:08,821 - api_logger - DEBUG - [UnavailableForLegalReasonsError] http://testserver/v1/auth/login: Tu cuenta ha sido suspendida.
2026-04-14 11:12:08,823 - api_logger - DEBUG - [ConflictError] http://testserver/v1/auth/register: El correo electrónico nuevo@example.com ya está registrado.
2026-04-14 11:12:08,826 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/recovery/passwd: Cuenta no registrada.
2026-04-14 11:12:08,829 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/reset/passwd: El token para permitir el cambio de contraseña ha expirado.
2026-04-14 11:12:08,832 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/resend-verification?tkn=bad-token: Token no válido
2026-04-14 11:12:08,834 - api_logger - DEBUG - [TooManyRequestsError] http://testserver/v1/auth/resend-verification?tkn=any-token: Has superado el límite de intentos.
2026-04-14 11:12:08,839 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getall: Sin cuentas registradas.
2026-04-14 11:12:08,842 - api_logger - DEBUG - [ConflictError] http://testserver/v1/bankaccount/create: La cuenta ya existe.
2026-04-14 11:12:08,845 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getbyid/999: Cuenta no encontrada.
2026-04-14 11:12:08,848 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/update/999: Cuenta no encontrada.
2026-04-14 11:12:08,851 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/delete/999: Cuenta no encontrada.
2026-04-14 11:12:08,854 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?current_page=0: current_page debe ser un valor positivo.
2026-04-14 11:12:08,856 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?page_size=200: page_size debe estar entre 1 y 100.
2026-04-14 11:12:08,868 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/create: El RFC ya está registrado.
2026-04-14 11:12:08,869 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/fiscalcustomer/create: No autorizado.
2026-04-14 11:12:08,874 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/update/999: RFC no encontrado.
2026-04-14 11:12:08,880 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/list/byid/999: RFC no encontrado.
2026-04-14 11:12:08,885 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/setselected/999: RFC no encontrado.
2026-04-14 11:12:08,888 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/getselected: Sin RFC seleccionado.
2026-04-14 11:12:08,891 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/licenses/info: Licencia no encontrada.
2026-04-14 11:12:08,893 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/licenses/info: Licencia suspendida.
2026-04-14 11:12:08,896 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/menu_options/get: Rol no encontrado.
2026-04-14 11:12:08,901 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/getall: Sin movimientos.
2026-04-14 11:12:08,904 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/get_selected_rfc: Sin RFC seleccionado.
2026-04-14 11:12:08,907 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/delete/999: Movimiento no encontrado.
2026-04-14 11:12:08,911 - api_logger - DEBUG - [DomainError] http://testserver/v1/movements_banks/upload/bbva: Formato de archivo inválido.
2026-04-14 11:12:08,915 - api_logger - DEBUG - [ConflictError] http://testserver/v1/payment/stripe/checkout: Suscripción activa.
2026-04-14 11:12:08,919 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/getsubscription: Sin suscripción activa.
2026-04-14 11:12:08,923 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/cancelsubscription/sub_INVALID: Suscripción no encontrada.
2026-04-14 11:12:08,929 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile: Usuario no encontrado.
2026-04-14 11:12:08,932 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile/update: Usuario no encontrado.
2026-04-14 11:12:08,935 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/users/subusers: No tienes permisos.
2026-04-14 11:12:08,939 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/detail?id=999: Subusuario no encontrado.
2026-04-14 11:12:08,944 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/delete?id_subuser=999: Subusuario no encontrado.
2026-04-14 11:12:08,947 - api_logger - DEBUG - [ConflictError] http://testserver/v1/users/subuser/create: El correo ya está registrado.
2026-04-14 11:12:23,426 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: batcaver7@gmail.com
2026-04-14 11:12:25,442 - api_logger - WARNING - Sin licencia para user_id: 96
2026-04-14 11:12:25,453 - api_logger - ERROR - PaymentIntent fallido | customer: cus_UHvNQjoDi3iBsZ | decline_code: generic_decline | message: Your card was declined.
2026-04-14 11:12:38,989 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:12:39,025 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:12:39,028 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:12:39,029 - api_logger - INFO - Router cargado: /export
2026-04-14 11:12:39,032 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:12:39,033 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:12:39,041 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:12:39,042 - api_logger - INFO - Router cargado: /users
2026-04-14 11:12:39,044 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:12:39,045 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:12:39,046 - api_logger - INFO - Router cargado: 
2026-04-14 11:12:39,046 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:12:39,047 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:12:39,047 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:12:39,070 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:12:39,097 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:12:39,100 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:12:39,101 - api_logger - INFO - Router cargado: /export
2026-04-14 11:12:39,104 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:12:39,104 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:12:39,111 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:12:39,113 - api_logger - INFO - Router cargado: /users
2026-04-14 11:12:39,114 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:12:39,115 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:12:39,116 - api_logger - INFO - Router cargado: 
2026-04-14 11:12:39,116 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:12:39,116 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:12:39,117 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:15:07,588 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:15:07,621 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:15:07,623 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:15:07,624 - api_logger - INFO - Router cargado: /export
2026-04-14 11:15:07,628 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:15:07,628 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:15:07,635 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:15:07,637 - api_logger - INFO - Router cargado: /users
2026-04-14 11:15:07,638 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:15:07,640 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:15:07,640 - api_logger - INFO - Router cargado: 
2026-04-14 11:15:07,641 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:15:07,641 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:15:07,641 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:15:07,662 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:15:07,690 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:15:07,692 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:15:07,693 - api_logger - INFO - Router cargado: /export
2026-04-14 11:15:07,696 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:15:07,697 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:15:07,704 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:15:07,705 - api_logger - INFO - Router cargado: /users
2026-04-14 11:15:07,706 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:15:07,708 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:15:07,709 - api_logger - INFO - Router cargado: 
2026-04-14 11:15:07,709 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:15:07,709 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:15:07,709 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:17:25,410 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:17:25,447 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:17:25,450 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:17:25,451 - api_logger - INFO - Router cargado: /export
2026-04-14 11:17:25,455 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:17:25,455 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:17:25,464 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:17:25,465 - api_logger - INFO - Router cargado: /users
2026-04-14 11:17:25,467 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:17:25,468 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:17:25,469 - api_logger - INFO - Router cargado: 
2026-04-14 11:17:25,470 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:17:25,470 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:17:25,470 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:17:25,495 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:17:25,524 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:17:25,527 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:17:25,528 - api_logger - INFO - Router cargado: /export
2026-04-14 11:17:25,533 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:17:25,533 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:17:25,543 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:17:25,545 - api_logger - INFO - Router cargado: /users
2026-04-14 11:17:25,546 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:17:25,548 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:17:25,549 - api_logger - INFO - Router cargado: 
2026-04-14 11:17:25,549 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:17:25,549 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:17:25,550 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:25:45,878 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:25:45,912 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:25:45,915 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:25:45,916 - api_logger - INFO - Router cargado: /export
2026-04-14 11:25:45,920 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:25:45,920 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:25:45,928 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:25:45,929 - api_logger - INFO - Router cargado: /users
2026-04-14 11:25:45,931 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:25:45,932 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:25:45,934 - api_logger - INFO - Router cargado: 
2026-04-14 11:25:45,934 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:25:45,934 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:25:45,935 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:25:45,958 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:25:45,988 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:25:45,990 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:25:45,991 - api_logger - INFO - Router cargado: /export
2026-04-14 11:25:45,994 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:25:45,994 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:25:46,002 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:25:46,004 - api_logger - INFO - Router cargado: /users
2026-04-14 11:25:46,005 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:25:46,007 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:25:46,007 - api_logger - INFO - Router cargado: 
2026-04-14 11:25:46,008 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:25:46,008 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:25:46,008 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:25:51,897 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:25:51,929 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:25:51,932 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:25:51,933 - api_logger - INFO - Router cargado: /export
2026-04-14 11:25:51,937 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:25:51,937 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:25:51,945 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:25:51,947 - api_logger - INFO - Router cargado: /users
2026-04-14 11:25:51,948 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:25:51,950 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:25:51,951 - api_logger - INFO - Router cargado: 
2026-04-14 11:25:51,951 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:25:51,951 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:25:51,952 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:25:51,976 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:25:52,013 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:25:52,016 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:25:52,017 - api_logger - INFO - Router cargado: /export
2026-04-14 11:25:52,020 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:25:52,020 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:25:52,030 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:25:52,032 - api_logger - INFO - Router cargado: /users
2026-04-14 11:25:52,033 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:25:52,035 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:25:52,036 - api_logger - INFO - Router cargado: 
2026-04-14 11:25:52,036 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:25:52,036 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:25:52,036 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:26:00,198 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:26:00,233 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:26:00,235 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:26:00,236 - api_logger - INFO - Router cargado: /export
2026-04-14 11:26:00,241 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:26:00,241 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:26:00,248 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:26:00,250 - api_logger - INFO - Router cargado: /users
2026-04-14 11:26:00,251 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:26:00,253 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:26:00,254 - api_logger - INFO - Router cargado: 
2026-04-14 11:26:00,254 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:26:00,254 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:26:00,255 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:26:00,278 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:26:00,307 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:26:00,310 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:26:00,311 - api_logger - INFO - Router cargado: /export
2026-04-14 11:26:00,314 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:26:00,314 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:26:00,322 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:26:00,323 - api_logger - INFO - Router cargado: /users
2026-04-14 11:26:00,325 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:26:00,326 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:26:00,327 - api_logger - INFO - Router cargado: 
2026-04-14 11:26:00,327 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:26:00,328 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:26:00,328 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:32:07,516 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:32:07,549 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:32:07,552 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:32:07,553 - api_logger - INFO - Router cargado: /export
2026-04-14 11:32:07,557 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:32:07,557 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:32:07,565 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:32:07,567 - api_logger - INFO - Router cargado: /users
2026-04-14 11:32:07,568 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:32:07,570 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:32:07,571 - api_logger - INFO - Router cargado: 
2026-04-14 11:32:07,571 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:32:07,571 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:32:07,572 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:32:07,594 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:32:07,626 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:32:07,628 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:32:07,629 - api_logger - INFO - Router cargado: /export
2026-04-14 11:32:07,632 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:32:07,632 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:32:07,639 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:32:07,641 - api_logger - INFO - Router cargado: /users
2026-04-14 11:32:07,642 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:32:07,643 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:32:07,644 - api_logger - INFO - Router cargado: 
2026-04-14 11:32:07,644 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:32:07,644 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:32:07,645 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:32:13,618 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:32:13,655 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:32:13,658 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:32:13,659 - api_logger - INFO - Router cargado: /export
2026-04-14 11:32:13,663 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:32:13,663 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:32:13,671 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:32:13,672 - api_logger - INFO - Router cargado: /users
2026-04-14 11:32:13,674 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:32:13,675 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:32:13,676 - api_logger - INFO - Router cargado: 
2026-04-14 11:32:13,676 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:32:13,677 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:32:13,677 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:32:13,700 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:32:13,728 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:32:13,731 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:32:13,731 - api_logger - INFO - Router cargado: /export
2026-04-14 11:32:13,735 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:32:13,735 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:32:13,743 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:32:13,744 - api_logger - INFO - Router cargado: /users
2026-04-14 11:32:13,745 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:32:13,747 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:32:13,748 - api_logger - INFO - Router cargado: 
2026-04-14 11:32:13,748 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:32:13,748 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:32:13,748 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:32:20,945 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:32:20,979 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:32:20,981 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:32:20,983 - api_logger - INFO - Router cargado: /export
2026-04-14 11:32:20,986 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:32:20,987 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:32:20,995 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:32:20,997 - api_logger - INFO - Router cargado: /users
2026-04-14 11:32:20,998 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:32:21,000 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:32:21,001 - api_logger - INFO - Router cargado: 
2026-04-14 11:32:21,001 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:32:21,001 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:32:21,002 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:32:21,026 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:32:21,054 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:32:21,056 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:32:21,057 - api_logger - INFO - Router cargado: /export
2026-04-14 11:32:21,060 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:32:21,060 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:32:21,068 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:32:21,069 - api_logger - INFO - Router cargado: /users
2026-04-14 11:32:21,070 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:32:21,072 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:32:21,072 - api_logger - INFO - Router cargado: 
2026-04-14 11:32:21,072 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:32:21,073 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:32:21,073 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:32:31,556 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:32:31,594 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:32:31,596 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:32:31,597 - api_logger - INFO - Router cargado: /export
2026-04-14 11:32:31,601 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:32:31,601 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:32:31,609 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:32:31,611 - api_logger - INFO - Router cargado: /users
2026-04-14 11:32:31,613 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:32:31,614 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:32:31,615 - api_logger - INFO - Router cargado: 
2026-04-14 11:32:31,615 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:32:31,615 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:32:31,616 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:32:31,639 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:32:31,670 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:32:31,672 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:32:31,673 - api_logger - INFO - Router cargado: /export
2026-04-14 11:32:31,676 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:32:31,676 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:32:31,684 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:32:31,686 - api_logger - INFO - Router cargado: /users
2026-04-14 11:32:31,687 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:32:31,688 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:32:31,689 - api_logger - INFO - Router cargado: 
2026-04-14 11:32:31,689 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:32:31,689 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:32:31,690 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:40:26,356 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:40:26,392 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:40:26,395 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:40:26,396 - api_logger - INFO - Router cargado: /export
2026-04-14 11:40:26,400 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:40:26,400 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:40:26,408 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:40:26,409 - api_logger - INFO - Router cargado: /users
2026-04-14 11:40:26,411 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:40:26,412 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:40:26,413 - api_logger - INFO - Router cargado: 
2026-04-14 11:40:26,413 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:40:26,414 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:40:26,414 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:40:26,497 - api_logger - WARNING - invoice.payment_action_required sin customer_email, ignorando
2026-04-14 11:40:26,498 - api_logger - WARNING - No se pudo obtener last4 para action_required: error
2026-04-14 11:40:26,505 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: test@example.com
2026-04-14 11:40:26,506 - api_logger - INFO - Pago fallido registrado | user: test@example.com | decline_code: card_declined | last4: 4242
2026-04-14 11:40:26,507 - api_logger - WARNING - Charge fallido: card_declined - None - email: None
2026-04-14 11:40:26,507 - api_logger - ERROR - charge.failed sin customer_email, no se puede registrar
2026-04-14 11:40:26,507 - api_logger - ERROR - PaymentIntent fallido | customer: cus_stripe123 | decline_code: card_declined | message: Your card was declined.
2026-04-14 11:40:43,241 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:40:43,276 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:40:43,279 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:40:43,280 - api_logger - INFO - Router cargado: /export
2026-04-14 11:40:43,284 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:40:43,284 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:40:43,293 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:40:43,295 - api_logger - INFO - Router cargado: /users
2026-04-14 11:40:43,297 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:40:43,298 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:40:43,300 - api_logger - INFO - Router cargado: 
2026-04-14 11:40:43,300 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:40:43,300 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:40:43,301 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:40:43,323 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:40:43,354 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:40:43,356 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:40:43,357 - api_logger - INFO - Router cargado: /export
2026-04-14 11:40:43,361 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:40:43,361 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:40:43,369 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:40:43,370 - api_logger - INFO - Router cargado: /users
2026-04-14 11:40:43,371 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:40:43,373 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:40:43,373 - api_logger - INFO - Router cargado: 
2026-04-14 11:40:43,374 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:40:43,374 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:40:43,374 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:40:46,507 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:40:46,542 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:40:46,545 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:40:46,546 - api_logger - INFO - Router cargado: /export
2026-04-14 11:40:46,549 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:40:46,550 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:40:46,557 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:40:46,559 - api_logger - INFO - Router cargado: /users
2026-04-14 11:40:46,560 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:40:46,561 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:40:46,562 - api_logger - INFO - Router cargado: 
2026-04-14 11:40:46,563 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:40:46,563 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:40:46,563 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:40:46,585 - api_logger - WARNING - invoice.payment_action_required sin customer_email, ignorando
2026-04-14 11:40:46,586 - api_logger - WARNING - No se pudo obtener last4 para action_required: error
2026-04-14 11:40:46,592 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: test@example.com
2026-04-14 11:40:46,593 - api_logger - INFO - Pago fallido registrado | user: test@example.com | decline_code: card_declined | last4: 4242
2026-04-14 11:40:46,594 - api_logger - WARNING - Charge fallido: card_declined - None - email: None
2026-04-14 11:40:46,594 - api_logger - ERROR - charge.failed sin customer_email, no se puede registrar
2026-04-14 11:40:46,594 - api_logger - ERROR - PaymentIntent fallido | customer: cus_stripe123 | decline_code: card_declined | message: Your card was declined.
2026-04-14 11:41:47,112 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: None
2026-04-14 11:41:47,112 - api_logger - ERROR - charge.failed sin customer_email, no se puede registrar
2026-04-14 11:41:47,356 - api_logger - ERROR - PaymentIntent fallido | customer: cus_UKqfXeFItddPoU | decline_code: generic_decline | message: Your card was declined.
2026-04-14 11:41:49,270 - api_logger - ERROR - Error inesperado en http://localhost:8000/v1/payment/stripe/webhook: Usuario no encontrado: None
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/payment.py", line 34, in stripe_webhook
    Stripe.handle_webhook(payload, sig_header)
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/services/Stripe.py", line 120, in handle_webhook
    handler(event)
    ~~~~~~~^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/services/Stripe.py", line 219, in __handle_payment_failed
    user, plan = Stripe.__resolve_user_and_plan(d["customer_email"], d["price_id"])
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/services/Stripe.py", line 471, in __resolve_user_and_plan
    raise Exception(f"Usuario no encontrado: {customer_email}")
Exception: Usuario no encontrado: None
2026-04-14 11:42:52,736 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:42:52,770 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:42:52,773 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:42:52,774 - api_logger - INFO - Router cargado: /export
2026-04-14 11:42:52,777 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:42:52,778 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:42:52,786 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:42:52,788 - api_logger - INFO - Router cargado: /users
2026-04-14 11:42:52,789 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:42:52,790 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:42:52,791 - api_logger - INFO - Router cargado: 
2026-04-14 11:42:52,792 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:42:52,792 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:42:52,792 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:42:52,814 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:42:52,843 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:42:52,845 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:42:52,846 - api_logger - INFO - Router cargado: /export
2026-04-14 11:42:52,849 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:42:52,850 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:42:52,857 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:42:52,858 - api_logger - INFO - Router cargado: /users
2026-04-14 11:42:52,859 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:42:52,861 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:42:52,862 - api_logger - INFO - Router cargado: 
2026-04-14 11:42:52,862 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:42:52,862 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:42:52,862 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:43:03,576 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:43:03,610 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:43:03,613 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:43:03,614 - api_logger - INFO - Router cargado: /export
2026-04-14 11:43:03,617 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:43:03,618 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:43:03,625 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:43:03,627 - api_logger - INFO - Router cargado: /users
2026-04-14 11:43:03,629 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:43:03,630 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:43:03,631 - api_logger - INFO - Router cargado: 
2026-04-14 11:43:03,631 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:43:03,632 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:43:03,632 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:43:03,656 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:43:03,685 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:43:03,687 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:43:03,688 - api_logger - INFO - Router cargado: /export
2026-04-14 11:43:03,692 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:43:03,692 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:43:03,700 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:43:03,701 - api_logger - INFO - Router cargado: /users
2026-04-14 11:43:03,702 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:43:03,704 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:43:03,704 - api_logger - INFO - Router cargado: 
2026-04-14 11:43:03,705 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:43:03,705 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:43:03,706 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:43:06,962 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:43:06,997 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:43:06,999 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:43:07,000 - api_logger - INFO - Router cargado: /export
2026-04-14 11:43:07,004 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:43:07,004 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:43:07,012 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:43:07,013 - api_logger - INFO - Router cargado: /users
2026-04-14 11:43:07,015 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:43:07,016 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:43:07,017 - api_logger - INFO - Router cargado: 
2026-04-14 11:43:07,017 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:43:07,017 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:43:07,018 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:43:07,049 - api_logger - WARNING - invoice.payment_action_required sin customer_email, ignorando
2026-04-14 11:43:07,050 - api_logger - WARNING - No se pudo obtener last4 para action_required: error
2026-04-14 11:43:07,058 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: test@example.com
2026-04-14 11:43:07,058 - api_logger - INFO - Pago fallido registrado | user: test@example.com | decline_code: card_declined | last4: 4242
2026-04-14 11:43:07,059 - api_logger - WARNING - Charge fallido: card_declined - None - email: None
2026-04-14 11:43:07,059 - api_logger - ERROR - charge.failed sin customer_email, no se puede registrar
2026-04-14 11:43:07,060 - api_logger - ERROR - PaymentIntent fallido | customer: cus_stripe123 | decline_code: card_declined | message: Your card was declined.
2026-04-14 11:43:29,033 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: None
2026-04-14 11:43:29,033 - api_logger - ERROR - charge.failed sin customer_email, no se puede registrar
2026-04-14 11:43:29,317 - api_logger - ERROR - PaymentIntent fallido | customer: cus_UKqhkGahkHC7cM | decline_code: generic_decline | message: Your card was declined.
2026-04-14 11:43:31,385 - api_logger - ERROR - Error inesperado en http://localhost:8000/v1/payment/stripe/webhook: Usuario no encontrado: None
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/payment.py", line 34, in stripe_webhook
    Stripe.handle_webhook(payload, sig_header)
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/services/Stripe.py", line 120, in handle_webhook
    handler(event)
    ~~~~~~~^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/services/Stripe.py", line 228, in __handle_payment_failed
    user, plan = Stripe.__resolve_user_and_plan(d["customer_email"], d["price_id"])
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/services/Stripe.py", line 480, in __resolve_user_and_plan
    raise Exception(f"Usuario no encontrado: {customer_email}")
Exception: Usuario no encontrado: None
2026-04-14 11:44:18,651 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:44:18,689 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:44:18,693 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:44:18,695 - api_logger - INFO - Router cargado: /export
2026-04-14 11:44:18,700 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:44:18,700 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:44:18,711 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:44:18,713 - api_logger - INFO - Router cargado: /users
2026-04-14 11:44:18,715 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:44:18,717 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:44:18,719 - api_logger - INFO - Router cargado: 
2026-04-14 11:44:18,719 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:44:18,719 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:44:18,720 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:44:18,748 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:44:18,778 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:44:18,780 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:44:18,781 - api_logger - INFO - Router cargado: /export
2026-04-14 11:44:18,785 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:44:18,785 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:44:18,792 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:44:18,794 - api_logger - INFO - Router cargado: /users
2026-04-14 11:44:18,795 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:44:18,797 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:44:18,798 - api_logger - INFO - Router cargado: 
2026-04-14 11:44:18,798 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:44:18,798 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:44:18,799 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:44:26,451 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:44:26,493 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:44:26,496 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:44:26,497 - api_logger - INFO - Router cargado: /export
2026-04-14 11:44:26,501 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:44:26,501 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:44:26,510 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:44:26,512 - api_logger - INFO - Router cargado: /users
2026-04-14 11:44:26,514 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:44:26,515 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:44:26,516 - api_logger - INFO - Router cargado: 
2026-04-14 11:44:26,516 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:44:26,516 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:44:26,517 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:44:26,540 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:44:26,570 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:44:26,573 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:44:26,574 - api_logger - INFO - Router cargado: /export
2026-04-14 11:44:26,577 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:44:26,577 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:44:26,585 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:44:26,586 - api_logger - INFO - Router cargado: /users
2026-04-14 11:44:26,587 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:44:26,588 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:44:26,589 - api_logger - INFO - Router cargado: 
2026-04-14 11:44:26,589 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:44:26,589 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:44:26,590 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:44:34,253 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:44:34,287 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:44:34,290 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:44:34,291 - api_logger - INFO - Router cargado: /export
2026-04-14 11:44:34,295 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:44:34,295 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:44:34,303 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:44:34,304 - api_logger - INFO - Router cargado: /users
2026-04-14 11:44:34,306 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:44:34,308 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:44:34,308 - api_logger - INFO - Router cargado: 
2026-04-14 11:44:34,309 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:44:34,309 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:44:34,309 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:44:34,332 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:44:34,365 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:44:34,368 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:44:34,369 - api_logger - INFO - Router cargado: /export
2026-04-14 11:44:34,372 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:44:34,372 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:44:34,380 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:44:34,381 - api_logger - INFO - Router cargado: /users
2026-04-14 11:44:34,383 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:44:34,384 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:44:34,385 - api_logger - INFO - Router cargado: 
2026-04-14 11:44:34,385 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:44:34,385 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:44:34,386 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:44:56,463 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:44:56,498 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:44:56,502 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:44:56,503 - api_logger - INFO - Router cargado: /export
2026-04-14 11:44:56,508 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:44:56,509 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:44:56,519 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:44:56,521 - api_logger - INFO - Router cargado: /users
2026-04-14 11:44:56,523 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:44:56,525 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:44:56,527 - api_logger - INFO - Router cargado: 
2026-04-14 11:44:56,527 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:44:56,527 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:44:56,528 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:44:56,557 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:44:56,589 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:44:56,592 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:44:56,593 - api_logger - INFO - Router cargado: /export
2026-04-14 11:44:56,597 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:44:56,597 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:44:56,605 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:44:56,607 - api_logger - INFO - Router cargado: /users
2026-04-14 11:44:56,608 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:44:56,609 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:44:56,610 - api_logger - INFO - Router cargado: 
2026-04-14 11:44:56,611 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:44:56,611 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:44:56,611 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:45:00,642 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:45:00,678 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:45:00,680 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:45:00,681 - api_logger - INFO - Router cargado: /export
2026-04-14 11:45:00,685 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:45:00,685 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:45:00,693 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:45:00,695 - api_logger - INFO - Router cargado: /users
2026-04-14 11:45:00,696 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:45:00,698 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:45:00,699 - api_logger - INFO - Router cargado: 
2026-04-14 11:45:00,699 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:45:00,699 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:45:00,700 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:45:00,730 - api_logger - WARNING - invoice.payment_succeeded sin customer_email, ignorando
2026-04-14 11:45:00,731 - api_logger - WARNING - invoice.payment_failed sin customer_email, ignorando
2026-04-14 11:45:00,732 - api_logger - WARNING - invoice.upcoming sin customer_email, ignorando
2026-04-14 11:45:00,736 - api_logger - WARNING - invoice.payment_action_required sin customer_email, ignorando
2026-04-14 11:45:00,737 - api_logger - WARNING - No se pudo obtener last4 para action_required: error
2026-04-14 11:45:00,744 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: test@example.com
2026-04-14 11:45:00,745 - api_logger - INFO - Pago fallido registrado | user: test@example.com | decline_code: card_declined | last4: 4242
2026-04-14 11:45:00,746 - api_logger - WARNING - Charge fallido: card_declined - None - email: None
2026-04-14 11:45:00,746 - api_logger - ERROR - charge.failed sin customer_email, no se puede registrar
2026-04-14 11:45:00,746 - api_logger - ERROR - PaymentIntent fallido | customer: cus_stripe123 | decline_code: card_declined | message: Your card was declined.
2026-04-14 11:45:44,241 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: None
2026-04-14 11:45:44,241 - api_logger - ERROR - charge.failed sin customer_email, no se puede registrar
2026-04-14 11:45:44,486 - api_logger - ERROR - PaymentIntent fallido | customer: cus_UKqjmuqFloJqfR | decline_code: generic_decline | message: Your card was declined.
2026-04-14 11:45:45,211 - api_logger - WARNING - invoice.payment_failed sin customer_email, ignorando
2026-04-14 11:46:21,425 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: None
2026-04-14 11:46:21,425 - api_logger - ERROR - charge.failed sin customer_email, no se puede registrar
2026-04-14 11:46:21,669 - api_logger - ERROR - PaymentIntent fallido | customer: cus_UKqjc1Hsh3QVKd | decline_code: generic_decline | message: Your card was declined.
2026-04-14 11:46:22,230 - api_logger - WARNING - invoice.payment_failed sin customer_email, ignorando
2026-04-14 11:46:41,145 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:46:41,178 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:46:41,181 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:46:41,182 - api_logger - INFO - Router cargado: /export
2026-04-14 11:46:41,185 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:46:41,185 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:46:41,193 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:46:41,194 - api_logger - INFO - Router cargado: /users
2026-04-14 11:46:41,196 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:46:41,197 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:46:41,198 - api_logger - INFO - Router cargado: 
2026-04-14 11:46:41,198 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:46:41,198 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:46:41,199 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:46:41,242 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/login: Usuario no encontrado.
2026-04-14 11:46:41,244 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 4.
2026-04-14 11:46:41,245 - api_logger - DEBUG - [LockedError] http://testserver/v1/auth/login: Cuenta bloqueada.
2026-04-14 11:46:41,246 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/auth/login: Tu cuenta aún no ha sido verificada.
2026-04-14 11:46:41,248 - api_logger - DEBUG - [UnavailableForLegalReasonsError] http://testserver/v1/auth/login: Tu cuenta ha sido suspendida.
2026-04-14 11:46:41,251 - api_logger - DEBUG - [ConflictError] http://testserver/v1/auth/register: El correo electrónico nuevo@example.com ya está registrado.
2026-04-14 11:46:41,254 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/recovery/passwd: Cuenta no registrada.
2026-04-14 11:46:41,257 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/reset/passwd: El token para permitir el cambio de contraseña ha expirado.
2026-04-14 11:46:41,260 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/resend-verification?tkn=bad-token: Token no válido
2026-04-14 11:46:41,261 - api_logger - DEBUG - [TooManyRequestsError] http://testserver/v1/auth/resend-verification?tkn=any-token: Has superado el límite de intentos.
2026-04-14 11:46:41,266 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getall: Sin cuentas registradas.
2026-04-14 11:46:41,269 - api_logger - DEBUG - [ConflictError] http://testserver/v1/bankaccount/create: La cuenta ya existe.
2026-04-14 11:46:41,272 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getbyid/999: Cuenta no encontrada.
2026-04-14 11:46:41,275 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/update/999: Cuenta no encontrada.
2026-04-14 11:46:41,278 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/delete/999: Cuenta no encontrada.
2026-04-14 11:46:41,281 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?current_page=0: current_page debe ser un valor positivo.
2026-04-14 11:46:41,282 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?page_size=200: page_size debe estar entre 1 y 100.
2026-04-14 11:46:41,295 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/create: El RFC ya está registrado.
2026-04-14 11:46:41,297 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/fiscalcustomer/create: No autorizado.
2026-04-14 11:46:41,301 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/update/999: RFC no encontrado.
2026-04-14 11:46:41,306 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/list/byid/999: RFC no encontrado.
2026-04-14 11:46:41,311 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/setselected/999: RFC no encontrado.
2026-04-14 11:46:41,314 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/getselected: Sin RFC seleccionado.
2026-04-14 11:46:41,318 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/licenses/info: Licencia no encontrada.
2026-04-14 11:46:41,320 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/licenses/info: Licencia suspendida.
2026-04-14 11:46:41,323 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/menu_options/get: Rol no encontrado.
2026-04-14 11:46:41,327 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/getall: Sin movimientos.
2026-04-14 11:46:41,330 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/get_selected_rfc: Sin RFC seleccionado.
2026-04-14 11:46:41,333 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/delete/999: Movimiento no encontrado.
2026-04-14 11:46:41,338 - api_logger - DEBUG - [DomainError] http://testserver/v1/movements_banks/upload/bbva: Formato de archivo inválido.
2026-04-14 11:46:41,341 - api_logger - DEBUG - [ConflictError] http://testserver/v1/payment/stripe/checkout: Suscripción activa.
2026-04-14 11:46:41,345 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/getsubscription: Sin suscripción activa.
2026-04-14 11:46:41,349 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/cancelsubscription/sub_INVALID: Suscripción no encontrada.
2026-04-14 11:46:41,361 - api_logger - WARNING - invoice.payment_succeeded sin customer_email, ignorando
2026-04-14 11:46:41,362 - api_logger - WARNING - invoice.payment_failed sin customer_email, ignorando
2026-04-14 11:46:41,363 - api_logger - WARNING - invoice.upcoming sin customer_email, ignorando
2026-04-14 11:46:41,366 - api_logger - WARNING - invoice.payment_action_required sin customer_email, ignorando
2026-04-14 11:46:41,367 - api_logger - WARNING - No se pudo obtener last4 para action_required: error
2026-04-14 11:46:41,374 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: test@example.com
2026-04-14 11:46:41,374 - api_logger - INFO - Pago fallido registrado | user: test@example.com | decline_code: card_declined | last4: 4242
2026-04-14 11:46:41,375 - api_logger - WARNING - Charge fallido: card_declined - None - email: None
2026-04-14 11:46:41,375 - api_logger - ERROR - charge.failed sin customer_email, no se puede registrar
2026-04-14 11:46:41,376 - api_logger - ERROR - PaymentIntent fallido | customer: cus_stripe123 | decline_code: card_declined | message: Your card was declined.
2026-04-14 11:46:41,380 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile: Usuario no encontrado.
2026-04-14 11:46:41,383 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile/update: Usuario no encontrado.
2026-04-14 11:46:41,386 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/users/subusers: No tienes permisos.
2026-04-14 11:46:41,389 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/detail?id=999: Subusuario no encontrado.
2026-04-14 11:46:41,396 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/delete?id_subuser=999: Subusuario no encontrado.
2026-04-14 11:46:41,399 - api_logger - DEBUG - [ConflictError] http://testserver/v1/users/subuser/create: El correo ya está registrado.
2026-04-14 11:48:18,126 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:48:18,160 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:48:18,163 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:48:18,164 - api_logger - INFO - Router cargado: /export
2026-04-14 11:48:18,168 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:48:18,168 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:48:18,176 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:48:18,178 - api_logger - INFO - Router cargado: /users
2026-04-14 11:48:18,179 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:48:18,180 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:48:18,181 - api_logger - INFO - Router cargado: 
2026-04-14 11:48:18,181 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:48:18,182 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:48:18,182 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:48:18,206 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:48:18,237 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:48:18,240 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:48:18,241 - api_logger - INFO - Router cargado: /export
2026-04-14 11:48:18,245 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:48:18,245 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:48:18,253 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:48:18,255 - api_logger - INFO - Router cargado: /users
2026-04-14 11:48:18,256 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:48:18,258 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:48:18,258 - api_logger - INFO - Router cargado: 
2026-04-14 11:48:18,259 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:48:18,259 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:48:18,259 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:48:24,253 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:48:24,290 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:48:24,293 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:48:24,294 - api_logger - INFO - Router cargado: /export
2026-04-14 11:48:24,298 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:48:24,299 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:48:24,307 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:48:24,309 - api_logger - INFO - Router cargado: /users
2026-04-14 11:48:24,310 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:48:24,312 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:48:24,313 - api_logger - INFO - Router cargado: 
2026-04-14 11:48:24,313 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:48:24,313 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:48:24,314 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:48:24,339 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:48:24,370 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:48:24,373 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:48:24,374 - api_logger - INFO - Router cargado: /export
2026-04-14 11:48:24,377 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:48:24,377 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:48:24,386 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:48:24,388 - api_logger - INFO - Router cargado: /users
2026-04-14 11:48:24,389 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:48:24,390 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:48:24,392 - api_logger - INFO - Router cargado: 
2026-04-14 11:48:24,392 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:48:24,392 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:48:24,392 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:48:36,625 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:48:36,659 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:48:36,662 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:48:36,663 - api_logger - INFO - Router cargado: /export
2026-04-14 11:48:36,667 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:48:36,667 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:48:36,675 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:48:36,677 - api_logger - INFO - Router cargado: /users
2026-04-14 11:48:36,678 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:48:36,680 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:48:36,680 - api_logger - INFO - Router cargado: 
2026-04-14 11:48:36,681 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:48:36,681 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:48:36,681 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:48:36,706 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:48:36,735 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:48:36,737 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:48:36,738 - api_logger - INFO - Router cargado: /export
2026-04-14 11:48:36,742 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:48:36,742 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:48:36,750 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:48:36,751 - api_logger - INFO - Router cargado: /users
2026-04-14 11:48:36,752 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:48:36,754 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:48:36,755 - api_logger - INFO - Router cargado: 
2026-04-14 11:48:36,755 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:48:36,755 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:48:36,755 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:48:42,716 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:48:42,751 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:48:42,754 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:48:42,755 - api_logger - INFO - Router cargado: /export
2026-04-14 11:48:42,759 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:48:42,759 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:48:42,768 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:48:42,769 - api_logger - INFO - Router cargado: /users
2026-04-14 11:48:42,771 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:48:42,772 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:48:42,773 - api_logger - INFO - Router cargado: 
2026-04-14 11:48:42,773 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:48:42,773 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:48:42,774 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:48:42,797 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:48:42,825 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:48:42,828 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:48:42,829 - api_logger - INFO - Router cargado: /export
2026-04-14 11:48:42,832 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:48:42,833 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:48:42,840 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:48:42,842 - api_logger - INFO - Router cargado: /users
2026-04-14 11:48:42,843 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:48:42,844 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:48:42,845 - api_logger - INFO - Router cargado: 
2026-04-14 11:48:42,845 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:48:42,845 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:48:42,846 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:48:52,922 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:48:52,956 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:48:52,959 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:48:52,960 - api_logger - INFO - Router cargado: /export
2026-04-14 11:48:52,964 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:48:52,964 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:48:52,973 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:48:52,975 - api_logger - INFO - Router cargado: /users
2026-04-14 11:48:52,976 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:48:52,977 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:48:52,978 - api_logger - INFO - Router cargado: 
2026-04-14 11:48:52,978 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:48:52,979 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:48:52,979 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:48:53,003 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:48:53,031 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:48:53,034 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:48:53,035 - api_logger - INFO - Router cargado: /export
2026-04-14 11:48:53,038 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:48:53,039 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:48:53,047 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:48:53,048 - api_logger - INFO - Router cargado: /users
2026-04-14 11:48:53,049 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:48:53,051 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:48:53,052 - api_logger - INFO - Router cargado: 
2026-04-14 11:48:53,052 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:48:53,052 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:48:53,053 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:49:00,365 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:49:00,403 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:49:00,406 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:49:00,407 - api_logger - INFO - Router cargado: /export
2026-04-14 11:49:00,411 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:49:00,411 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:49:00,423 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:49:00,425 - api_logger - INFO - Router cargado: /users
2026-04-14 11:49:00,427 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:49:00,429 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:49:00,431 - api_logger - INFO - Router cargado: 
2026-04-14 11:49:00,431 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:49:00,431 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:49:00,432 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:49:00,457 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:49:00,490 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:49:00,493 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:49:00,493 - api_logger - INFO - Router cargado: /export
2026-04-14 11:49:00,497 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:49:00,497 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:49:00,506 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:49:00,507 - api_logger - INFO - Router cargado: /users
2026-04-14 11:49:00,509 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:49:00,510 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:49:00,511 - api_logger - INFO - Router cargado: 
2026-04-14 11:49:00,511 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:49:00,511 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:49:00,512 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:49:16,212 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:49:16,248 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:49:16,250 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:49:16,251 - api_logger - INFO - Router cargado: /export
2026-04-14 11:49:16,255 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:49:16,255 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:49:16,263 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:49:16,265 - api_logger - INFO - Router cargado: /users
2026-04-14 11:49:16,266 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:49:16,268 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:49:16,269 - api_logger - INFO - Router cargado: 
2026-04-14 11:49:16,269 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:49:16,269 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:49:16,270 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:49:16,294 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:49:16,327 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:49:16,330 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:49:16,331 - api_logger - INFO - Router cargado: /export
2026-04-14 11:49:16,334 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:49:16,334 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:49:16,341 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:49:16,343 - api_logger - INFO - Router cargado: /users
2026-04-14 11:49:16,344 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:49:16,345 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:49:16,346 - api_logger - INFO - Router cargado: 
2026-04-14 11:49:16,346 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:49:16,346 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:49:16,347 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:49:23,673 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 11:49:23,713 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 11:49:23,715 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 11:49:23,717 - api_logger - INFO - Router cargado: /export
2026-04-14 11:49:23,720 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 11:49:23,720 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 11:49:23,728 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 11:49:23,730 - api_logger - INFO - Router cargado: /users
2026-04-14 11:49:23,732 - api_logger - INFO - Router cargado: /webservices
2026-04-14 11:49:23,733 - api_logger - INFO - Router cargado: /auth
2026-04-14 11:49:23,734 - api_logger - INFO - Router cargado: 
2026-04-14 11:49:23,734 - api_logger - INFO - Router cargado: /licenses
2026-04-14 11:49:23,735 - api_logger - INFO - Router cargado: /plans
2026-04-14 11:49:23,735 - api_logger - INFO - Router cargado: /payment
2026-04-14 11:49:23,774 - api_logger - WARNING - invoice.payment_succeeded sin customer_email, ignorando
2026-04-14 11:49:23,775 - api_logger - WARNING - invoice.payment_failed sin customer_email, ignorando
2026-04-14 11:49:23,776 - api_logger - WARNING - invoice.upcoming sin customer_email, ignorando
2026-04-14 11:49:23,779 - api_logger - WARNING - invoice.payment_action_required sin customer_email, ignorando
2026-04-14 11:49:23,782 - api_logger - WARNING - No se pudo obtener last4 para action_required: error
2026-04-14 11:49:23,788 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: test@example.com
2026-04-14 11:49:23,789 - api_logger - INFO - Pago fallido registrado | user: test@example.com | decline_code: card_declined | last4: 4242
2026-04-14 11:49:23,789 - api_logger - WARNING - Charge fallido: card_declined - None - email: None
2026-04-14 11:49:23,790 - api_logger - ERROR - charge.failed sin customer_email, no se puede registrar
2026-04-14 11:49:23,790 - api_logger - ERROR - PaymentIntent fallido | customer: cus_stripe123 | decline_code: card_declined | message: Your card was declined.
2026-04-14 11:49:23,798 - api_logger - DEBUG - [ConflictError] http://testserver/v1/payment/stripe/checkout: Suscripción activa.
2026-04-14 11:49:23,803 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/getsubscription: Sin suscripción activa.
2026-04-14 11:49:23,807 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/cancelsubscription/sub_INVALID: Suscripción no encontrada.
2026-04-14 11:50:28,161 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: None
2026-04-14 11:50:28,161 - api_logger - ERROR - charge.failed sin customer_email, no se puede registrar
2026-04-14 11:50:28,435 - api_logger - ERROR - PaymentIntent fallido | customer: cus_UKqo4QZo3cO0z8 | decline_code: generic_decline | message: Your card was declined.
2026-04-14 11:50:29,185 - api_logger - WARNING - invoice.payment_failed sin customer_email, ignorando
2026-04-14 11:50:33,161 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: batcaver7@gmail.com
2026-04-14 11:50:35,213 - api_logger - WARNING - Sin licencia para user_id: 96
2026-04-14 11:50:35,214 - api_logger - ERROR - PaymentIntent fallido | customer: cus_UHvNQjoDi3iBsZ | decline_code: generic_decline | message: Your card was declined.
2026-04-14 11:54:32,510 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-14 11:54:32,510 - api_logger - DEBUG - Renderizando verify_account.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'verification_url', 'expire_time', 'expiration_time_unit']
2026-04-14 12:20:05,103 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 12:20:05,138 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 12:20:05,140 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 12:20:05,141 - api_logger - INFO - Router cargado: /export
2026-04-14 12:20:05,145 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 12:20:05,145 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 12:20:05,153 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 12:20:05,155 - api_logger - INFO - Router cargado: /users
2026-04-14 12:20:05,156 - api_logger - INFO - Router cargado: /webservices
2026-04-14 12:20:05,158 - api_logger - INFO - Router cargado: /auth
2026-04-14 12:20:05,159 - api_logger - INFO - Router cargado: 
2026-04-14 12:20:05,159 - api_logger - INFO - Router cargado: /licenses
2026-04-14 12:20:05,159 - api_logger - INFO - Router cargado: /plans
2026-04-14 12:20:05,160 - api_logger - INFO - Router cargado: /payment
2026-04-14 12:20:05,956 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 12:20:05,988 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 12:20:05,990 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 12:20:05,991 - api_logger - INFO - Router cargado: /export
2026-04-14 12:20:05,995 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 12:20:05,995 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 12:20:06,002 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 12:20:06,004 - api_logger - INFO - Router cargado: /users
2026-04-14 12:20:06,005 - api_logger - INFO - Router cargado: /webservices
2026-04-14 12:20:06,007 - api_logger - INFO - Router cargado: /auth
2026-04-14 12:20:06,007 - api_logger - INFO - Router cargado: 
2026-04-14 12:20:06,008 - api_logger - INFO - Router cargado: /licenses
2026-04-14 12:20:06,008 - api_logger - INFO - Router cargado: /plans
2026-04-14 12:20:06,008 - api_logger - INFO - Router cargado: /payment
2026-04-14 12:20:06,036 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 12:20:06,064 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 12:20:06,066 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 12:20:06,067 - api_logger - INFO - Router cargado: /export
2026-04-14 12:20:06,070 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 12:20:06,070 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 12:20:06,077 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 12:20:06,079 - api_logger - INFO - Router cargado: /users
2026-04-14 12:20:06,080 - api_logger - INFO - Router cargado: /webservices
2026-04-14 12:20:06,081 - api_logger - INFO - Router cargado: /auth
2026-04-14 12:20:06,082 - api_logger - INFO - Router cargado: 
2026-04-14 12:20:06,082 - api_logger - INFO - Router cargado: /licenses
2026-04-14 12:20:06,082 - api_logger - INFO - Router cargado: /plans
2026-04-14 12:20:06,083 - api_logger - INFO - Router cargado: /payment
2026-04-14 12:22:15,260 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-14 12:22:15,260 - api_logger - DEBUG - Renderizando verify_account.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'verification_url', 'expire_time', 'expiration_time_unit']
2026-04-14 13:29:50,936 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: None
2026-04-14 13:29:50,936 - api_logger - ERROR - charge.failed sin customer_email, no se puede registrar
2026-04-14 13:29:51,146 - api_logger - ERROR - PaymentIntent fallido | customer: cus_UKsPDMSnH42K2J | decline_code: generic_decline | message: Your card was declined.
2026-04-14 13:29:51,818 - api_logger - WARNING - invoice.payment_failed sin customer_email, ignorando
2026-04-14 13:30:47,668 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-14 13:30:47,668 - api_logger - DEBUG - Renderizando payment_success.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'plan_name', 'amount', 'payment_date', 'payment_id', 'currency', 'next_billing_date', 'invoice_url']
2026-04-14 13:30:48,792 - api_logger - DEBUG - Renderizando welcome.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'plan_name', 'start_date', 'end_date', 'dashboard_url', 'quick_links', 'support_chat_url']
2026-04-14 13:34:25,606 - api_logger - WARNING - error en usuario batcaver7@gmail.com :: Credenciales incorrectas, numero de intentos restantes: 2.
2026-04-14 13:34:25,606 - api_logger - DEBUG - [UnauthorizedError] http://localhost:8000/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 2.
2026-04-14 13:34:42,086 - api_logger - WARNING - error en usuario batcaver7@gmail.com :: Credenciales incorrectas, numero de intentos restantes: 1.
2026-04-14 13:34:42,086 - api_logger - DEBUG - [UnauthorizedError] http://localhost:8000/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 1.
2026-04-14 13:34:54,721 - api_logger - DEBUG - [UnauthorizedError] http://localhost:8000/v1/users/profile: Token inválido
2026-04-14 13:34:54,728 - api_logger - DEBUG - [UnauthorizedError] http://localhost:8000/v1/users/profile: Token inválido
2026-04-14 13:48:24,884 - api_logger - WARNING - error en usuario batcaver7@gmail.com :: Credenciales incorrectas, numero de intentos restantes: 2.
2026-04-14 13:48:24,884 - api_logger - DEBUG - [UnauthorizedError] http://localhost:8000/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 2.
2026-04-14 13:48:35,435 - api_logger - WARNING - error en usuario batcaver7@gmail.com :: Credenciales incorrectas, numero de intentos restantes: 1.
2026-04-14 13:48:35,435 - api_logger - DEBUG - [UnauthorizedError] http://localhost:8000/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 1.
2026-04-14 13:48:39,747 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-14 13:48:39,754 - api_logger - DEBUG - Renderizando account_blocked.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'failed_attempts', 'reset_url', 'blocked_at', 'ip_address']
2026-04-14 13:48:41,393 - api_logger - WARNING - error en usuario batcaver7@gmail.com :: Tu cuenta ha quedado bloqueada.
2026-04-14 13:48:41,393 - api_logger - DEBUG - [LockedError] http://localhost:8000/v1/auth/login: Tu cuenta ha quedado bloqueada.
2026-04-14 13:48:49,817 - api_logger - WARNING - error en usuario batcaver7@gmail.com :: Cuenta bloqueada.
2026-04-14 13:48:49,818 - api_logger - DEBUG - [LockedError] http://localhost:8000/v1/auth/login: Cuenta bloqueada.
2026-04-14 14:00:23,953 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 14:00:23,989 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 14:00:23,992 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 14:00:23,993 - api_logger - INFO - Router cargado: /export
2026-04-14 14:00:23,997 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 14:00:23,997 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 14:00:24,005 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 14:00:24,006 - api_logger - INFO - Router cargado: /users
2026-04-14 14:00:24,008 - api_logger - INFO - Router cargado: /webservices
2026-04-14 14:00:24,009 - api_logger - INFO - Router cargado: /auth
2026-04-14 14:00:24,010 - api_logger - INFO - Router cargado: 
2026-04-14 14:00:24,010 - api_logger - INFO - Router cargado: /licenses
2026-04-14 14:00:24,010 - api_logger - INFO - Router cargado: /plans
2026-04-14 14:00:24,011 - api_logger - INFO - Router cargado: /payment
2026-04-14 14:00:24,034 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 14:00:24,063 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 14:00:24,066 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 14:00:24,066 - api_logger - INFO - Router cargado: /export
2026-04-14 14:00:24,070 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 14:00:24,070 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 14:00:24,078 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 14:00:24,079 - api_logger - INFO - Router cargado: /users
2026-04-14 14:00:24,081 - api_logger - INFO - Router cargado: /webservices
2026-04-14 14:00:24,082 - api_logger - INFO - Router cargado: /auth
2026-04-14 14:00:24,083 - api_logger - INFO - Router cargado: 
2026-04-14 14:00:24,083 - api_logger - INFO - Router cargado: /licenses
2026-04-14 14:00:24,083 - api_logger - INFO - Router cargado: /plans
2026-04-14 14:00:24,083 - api_logger - INFO - Router cargado: /payment
2026-04-14 14:00:34,172 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 14:00:34,205 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 14:00:34,207 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 14:00:34,208 - api_logger - INFO - Router cargado: /export
2026-04-14 14:00:34,212 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 14:00:34,212 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 14:00:34,220 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 14:00:34,221 - api_logger - INFO - Router cargado: /users
2026-04-14 14:00:34,223 - api_logger - INFO - Router cargado: /webservices
2026-04-14 14:00:34,225 - api_logger - INFO - Router cargado: /auth
2026-04-14 14:00:34,226 - api_logger - INFO - Router cargado: 
2026-04-14 14:00:34,226 - api_logger - INFO - Router cargado: /licenses
2026-04-14 14:00:34,226 - api_logger - INFO - Router cargado: /plans
2026-04-14 14:00:34,227 - api_logger - INFO - Router cargado: /payment
2026-04-14 14:00:34,249 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 14:00:34,277 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 14:00:34,280 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 14:00:34,281 - api_logger - INFO - Router cargado: /export
2026-04-14 14:00:34,284 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 14:00:34,284 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 14:00:34,292 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 14:00:34,293 - api_logger - INFO - Router cargado: /users
2026-04-14 14:00:34,295 - api_logger - INFO - Router cargado: /webservices
2026-04-14 14:00:34,296 - api_logger - INFO - Router cargado: /auth
2026-04-14 14:00:34,297 - api_logger - INFO - Router cargado: 
2026-04-14 14:00:34,297 - api_logger - INFO - Router cargado: /licenses
2026-04-14 14:00:34,297 - api_logger - INFO - Router cargado: /plans
2026-04-14 14:00:34,297 - api_logger - INFO - Router cargado: /payment
2026-04-14 14:00:42,841 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 14:00:42,876 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 14:00:42,878 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 14:00:42,879 - api_logger - INFO - Router cargado: /export
2026-04-14 14:00:42,883 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 14:00:42,883 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 14:00:42,891 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 14:00:42,893 - api_logger - INFO - Router cargado: /users
2026-04-14 14:00:42,894 - api_logger - INFO - Router cargado: /webservices
2026-04-14 14:00:42,896 - api_logger - INFO - Router cargado: /auth
2026-04-14 14:00:42,897 - api_logger - INFO - Router cargado: 
2026-04-14 14:00:42,897 - api_logger - INFO - Router cargado: /licenses
2026-04-14 14:00:42,897 - api_logger - INFO - Router cargado: /plans
2026-04-14 14:00:42,898 - api_logger - INFO - Router cargado: /payment
2026-04-14 14:00:42,923 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 14:00:42,953 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 14:00:42,956 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 14:00:42,957 - api_logger - INFO - Router cargado: /export
2026-04-14 14:00:42,960 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 14:00:42,960 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 14:00:42,968 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 14:00:42,969 - api_logger - INFO - Router cargado: /users
2026-04-14 14:00:42,970 - api_logger - INFO - Router cargado: /webservices
2026-04-14 14:00:42,972 - api_logger - INFO - Router cargado: /auth
2026-04-14 14:00:42,973 - api_logger - INFO - Router cargado: 
2026-04-14 14:00:42,973 - api_logger - INFO - Router cargado: /licenses
2026-04-14 14:00:42,973 - api_logger - INFO - Router cargado: /plans
2026-04-14 14:00:42,974 - api_logger - INFO - Router cargado: /payment
2026-04-14 14:00:55,168 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 14:00:55,204 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 14:00:55,206 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 14:00:55,208 - api_logger - INFO - Router cargado: /export
2026-04-14 14:00:55,212 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 14:00:55,212 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 14:00:55,220 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 14:00:55,222 - api_logger - INFO - Router cargado: /users
2026-04-14 14:00:55,224 - api_logger - INFO - Router cargado: /webservices
2026-04-14 14:00:55,225 - api_logger - INFO - Router cargado: /auth
2026-04-14 14:00:55,226 - api_logger - INFO - Router cargado: 
2026-04-14 14:00:55,226 - api_logger - INFO - Router cargado: /licenses
2026-04-14 14:00:55,227 - api_logger - INFO - Router cargado: /plans
2026-04-14 14:00:55,227 - api_logger - INFO - Router cargado: /payment
2026-04-14 14:00:55,250 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 14:00:55,278 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 14:00:55,280 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 14:00:55,281 - api_logger - INFO - Router cargado: /export
2026-04-14 14:00:55,284 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 14:00:55,285 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 14:00:55,292 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 14:00:55,293 - api_logger - INFO - Router cargado: /users
2026-04-14 14:00:55,294 - api_logger - INFO - Router cargado: /webservices
2026-04-14 14:00:55,296 - api_logger - INFO - Router cargado: /auth
2026-04-14 14:00:55,297 - api_logger - INFO - Router cargado: 
2026-04-14 14:00:55,297 - api_logger - INFO - Router cargado: /licenses
2026-04-14 14:00:55,297 - api_logger - INFO - Router cargado: /plans
2026-04-14 14:00:55,297 - api_logger - INFO - Router cargado: /payment
2026-04-14 14:01:01,524 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 14:01:01,557 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 14:01:01,560 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 14:01:01,561 - api_logger - INFO - Router cargado: /export
2026-04-14 14:01:01,565 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 14:01:01,565 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 14:01:01,572 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 14:01:01,574 - api_logger - INFO - Router cargado: /users
2026-04-14 14:01:01,576 - api_logger - INFO - Router cargado: /webservices
2026-04-14 14:01:01,577 - api_logger - INFO - Router cargado: /auth
2026-04-14 14:01:01,578 - api_logger - INFO - Router cargado: 
2026-04-14 14:01:01,578 - api_logger - INFO - Router cargado: /licenses
2026-04-14 14:01:01,578 - api_logger - INFO - Router cargado: /plans
2026-04-14 14:01:01,579 - api_logger - INFO - Router cargado: /payment
2026-04-14 14:01:01,602 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 14:01:01,629 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 14:01:01,632 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 14:01:01,633 - api_logger - INFO - Router cargado: /export
2026-04-14 14:01:01,636 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 14:01:01,636 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 14:01:01,644 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 14:01:01,646 - api_logger - INFO - Router cargado: /users
2026-04-14 14:01:01,647 - api_logger - INFO - Router cargado: /webservices
2026-04-14 14:01:01,648 - api_logger - INFO - Router cargado: /auth
2026-04-14 14:01:01,649 - api_logger - INFO - Router cargado: 
2026-04-14 14:01:01,649 - api_logger - INFO - Router cargado: /licenses
2026-04-14 14:01:01,649 - api_logger - INFO - Router cargado: /plans
2026-04-14 14:01:01,650 - api_logger - INFO - Router cargado: /payment
2026-04-14 14:01:06,684 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 14:01:06,717 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 14:01:06,719 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 14:01:06,720 - api_logger - INFO - Router cargado: /export
2026-04-14 14:01:06,724 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 14:01:06,724 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 14:01:06,732 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 14:01:06,734 - api_logger - INFO - Router cargado: /users
2026-04-14 14:01:06,735 - api_logger - INFO - Router cargado: /webservices
2026-04-14 14:01:06,737 - api_logger - INFO - Router cargado: /auth
2026-04-14 14:01:06,738 - api_logger - INFO - Router cargado: 
2026-04-14 14:01:06,738 - api_logger - INFO - Router cargado: /licenses
2026-04-14 14:01:06,738 - api_logger - INFO - Router cargado: /plans
2026-04-14 14:01:06,738 - api_logger - INFO - Router cargado: /payment
2026-04-14 14:01:06,760 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 14:01:06,788 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 14:01:06,790 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 14:01:06,791 - api_logger - INFO - Router cargado: /export
2026-04-14 14:01:06,794 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 14:01:06,794 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 14:01:06,802 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 14:01:06,803 - api_logger - INFO - Router cargado: /users
2026-04-14 14:01:06,805 - api_logger - INFO - Router cargado: /webservices
2026-04-14 14:01:06,806 - api_logger - INFO - Router cargado: /auth
2026-04-14 14:01:06,807 - api_logger - INFO - Router cargado: 
2026-04-14 14:01:06,807 - api_logger - INFO - Router cargado: /licenses
2026-04-14 14:01:06,807 - api_logger - INFO - Router cargado: /plans
2026-04-14 14:01:06,808 - api_logger - INFO - Router cargado: /payment
2026-04-14 14:01:16,788 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 14:01:16,826 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 14:01:16,829 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 14:01:16,829 - api_logger - INFO - Router cargado: /export
2026-04-14 14:01:16,833 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 14:01:16,833 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 14:01:16,842 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 14:01:16,844 - api_logger - INFO - Router cargado: /users
2026-04-14 14:01:16,846 - api_logger - INFO - Router cargado: /webservices
2026-04-14 14:01:16,847 - api_logger - INFO - Router cargado: /auth
2026-04-14 14:01:16,848 - api_logger - INFO - Router cargado: 
2026-04-14 14:01:16,848 - api_logger - INFO - Router cargado: /licenses
2026-04-14 14:01:16,848 - api_logger - INFO - Router cargado: /plans
2026-04-14 14:01:16,849 - api_logger - INFO - Router cargado: /payment
2026-04-14 14:01:16,873 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 14:01:16,901 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 14:01:16,904 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 14:01:16,904 - api_logger - INFO - Router cargado: /export
2026-04-14 14:01:16,908 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 14:01:16,908 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 14:01:16,915 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 14:01:16,917 - api_logger - INFO - Router cargado: /users
2026-04-14 14:01:16,918 - api_logger - INFO - Router cargado: /webservices
2026-04-14 14:01:16,919 - api_logger - INFO - Router cargado: /auth
2026-04-14 14:01:16,920 - api_logger - INFO - Router cargado: 
2026-04-14 14:01:16,920 - api_logger - INFO - Router cargado: /licenses
2026-04-14 14:01:16,920 - api_logger - INFO - Router cargado: /plans
2026-04-14 14:01:16,921 - api_logger - INFO - Router cargado: /payment
2026-04-14 14:01:20,982 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 14:01:21,014 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 14:01:21,017 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 14:01:21,017 - api_logger - INFO - Router cargado: /export
2026-04-14 14:01:21,021 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 14:01:21,021 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 14:01:21,029 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 14:01:21,030 - api_logger - INFO - Router cargado: /users
2026-04-14 14:01:21,032 - api_logger - INFO - Router cargado: /webservices
2026-04-14 14:01:21,033 - api_logger - INFO - Router cargado: /auth
2026-04-14 14:01:21,034 - api_logger - INFO - Router cargado: 
2026-04-14 14:01:21,034 - api_logger - INFO - Router cargado: /licenses
2026-04-14 14:01:21,034 - api_logger - INFO - Router cargado: /plans
2026-04-14 14:01:21,035 - api_logger - INFO - Router cargado: /payment
2026-04-14 14:01:21,056 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 14:01:21,084 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 14:01:21,086 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 14:01:21,087 - api_logger - INFO - Router cargado: /export
2026-04-14 14:01:21,090 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 14:01:21,090 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 14:01:21,098 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 14:01:21,099 - api_logger - INFO - Router cargado: /users
2026-04-14 14:01:21,100 - api_logger - INFO - Router cargado: /webservices
2026-04-14 14:01:21,102 - api_logger - INFO - Router cargado: /auth
2026-04-14 14:01:21,103 - api_logger - INFO - Router cargado: 
2026-04-14 14:01:21,103 - api_logger - INFO - Router cargado: /licenses
2026-04-14 14:01:21,103 - api_logger - INFO - Router cargado: /plans
2026-04-14 14:01:21,103 - api_logger - INFO - Router cargado: /payment
2026-04-14 14:01:24,468 - api_logger - WARNING - error en usuario batcaver7@gmail.com :: Cuenta bloqueada.
2026-04-14 14:01:24,469 - api_logger - DEBUG - [LockedError] http://localhost:8000/v1/auth/login: Cuenta bloqueada.
2026-04-14 14:01:32,959 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 14:01:32,994 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 14:01:32,997 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 14:01:32,998 - api_logger - INFO - Router cargado: /export
2026-04-14 14:01:33,001 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 14:01:33,001 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 14:01:33,010 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 14:01:33,011 - api_logger - INFO - Router cargado: /users
2026-04-14 14:01:33,013 - api_logger - INFO - Router cargado: /webservices
2026-04-14 14:01:33,014 - api_logger - INFO - Router cargado: /auth
2026-04-14 14:01:33,015 - api_logger - INFO - Router cargado: 
2026-04-14 14:01:33,015 - api_logger - INFO - Router cargado: /licenses
2026-04-14 14:01:33,015 - api_logger - INFO - Router cargado: /plans
2026-04-14 14:01:33,016 - api_logger - INFO - Router cargado: /payment
2026-04-14 14:01:33,039 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 14:01:33,070 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 14:01:33,072 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 14:01:33,073 - api_logger - INFO - Router cargado: /export
2026-04-14 14:01:33,077 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 14:01:33,077 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 14:01:33,084 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 14:01:33,086 - api_logger - INFO - Router cargado: /users
2026-04-14 14:01:33,087 - api_logger - INFO - Router cargado: /webservices
2026-04-14 14:01:33,088 - api_logger - INFO - Router cargado: /auth
2026-04-14 14:01:33,089 - api_logger - INFO - Router cargado: 
2026-04-14 14:01:33,089 - api_logger - INFO - Router cargado: /licenses
2026-04-14 14:01:33,089 - api_logger - INFO - Router cargado: /plans
2026-04-14 14:01:33,090 - api_logger - INFO - Router cargado: /payment
2026-04-14 14:01:35,300 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-14 14:01:35,300 - api_logger - DEBUG - Renderizando password_reset.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'reset_url', 'expire_minutes', 'unlock']
2026-04-14 14:01:38,106 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 14:01:38,138 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 14:01:38,140 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 14:01:38,141 - api_logger - INFO - Router cargado: /export
2026-04-14 14:01:38,144 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 14:01:38,145 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 14:01:38,152 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 14:01:38,153 - api_logger - INFO - Router cargado: /users
2026-04-14 14:01:38,155 - api_logger - INFO - Router cargado: /webservices
2026-04-14 14:01:38,156 - api_logger - INFO - Router cargado: /auth
2026-04-14 14:01:38,157 - api_logger - INFO - Router cargado: 
2026-04-14 14:01:38,157 - api_logger - INFO - Router cargado: /licenses
2026-04-14 14:01:38,157 - api_logger - INFO - Router cargado: /plans
2026-04-14 14:01:38,158 - api_logger - INFO - Router cargado: /payment
2026-04-14 14:01:38,179 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 14:01:38,206 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 14:01:38,209 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 14:01:38,210 - api_logger - INFO - Router cargado: /export
2026-04-14 14:01:38,213 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 14:01:38,213 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 14:01:38,220 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 14:01:38,222 - api_logger - INFO - Router cargado: /users
2026-04-14 14:01:38,223 - api_logger - INFO - Router cargado: /webservices
2026-04-14 14:01:38,224 - api_logger - INFO - Router cargado: /auth
2026-04-14 14:01:38,225 - api_logger - INFO - Router cargado: 
2026-04-14 14:01:38,225 - api_logger - INFO - Router cargado: /licenses
2026-04-14 14:01:38,225 - api_logger - INFO - Router cargado: /plans
2026-04-14 14:01:38,226 - api_logger - INFO - Router cargado: /payment
2026-04-14 14:03:21,126 - api_logger - DEBUG - [UnauthorizedError] http://localhost:8000/v1/auth/recovery/passwd: Recientemente solicito una recuperacion para la cuenta batcaver7@gmail.com.
2026-04-14 14:05:25,690 - api_logger - WARNING - error en usuario batcaver7@gmail.com :: Credenciales incorrectas, numero de intentos restantes: 2.
2026-04-14 14:05:25,690 - api_logger - DEBUG - [UnauthorizedError] http://localhost:8000/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 2.
2026-04-14 14:05:31,972 - api_logger - WARNING - error en usuario batcaver7@gmail.com :: Credenciales incorrectas, numero de intentos restantes: 1.
2026-04-14 14:05:31,972 - api_logger - DEBUG - [UnauthorizedError] http://localhost:8000/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 1.
2026-04-14 14:05:39,580 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-14 14:05:39,586 - api_logger - DEBUG - Renderizando account_blocked.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'failed_attempts', 'reset_url', 'blocked_at', 'ip_address']
2026-04-14 14:05:41,237 - api_logger - WARNING - error en usuario batcaver7@gmail.com :: Tu cuenta ha quedado bloqueada.
2026-04-14 14:05:41,237 - api_logger - DEBUG - [LockedError] http://localhost:8000/v1/auth/login: Tu cuenta ha quedado bloqueada.
2026-04-14 14:08:10,123 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: Cuenta bloqueada.
2026-04-14 14:08:10,124 - api_logger - DEBUG - [LockedError] http://localhost:8000/v1/auth/login: Cuenta bloqueada.
2026-04-14 14:09:52,766 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: Credenciales incorrectas, numero de intentos restantes: 2.
2026-04-14 14:09:52,766 - api_logger - DEBUG - [UnauthorizedError] http://localhost:8000/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 2.
2026-04-14 14:09:58,544 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: Credenciales incorrectas, numero de intentos restantes: 1.
2026-04-14 14:09:58,544 - api_logger - DEBUG - [UnauthorizedError] http://localhost:8000/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 1.
2026-04-14 14:10:05,345 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-14 14:10:05,346 - api_logger - DEBUG - Renderizando account_blocked.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'failed_attempts', 'reset_url', 'blocked_at', 'ip_address']
2026-04-14 14:10:07,119 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: Tu cuenta ha quedado bloqueada.
2026-04-14 14:10:07,119 - api_logger - DEBUG - [LockedError] http://localhost:8000/v1/auth/login: Tu cuenta ha quedado bloqueada.
2026-04-14 14:10:50,924 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-14 14:10:50,924 - api_logger - DEBUG - Renderizando password_reset.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'reset_url', 'expire_minutes', 'unlock']
2026-04-14 14:11:35,309 - api_logger - WARNING - error en usuario gustavo@geniubs.com :: Credenciales incorrectas, numero de intentos restantes: 2.
2026-04-14 14:11:35,309 - api_logger - DEBUG - [UnauthorizedError] http://localhost:8000/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 2.
2026-04-14 17:53:52,362 - api_logger - INFO - Router cargado: /auth
2026-04-14 17:53:52,365 - api_logger - INFO - Router cargado: /bankaccount
2026-04-14 17:53:52,399 - api_logger - INFO - Router cargado: /catalogs
2026-04-14 17:53:52,401 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-14 17:53:52,402 - api_logger - INFO - Router cargado: /export
2026-04-14 17:53:52,406 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-14 17:53:52,406 - api_logger - INFO - Router cargado: /licenses
2026-04-14 17:53:52,406 - api_logger - INFO - Router cargado: /menu_options
2026-04-14 17:53:52,414 - api_logger - INFO - Router cargado: /movements_banks
2026-04-14 17:53:52,414 - api_logger - INFO - Router cargado: /payment
2026-04-14 17:53:52,415 - api_logger - INFO - Router cargado: /plans
2026-04-14 17:53:52,416 - api_logger - INFO - Router cargado: /users
2026-04-14 17:53:52,417 - api_logger - INFO - Router cargado: 
2026-04-14 17:53:52,418 - api_logger - INFO - Router cargado: /webservices
2026-04-14 17:53:52,529 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/create: El RFC ya está registrado.
2026-04-14 17:53:52,531 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/fiscalcustomer/create: No autorizado.
2026-04-14 17:53:52,536 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/update/999: RFC no encontrado.
2026-04-14 17:53:52,541 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/list/byid/999: RFC no encontrado.
2026-04-14 17:53:52,546 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/setselected/999: RFC no encontrado.
2026-04-14 17:53:52,549 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/getselected: Sin RFC seleccionado.
2026-04-15 00:10:32,548 - api_logger - INFO - Router cargado: /auth
2026-04-15 00:10:32,551 - api_logger - INFO - Router cargado: /bankaccount
2026-04-15 00:10:32,586 - api_logger - INFO - Router cargado: /catalogs
2026-04-15 00:10:32,588 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-15 00:10:32,589 - api_logger - INFO - Router cargado: /export
2026-04-15 00:10:32,593 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-15 00:10:32,593 - api_logger - INFO - Router cargado: /licenses
2026-04-15 00:10:32,593 - api_logger - INFO - Router cargado: /menu_options
2026-04-15 00:10:32,601 - api_logger - INFO - Router cargado: /movements_banks
2026-04-15 00:10:32,601 - api_logger - INFO - Router cargado: /payment
2026-04-15 00:10:32,602 - api_logger - INFO - Router cargado: /plans
2026-04-15 00:10:32,603 - api_logger - INFO - Router cargado: /users
2026-04-15 00:10:32,604 - api_logger - INFO - Router cargado: 
2026-04-15 00:10:32,605 - api_logger - INFO - Router cargado: /webservices
2026-04-15 00:10:33,377 - api_logger - INFO - Router cargado: /auth
2026-04-15 00:10:33,381 - api_logger - INFO - Router cargado: /bankaccount
2026-04-15 00:10:33,413 - api_logger - INFO - Router cargado: /catalogs
2026-04-15 00:10:33,415 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-15 00:10:33,416 - api_logger - INFO - Router cargado: /export
2026-04-15 00:10:33,420 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-15 00:10:33,420 - api_logger - INFO - Router cargado: /licenses
2026-04-15 00:10:33,420 - api_logger - INFO - Router cargado: /menu_options
2026-04-15 00:10:33,427 - api_logger - INFO - Router cargado: /movements_banks
2026-04-15 00:10:33,428 - api_logger - INFO - Router cargado: /payment
2026-04-15 00:10:33,428 - api_logger - INFO - Router cargado: /plans
2026-04-15 00:10:33,430 - api_logger - INFO - Router cargado: /users
2026-04-15 00:10:33,431 - api_logger - INFO - Router cargado: 
2026-04-15 00:10:33,432 - api_logger - INFO - Router cargado: /webservices
2026-04-15 00:10:33,458 - api_logger - INFO - Router cargado: /auth
2026-04-15 00:10:33,460 - api_logger - INFO - Router cargado: /bankaccount
2026-04-15 00:10:33,488 - api_logger - INFO - Router cargado: /catalogs
2026-04-15 00:10:33,491 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-15 00:10:33,492 - api_logger - INFO - Router cargado: /export
2026-04-15 00:10:33,495 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-15 00:10:33,495 - api_logger - INFO - Router cargado: /licenses
2026-04-15 00:10:33,495 - api_logger - INFO - Router cargado: /menu_options
2026-04-15 00:10:33,502 - api_logger - INFO - Router cargado: /movements_banks
2026-04-15 00:10:33,503 - api_logger - INFO - Router cargado: /payment
2026-04-15 00:10:33,503 - api_logger - INFO - Router cargado: /plans
2026-04-15 00:10:33,504 - api_logger - INFO - Router cargado: /users
2026-04-15 00:10:33,505 - api_logger - INFO - Router cargado: 
2026-04-15 00:10:33,506 - api_logger - INFO - Router cargado: /webservices
2026-04-15 00:11:06,508 - api_logger - WARNING - error en usuario batcaver7@gmail.com :: Ya existe una sesión activa para este usuario.
2026-04-15 00:11:06,508 - api_logger - DEBUG - [ForbiddenError] http://localhost:8000/v1/auth/login: Ya existe una sesión activa para este usuario.
2026-04-15 00:12:38,457 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-15 00:12:38,457 - api_logger - DEBUG - Renderizando invite_account.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'recipient_email', 'verification_url', 'expire_time', 'expiration_time_unit']
2026-04-15 00:21:03,780 - api_logger - INFO - Router cargado: /auth
2026-04-15 00:21:03,785 - api_logger - INFO - Router cargado: /bankaccount
2026-04-15 00:21:03,820 - api_logger - INFO - Router cargado: /catalogs
2026-04-15 00:21:03,823 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-15 00:21:03,824 - api_logger - INFO - Router cargado: /export
2026-04-15 00:21:03,828 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-15 00:21:03,828 - api_logger - INFO - Router cargado: /licenses
2026-04-15 00:21:03,828 - api_logger - INFO - Router cargado: /menu_options
2026-04-15 00:21:03,837 - api_logger - INFO - Router cargado: /movements_banks
2026-04-15 00:21:03,838 - api_logger - INFO - Router cargado: /payment
2026-04-15 00:21:03,838 - api_logger - INFO - Router cargado: /plans
2026-04-15 00:21:03,840 - api_logger - INFO - Router cargado: /users
2026-04-15 00:21:03,841 - api_logger - INFO - Router cargado: 
2026-04-15 00:21:03,842 - api_logger - INFO - Router cargado: /webservices
2026-04-15 00:21:03,873 - api_logger - INFO - Router cargado: /auth
2026-04-15 00:21:03,875 - api_logger - INFO - Router cargado: /bankaccount
2026-04-15 00:21:03,903 - api_logger - INFO - Router cargado: /catalogs
2026-04-15 00:21:03,906 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-15 00:21:03,907 - api_logger - INFO - Router cargado: /export
2026-04-15 00:21:03,910 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-15 00:21:03,910 - api_logger - INFO - Router cargado: /licenses
2026-04-15 00:21:03,910 - api_logger - INFO - Router cargado: /menu_options
2026-04-15 00:21:03,918 - api_logger - INFO - Router cargado: /movements_banks
2026-04-15 00:21:03,918 - api_logger - INFO - Router cargado: /payment
2026-04-15 00:21:03,919 - api_logger - INFO - Router cargado: /plans
2026-04-15 00:21:03,920 - api_logger - INFO - Router cargado: /users
2026-04-15 00:21:03,921 - api_logger - INFO - Router cargado: 
2026-04-15 00:21:03,922 - api_logger - INFO - Router cargado: /webservices
2026-04-15 00:30:25,145 - api_logger - INFO - Router cargado: /auth
2026-04-15 00:30:25,150 - api_logger - INFO - Router cargado: /bankaccount
2026-04-15 00:30:25,184 - api_logger - INFO - Router cargado: /catalogs
2026-04-15 00:30:25,186 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-15 00:30:25,187 - api_logger - INFO - Router cargado: /export
2026-04-15 00:30:25,191 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-15 00:30:25,191 - api_logger - INFO - Router cargado: /licenses
2026-04-15 00:30:25,191 - api_logger - INFO - Router cargado: /menu_options
2026-04-15 00:30:25,200 - api_logger - INFO - Router cargado: /movements_banks
2026-04-15 00:30:25,201 - api_logger - INFO - Router cargado: /payment
2026-04-15 00:30:25,201 - api_logger - INFO - Router cargado: /plans
2026-04-15 00:30:25,203 - api_logger - INFO - Router cargado: /users
2026-04-15 00:30:25,203 - api_logger - INFO - Router cargado: 
2026-04-15 00:30:25,205 - api_logger - INFO - Router cargado: /webservices
2026-04-15 00:30:25,226 - api_logger - INFO - Router cargado: /auth
2026-04-15 00:30:25,228 - api_logger - INFO - Router cargado: /bankaccount
2026-04-15 00:30:25,256 - api_logger - INFO - Router cargado: /catalogs
2026-04-15 00:30:25,259 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-15 00:30:25,260 - api_logger - INFO - Router cargado: /export
2026-04-15 00:30:25,263 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-15 00:30:25,263 - api_logger - INFO - Router cargado: /licenses
2026-04-15 00:30:25,263 - api_logger - INFO - Router cargado: /menu_options
2026-04-15 00:30:25,271 - api_logger - INFO - Router cargado: /movements_banks
2026-04-15 00:30:25,272 - api_logger - INFO - Router cargado: /payment
2026-04-15 00:30:25,272 - api_logger - INFO - Router cargado: /plans
2026-04-15 00:30:25,273 - api_logger - INFO - Router cargado: /users
2026-04-15 00:30:25,274 - api_logger - INFO - Router cargado: 
2026-04-15 00:30:25,275 - api_logger - INFO - Router cargado: /webservices
2026-04-15 00:30:34,729 - api_logger - INFO - Router cargado: /auth
2026-04-15 00:30:34,734 - api_logger - INFO - Router cargado: /bankaccount
2026-04-15 00:30:34,769 - api_logger - INFO - Router cargado: /catalogs
2026-04-15 00:30:34,772 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-15 00:30:34,773 - api_logger - INFO - Router cargado: /export
2026-04-15 00:30:34,777 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-15 00:30:34,777 - api_logger - INFO - Router cargado: /licenses
2026-04-15 00:30:34,777 - api_logger - INFO - Router cargado: /menu_options
2026-04-15 00:30:34,785 - api_logger - INFO - Router cargado: /movements_banks
2026-04-15 00:30:34,786 - api_logger - INFO - Router cargado: /payment
2026-04-15 00:30:34,786 - api_logger - INFO - Router cargado: /plans
2026-04-15 00:30:34,788 - api_logger - INFO - Router cargado: /users
2026-04-15 00:30:34,789 - api_logger - INFO - Router cargado: 
2026-04-15 00:30:34,790 - api_logger - INFO - Router cargado: /webservices
2026-04-15 00:30:34,813 - api_logger - INFO - Router cargado: /auth
2026-04-15 00:30:34,815 - api_logger - INFO - Router cargado: /bankaccount
2026-04-15 00:30:34,847 - api_logger - INFO - Router cargado: /catalogs
2026-04-15 00:30:34,849 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-15 00:30:34,850 - api_logger - INFO - Router cargado: /export
2026-04-15 00:30:34,853 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-15 00:30:34,854 - api_logger - INFO - Router cargado: /licenses
2026-04-15 00:30:34,854 - api_logger - INFO - Router cargado: /menu_options
2026-04-15 00:30:34,863 - api_logger - INFO - Router cargado: /movements_banks
2026-04-15 00:30:34,863 - api_logger - INFO - Router cargado: /payment
2026-04-15 00:30:34,864 - api_logger - INFO - Router cargado: /plans
2026-04-15 00:30:34,865 - api_logger - INFO - Router cargado: /users
2026-04-15 00:30:34,866 - api_logger - INFO - Router cargado: 
2026-04-15 00:30:34,867 - api_logger - INFO - Router cargado: /webservices
2026-04-15 00:37:00,134 - api_logger - INFO - Router cargado: /auth
2026-04-15 00:37:00,139 - api_logger - INFO - Router cargado: /bankaccount
2026-04-15 00:37:00,172 - api_logger - INFO - Router cargado: /catalogs
2026-04-15 00:37:00,175 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-15 00:37:00,176 - api_logger - INFO - Router cargado: /export
2026-04-15 00:37:00,180 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-15 00:37:00,180 - api_logger - INFO - Router cargado: /licenses
2026-04-15 00:37:00,180 - api_logger - INFO - Router cargado: /menu_options
2026-04-15 00:37:00,189 - api_logger - INFO - Router cargado: /movements_banks
2026-04-15 00:37:00,189 - api_logger - INFO - Router cargado: /payment
2026-04-15 00:37:00,190 - api_logger - INFO - Router cargado: /plans
2026-04-15 00:37:00,191 - api_logger - INFO - Router cargado: /users
2026-04-15 00:37:00,192 - api_logger - INFO - Router cargado: 
2026-04-15 00:37:00,194 - api_logger - INFO - Router cargado: /webservices
2026-04-15 00:37:00,215 - api_logger - INFO - Router cargado: /auth
2026-04-15 00:37:00,218 - api_logger - INFO - Router cargado: /bankaccount
2026-04-15 00:37:00,255 - api_logger - INFO - Router cargado: /catalogs
2026-04-15 00:37:00,258 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-15 00:37:00,260 - api_logger - INFO - Router cargado: /export
2026-04-15 00:37:00,263 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-15 00:37:00,264 - api_logger - INFO - Router cargado: /licenses
2026-04-15 00:37:00,264 - api_logger - INFO - Router cargado: /menu_options
2026-04-15 00:37:00,274 - api_logger - INFO - Router cargado: /movements_banks
2026-04-15 00:37:00,275 - api_logger - INFO - Router cargado: /payment
2026-04-15 00:37:00,275 - api_logger - INFO - Router cargado: /plans
2026-04-15 00:37:00,277 - api_logger - INFO - Router cargado: /users
2026-04-15 00:37:00,278 - api_logger - INFO - Router cargado: 
2026-04-15 00:37:00,279 - api_logger - INFO - Router cargado: /webservices
2026-04-15 00:37:11,539 - api_logger - INFO - Router cargado: /auth
2026-04-15 00:37:11,543 - api_logger - INFO - Router cargado: /bankaccount
2026-04-15 00:37:11,577 - api_logger - INFO - Router cargado: /catalogs
2026-04-15 00:37:11,580 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-15 00:37:11,581 - api_logger - INFO - Router cargado: /export
2026-04-15 00:37:11,585 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-15 00:37:11,585 - api_logger - INFO - Router cargado: /licenses
2026-04-15 00:37:11,585 - api_logger - INFO - Router cargado: /menu_options
2026-04-15 00:37:11,593 - api_logger - INFO - Router cargado: /movements_banks
2026-04-15 00:37:11,594 - api_logger - INFO - Router cargado: /payment
2026-04-15 00:37:11,594 - api_logger - INFO - Router cargado: /plans
2026-04-15 00:37:11,595 - api_logger - INFO - Router cargado: /users
2026-04-15 00:37:11,596 - api_logger - INFO - Router cargado: 
2026-04-15 00:37:11,598 - api_logger - INFO - Router cargado: /webservices
2026-04-15 00:37:11,619 - api_logger - INFO - Router cargado: /auth
2026-04-15 00:37:11,621 - api_logger - INFO - Router cargado: /bankaccount
2026-04-15 00:37:11,650 - api_logger - INFO - Router cargado: /catalogs
2026-04-15 00:37:11,652 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-15 00:37:11,653 - api_logger - INFO - Router cargado: /export
2026-04-15 00:37:11,656 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-15 00:37:11,656 - api_logger - INFO - Router cargado: /licenses
2026-04-15 00:37:11,656 - api_logger - INFO - Router cargado: /menu_options
2026-04-15 00:37:11,664 - api_logger - INFO - Router cargado: /movements_banks
2026-04-15 00:37:11,664 - api_logger - INFO - Router cargado: /payment
2026-04-15 00:37:11,665 - api_logger - INFO - Router cargado: /plans
2026-04-15 00:37:11,666 - api_logger - INFO - Router cargado: /users
2026-04-15 00:37:11,667 - api_logger - INFO - Router cargado: 
2026-04-15 00:37:11,668 - api_logger - INFO - Router cargado: /webservices
2026-04-15 00:39:58,224 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-15 00:39:58,225 - api_logger - DEBUG - Renderizando invite_account.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'recipient_email', 'verification_url', 'expire_time', 'expiration_time_unit']
2026-04-15 00:48:29,040 - api_logger - DEBUG - [ConflictError] http://localhost:8000/v1/users/subuser/create: El correo electrónico gustavo@geniubs.com ya está registrado.
2026-04-15 00:48:43,415 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-15 00:48:43,416 - api_logger - DEBUG - Renderizando invite_account.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'recipient_email', 'verification_url', 'expire_time', 'expiration_time_unit']
2026-04-15 00:50:24,796 - api_logger - WARNING - error en usuario gustavo@vctra.xyz :: Tu cuenta aún no ha sido verificada.
2026-04-15 00:50:24,796 - api_logger - DEBUG - [ForbiddenError] http://localhost:8000/v1/auth/login: Tu cuenta aún no ha sido verificada.
2026-04-15 00:53:35,525 - api_logger - INFO - Router cargado: /auth
2026-04-15 00:53:35,529 - api_logger - INFO - Router cargado: /bankaccount
2026-04-15 00:53:35,562 - api_logger - INFO - Router cargado: /catalogs
2026-04-15 00:53:35,565 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-15 00:53:35,566 - api_logger - INFO - Router cargado: /export
2026-04-15 00:53:35,569 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-15 00:53:35,569 - api_logger - INFO - Router cargado: /licenses
2026-04-15 00:53:35,569 - api_logger - INFO - Router cargado: /menu_options
2026-04-15 00:53:35,577 - api_logger - INFO - Router cargado: /movements_banks
2026-04-15 00:53:35,578 - api_logger - INFO - Router cargado: /payment
2026-04-15 00:53:35,578 - api_logger - INFO - Router cargado: /plans
2026-04-15 00:53:35,579 - api_logger - INFO - Router cargado: /users
2026-04-15 00:53:35,580 - api_logger - INFO - Router cargado: 
2026-04-15 00:53:35,582 - api_logger - INFO - Router cargado: /webservices
2026-04-15 00:53:35,620 - api_logger - INFO - Router cargado: /auth
2026-04-15 00:53:35,622 - api_logger - INFO - Router cargado: /bankaccount
2026-04-15 00:53:35,650 - api_logger - INFO - Router cargado: /catalogs
2026-04-15 00:53:35,652 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-15 00:53:35,653 - api_logger - INFO - Router cargado: /export
2026-04-15 00:53:35,656 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-15 00:53:35,656 - api_logger - INFO - Router cargado: /licenses
2026-04-15 00:53:35,656 - api_logger - INFO - Router cargado: /menu_options
2026-04-15 00:53:35,664 - api_logger - INFO - Router cargado: /movements_banks
2026-04-15 00:53:35,664 - api_logger - INFO - Router cargado: /payment
2026-04-15 00:53:35,665 - api_logger - INFO - Router cargado: /plans
2026-04-15 00:53:35,666 - api_logger - INFO - Router cargado: /users
2026-04-15 00:53:35,667 - api_logger - INFO - Router cargado: 
2026-04-15 00:53:35,668 - api_logger - INFO - Router cargado: /webservices
2026-04-15 00:56:09,961 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-15 00:56:09,961 - api_logger - DEBUG - Renderizando invite_account.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'recipient_email', 'verification_url', 'expire_time', 'expiration_time_unit']
2026-04-15 01:02:16,850 - api_logger - INFO - Router cargado: /auth
2026-04-15 01:02:16,854 - api_logger - INFO - Router cargado: /bankaccount
2026-04-15 01:02:16,886 - api_logger - INFO - Router cargado: /catalogs
2026-04-15 01:02:16,889 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-15 01:02:16,890 - api_logger - INFO - Router cargado: /export
2026-04-15 01:02:16,893 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-15 01:02:16,894 - api_logger - INFO - Router cargado: /licenses
2026-04-15 01:02:16,894 - api_logger - INFO - Router cargado: /menu_options
2026-04-15 01:02:16,902 - api_logger - INFO - Router cargado: /movements_banks
2026-04-15 01:02:16,902 - api_logger - INFO - Router cargado: /payment
2026-04-15 01:02:16,903 - api_logger - INFO - Router cargado: /plans
2026-04-15 01:02:16,904 - api_logger - INFO - Router cargado: /users
2026-04-15 01:02:16,905 - api_logger - INFO - Router cargado: 
2026-04-15 01:02:16,907 - api_logger - INFO - Router cargado: /webservices
2026-04-15 01:02:16,938 - api_logger - INFO - Router cargado: /auth
2026-04-15 01:02:16,940 - api_logger - INFO - Router cargado: /bankaccount
2026-04-15 01:02:16,967 - api_logger - INFO - Router cargado: /catalogs
2026-04-15 01:02:16,970 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-15 01:02:16,971 - api_logger - INFO - Router cargado: /export
2026-04-15 01:02:16,974 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-15 01:02:16,974 - api_logger - INFO - Router cargado: /licenses
2026-04-15 01:02:16,974 - api_logger - INFO - Router cargado: /menu_options
2026-04-15 01:02:16,981 - api_logger - INFO - Router cargado: /movements_banks
2026-04-15 01:02:16,982 - api_logger - INFO - Router cargado: /payment
2026-04-15 01:02:16,982 - api_logger - INFO - Router cargado: /plans
2026-04-15 01:02:16,983 - api_logger - INFO - Router cargado: /users
2026-04-15 01:02:16,984 - api_logger - INFO - Router cargado: 
2026-04-15 01:02:16,986 - api_logger - INFO - Router cargado: /webservices
2026-04-15 01:02:26,369 - api_logger - INFO - Router cargado: /auth
2026-04-15 01:02:26,375 - api_logger - INFO - Router cargado: /bankaccount
2026-04-15 01:02:26,410 - api_logger - INFO - Router cargado: /catalogs
2026-04-15 01:02:26,413 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-15 01:02:26,414 - api_logger - INFO - Router cargado: /export
2026-04-15 01:02:26,418 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-15 01:02:26,418 - api_logger - INFO - Router cargado: /licenses
2026-04-15 01:02:26,418 - api_logger - INFO - Router cargado: /menu_options
2026-04-15 01:02:26,428 - api_logger - INFO - Router cargado: /movements_banks
2026-04-15 01:02:26,429 - api_logger - INFO - Router cargado: /payment
2026-04-15 01:02:26,429 - api_logger - INFO - Router cargado: /plans
2026-04-15 01:02:26,431 - api_logger - INFO - Router cargado: /users
2026-04-15 01:02:26,432 - api_logger - INFO - Router cargado: 
2026-04-15 01:02:26,433 - api_logger - INFO - Router cargado: /webservices
2026-04-15 01:02:26,456 - api_logger - INFO - Router cargado: /auth
2026-04-15 01:02:26,458 - api_logger - INFO - Router cargado: /bankaccount
2026-04-15 01:02:26,488 - api_logger - INFO - Router cargado: /catalogs
2026-04-15 01:02:26,490 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-15 01:02:26,491 - api_logger - INFO - Router cargado: /export
2026-04-15 01:02:26,495 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-15 01:02:26,495 - api_logger - INFO - Router cargado: /licenses
2026-04-15 01:02:26,495 - api_logger - INFO - Router cargado: /menu_options
2026-04-15 01:02:26,503 - api_logger - INFO - Router cargado: /movements_banks
2026-04-15 01:02:26,504 - api_logger - INFO - Router cargado: /payment
2026-04-15 01:02:26,504 - api_logger - INFO - Router cargado: /plans
2026-04-15 01:02:26,505 - api_logger - INFO - Router cargado: /users
2026-04-15 01:02:26,506 - api_logger - INFO - Router cargado: 
2026-04-15 01:02:26,508 - api_logger - INFO - Router cargado: /webservices
2026-04-15 01:02:34,176 - api_logger - INFO - Router cargado: /auth
2026-04-15 01:02:34,180 - api_logger - INFO - Router cargado: /bankaccount
2026-04-15 01:02:34,213 - api_logger - INFO - Router cargado: /catalogs
2026-04-15 01:02:34,216 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-15 01:02:34,217 - api_logger - INFO - Router cargado: /export
2026-04-15 01:02:34,221 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-15 01:02:34,221 - api_logger - INFO - Router cargado: /licenses
2026-04-15 01:02:34,221 - api_logger - INFO - Router cargado: /menu_options
2026-04-15 01:02:34,229 - api_logger - INFO - Router cargado: /movements_banks
2026-04-15 01:02:34,229 - api_logger - INFO - Router cargado: /payment
2026-04-15 01:02:34,230 - api_logger - INFO - Router cargado: /plans
2026-04-15 01:02:34,231 - api_logger - INFO - Router cargado: /users
2026-04-15 01:02:34,232 - api_logger - INFO - Router cargado: 
2026-04-15 01:02:34,234 - api_logger - INFO - Router cargado: /webservices
2026-04-15 01:02:34,255 - api_logger - INFO - Router cargado: /auth
2026-04-15 01:02:34,257 - api_logger - INFO - Router cargado: /bankaccount
2026-04-15 01:02:34,285 - api_logger - INFO - Router cargado: /catalogs
2026-04-15 01:02:34,288 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-15 01:02:34,289 - api_logger - INFO - Router cargado: /export
2026-04-15 01:02:34,292 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-15 01:02:34,293 - api_logger - INFO - Router cargado: /licenses
2026-04-15 01:02:34,293 - api_logger - INFO - Router cargado: /menu_options
2026-04-15 01:02:34,300 - api_logger - INFO - Router cargado: /movements_banks
2026-04-15 01:02:34,301 - api_logger - INFO - Router cargado: /payment
2026-04-15 01:02:34,301 - api_logger - INFO - Router cargado: /plans
2026-04-15 01:02:34,303 - api_logger - INFO - Router cargado: /users
2026-04-15 01:02:34,303 - api_logger - INFO - Router cargado: 
2026-04-15 01:02:34,305 - api_logger - INFO - Router cargado: /webservices
2026-04-15 01:03:17,664 - api_logger - INFO - Router cargado: /auth
2026-04-15 01:03:17,669 - api_logger - INFO - Router cargado: /bankaccount
2026-04-15 01:03:17,702 - api_logger - INFO - Router cargado: /catalogs
2026-04-15 01:03:17,705 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-15 01:03:17,706 - api_logger - INFO - Router cargado: /export
2026-04-15 01:03:17,709 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-15 01:03:17,710 - api_logger - INFO - Router cargado: /licenses
2026-04-15 01:03:17,710 - api_logger - INFO - Router cargado: /menu_options
2026-04-15 01:03:17,718 - api_logger - INFO - Router cargado: /movements_banks
2026-04-15 01:03:17,718 - api_logger - INFO - Router cargado: /payment
2026-04-15 01:03:17,719 - api_logger - INFO - Router cargado: /plans
2026-04-15 01:03:17,720 - api_logger - INFO - Router cargado: /users
2026-04-15 01:03:17,721 - api_logger - INFO - Router cargado: 
2026-04-15 01:03:17,723 - api_logger - INFO - Router cargado: /webservices
2026-04-15 01:03:17,745 - api_logger - INFO - Router cargado: /auth
2026-04-15 01:03:17,747 - api_logger - INFO - Router cargado: /bankaccount
2026-04-15 01:03:17,775 - api_logger - INFO - Router cargado: /catalogs
2026-04-15 01:03:17,777 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-15 01:03:17,778 - api_logger - INFO - Router cargado: /export
2026-04-15 01:03:17,781 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-15 01:03:17,782 - api_logger - INFO - Router cargado: /licenses
2026-04-15 01:03:17,782 - api_logger - INFO - Router cargado: /menu_options
2026-04-15 01:03:17,790 - api_logger - INFO - Router cargado: /movements_banks
2026-04-15 01:03:17,791 - api_logger - INFO - Router cargado: /payment
2026-04-15 01:03:17,791 - api_logger - INFO - Router cargado: /plans
2026-04-15 01:03:17,792 - api_logger - INFO - Router cargado: /users
2026-04-15 01:03:17,793 - api_logger - INFO - Router cargado: 
2026-04-15 01:03:17,794 - api_logger - INFO - Router cargado: /webservices
2026-04-15 01:06:12,959 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-15 01:06:12,959 - api_logger - DEBUG - Renderizando invite_account.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'recipient_email', 'verification_url', 'expire_time', 'expiration_time_unit']
2026-04-15 01:09:55,127 - api_logger - INFO - Router cargado: /auth
2026-04-15 01:09:55,132 - api_logger - INFO - Router cargado: /bankaccount
2026-04-15 01:09:55,166 - api_logger - INFO - Router cargado: /catalogs
2026-04-15 01:09:55,169 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-15 01:09:55,170 - api_logger - INFO - Router cargado: /export
2026-04-15 01:09:55,174 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-15 01:09:55,174 - api_logger - INFO - Router cargado: /licenses
2026-04-15 01:09:55,174 - api_logger - INFO - Router cargado: /menu_options
2026-04-15 01:09:55,183 - api_logger - INFO - Router cargado: /movements_banks
2026-04-15 01:09:55,184 - api_logger - INFO - Router cargado: /payment
2026-04-15 01:09:55,184 - api_logger - INFO - Router cargado: /plans
2026-04-15 01:09:55,186 - api_logger - INFO - Router cargado: /users
2026-04-15 01:09:55,186 - api_logger - INFO - Router cargado: 
2026-04-15 01:09:55,188 - api_logger - INFO - Router cargado: /webservices
2026-04-15 01:09:55,210 - api_logger - INFO - Router cargado: /auth
2026-04-15 01:09:55,212 - api_logger - INFO - Router cargado: /bankaccount
2026-04-15 01:09:55,240 - api_logger - INFO - Router cargado: /catalogs
2026-04-15 01:09:55,242 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-15 01:09:55,243 - api_logger - INFO - Router cargado: /export
2026-04-15 01:09:55,247 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-15 01:09:55,247 - api_logger - INFO - Router cargado: /licenses
2026-04-15 01:09:55,247 - api_logger - INFO - Router cargado: /menu_options
2026-04-15 01:09:55,254 - api_logger - INFO - Router cargado: /movements_banks
2026-04-15 01:09:55,255 - api_logger - INFO - Router cargado: /payment
2026-04-15 01:09:55,255 - api_logger - INFO - Router cargado: /plans
2026-04-15 01:09:55,256 - api_logger - INFO - Router cargado: /users
2026-04-15 01:09:55,257 - api_logger - INFO - Router cargado: 
2026-04-15 01:09:55,258 - api_logger - INFO - Router cargado: /webservices
2026-04-15 01:10:02,096 - api_logger - INFO - Router cargado: /auth
2026-04-15 01:10:02,101 - api_logger - INFO - Router cargado: /bankaccount
2026-04-15 01:10:02,135 - api_logger - INFO - Router cargado: /catalogs
2026-04-15 01:10:02,138 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-15 01:10:02,139 - api_logger - INFO - Router cargado: /export
2026-04-15 01:10:02,142 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-15 01:10:02,143 - api_logger - INFO - Router cargado: /licenses
2026-04-15 01:10:02,143 - api_logger - INFO - Router cargado: /menu_options
2026-04-15 01:10:02,150 - api_logger - INFO - Router cargado: /movements_banks
2026-04-15 01:10:02,151 - api_logger - INFO - Router cargado: /payment
2026-04-15 01:10:02,151 - api_logger - INFO - Router cargado: /plans
2026-04-15 01:10:02,153 - api_logger - INFO - Router cargado: /users
2026-04-15 01:10:02,154 - api_logger - INFO - Router cargado: 
2026-04-15 01:10:02,155 - api_logger - INFO - Router cargado: /webservices
2026-04-15 01:10:02,177 - api_logger - INFO - Router cargado: /auth
2026-04-15 01:10:02,179 - api_logger - INFO - Router cargado: /bankaccount
2026-04-15 01:10:02,209 - api_logger - INFO - Router cargado: /catalogs
2026-04-15 01:10:02,211 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-15 01:10:02,212 - api_logger - INFO - Router cargado: /export
2026-04-15 01:10:02,216 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-15 01:10:02,216 - api_logger - INFO - Router cargado: /licenses
2026-04-15 01:10:02,216 - api_logger - INFO - Router cargado: /menu_options
2026-04-15 01:10:02,224 - api_logger - INFO - Router cargado: /movements_banks
2026-04-15 01:10:02,224 - api_logger - INFO - Router cargado: /payment
2026-04-15 01:10:02,224 - api_logger - INFO - Router cargado: /plans
2026-04-15 01:10:02,226 - api_logger - INFO - Router cargado: /users
2026-04-15 01:10:02,227 - api_logger - INFO - Router cargado: 
2026-04-15 01:10:02,228 - api_logger - INFO - Router cargado: /webservices
2026-04-15 01:12:47,991 - api_logger - DEBUG - [ConflictError] http://localhost:8000/v1/users/subuser/create: El correo electrónico gustavo@geniubs.com ya está registrado.
2026-04-15 01:13:02,174 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-15 01:13:02,174 - api_logger - DEBUG - Renderizando invite_account.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'recipient_email', 'verification_url', 'expire_time', 'expiration_time_unit']
2026-04-15 01:14:50,210 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-15 01:14:50,210 - api_logger - DEBUG - Renderizando welcome_subuser.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'recipient_email', 'login_url']
2026-04-15 01:17:00,594 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-15 01:17:00,594 - api_logger - DEBUG - Renderizando invite_account.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'recipient_email', 'verification_url', 'expire_time', 'expiration_time_unit']
2026-04-15 01:18:10,652 - api_logger - ERROR - Error updating record: (psycopg2.errors.CheckViolation) new row for relation "licenses" violates check constraint "valid_users_count"
DETAIL:  Failing row contains (50, 4, 96, 2026-04-14 13:30:40+00, 2026-05-14 13:30:40+00, t, active, -1, 2026-04-14 19:30:50.63516+00, 2026-04-15 07:18:10.44986+00, 379b170a-1def-42cf-bcc4-8632a93db685, ead11a8d04a58779).

[SQL: UPDATE licensing.licenses SET current_users=%(current_users)s, updated_at=now() WHERE licensing.licenses.id = %(licensing_licenses_id)s]
[parameters: {'current_users': -1, 'licensing_licenses_id': 50}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-15 01:18:10,880 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-15 01:18:10,880 - api_logger - DEBUG - Renderizando welcome_subuser.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'recipient_email', 'login_url']
2026-04-15 01:19:39,068 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-15 01:19:39,068 - api_logger - DEBUG - Renderizando invite_account.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'recipient_email', 'verification_url', 'expire_time', 'expiration_time_unit']
2026-04-15 01:19:41,236 - api_logger - ERROR - Error creating record: (psycopg2.errors.RaiseException) License user limit exceeded
CONTEXT:  PL/pgSQL function validate_license_users_limit() line 16 at RAISE

[SQL: INSERT INTO licensing.license_users (license_id, user_id, role, status) VALUES (%(license_id)s, %(user_id)s, %(role)s, %(status)s) RETURNING licensing.license_users.id, licensing.license_users.assigned_at]
[parameters: {'license_id': 50, 'user_id': 108, 'role': '4', 'status': 'inactive'}]
(Background on this error at: https://sqlalche.me/e/20/2j85)
2026-04-15 01:22:42,813 - api_logger - DEBUG - [NotFoundError] http://localhost:8000/v1/auth/register/subusr: Token no encontrado
2026-04-15 01:24:08,088 - api_logger - INFO - Router cargado: /auth
2026-04-15 01:24:08,092 - api_logger - INFO - Router cargado: /bankaccount
2026-04-15 01:24:08,124 - api_logger - INFO - Router cargado: /catalogs
2026-04-15 01:24:08,127 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-15 01:24:08,128 - api_logger - INFO - Router cargado: /export
2026-04-15 01:24:08,131 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-15 01:24:08,132 - api_logger - INFO - Router cargado: /licenses
2026-04-15 01:24:08,132 - api_logger - INFO - Router cargado: /menu_options
2026-04-15 01:24:08,140 - api_logger - INFO - Router cargado: /movements_banks
2026-04-15 01:24:08,141 - api_logger - INFO - Router cargado: /payment
2026-04-15 01:24:08,141 - api_logger - INFO - Router cargado: /plans
2026-04-15 01:24:08,143 - api_logger - INFO - Router cargado: /users
2026-04-15 01:24:08,144 - api_logger - INFO - Router cargado: 
2026-04-15 01:24:08,145 - api_logger - INFO - Router cargado: /webservices
2026-04-15 01:24:08,166 - api_logger - INFO - Router cargado: /auth
2026-04-15 01:24:08,168 - api_logger - INFO - Router cargado: /bankaccount
2026-04-15 01:24:08,200 - api_logger - INFO - Router cargado: /catalogs
2026-04-15 01:24:08,202 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-15 01:24:08,203 - api_logger - INFO - Router cargado: /export
2026-04-15 01:24:08,206 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-15 01:24:08,206 - api_logger - INFO - Router cargado: /licenses
2026-04-15 01:24:08,206 - api_logger - INFO - Router cargado: /menu_options
2026-04-15 01:24:08,214 - api_logger - INFO - Router cargado: /movements_banks
2026-04-15 01:24:08,215 - api_logger - INFO - Router cargado: /payment
2026-04-15 01:24:08,215 - api_logger - INFO - Router cargado: /plans
2026-04-15 01:24:08,216 - api_logger - INFO - Router cargado: /users
2026-04-15 01:24:08,217 - api_logger - INFO - Router cargado: 
2026-04-15 01:24:08,218 - api_logger - INFO - Router cargado: /webservices
2026-04-15 01:24:39,556 - api_logger - ERROR - Error searching record: (psycopg2.OperationalError) could not translate host name "aws-0-us-west-1.pooler.supabase.com" to address: Temporary failure in name resolution

(Background on this error at: https://sqlalche.me/e/20/e3q8)
2026-04-15 01:24:39,556 - api_logger - DEBUG - [UnauthorizedError] http://localhost:8000/v1/fiscalcustomer/list: No tiene una sesión activa de momento.
2026-04-15 01:24:39,561 - api_logger - ERROR - Error searching record: (psycopg2.OperationalError) could not translate host name "aws-0-us-west-1.pooler.supabase.com" to address: Temporary failure in name resolution

(Background on this error at: https://sqlalche.me/e/20/e3q8)
2026-04-15 01:24:39,561 - api_logger - DEBUG - [UnauthorizedError] http://localhost:8000/v1/fiscalcustomer/list: No tiene una sesión activa de momento.
2026-04-15 10:27:12,983 - api_logger - INFO - Router cargado: /auth
2026-04-15 10:27:12,987 - api_logger - INFO - Router cargado: /bankaccount
2026-04-15 10:27:13,018 - api_logger - INFO - Router cargado: /catalogs
2026-04-15 10:27:13,021 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-15 10:27:13,021 - api_logger - INFO - Router cargado: /export
2026-04-15 10:27:13,025 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-15 10:27:13,025 - api_logger - INFO - Router cargado: /licenses
2026-04-15 10:27:13,025 - api_logger - INFO - Router cargado: /menu_options
2026-04-15 10:27:13,033 - api_logger - INFO - Router cargado: /movements_banks
2026-04-15 10:27:13,034 - api_logger - INFO - Router cargado: /payment
2026-04-15 10:27:13,034 - api_logger - INFO - Router cargado: /plans
2026-04-15 10:27:13,035 - api_logger - INFO - Router cargado: /users
2026-04-15 10:27:13,036 - api_logger - INFO - Router cargado: 
2026-04-15 10:27:13,038 - api_logger - INFO - Router cargado: /webservices
2026-04-15 10:27:13,083 - api_logger - INFO - Router cargado: /auth
2026-04-15 10:27:13,086 - api_logger - INFO - Router cargado: /bankaccount
2026-04-15 10:27:13,116 - api_logger - INFO - Router cargado: /catalogs
2026-04-15 10:27:13,119 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-15 10:27:13,120 - api_logger - INFO - Router cargado: /export
2026-04-15 10:27:13,124 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-15 10:27:13,124 - api_logger - INFO - Router cargado: /licenses
2026-04-15 10:27:13,124 - api_logger - INFO - Router cargado: /menu_options
2026-04-15 10:27:13,132 - api_logger - INFO - Router cargado: /movements_banks
2026-04-15 10:27:13,132 - api_logger - INFO - Router cargado: /payment
2026-04-15 10:27:13,132 - api_logger - INFO - Router cargado: /plans
2026-04-15 10:27:13,134 - api_logger - INFO - Router cargado: /users
2026-04-15 10:27:13,135 - api_logger - INFO - Router cargado: 
2026-04-15 10:27:13,136 - api_logger - INFO - Router cargado: /webservices
2026-04-15 10:27:21,288 - api_logger - INFO - Router cargado: /auth
2026-04-15 10:27:21,293 - api_logger - INFO - Router cargado: /bankaccount
2026-04-15 10:27:21,327 - api_logger - INFO - Router cargado: /catalogs
2026-04-15 10:27:21,330 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-15 10:27:21,331 - api_logger - INFO - Router cargado: /export
2026-04-15 10:27:21,335 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-15 10:27:21,335 - api_logger - INFO - Router cargado: /licenses
2026-04-15 10:27:21,335 - api_logger - INFO - Router cargado: /menu_options
2026-04-15 10:27:21,343 - api_logger - INFO - Router cargado: /movements_banks
2026-04-15 10:27:21,344 - api_logger - INFO - Router cargado: /payment
2026-04-15 10:27:21,344 - api_logger - INFO - Router cargado: /plans
2026-04-15 10:27:21,346 - api_logger - INFO - Router cargado: /users
2026-04-15 10:27:21,347 - api_logger - INFO - Router cargado: 
2026-04-15 10:27:21,348 - api_logger - INFO - Router cargado: /webservices
2026-04-15 10:27:21,372 - api_logger - INFO - Router cargado: /auth
2026-04-15 10:27:21,375 - api_logger - INFO - Router cargado: /bankaccount
2026-04-15 10:27:21,407 - api_logger - INFO - Router cargado: /catalogs
2026-04-15 10:27:21,409 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-15 10:27:21,410 - api_logger - INFO - Router cargado: /export
2026-04-15 10:27:21,413 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-15 10:27:21,413 - api_logger - INFO - Router cargado: /licenses
2026-04-15 10:27:21,414 - api_logger - INFO - Router cargado: /menu_options
2026-04-15 10:27:21,421 - api_logger - INFO - Router cargado: /movements_banks
2026-04-15 10:27:21,422 - api_logger - INFO - Router cargado: /payment
2026-04-15 10:27:21,422 - api_logger - INFO - Router cargado: /plans
2026-04-15 10:27:21,423 - api_logger - INFO - Router cargado: /users
2026-04-15 10:27:21,424 - api_logger - INFO - Router cargado: 
2026-04-15 10:27:21,425 - api_logger - INFO - Router cargado: /webservices
2026-04-15 10:27:27,820 - api_logger - INFO - Router cargado: /auth
2026-04-15 10:27:27,825 - api_logger - INFO - Router cargado: /bankaccount
2026-04-15 10:27:27,860 - api_logger - INFO - Router cargado: /catalogs
2026-04-15 10:27:27,863 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-15 10:27:27,864 - api_logger - INFO - Router cargado: /export
2026-04-15 10:27:27,867 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-15 10:27:27,868 - api_logger - INFO - Router cargado: /licenses
2026-04-15 10:27:27,868 - api_logger - INFO - Router cargado: /menu_options
2026-04-15 10:27:27,877 - api_logger - INFO - Router cargado: /movements_banks
2026-04-15 10:27:27,878 - api_logger - INFO - Router cargado: /payment
2026-04-15 10:27:27,878 - api_logger - INFO - Router cargado: /plans
2026-04-15 10:27:27,880 - api_logger - INFO - Router cargado: /users
2026-04-15 10:27:27,881 - api_logger - INFO - Router cargado: 
2026-04-15 10:27:27,882 - api_logger - INFO - Router cargado: /webservices
2026-04-15 10:27:27,906 - api_logger - INFO - Router cargado: /auth
2026-04-15 10:27:27,908 - api_logger - INFO - Router cargado: /bankaccount
2026-04-15 10:27:27,938 - api_logger - INFO - Router cargado: /catalogs
2026-04-15 10:27:27,940 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-15 10:27:27,941 - api_logger - INFO - Router cargado: /export
2026-04-15 10:27:27,944 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-15 10:27:27,945 - api_logger - INFO - Router cargado: /licenses
2026-04-15 10:27:27,945 - api_logger - INFO - Router cargado: /menu_options
2026-04-15 10:27:27,952 - api_logger - INFO - Router cargado: /movements_banks
2026-04-15 10:27:27,953 - api_logger - INFO - Router cargado: /payment
2026-04-15 10:27:27,953 - api_logger - INFO - Router cargado: /plans
2026-04-15 10:27:27,954 - api_logger - INFO - Router cargado: /users
2026-04-15 10:27:27,955 - api_logger - INFO - Router cargado: 
2026-04-15 10:27:27,956 - api_logger - INFO - Router cargado: /webservices
2026-04-15 10:31:06,979 - api_logger - DEBUG - [UnauthorizedError] http://localhost:8000/v1/fiscalcustomer/list: El token ha expirado
2026-04-15 10:31:06,980 - api_logger - DEBUG - [UnauthorizedError] http://localhost:8000/v1/fiscalcustomer/list: El token ha expirado
2026-04-15 10:32:14,140 - api_logger - WARNING - error en usuario batcaver7@gmail.com :: Credenciales incorrectas, numero de intentos restantes: 2.
2026-04-15 10:32:14,140 - api_logger - DEBUG - [UnauthorizedError] http://localhost:8000/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 2.
2026-04-15 10:32:18,058 - api_logger - WARNING - error en usuario batcaver7@gmail.com :: Credenciales incorrectas, numero de intentos restantes: 1.
2026-04-15 10:32:18,058 - api_logger - DEBUG - [UnauthorizedError] http://localhost:8000/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 1.
2026-04-15 10:32:22,816 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-15 10:32:22,913 - api_logger - DEBUG - Renderizando account_blocked.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'failed_attempts', 'reset_url', 'blocked_at', 'ip_address']
2026-04-15 10:32:25,164 - api_logger - WARNING - error en usuario batcaver7@gmail.com :: Tu cuenta ha quedado bloqueada.
2026-04-15 10:32:25,164 - api_logger - DEBUG - [LockedError] http://localhost:8000/v1/auth/login: Tu cuenta ha quedado bloqueada.
2026-04-16 14:42:45,655 - api_logger - INFO - Router cargado: /auth
2026-04-16 14:42:45,659 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 14:42:45,690 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 14:42:45,693 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 14:42:45,694 - api_logger - INFO - Router cargado: /export
2026-04-16 14:42:45,697 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 14:42:45,697 - api_logger - INFO - Router cargado: /licenses
2026-04-16 14:42:45,697 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 14:42:45,705 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 14:42:45,706 - api_logger - INFO - Router cargado: /payment
2026-04-16 14:42:45,706 - api_logger - INFO - Router cargado: /plans
2026-04-16 14:42:45,707 - api_logger - INFO - Router cargado: /users
2026-04-16 14:42:45,708 - api_logger - INFO - Router cargado: 
2026-04-16 14:42:45,709 - api_logger - INFO - Router cargado: /webservices
2026-04-16 14:42:45,748 - api_logger - INFO - Router cargado: /auth
2026-04-16 14:42:45,750 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 14:42:45,776 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 14:42:45,779 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 14:42:45,780 - api_logger - INFO - Router cargado: /export
2026-04-16 14:42:45,783 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 14:42:45,783 - api_logger - INFO - Router cargado: /licenses
2026-04-16 14:42:45,783 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 14:42:45,790 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 14:42:45,791 - api_logger - INFO - Router cargado: /payment
2026-04-16 14:42:45,791 - api_logger - INFO - Router cargado: /plans
2026-04-16 14:42:45,792 - api_logger - INFO - Router cargado: /users
2026-04-16 14:42:45,793 - api_logger - INFO - Router cargado: 
2026-04-16 14:42:45,794 - api_logger - INFO - Router cargado: /webservices
2026-04-16 14:42:50,352 - api_logger - INFO - Router cargado: /auth
2026-04-16 14:42:50,357 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 14:42:50,392 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 14:42:50,395 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 14:42:50,396 - api_logger - INFO - Router cargado: /export
2026-04-16 14:42:50,399 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 14:42:50,399 - api_logger - INFO - Router cargado: /licenses
2026-04-16 14:42:50,400 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 14:42:50,408 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 14:42:50,409 - api_logger - INFO - Router cargado: /payment
2026-04-16 14:42:50,409 - api_logger - INFO - Router cargado: /plans
2026-04-16 14:42:50,411 - api_logger - INFO - Router cargado: /users
2026-04-16 14:42:50,411 - api_logger - INFO - Router cargado: 
2026-04-16 14:42:50,413 - api_logger - INFO - Router cargado: /webservices
2026-04-16 14:42:50,433 - api_logger - INFO - Router cargado: /auth
2026-04-16 14:42:50,435 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 14:42:50,465 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 14:42:50,468 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 14:42:50,468 - api_logger - INFO - Router cargado: /export
2026-04-16 14:42:50,472 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 14:42:50,472 - api_logger - INFO - Router cargado: /licenses
2026-04-16 14:42:50,472 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 14:42:50,480 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 14:42:50,481 - api_logger - INFO - Router cargado: /payment
2026-04-16 14:42:50,481 - api_logger - INFO - Router cargado: /plans
2026-04-16 14:42:50,482 - api_logger - INFO - Router cargado: /users
2026-04-16 14:42:50,483 - api_logger - INFO - Router cargado: 
2026-04-16 14:42:50,484 - api_logger - INFO - Router cargado: /webservices
2026-04-16 14:42:59,838 - api_logger - INFO - Router cargado: /auth
2026-04-16 14:42:59,843 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 14:42:59,878 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 14:42:59,881 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 14:42:59,882 - api_logger - INFO - Router cargado: /export
2026-04-16 14:42:59,886 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 14:42:59,887 - api_logger - INFO - Router cargado: /licenses
2026-04-16 14:42:59,887 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 14:42:59,895 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 14:42:59,896 - api_logger - INFO - Router cargado: /payment
2026-04-16 14:42:59,896 - api_logger - INFO - Router cargado: /plans
2026-04-16 14:42:59,898 - api_logger - INFO - Router cargado: /users
2026-04-16 14:42:59,899 - api_logger - INFO - Router cargado: 
2026-04-16 14:42:59,900 - api_logger - INFO - Router cargado: /webservices
2026-04-16 14:42:59,921 - api_logger - INFO - Router cargado: /auth
2026-04-16 14:42:59,923 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 14:42:59,951 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 14:42:59,953 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 14:42:59,954 - api_logger - INFO - Router cargado: /export
2026-04-16 14:42:59,958 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 14:42:59,958 - api_logger - INFO - Router cargado: /licenses
2026-04-16 14:42:59,958 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 14:42:59,965 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 14:42:59,966 - api_logger - INFO - Router cargado: /payment
2026-04-16 14:42:59,966 - api_logger - INFO - Router cargado: /plans
2026-04-16 14:42:59,967 - api_logger - INFO - Router cargado: /users
2026-04-16 14:42:59,968 - api_logger - INFO - Router cargado: 
2026-04-16 14:42:59,969 - api_logger - INFO - Router cargado: /webservices
2026-04-16 14:43:13,814 - api_logger - INFO - Router cargado: /auth
2026-04-16 14:43:13,818 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 14:43:13,851 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 14:43:13,854 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 14:43:13,855 - api_logger - INFO - Router cargado: /export
2026-04-16 14:43:13,859 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 14:43:13,859 - api_logger - INFO - Router cargado: /licenses
2026-04-16 14:43:13,859 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 14:43:13,867 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 14:43:13,868 - api_logger - INFO - Router cargado: /payment
2026-04-16 14:43:13,868 - api_logger - INFO - Router cargado: /plans
2026-04-16 14:43:13,870 - api_logger - INFO - Router cargado: /users
2026-04-16 14:43:13,871 - api_logger - INFO - Router cargado: 
2026-04-16 14:43:13,872 - api_logger - INFO - Router cargado: /webservices
2026-04-16 14:43:13,892 - api_logger - INFO - Router cargado: /auth
2026-04-16 14:43:13,894 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 14:43:13,924 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 14:43:13,926 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 14:43:13,927 - api_logger - INFO - Router cargado: /export
2026-04-16 14:43:13,930 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 14:43:13,930 - api_logger - INFO - Router cargado: /licenses
2026-04-16 14:43:13,930 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 14:43:13,938 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 14:43:13,938 - api_logger - INFO - Router cargado: /payment
2026-04-16 14:43:13,939 - api_logger - INFO - Router cargado: /plans
2026-04-16 14:43:13,940 - api_logger - INFO - Router cargado: /users
2026-04-16 14:43:13,941 - api_logger - INFO - Router cargado: 
2026-04-16 14:43:13,942 - api_logger - INFO - Router cargado: /webservices
2026-04-16 14:43:25,557 - api_logger - INFO - Router cargado: /auth
2026-04-16 14:43:25,561 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 14:43:25,596 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 14:43:25,598 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 14:43:25,599 - api_logger - INFO - Router cargado: /export
2026-04-16 14:43:25,603 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 14:43:25,603 - api_logger - INFO - Router cargado: /licenses
2026-04-16 14:43:25,603 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 14:43:25,611 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 14:43:25,612 - api_logger - INFO - Router cargado: /payment
2026-04-16 14:43:25,612 - api_logger - INFO - Router cargado: /plans
2026-04-16 14:43:25,614 - api_logger - INFO - Router cargado: /users
2026-04-16 14:43:25,615 - api_logger - INFO - Router cargado: 
2026-04-16 14:43:25,616 - api_logger - INFO - Router cargado: /webservices
2026-04-16 14:43:25,637 - api_logger - INFO - Router cargado: /auth
2026-04-16 14:43:25,639 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 14:43:25,667 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 14:43:25,670 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 14:43:25,671 - api_logger - INFO - Router cargado: /export
2026-04-16 14:43:25,674 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 14:43:25,674 - api_logger - INFO - Router cargado: /licenses
2026-04-16 14:43:25,675 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 14:43:25,682 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 14:43:25,683 - api_logger - INFO - Router cargado: /payment
2026-04-16 14:43:25,683 - api_logger - INFO - Router cargado: /plans
2026-04-16 14:43:25,684 - api_logger - INFO - Router cargado: /users
2026-04-16 14:43:25,685 - api_logger - INFO - Router cargado: 
2026-04-16 14:43:25,686 - api_logger - INFO - Router cargado: /webservices
2026-04-16 16:20:02,107 - api_logger - WARNING - error en usuario batcaver7@gmail.com :: Cuenta bloqueada.
2026-04-16 16:20:02,107 - api_logger - DEBUG - [LockedError] http://localhost:8000/v1/auth/login: Cuenta bloqueada.
2026-04-16 16:20:23,393 - api_logger - WARNING - error en usuario batcaver7@gmail.com :: Cuenta bloqueada.
2026-04-16 16:20:23,393 - api_logger - DEBUG - [LockedError] http://localhost:8000/v1/auth/login: Cuenta bloqueada.
2026-04-16 16:25:45,631 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-16 16:25:45,631 - api_logger - DEBUG - Renderizando password_reset.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'reset_url', 'expire_minutes', 'unlock']
2026-04-16 16:30:09,538 - api_logger - DEBUG - [UnauthorizedError] http://localhost:8000/v1/auth/recovery/passwd: Recientemente solicito una recuperacion para la cuenta batcaver7@gmail.com.
2026-04-16 16:30:58,827 - api_logger - DEBUG - [UnauthorizedError] http://localhost:8000/v1/auth/recovery/passwd: Recientemente solicito una recuperacion para la cuenta batcaver7@gmail.com.
2026-04-16 16:33:25,664 - api_logger - DEBUG - [UnauthorizedError] http://localhost:8000/v1/auth/recovery/passwd: Recientemente solicito una recuperacion para la cuenta batcaver7@gmail.com.
2026-04-16 17:18:04,356 - api_logger - WARNING - error en usuario batcaver7@gmail.com :: Cuenta bloqueada.
2026-04-16 17:18:04,357 - api_logger - DEBUG - [LockedError] http://localhost:8000/v1/auth/login: Cuenta bloqueada.
2026-04-16 17:19:10,808 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-16 17:19:10,808 - api_logger - DEBUG - Renderizando password_reset.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'reset_url', 'expire_minutes', 'unlock']
2026-04-16 17:23:08,248 - api_logger - WARNING - error en usuario batcaver7@gmail.com :: Credenciales incorrectas, numero de intentos restantes: 2.
2026-04-16 17:23:08,248 - api_logger - DEBUG - [UnauthorizedError] http://localhost:8000/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 2.
2026-04-16 17:26:27,339 - api_logger - DEBUG - [DomainError] http://localhost:8000/v1/users/subuser/create: No tienes espacios disponibles. Tu plan permite 2 usuario(s) adicional(es).
2026-04-16 17:30:31,453 - api_logger - INFO - Router cargado: /auth
2026-04-16 17:30:31,457 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 17:30:31,490 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 17:30:31,492 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 17:30:31,493 - api_logger - INFO - Router cargado: /export
2026-04-16 17:30:31,497 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 17:30:31,497 - api_logger - INFO - Router cargado: /licenses
2026-04-16 17:30:31,497 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 17:30:31,504 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 17:30:31,505 - api_logger - INFO - Router cargado: /payment
2026-04-16 17:30:31,505 - api_logger - INFO - Router cargado: /plans
2026-04-16 17:30:31,507 - api_logger - INFO - Router cargado: /users
2026-04-16 17:30:31,508 - api_logger - INFO - Router cargado: 
2026-04-16 17:30:31,509 - api_logger - INFO - Router cargado: /webservices
2026-04-16 17:30:31,529 - api_logger - INFO - Router cargado: /auth
2026-04-16 17:30:31,531 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 17:30:31,559 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 17:30:31,562 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 17:30:31,562 - api_logger - INFO - Router cargado: /export
2026-04-16 17:30:31,566 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 17:30:31,566 - api_logger - INFO - Router cargado: /licenses
2026-04-16 17:30:31,566 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 17:30:31,574 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 17:30:31,574 - api_logger - INFO - Router cargado: /payment
2026-04-16 17:30:31,574 - api_logger - INFO - Router cargado: /plans
2026-04-16 17:30:31,576 - api_logger - INFO - Router cargado: /users
2026-04-16 17:30:31,577 - api_logger - INFO - Router cargado: 
2026-04-16 17:30:31,578 - api_logger - INFO - Router cargado: /webservices
2026-04-16 17:30:39,501 - api_logger - INFO - Router cargado: /auth
2026-04-16 17:30:39,506 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 17:30:39,542 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 17:30:39,544 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 17:30:39,546 - api_logger - INFO - Router cargado: /export
2026-04-16 17:30:39,549 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 17:30:39,549 - api_logger - INFO - Router cargado: /licenses
2026-04-16 17:30:39,550 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 17:30:39,557 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 17:30:39,558 - api_logger - INFO - Router cargado: /payment
2026-04-16 17:30:39,558 - api_logger - INFO - Router cargado: /plans
2026-04-16 17:30:39,560 - api_logger - INFO - Router cargado: /users
2026-04-16 17:30:39,561 - api_logger - INFO - Router cargado: 
2026-04-16 17:30:39,562 - api_logger - INFO - Router cargado: /webservices
2026-04-16 17:30:39,587 - api_logger - INFO - Router cargado: /auth
2026-04-16 17:30:39,589 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 17:30:39,618 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 17:30:39,621 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 17:30:39,622 - api_logger - INFO - Router cargado: /export
2026-04-16 17:30:39,625 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 17:30:39,625 - api_logger - INFO - Router cargado: /licenses
2026-04-16 17:30:39,625 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 17:30:39,633 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 17:30:39,634 - api_logger - INFO - Router cargado: /payment
2026-04-16 17:30:39,634 - api_logger - INFO - Router cargado: /plans
2026-04-16 17:30:39,635 - api_logger - INFO - Router cargado: /users
2026-04-16 17:30:39,636 - api_logger - INFO - Router cargado: 
2026-04-16 17:30:39,637 - api_logger - INFO - Router cargado: /webservices
2026-04-16 17:37:41,027 - api_logger - INFO - Router cargado: /auth
2026-04-16 17:37:41,032 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 17:37:41,064 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 17:37:41,067 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 17:37:41,068 - api_logger - INFO - Router cargado: /export
2026-04-16 17:37:41,072 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 17:37:41,072 - api_logger - INFO - Router cargado: /licenses
2026-04-16 17:37:41,072 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 17:37:41,081 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 17:37:41,081 - api_logger - INFO - Router cargado: /payment
2026-04-16 17:37:41,081 - api_logger - INFO - Router cargado: /plans
2026-04-16 17:37:41,083 - api_logger - INFO - Router cargado: /users
2026-04-16 17:37:41,085 - api_logger - INFO - Router cargado: 
2026-04-16 17:37:41,086 - api_logger - INFO - Router cargado: /webservices
2026-04-16 17:37:41,109 - api_logger - INFO - Router cargado: /auth
2026-04-16 17:37:41,111 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 17:37:41,141 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 17:37:41,144 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 17:37:41,145 - api_logger - INFO - Router cargado: /export
2026-04-16 17:37:41,148 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 17:37:41,148 - api_logger - INFO - Router cargado: /licenses
2026-04-16 17:37:41,148 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 17:37:41,156 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 17:37:41,157 - api_logger - INFO - Router cargado: /payment
2026-04-16 17:37:41,157 - api_logger - INFO - Router cargado: /plans
2026-04-16 17:37:41,159 - api_logger - INFO - Router cargado: /users
2026-04-16 17:37:41,160 - api_logger - INFO - Router cargado: 
2026-04-16 17:37:41,161 - api_logger - INFO - Router cargado: /webservices
2026-04-16 17:43:42,511 - api_logger - INFO - Router cargado: /auth
2026-04-16 17:43:42,516 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 17:43:42,549 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 17:43:42,552 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 17:43:42,552 - api_logger - INFO - Router cargado: /export
2026-04-16 17:43:42,556 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 17:43:42,556 - api_logger - INFO - Router cargado: /licenses
2026-04-16 17:43:42,557 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 17:43:42,565 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 17:43:42,565 - api_logger - INFO - Router cargado: /payment
2026-04-16 17:43:42,566 - api_logger - INFO - Router cargado: /plans
2026-04-16 17:43:42,567 - api_logger - INFO - Router cargado: /users
2026-04-16 17:43:42,568 - api_logger - INFO - Router cargado: 
2026-04-16 17:43:42,570 - api_logger - INFO - Router cargado: /webservices
2026-04-16 17:43:42,591 - api_logger - INFO - Router cargado: /auth
2026-04-16 17:43:42,593 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 17:43:42,621 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 17:43:42,624 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 17:43:42,624 - api_logger - INFO - Router cargado: /export
2026-04-16 17:43:42,628 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 17:43:42,628 - api_logger - INFO - Router cargado: /licenses
2026-04-16 17:43:42,628 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 17:43:42,636 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 17:43:42,636 - api_logger - INFO - Router cargado: /payment
2026-04-16 17:43:42,636 - api_logger - INFO - Router cargado: /plans
2026-04-16 17:43:42,638 - api_logger - INFO - Router cargado: /users
2026-04-16 17:43:42,639 - api_logger - INFO - Router cargado: 
2026-04-16 17:43:42,640 - api_logger - INFO - Router cargado: /webservices
2026-04-16 17:43:49,885 - api_logger - INFO - Router cargado: /auth
2026-04-16 17:43:49,889 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 17:43:49,925 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 17:43:49,928 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 17:43:49,929 - api_logger - INFO - Router cargado: /export
2026-04-16 17:43:49,933 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 17:43:49,934 - api_logger - INFO - Router cargado: /licenses
2026-04-16 17:43:49,934 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 17:43:49,942 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 17:43:49,942 - api_logger - INFO - Router cargado: /payment
2026-04-16 17:43:49,943 - api_logger - INFO - Router cargado: /plans
2026-04-16 17:43:49,944 - api_logger - INFO - Router cargado: /users
2026-04-16 17:43:49,945 - api_logger - INFO - Router cargado: 
2026-04-16 17:43:49,947 - api_logger - INFO - Router cargado: /webservices
2026-04-16 17:43:49,968 - api_logger - INFO - Router cargado: /auth
2026-04-16 17:43:49,970 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 17:43:49,999 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 17:43:50,002 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 17:43:50,002 - api_logger - INFO - Router cargado: /export
2026-04-16 17:43:50,006 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 17:43:50,006 - api_logger - INFO - Router cargado: /licenses
2026-04-16 17:43:50,006 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 17:43:50,013 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 17:43:50,014 - api_logger - INFO - Router cargado: /payment
2026-04-16 17:43:50,014 - api_logger - INFO - Router cargado: /plans
2026-04-16 17:43:50,016 - api_logger - INFO - Router cargado: /users
2026-04-16 17:43:50,017 - api_logger - INFO - Router cargado: 
2026-04-16 17:43:50,018 - api_logger - INFO - Router cargado: /webservices
2026-04-16 17:46:29,324 - api_logger - DEBUG - [DomainError] http://localhost:8000/v1/users/subuser/create: No tienes espacios disponibles. Tu plan permite 2 usuario(s) adicional(es).
2026-04-16 17:46:42,765 - api_logger - DEBUG - [DomainError] http://localhost:8000/v1/users/subuser/create: No tienes espacios disponibles. Tu plan permite 2 usuario(s) adicional(es).
2026-04-16 17:47:58,505 - api_logger - DEBUG - [DomainError] http://localhost:8000/v1/users/subuser/create: No tienes espacios disponibles. Tu plan permite 2 usuario(s) adicional(es).
2026-04-16 17:49:35,399 - api_logger - INFO - Router cargado: /auth
2026-04-16 17:49:35,403 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 17:49:35,436 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 17:49:35,439 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 17:49:35,439 - api_logger - INFO - Router cargado: /export
2026-04-16 17:49:35,443 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 17:49:35,443 - api_logger - INFO - Router cargado: /licenses
2026-04-16 17:49:35,443 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 17:49:35,451 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 17:49:35,452 - api_logger - INFO - Router cargado: /payment
2026-04-16 17:49:35,452 - api_logger - INFO - Router cargado: /plans
2026-04-16 17:49:35,454 - api_logger - INFO - Router cargado: /users
2026-04-16 17:49:35,455 - api_logger - INFO - Router cargado: 
2026-04-16 17:49:35,456 - api_logger - INFO - Router cargado: /webservices
2026-04-16 17:49:35,477 - api_logger - INFO - Router cargado: /auth
2026-04-16 17:49:35,479 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 17:49:35,506 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 17:49:35,508 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 17:49:35,509 - api_logger - INFO - Router cargado: /export
2026-04-16 17:49:35,512 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 17:49:35,513 - api_logger - INFO - Router cargado: /licenses
2026-04-16 17:49:35,513 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 17:49:35,520 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 17:49:35,521 - api_logger - INFO - Router cargado: /payment
2026-04-16 17:49:35,521 - api_logger - INFO - Router cargado: /plans
2026-04-16 17:49:35,522 - api_logger - INFO - Router cargado: /users
2026-04-16 17:49:35,523 - api_logger - INFO - Router cargado: 
2026-04-16 17:49:35,524 - api_logger - INFO - Router cargado: /webservices
2026-04-16 17:49:54,785 - api_logger - INFO - Router cargado: /auth
2026-04-16 17:49:54,790 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 17:49:54,825 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 17:49:54,827 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 17:49:54,829 - api_logger - INFO - Router cargado: /export
2026-04-16 17:49:54,832 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 17:49:54,832 - api_logger - INFO - Router cargado: /licenses
2026-04-16 17:49:54,832 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 17:49:54,840 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 17:49:54,841 - api_logger - INFO - Router cargado: /payment
2026-04-16 17:49:54,841 - api_logger - INFO - Router cargado: /plans
2026-04-16 17:49:54,843 - api_logger - INFO - Router cargado: /users
2026-04-16 17:49:54,844 - api_logger - INFO - Router cargado: 
2026-04-16 17:49:54,845 - api_logger - INFO - Router cargado: /webservices
2026-04-16 17:49:54,867 - api_logger - INFO - Router cargado: /auth
2026-04-16 17:49:54,869 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 17:49:54,898 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 17:49:54,901 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 17:49:54,902 - api_logger - INFO - Router cargado: /export
2026-04-16 17:49:54,905 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 17:49:54,905 - api_logger - INFO - Router cargado: /licenses
2026-04-16 17:49:54,906 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 17:49:54,913 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 17:49:54,914 - api_logger - INFO - Router cargado: /payment
2026-04-16 17:49:54,914 - api_logger - INFO - Router cargado: /plans
2026-04-16 17:49:54,915 - api_logger - INFO - Router cargado: /users
2026-04-16 17:49:54,916 - api_logger - INFO - Router cargado: 
2026-04-16 17:49:54,917 - api_logger - INFO - Router cargado: /webservices
2026-04-16 18:14:11,267 - api_logger - INFO - Router cargado: /auth
2026-04-16 18:14:11,272 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 18:14:11,307 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 18:14:11,309 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 18:14:11,310 - api_logger - INFO - Router cargado: /export
2026-04-16 18:14:11,314 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 18:14:11,314 - api_logger - INFO - Router cargado: /licenses
2026-04-16 18:14:11,314 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 18:14:11,322 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 18:14:11,322 - api_logger - INFO - Router cargado: /payment
2026-04-16 18:14:11,323 - api_logger - INFO - Router cargado: /plans
2026-04-16 18:14:11,325 - api_logger - INFO - Router cargado: /users
2026-04-16 18:14:11,326 - api_logger - INFO - Router cargado: 
2026-04-16 18:14:11,327 - api_logger - INFO - Router cargado: /webservices
2026-04-16 18:14:11,348 - api_logger - INFO - Router cargado: /auth
2026-04-16 18:14:11,350 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 18:14:11,378 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 18:14:11,380 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 18:14:11,381 - api_logger - INFO - Router cargado: /export
2026-04-16 18:14:11,385 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 18:14:11,385 - api_logger - INFO - Router cargado: /licenses
2026-04-16 18:14:11,385 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 18:14:11,392 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 18:14:11,393 - api_logger - INFO - Router cargado: /payment
2026-04-16 18:14:11,393 - api_logger - INFO - Router cargado: /plans
2026-04-16 18:14:11,394 - api_logger - INFO - Router cargado: /users
2026-04-16 18:14:11,395 - api_logger - INFO - Router cargado: 
2026-04-16 18:14:11,397 - api_logger - INFO - Router cargado: /webservices
2026-04-16 18:14:19,386 - api_logger - INFO - Router cargado: /auth
2026-04-16 18:14:19,391 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 18:14:19,425 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 18:14:19,427 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 18:14:19,428 - api_logger - INFO - Router cargado: /export
2026-04-16 18:14:19,432 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 18:14:19,432 - api_logger - INFO - Router cargado: /licenses
2026-04-16 18:14:19,433 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 18:14:19,440 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 18:14:19,441 - api_logger - INFO - Router cargado: /payment
2026-04-16 18:14:19,441 - api_logger - INFO - Router cargado: /plans
2026-04-16 18:14:19,443 - api_logger - INFO - Router cargado: /users
2026-04-16 18:14:19,444 - api_logger - INFO - Router cargado: 
2026-04-16 18:14:19,445 - api_logger - INFO - Router cargado: /webservices
2026-04-16 18:14:19,468 - api_logger - INFO - Router cargado: /auth
2026-04-16 18:14:19,470 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 18:14:19,498 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 18:14:19,501 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 18:14:19,502 - api_logger - INFO - Router cargado: /export
2026-04-16 18:14:19,505 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 18:14:19,505 - api_logger - INFO - Router cargado: /licenses
2026-04-16 18:14:19,505 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 18:14:19,513 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 18:14:19,514 - api_logger - INFO - Router cargado: /payment
2026-04-16 18:14:19,514 - api_logger - INFO - Router cargado: /plans
2026-04-16 18:14:19,515 - api_logger - INFO - Router cargado: /users
2026-04-16 18:14:19,516 - api_logger - INFO - Router cargado: 
2026-04-16 18:14:19,518 - api_logger - INFO - Router cargado: /webservices
2026-04-16 18:14:20,561 - api_logger - INFO - Router cargado: /auth
2026-04-16 18:14:20,565 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 18:14:20,604 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 18:14:20,607 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 18:14:20,608 - api_logger - INFO - Router cargado: /export
2026-04-16 18:14:20,613 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 18:14:20,613 - api_logger - INFO - Router cargado: /licenses
2026-04-16 18:14:20,613 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 18:14:20,621 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 18:14:20,622 - api_logger - INFO - Router cargado: /payment
2026-04-16 18:14:20,622 - api_logger - INFO - Router cargado: /plans
2026-04-16 18:14:20,623 - api_logger - INFO - Router cargado: /users
2026-04-16 18:14:20,624 - api_logger - INFO - Router cargado: 
2026-04-16 18:14:20,626 - api_logger - INFO - Router cargado: /webservices
2026-04-16 18:14:20,648 - api_logger - INFO - Router cargado: /auth
2026-04-16 18:14:20,650 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 18:14:20,677 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 18:14:20,680 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 18:14:20,681 - api_logger - INFO - Router cargado: /export
2026-04-16 18:14:20,684 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 18:14:20,684 - api_logger - INFO - Router cargado: /licenses
2026-04-16 18:14:20,684 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 18:14:20,692 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 18:14:20,692 - api_logger - INFO - Router cargado: /payment
2026-04-16 18:14:20,692 - api_logger - INFO - Router cargado: /plans
2026-04-16 18:14:20,694 - api_logger - INFO - Router cargado: /users
2026-04-16 18:14:20,695 - api_logger - INFO - Router cargado: 
2026-04-16 18:14:20,696 - api_logger - INFO - Router cargado: /webservices
2026-04-16 18:14:30,649 - api_logger - INFO - Router cargado: /auth
2026-04-16 18:14:30,655 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 18:14:30,689 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 18:14:30,691 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 18:14:30,692 - api_logger - INFO - Router cargado: /export
2026-04-16 18:14:30,696 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 18:14:30,696 - api_logger - INFO - Router cargado: /licenses
2026-04-16 18:14:30,696 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 18:14:30,704 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 18:14:30,705 - api_logger - INFO - Router cargado: /payment
2026-04-16 18:14:30,705 - api_logger - INFO - Router cargado: /plans
2026-04-16 18:14:30,707 - api_logger - INFO - Router cargado: /users
2026-04-16 18:14:30,708 - api_logger - INFO - Router cargado: 
2026-04-16 18:14:30,709 - api_logger - INFO - Router cargado: /webservices
2026-04-16 18:14:30,731 - api_logger - INFO - Router cargado: /auth
2026-04-16 18:14:30,733 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 18:14:30,762 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 18:14:30,764 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 18:14:30,766 - api_logger - INFO - Router cargado: /export
2026-04-16 18:14:30,769 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 18:14:30,769 - api_logger - INFO - Router cargado: /licenses
2026-04-16 18:14:30,769 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 18:14:30,777 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 18:14:30,777 - api_logger - INFO - Router cargado: /payment
2026-04-16 18:14:30,777 - api_logger - INFO - Router cargado: /plans
2026-04-16 18:14:30,779 - api_logger - INFO - Router cargado: /users
2026-04-16 18:14:30,780 - api_logger - INFO - Router cargado: 
2026-04-16 18:14:30,781 - api_logger - INFO - Router cargado: /webservices
2026-04-16 18:14:40,358 - api_logger - INFO - Router cargado: /auth
2026-04-16 18:14:40,363 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 18:14:40,400 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 18:14:40,402 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 18:14:40,403 - api_logger - INFO - Router cargado: /export
2026-04-16 18:14:40,407 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 18:14:40,407 - api_logger - INFO - Router cargado: /licenses
2026-04-16 18:14:40,408 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 18:14:40,416 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 18:14:40,417 - api_logger - INFO - Router cargado: /payment
2026-04-16 18:14:40,417 - api_logger - INFO - Router cargado: /plans
2026-04-16 18:14:40,419 - api_logger - INFO - Router cargado: /users
2026-04-16 18:14:40,420 - api_logger - INFO - Router cargado: 
2026-04-16 18:14:40,421 - api_logger - INFO - Router cargado: /webservices
2026-04-16 18:14:40,446 - api_logger - INFO - Router cargado: /auth
2026-04-16 18:14:40,448 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 18:14:40,479 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 18:14:40,482 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 18:14:40,483 - api_logger - INFO - Router cargado: /export
2026-04-16 18:14:40,487 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 18:14:40,487 - api_logger - INFO - Router cargado: /licenses
2026-04-16 18:14:40,487 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 18:14:40,494 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 18:14:40,495 - api_logger - INFO - Router cargado: /payment
2026-04-16 18:14:40,495 - api_logger - INFO - Router cargado: /plans
2026-04-16 18:14:40,497 - api_logger - INFO - Router cargado: /users
2026-04-16 18:14:40,498 - api_logger - INFO - Router cargado: 
2026-04-16 18:14:40,499 - api_logger - INFO - Router cargado: /webservices
2026-04-16 18:17:20,433 - api_logger - INFO - Router cargado: /auth
2026-04-16 18:17:20,437 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 18:17:20,470 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 18:17:20,473 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 18:17:20,473 - api_logger - INFO - Router cargado: /export
2026-04-16 18:17:20,477 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 18:17:20,477 - api_logger - INFO - Router cargado: /licenses
2026-04-16 18:17:20,477 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 18:17:20,485 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 18:17:20,486 - api_logger - INFO - Router cargado: /payment
2026-04-16 18:17:20,486 - api_logger - INFO - Router cargado: /plans
2026-04-16 18:17:20,488 - api_logger - INFO - Router cargado: /users
2026-04-16 18:17:20,489 - api_logger - INFO - Router cargado: 
2026-04-16 18:17:20,490 - api_logger - INFO - Router cargado: /webservices
2026-04-16 18:17:20,511 - api_logger - INFO - Router cargado: /auth
2026-04-16 18:17:20,513 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 18:17:20,549 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 18:17:20,551 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 18:17:20,552 - api_logger - INFO - Router cargado: /export
2026-04-16 18:17:20,556 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 18:17:20,556 - api_logger - INFO - Router cargado: /licenses
2026-04-16 18:17:20,556 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 18:17:20,564 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 18:17:20,564 - api_logger - INFO - Router cargado: /payment
2026-04-16 18:17:20,565 - api_logger - INFO - Router cargado: /plans
2026-04-16 18:17:20,566 - api_logger - INFO - Router cargado: /users
2026-04-16 18:17:20,567 - api_logger - INFO - Router cargado: 
2026-04-16 18:17:20,569 - api_logger - INFO - Router cargado: /webservices
2026-04-16 18:19:20,750 - api_logger - DEBUG - [UnauthorizedError] http://localhost:8000/v1/fiscalcustomer/list: El token ha expirado
2026-04-16 18:19:20,750 - api_logger - DEBUG - [UnauthorizedError] http://localhost:8000/v1/fiscalcustomer/list: El token ha expirado
2026-04-16 18:24:35,316 - api_logger - WARNING - error en usuario batcaver7@gmail.com :: Credenciales incorrectas, numero de intentos restantes: 2.
2026-04-16 18:24:35,316 - api_logger - DEBUG - [UnauthorizedError] http://localhost:8000/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 2.
2026-04-16 18:25:51,546 - api_logger - DEBUG - [DomainError] http://localhost:8000/v1/users/subuser/create: No tienes espacios disponibles. Tu plan permite 2 usuario(s) adicional(es).
2026-04-16 18:26:45,827 - api_logger - DEBUG - [ConflictError] http://localhost:8000/v1/users/subuser/create: El correo electrónico gustavo@vctra.xyz ya está registrado.
2026-04-16 18:27:49,976 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-16 18:27:49,976 - api_logger - DEBUG - Renderizando invite_account.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'recipient_email', 'verification_url', 'expire_time', 'expiration_time_unit']
2026-04-16 18:27:53,003 - api_logger - ERROR - Error creating record: (psycopg2.errors.RaiseException) License user limit exceeded
CONTEXT:  PL/pgSQL function validate_license_users_limit() line 16 at RAISE

[SQL: INSERT INTO licensing.license_users (license_id, user_id, role, status) VALUES (%(license_id)s, %(user_id)s, %(role)s, %(status)s) RETURNING licensing.license_users.id, licensing.license_users.assigned_at]
[parameters: {'license_id': 50, 'user_id': 109, 'role': '4', 'status': 'inactive'}]
(Background on this error at: https://sqlalche.me/e/20/2j85)
2026-04-16 18:28:43,556 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-16 18:28:43,556 - api_logger - DEBUG - Renderizando invite_account.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'recipient_email', 'verification_url', 'expire_time', 'expiration_time_unit']
2026-04-16 18:28:45,397 - api_logger - ERROR - Error creating record: (psycopg2.errors.RaiseException) License user limit exceeded
CONTEXT:  PL/pgSQL function validate_license_users_limit() line 16 at RAISE

[SQL: INSERT INTO licensing.license_users (license_id, user_id, role, status) VALUES (%(license_id)s, %(user_id)s, %(role)s, %(status)s) RETURNING licensing.license_users.id, licensing.license_users.assigned_at]
[parameters: {'license_id': 50, 'user_id': 110, 'role': '4', 'status': 'inactive'}]
(Background on this error at: https://sqlalche.me/e/20/2j85)
2026-04-16 18:32:13,219 - api_logger - INFO - Router cargado: /auth
2026-04-16 18:32:13,224 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 18:32:13,259 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 18:32:13,262 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 18:32:13,263 - api_logger - INFO - Router cargado: /export
2026-04-16 18:32:13,267 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 18:32:13,267 - api_logger - INFO - Router cargado: /licenses
2026-04-16 18:32:13,267 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 18:32:13,275 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 18:32:13,276 - api_logger - INFO - Router cargado: /payment
2026-04-16 18:32:13,276 - api_logger - INFO - Router cargado: /plans
2026-04-16 18:32:13,277 - api_logger - INFO - Router cargado: /users
2026-04-16 18:32:13,278 - api_logger - INFO - Router cargado: 
2026-04-16 18:32:13,280 - api_logger - INFO - Router cargado: /webservices
2026-04-16 18:32:13,301 - api_logger - INFO - Router cargado: /auth
2026-04-16 18:32:13,303 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 18:32:13,333 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 18:32:13,336 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 18:32:13,337 - api_logger - INFO - Router cargado: /export
2026-04-16 18:32:13,341 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 18:32:13,341 - api_logger - INFO - Router cargado: /licenses
2026-04-16 18:32:13,341 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 18:32:13,349 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 18:32:13,350 - api_logger - INFO - Router cargado: /payment
2026-04-16 18:32:13,350 - api_logger - INFO - Router cargado: /plans
2026-04-16 18:32:13,351 - api_logger - INFO - Router cargado: /users
2026-04-16 18:32:13,352 - api_logger - INFO - Router cargado: 
2026-04-16 18:32:13,354 - api_logger - INFO - Router cargado: /webservices
2026-04-16 18:32:21,907 - api_logger - INFO - Router cargado: /auth
2026-04-16 18:32:21,911 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 18:32:21,945 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 18:32:21,948 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 18:32:21,949 - api_logger - INFO - Router cargado: /export
2026-04-16 18:32:21,953 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 18:32:21,953 - api_logger - INFO - Router cargado: /licenses
2026-04-16 18:32:21,953 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 18:32:21,962 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 18:32:21,962 - api_logger - INFO - Router cargado: /payment
2026-04-16 18:32:21,962 - api_logger - INFO - Router cargado: /plans
2026-04-16 18:32:21,964 - api_logger - INFO - Router cargado: /users
2026-04-16 18:32:21,965 - api_logger - INFO - Router cargado: 
2026-04-16 18:32:21,967 - api_logger - INFO - Router cargado: /webservices
2026-04-16 18:32:21,988 - api_logger - INFO - Router cargado: /auth
2026-04-16 18:32:21,990 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 18:32:22,021 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 18:32:22,023 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 18:32:22,024 - api_logger - INFO - Router cargado: /export
2026-04-16 18:32:22,028 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 18:32:22,028 - api_logger - INFO - Router cargado: /licenses
2026-04-16 18:32:22,028 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 18:32:22,036 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 18:32:22,036 - api_logger - INFO - Router cargado: /payment
2026-04-16 18:32:22,036 - api_logger - INFO - Router cargado: /plans
2026-04-16 18:32:22,038 - api_logger - INFO - Router cargado: /users
2026-04-16 18:32:22,039 - api_logger - INFO - Router cargado: 
2026-04-16 18:32:22,040 - api_logger - INFO - Router cargado: /webservices
2026-04-16 18:33:40,284 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-16 18:33:40,284 - api_logger - DEBUG - Renderizando invite_account.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'recipient_email', 'verification_url', 'expire_time', 'expiration_time_unit']
2026-04-16 18:33:42,226 - api_logger - ERROR - Error creating record: (psycopg2.errors.RaiseException) License user limit exceeded
CONTEXT:  PL/pgSQL function validate_license_users_limit() line 16 at RAISE

[SQL: INSERT INTO licensing.license_users (license_id, user_id, role, status) VALUES (%(license_id)s, %(user_id)s, %(role)s, %(status)s) RETURNING licensing.license_users.id, licensing.license_users.assigned_at]
[parameters: {'license_id': 50, 'user_id': 111, 'role': '4', 'status': 'inactive'}]
(Background on this error at: https://sqlalche.me/e/20/2j85)
2026-04-16 18:36:56,640 - api_logger - INFO - Router cargado: /auth
2026-04-16 18:36:56,644 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 18:36:56,678 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 18:36:56,681 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 18:36:56,682 - api_logger - INFO - Router cargado: /export
2026-04-16 18:36:56,686 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 18:36:56,686 - api_logger - INFO - Router cargado: /licenses
2026-04-16 18:36:56,686 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 18:36:56,694 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 18:36:56,695 - api_logger - INFO - Router cargado: /payment
2026-04-16 18:36:56,695 - api_logger - INFO - Router cargado: /plans
2026-04-16 18:36:56,697 - api_logger - INFO - Router cargado: /users
2026-04-16 18:36:56,699 - api_logger - INFO - Router cargado: 
2026-04-16 18:36:56,700 - api_logger - INFO - Router cargado: /webservices
2026-04-16 18:36:56,725 - api_logger - INFO - Router cargado: /auth
2026-04-16 18:36:56,727 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 18:36:56,755 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 18:36:56,757 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 18:36:56,759 - api_logger - INFO - Router cargado: /export
2026-04-16 18:36:56,762 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 18:36:56,762 - api_logger - INFO - Router cargado: /licenses
2026-04-16 18:36:56,762 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 18:36:56,770 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 18:36:56,770 - api_logger - INFO - Router cargado: /payment
2026-04-16 18:36:56,770 - api_logger - INFO - Router cargado: /plans
2026-04-16 18:36:56,772 - api_logger - INFO - Router cargado: /users
2026-04-16 18:36:56,772 - api_logger - INFO - Router cargado: 
2026-04-16 18:36:56,774 - api_logger - INFO - Router cargado: /webservices
2026-04-16 18:39:43,792 - api_logger - INFO - [slots] license=50 max_subusers=2 all_lu=2
2026-04-16 18:39:44,789 - api_logger - INFO - [slots] user_id=106 status=deleted
2026-04-16 18:39:45,015 - api_logger - INFO - [slots] user_id=107 status=active
2026-04-16 18:39:45,015 - api_logger - INFO - [slots] existing_count=1
2026-04-16 18:39:46,465 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-16 18:39:46,466 - api_logger - DEBUG - Renderizando invite_account.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'recipient_email', 'verification_url', 'expire_time', 'expiration_time_unit']
2026-04-16 18:39:48,465 - api_logger - ERROR - Error creating record: (psycopg2.errors.RaiseException) License user limit exceeded
CONTEXT:  PL/pgSQL function validate_license_users_limit() line 16 at RAISE

[SQL: INSERT INTO licensing.license_users (license_id, user_id, role, status) VALUES (%(license_id)s, %(user_id)s, %(role)s, %(status)s) RETURNING licensing.license_users.id, licensing.license_users.assigned_at]
[parameters: {'license_id': 50, 'user_id': 112, 'role': '4', 'status': 'inactive'}]
(Background on this error at: https://sqlalche.me/e/20/2j85)
2026-04-16 18:44:59,282 - api_logger - INFO - Router cargado: /auth
2026-04-16 18:44:59,286 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 18:44:59,320 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 18:44:59,323 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 18:44:59,323 - api_logger - INFO - Router cargado: /export
2026-04-16 18:44:59,327 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 18:44:59,327 - api_logger - INFO - Router cargado: /licenses
2026-04-16 18:44:59,327 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 18:44:59,336 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 18:44:59,336 - api_logger - INFO - Router cargado: /payment
2026-04-16 18:44:59,336 - api_logger - INFO - Router cargado: /plans
2026-04-16 18:44:59,338 - api_logger - INFO - Router cargado: /users
2026-04-16 18:44:59,339 - api_logger - INFO - Router cargado: 
2026-04-16 18:44:59,340 - api_logger - INFO - Router cargado: /webservices
2026-04-16 18:44:59,362 - api_logger - INFO - Router cargado: /auth
2026-04-16 18:44:59,364 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 18:44:59,393 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 18:44:59,395 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 18:44:59,396 - api_logger - INFO - Router cargado: /export
2026-04-16 18:44:59,399 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 18:44:59,399 - api_logger - INFO - Router cargado: /licenses
2026-04-16 18:44:59,399 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 18:44:59,407 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 18:44:59,407 - api_logger - INFO - Router cargado: /payment
2026-04-16 18:44:59,407 - api_logger - INFO - Router cargado: /plans
2026-04-16 18:44:59,409 - api_logger - INFO - Router cargado: /users
2026-04-16 18:44:59,410 - api_logger - INFO - Router cargado: 
2026-04-16 18:44:59,411 - api_logger - INFO - Router cargado: /webservices
2026-04-16 18:45:09,495 - api_logger - INFO - Router cargado: /auth
2026-04-16 18:45:09,499 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 18:45:09,533 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 18:45:09,535 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 18:45:09,536 - api_logger - INFO - Router cargado: /export
2026-04-16 18:45:09,540 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 18:45:09,540 - api_logger - INFO - Router cargado: /licenses
2026-04-16 18:45:09,540 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 18:45:09,549 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 18:45:09,550 - api_logger - INFO - Router cargado: /payment
2026-04-16 18:45:09,550 - api_logger - INFO - Router cargado: /plans
2026-04-16 18:45:09,552 - api_logger - INFO - Router cargado: /users
2026-04-16 18:45:09,553 - api_logger - INFO - Router cargado: 
2026-04-16 18:45:09,555 - api_logger - INFO - Router cargado: /webservices
2026-04-16 18:45:09,580 - api_logger - INFO - Router cargado: /auth
2026-04-16 18:45:09,582 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 18:45:09,613 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 18:45:09,616 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 18:45:09,617 - api_logger - INFO - Router cargado: /export
2026-04-16 18:45:09,621 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 18:45:09,621 - api_logger - INFO - Router cargado: /licenses
2026-04-16 18:45:09,621 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 18:45:09,629 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 18:45:09,629 - api_logger - INFO - Router cargado: /payment
2026-04-16 18:45:09,630 - api_logger - INFO - Router cargado: /plans
2026-04-16 18:45:09,631 - api_logger - INFO - Router cargado: /users
2026-04-16 18:45:09,632 - api_logger - INFO - Router cargado: 
2026-04-16 18:45:09,634 - api_logger - INFO - Router cargado: /webservices
2026-04-16 18:45:26,188 - api_logger - INFO - Router cargado: /auth
2026-04-16 18:45:26,193 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 18:45:26,226 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 18:45:26,229 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 18:45:26,230 - api_logger - INFO - Router cargado: /export
2026-04-16 18:45:26,234 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 18:45:26,234 - api_logger - INFO - Router cargado: /licenses
2026-04-16 18:45:26,234 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 18:45:26,242 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 18:45:26,243 - api_logger - INFO - Router cargado: /payment
2026-04-16 18:45:26,243 - api_logger - INFO - Router cargado: /plans
2026-04-16 18:45:26,245 - api_logger - INFO - Router cargado: /users
2026-04-16 18:45:26,246 - api_logger - INFO - Router cargado: 
2026-04-16 18:45:26,247 - api_logger - INFO - Router cargado: /webservices
2026-04-16 18:45:26,270 - api_logger - INFO - Router cargado: /auth
2026-04-16 18:45:26,272 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 18:45:26,303 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 18:45:26,305 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 18:45:26,306 - api_logger - INFO - Router cargado: /export
2026-04-16 18:45:26,310 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 18:45:26,310 - api_logger - INFO - Router cargado: /licenses
2026-04-16 18:45:26,310 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 18:45:26,318 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 18:45:26,318 - api_logger - INFO - Router cargado: /payment
2026-04-16 18:45:26,318 - api_logger - INFO - Router cargado: /plans
2026-04-16 18:45:26,320 - api_logger - INFO - Router cargado: /users
2026-04-16 18:45:26,321 - api_logger - INFO - Router cargado: 
2026-04-16 18:45:26,322 - api_logger - INFO - Router cargado: /webservices
2026-04-16 18:47:10,601 - api_logger - INFO - [slots] license=50 max_subusers=2 all_lu=2
2026-04-16 18:47:11,583 - api_logger - INFO - [slots] user_id=106 status=deleted
2026-04-16 18:47:11,804 - api_logger - INFO - [slots] user_id=107 status=active
2026-04-16 18:47:11,804 - api_logger - INFO - [slots] existing_count=1
2026-04-16 18:47:13,236 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-16 18:47:13,236 - api_logger - DEBUG - Renderizando invite_account.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'recipient_email', 'verification_url', 'expire_time', 'expiration_time_unit']
2026-04-16 18:47:15,306 - api_logger - ERROR - Error creating record: (psycopg2.errors.RaiseException) License user limit exceeded
CONTEXT:  PL/pgSQL function validate_license_users_limit() line 16 at RAISE

[SQL: INSERT INTO licensing.license_users (license_id, user_id, role, status) VALUES (%(license_id)s, %(user_id)s, %(role)s, %(status)s) RETURNING licensing.license_users.id, licensing.license_users.assigned_at]
[parameters: {'license_id': 50, 'user_id': 113, 'role': '4', 'status': 'inactive'}]
(Background on this error at: https://sqlalche.me/e/20/2j85)
2026-04-16 18:47:15,306 - api_logger - ERROR - [create_subuser] Error al crear LicenseUsers: (psycopg2.errors.RaiseException) License user limit exceeded
CONTEXT:  PL/pgSQL function validate_license_users_limit() line 16 at RAISE

[SQL: INSERT INTO licensing.license_users (license_id, user_id, role, status) VALUES (%(license_id)s, %(user_id)s, %(role)s, %(status)s) RETURNING licensing.license_users.id, licensing.license_users.assigned_at]
[parameters: {'license_id': 50, 'user_id': 113, 'role': '4', 'status': 'inactive'}]
(Background on this error at: https://sqlalche.me/e/20/2j85)
2026-04-16 18:47:15,306 - api_logger - DEBUG - [DomainError] http://localhost:8000/v1/users/subuser/create: Error al registrar el subusuario en la licencia.
2026-04-16 18:48:16,469 - api_logger - INFO - [slots] license=50 max_subusers=2 all_lu=2
2026-04-16 18:48:17,443 - api_logger - INFO - [slots] user_id=106 status=deleted
2026-04-16 18:48:17,663 - api_logger - INFO - [slots] user_id=107 status=active
2026-04-16 18:48:17,663 - api_logger - INFO - [slots] existing_count=1
2026-04-16 18:48:18,662 - api_logger - DEBUG - [ConflictError] http://localhost:8000/v1/users/subuser/create: El correo electrónico asdfds@adfsd.com ya está registrado.
2026-04-16 18:48:55,482 - api_logger - INFO - [slots] license=50 max_subusers=2 all_lu=2
2026-04-16 18:48:56,477 - api_logger - INFO - [slots] user_id=106 status=deleted
2026-04-16 18:48:56,703 - api_logger - INFO - [slots] user_id=107 status=active
2026-04-16 18:48:56,703 - api_logger - INFO - [slots] existing_count=1
2026-04-16 18:48:58,106 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-16 18:48:58,106 - api_logger - DEBUG - Renderizando invite_account.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'recipient_email', 'verification_url', 'expire_time', 'expiration_time_unit']
2026-04-16 18:48:59,613 - api_logger - ERROR - Error creating record: (psycopg2.errors.RaiseException) License user limit exceeded
CONTEXT:  PL/pgSQL function validate_license_users_limit() line 16 at RAISE

[SQL: INSERT INTO licensing.license_users (license_id, user_id, role, status) VALUES (%(license_id)s, %(user_id)s, %(role)s, %(status)s) RETURNING licensing.license_users.id, licensing.license_users.assigned_at]
[parameters: {'license_id': 50, 'user_id': 114, 'role': '4', 'status': 'inactive'}]
(Background on this error at: https://sqlalche.me/e/20/2j85)
2026-04-16 18:48:59,613 - api_logger - ERROR - [create_subuser] Error al crear LicenseUsers: (psycopg2.errors.RaiseException) License user limit exceeded
CONTEXT:  PL/pgSQL function validate_license_users_limit() line 16 at RAISE

[SQL: INSERT INTO licensing.license_users (license_id, user_id, role, status) VALUES (%(license_id)s, %(user_id)s, %(role)s, %(status)s) RETURNING licensing.license_users.id, licensing.license_users.assigned_at]
[parameters: {'license_id': 50, 'user_id': 114, 'role': '4', 'status': 'inactive'}]
(Background on this error at: https://sqlalche.me/e/20/2j85)
2026-04-16 18:48:59,613 - api_logger - DEBUG - [DomainError] http://localhost:8000/v1/users/subuser/create: Error al registrar el subusuario en la licencia.
2026-04-16 18:50:40,331 - api_logger - INFO - Router cargado: /auth
2026-04-16 18:50:40,337 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 18:50:40,373 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 18:50:40,376 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 18:50:40,377 - api_logger - INFO - Router cargado: /export
2026-04-16 18:50:40,381 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 18:50:40,381 - api_logger - INFO - Router cargado: /licenses
2026-04-16 18:50:40,381 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 18:50:40,390 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 18:50:40,390 - api_logger - INFO - Router cargado: /payment
2026-04-16 18:50:40,391 - api_logger - INFO - Router cargado: /plans
2026-04-16 18:50:40,392 - api_logger - INFO - Router cargado: /users
2026-04-16 18:50:40,393 - api_logger - INFO - Router cargado: 
2026-04-16 18:50:40,395 - api_logger - INFO - Router cargado: /webservices
2026-04-16 18:50:40,417 - api_logger - INFO - Router cargado: /auth
2026-04-16 18:50:40,419 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 18:50:40,449 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 18:50:40,452 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 18:50:40,453 - api_logger - INFO - Router cargado: /export
2026-04-16 18:50:40,457 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 18:50:40,457 - api_logger - INFO - Router cargado: /licenses
2026-04-16 18:50:40,457 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 18:50:40,464 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 18:50:40,465 - api_logger - INFO - Router cargado: /payment
2026-04-16 18:50:40,465 - api_logger - INFO - Router cargado: /plans
2026-04-16 18:50:40,467 - api_logger - INFO - Router cargado: /users
2026-04-16 18:50:40,467 - api_logger - INFO - Router cargado: 
2026-04-16 18:50:40,469 - api_logger - INFO - Router cargado: /webservices
2026-04-16 18:51:16,797 - api_logger - INFO - [slots] license=50 max_subusers=2 all_lu=2
2026-04-16 18:51:17,788 - api_logger - INFO - [slots] user_id=106 status=deleted
2026-04-16 18:51:18,007 - api_logger - INFO - [slots] user_id=107 status=active
2026-04-16 18:51:18,007 - api_logger - INFO - [slots] existing_count=1
2026-04-16 18:51:18,990 - api_logger - DEBUG - [ConflictError] http://localhost:8000/v1/users/subuser/create: El correo electrónico asdfds@adfsd.cosm ya está registrado.
2026-04-16 18:51:31,803 - api_logger - INFO - [slots] license=50 max_subusers=2 all_lu=2
2026-04-16 18:51:32,790 - api_logger - INFO - [slots] user_id=106 status=deleted
2026-04-16 18:51:33,014 - api_logger - INFO - [slots] user_id=107 status=active
2026-04-16 18:51:33,015 - api_logger - INFO - [slots] existing_count=1
2026-04-16 18:51:34,449 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-16 18:51:34,449 - api_logger - DEBUG - Renderizando invite_account.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'recipient_email', 'verification_url', 'expire_time', 'expiration_time_unit']
2026-04-16 18:51:36,385 - api_logger - ERROR - Error creating record: (psycopg2.errors.RaiseException) License user limit exceeded
CONTEXT:  PL/pgSQL function validate_license_users_limit() line 16 at RAISE

[SQL: INSERT INTO licensing.license_users (license_id, user_id, role, status) VALUES (%(license_id)s, %(user_id)s, %(role)s, %(status)s) RETURNING licensing.license_users.id, licensing.license_users.assigned_at]
[parameters: {'license_id': 50, 'user_id': 115, 'role': '4', 'status': 'inactive'}]
(Background on this error at: https://sqlalche.me/e/20/2j85)
2026-04-16 18:51:36,385 - api_logger - ERROR - [create_subuser] Error al crear LicenseUsers para user_id=115: (psycopg2.errors.RaiseException) License user limit exceeded
CONTEXT:  PL/pgSQL function validate_license_users_limit() line 16 at RAISE

[SQL: INSERT INTO licensing.license_users (license_id, user_id, role, status) VALUES (%(license_id)s, %(user_id)s, %(role)s, %(status)s) RETURNING licensing.license_users.id, licensing.license_users.assigned_at]
[parameters: {'license_id': 50, 'user_id': 115, 'role': '4', 'status': 'inactive'}]
(Background on this error at: https://sqlalche.me/e/20/2j85)
2026-04-16 18:56:29,939 - api_logger - INFO - Router cargado: /auth
2026-04-16 18:56:29,943 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 18:56:29,979 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 18:56:29,981 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 18:56:29,982 - api_logger - INFO - Router cargado: /export
2026-04-16 18:56:29,986 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 18:56:29,986 - api_logger - INFO - Router cargado: /licenses
2026-04-16 18:56:29,986 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 18:56:29,994 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 18:56:29,995 - api_logger - INFO - Router cargado: /payment
2026-04-16 18:56:29,995 - api_logger - INFO - Router cargado: /plans
2026-04-16 18:56:29,997 - api_logger - INFO - Router cargado: /users
2026-04-16 18:56:29,998 - api_logger - INFO - Router cargado: 
2026-04-16 18:56:30,000 - api_logger - INFO - Router cargado: /webservices
2026-04-16 18:56:30,022 - api_logger - INFO - Router cargado: /auth
2026-04-16 18:56:30,024 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 18:56:30,054 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 18:56:30,056 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 18:56:30,057 - api_logger - INFO - Router cargado: /export
2026-04-16 18:56:30,061 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 18:56:30,061 - api_logger - INFO - Router cargado: /licenses
2026-04-16 18:56:30,061 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 18:56:30,069 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 18:56:30,069 - api_logger - INFO - Router cargado: /payment
2026-04-16 18:56:30,070 - api_logger - INFO - Router cargado: /plans
2026-04-16 18:56:30,071 - api_logger - INFO - Router cargado: /users
2026-04-16 18:56:30,072 - api_logger - INFO - Router cargado: 
2026-04-16 18:56:30,073 - api_logger - INFO - Router cargado: /webservices
2026-04-16 18:57:09,721 - api_logger - INFO - [slots] license=50 max_subusers=2 all_lu=2
2026-04-16 18:57:10,722 - api_logger - INFO - [slots] user_id=106 status=deleted
2026-04-16 18:57:10,940 - api_logger - INFO - [slots] user_id=107 status=active
2026-04-16 18:57:10,940 - api_logger - INFO - [slots] existing_count=1
2026-04-16 18:57:12,389 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-16 18:57:12,389 - api_logger - DEBUG - Renderizando invite_account.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'recipient_email', 'verification_url', 'expire_time', 'expiration_time_unit']
2026-04-16 18:57:16,050 - api_logger - ERROR - Error creating record: (psycopg2.errors.RaiseException) License user limit exceeded
CONTEXT:  PL/pgSQL function validate_license_users_limit() line 16 at RAISE

[SQL: INSERT INTO licensing.license_users (license_id, user_id, role, status) VALUES (%(license_id)s, %(user_id)s, %(role)s, %(status)s) RETURNING licensing.license_users.id, licensing.license_users.assigned_at]
[parameters: {'license_id': 50, 'user_id': 116, 'role': '4', 'status': 'inactive'}]
(Background on this error at: https://sqlalche.me/e/20/2j85)
2026-04-16 18:57:16,051 - api_logger - INFO - [create_subuser] LicenseUsers create → success=False detail=(psycopg2.errors.RaiseException) License user limit exceeded
CONTEXT:  PL/pgSQL function validate_license_users_limit() line 16 at RAISE

[SQL: INSERT INTO licensing.license_users (license_id, user_id, role, status) VALUES (%(license_id)s, %(user_id)s, %(role)s, %(status)s) RETURNING licensing.license_users.id, licensing.license_users.assigned_at]
[parameters: {'license_id': 50, 'user_id': 116, 'role': '4', 'status': 'inactive'}]
(Background on this error at: https://sqlalche.me/e/20/2j85)
2026-04-16 19:10:50,472 - api_logger - INFO - Router cargado: /auth
2026-04-16 19:10:50,476 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 19:10:50,510 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 19:10:50,513 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 19:10:50,514 - api_logger - INFO - Router cargado: /export
2026-04-16 19:10:50,518 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 19:10:50,519 - api_logger - INFO - Router cargado: /licenses
2026-04-16 19:10:50,519 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 19:10:50,527 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 19:10:50,528 - api_logger - INFO - Router cargado: /payment
2026-04-16 19:10:50,528 - api_logger - INFO - Router cargado: /plans
2026-04-16 19:10:50,529 - api_logger - INFO - Router cargado: /users
2026-04-16 19:10:50,530 - api_logger - INFO - Router cargado: 
2026-04-16 19:10:50,532 - api_logger - INFO - Router cargado: /webservices
2026-04-16 19:10:50,553 - api_logger - INFO - Router cargado: /auth
2026-04-16 19:10:50,555 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 19:10:50,587 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 19:10:50,590 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 19:10:50,592 - api_logger - INFO - Router cargado: /export
2026-04-16 19:10:50,596 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 19:10:50,597 - api_logger - INFO - Router cargado: /licenses
2026-04-16 19:10:50,597 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 19:10:50,605 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 19:10:50,606 - api_logger - INFO - Router cargado: /payment
2026-04-16 19:10:50,606 - api_logger - INFO - Router cargado: /plans
2026-04-16 19:10:50,608 - api_logger - INFO - Router cargado: /users
2026-04-16 19:10:50,609 - api_logger - INFO - Router cargado: 
2026-04-16 19:10:50,611 - api_logger - INFO - Router cargado: /webservices
2026-04-16 19:11:02,256 - api_logger - INFO - Router cargado: /auth
2026-04-16 19:11:02,260 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 19:11:02,294 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 19:11:02,296 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 19:11:02,297 - api_logger - INFO - Router cargado: /export
2026-04-16 19:11:02,301 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 19:11:02,301 - api_logger - INFO - Router cargado: /licenses
2026-04-16 19:11:02,301 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 19:11:02,309 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 19:11:02,310 - api_logger - INFO - Router cargado: /payment
2026-04-16 19:11:02,310 - api_logger - INFO - Router cargado: /plans
2026-04-16 19:11:02,312 - api_logger - INFO - Router cargado: /users
2026-04-16 19:11:02,313 - api_logger - INFO - Router cargado: 
2026-04-16 19:11:02,314 - api_logger - INFO - Router cargado: /webservices
2026-04-16 19:11:02,336 - api_logger - INFO - Router cargado: /auth
2026-04-16 19:11:02,338 - api_logger - INFO - Router cargado: /bankaccount
2026-04-16 19:11:02,366 - api_logger - INFO - Router cargado: /catalogs
2026-04-16 19:11:02,369 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-16 19:11:02,370 - api_logger - INFO - Router cargado: /export
2026-04-16 19:11:02,373 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-16 19:11:02,373 - api_logger - INFO - Router cargado: /licenses
2026-04-16 19:11:02,373 - api_logger - INFO - Router cargado: /menu_options
2026-04-16 19:11:02,381 - api_logger - INFO - Router cargado: /movements_banks
2026-04-16 19:11:02,382 - api_logger - INFO - Router cargado: /payment
2026-04-16 19:11:02,382 - api_logger - INFO - Router cargado: /plans
2026-04-16 19:11:02,383 - api_logger - INFO - Router cargado: /users
2026-04-16 19:11:02,384 - api_logger - INFO - Router cargado: 
2026-04-16 19:11:02,385 - api_logger - INFO - Router cargado: /webservices
2026-04-16 19:12:42,036 - api_logger - DEBUG - [DomainError] http://localhost:8000/v1/users/subuser/create: No tienes espacios disponibles. Tu plan permite 2 usuario(s) adicional(es).
2026-04-16 19:14:01,384 - api_logger - DEBUG - [DomainError] http://localhost:8000/v1/users/subuser/create: No tienes espacios disponibles. Tu plan permite 2 usuario(s) adicional(es).
2026-04-16 19:19:41,987 - api_logger - DEBUG - [DomainError] http://localhost:8000/v1/users/subuser/create: No tienes espacios disponibles. Tu plan permite 2 usuario(s) adicional(es).
2026-04-17 09:19:27,144 - api_logger - DEBUG - [UnauthorizedError] http://localhost:8000/v1/catalogs/regimenfiscal/getall?page_size=30: El token ha expirado
2026-04-17 09:54:49,931 - api_logger - DEBUG - [UnauthorizedError] http://localhost:8000/v1/fiscalcustomer/list: El token ha expirado
2026-04-17 09:54:49,933 - api_logger - DEBUG - [UnauthorizedError] http://localhost:8000/v1/fiscalcustomer/list: El token ha expirado
2026-04-17 09:56:55,638 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-17 09:56:55,638 - api_logger - DEBUG - Renderizando invite_account.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'recipient_email', 'verification_url', 'expire_time', 'expiration_time_unit']
2026-04-17 09:57:01,782 - api_logger - INFO - [create_subuser] LicenseUsers create → success=True detail=None
2026-04-17 10:05:10,967 - api_logger - DEBUG - [ConflictError] http://localhost:8000/v1/users/subuser/create: El correo electrónico gustavo@vctra.xyz ya está registrado.
2026-04-17 10:06:10,183 - api_logger - ERROR - Error updating record: (psycopg2.errors.CheckViolation) new row for relation "licenses" violates check constraint "valid_users_count"
DETAIL:  Failing row contains (50, 4, 96, 2026-04-14 13:30:40+00, 2026-05-14 13:30:40+00, t, active, -1, 2026-04-14 19:30:50.63516+00, 2026-04-17 16:06:09.97594+00, 379b170a-1def-42cf-bcc4-8632a93db685, ead11a8d04a58779).

[SQL: UPDATE licensing.licenses SET current_users=%(current_users)s, updated_at=now() WHERE licensing.licenses.id = %(licensing_licenses_id)s]
[parameters: {'current_users': -1, 'licensing_licenses_id': 50}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-17 10:06:10,413 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-17 10:06:10,413 - api_logger - DEBUG - Renderizando welcome_subuser.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'recipient_email', 'login_url']
2026-04-17 10:10:42,119 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-17 10:10:42,119 - api_logger - DEBUG - Renderizando invite_account.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'recipient_email', 'verification_url', 'expire_time', 'expiration_time_unit']
2026-04-17 10:10:43,837 - api_logger - INFO - [create_subuser] LicenseUsers create → success=True detail=None
2026-04-17 10:11:16,387 - api_logger - DEBUG - [DomainError] http://localhost:8000/v1/users/subuser/create: No tienes espacios disponibles. Tu plan permite 2 usuario(s) adicional(es).
2026-04-17 10:12:47,088 - api_logger - ERROR - Error updating record: (psycopg2.errors.CheckViolation) new row for relation "licenses" violates check constraint "valid_users_count"
DETAIL:  Failing row contains (50, 4, 96, 2026-04-14 13:30:40+00, 2026-05-14 13:30:40+00, t, active, -1, 2026-04-14 19:30:50.63516+00, 2026-04-17 16:12:46.888672+00, 379b170a-1def-42cf-bcc4-8632a93db685, ead11a8d04a58779).

[SQL: UPDATE licensing.licenses SET current_users=%(current_users)s, updated_at=now() WHERE licensing.licenses.id = %(licensing_licenses_id)s]
[parameters: {'current_users': -1, 'licensing_licenses_id': 50}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-17 10:12:47,308 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-17 10:12:47,309 - api_logger - DEBUG - Renderizando welcome_subuser.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'recipient_email', 'login_url']
2026-04-17 10:14:00,750 - api_logger - DEBUG - [DomainError] http://localhost:8000/v1/users/subuser/create: No tienes espacios disponibles. Tu plan permite 2 usuario(s) adicional(es).
2026-04-17 10:15:22,606 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-17 10:15:22,606 - api_logger - DEBUG - Renderizando invite_account.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'recipient_email', 'verification_url', 'expire_time', 'expiration_time_unit']
2026-04-17 10:15:24,673 - api_logger - INFO - [create_subuser] LicenseUsers create → success=True detail=None
2026-04-17 10:15:40,508 - api_logger - DEBUG - [DomainError] http://localhost:8000/v1/users/subuser/create: No tienes espacios disponibles. Tu plan permite 2 usuario(s) adicional(es).
2026-04-17 11:18:34,305 - api_logger - INFO - Router cargado: /bankaccount
2026-04-17 11:18:34,339 - api_logger - INFO - Router cargado: /catalogs
2026-04-17 11:18:34,341 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-17 11:18:34,342 - api_logger - INFO - Router cargado: /export
2026-04-17 11:18:34,346 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-17 11:18:34,346 - api_logger - INFO - Router cargado: /licenses
2026-04-17 11:18:34,346 - api_logger - INFO - Router cargado: /menu_options
2026-04-17 11:18:34,353 - api_logger - INFO - Router cargado: /movements_banks
2026-04-17 11:18:34,354 - api_logger - INFO - Router cargado: /payment
2026-04-17 11:18:34,354 - api_logger - INFO - Router cargado: /plans
2026-04-17 11:18:34,355 - api_logger - INFO - Router cargado: 
2026-04-17 11:18:34,357 - api_logger - INFO - Router cargado: /webservices
2026-04-17 11:18:34,358 - api_logger - INFO - Router cargado: /auth
2026-04-17 11:18:34,359 - api_logger - INFO - Router cargado: /users
2026-04-17 11:18:35,154 - api_logger - INFO - Router cargado: /bankaccount
2026-04-17 11:18:35,186 - api_logger - INFO - Router cargado: /catalogs
2026-04-17 11:18:35,189 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-17 11:18:35,190 - api_logger - INFO - Router cargado: /export
2026-04-17 11:18:35,193 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-17 11:18:35,193 - api_logger - INFO - Router cargado: /licenses
2026-04-17 11:18:35,194 - api_logger - INFO - Router cargado: /menu_options
2026-04-17 11:18:35,201 - api_logger - INFO - Router cargado: /movements_banks
2026-04-17 11:18:35,202 - api_logger - INFO - Router cargado: /payment
2026-04-17 11:18:35,202 - api_logger - INFO - Router cargado: /plans
2026-04-17 11:18:35,203 - api_logger - INFO - Router cargado: 
2026-04-17 11:18:35,204 - api_logger - INFO - Router cargado: /webservices
2026-04-17 11:18:35,206 - api_logger - INFO - Router cargado: /auth
2026-04-17 11:18:35,207 - api_logger - INFO - Router cargado: /users
2026-04-17 11:18:35,238 - api_logger - INFO - Router cargado: /bankaccount
2026-04-17 11:18:35,265 - api_logger - INFO - Router cargado: /catalogs
2026-04-17 11:18:35,268 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-17 11:18:35,269 - api_logger - INFO - Router cargado: /export
2026-04-17 11:18:35,272 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-17 11:18:35,272 - api_logger - INFO - Router cargado: /licenses
2026-04-17 11:18:35,272 - api_logger - INFO - Router cargado: /menu_options
2026-04-17 11:18:35,279 - api_logger - INFO - Router cargado: /movements_banks
2026-04-17 11:18:35,280 - api_logger - INFO - Router cargado: /payment
2026-04-17 11:18:35,280 - api_logger - INFO - Router cargado: /plans
2026-04-17 11:18:35,281 - api_logger - INFO - Router cargado: 
2026-04-17 11:18:35,282 - api_logger - INFO - Router cargado: /webservices
2026-04-17 11:18:35,283 - api_logger - INFO - Router cargado: /auth
2026-04-17 11:18:35,284 - api_logger - INFO - Router cargado: /users
2026-04-17 12:52:12,350 - api_logger - INFO - Router cargado: /bankaccount
2026-04-17 12:52:12,385 - api_logger - INFO - Router cargado: /catalogs
2026-04-17 12:52:12,387 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-17 12:52:12,388 - api_logger - INFO - Router cargado: /export
2026-04-17 12:52:12,392 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-17 12:52:12,392 - api_logger - INFO - Router cargado: /licenses
2026-04-17 12:52:12,392 - api_logger - INFO - Router cargado: /menu_options
2026-04-17 12:52:12,399 - api_logger - INFO - Router cargado: /movements_banks
2026-04-17 12:52:12,400 - api_logger - INFO - Router cargado: /payment
2026-04-17 12:52:12,400 - api_logger - INFO - Router cargado: /plans
2026-04-17 12:52:12,401 - api_logger - INFO - Router cargado: 
2026-04-17 12:52:12,403 - api_logger - INFO - Router cargado: /webservices
2026-04-17 12:52:12,404 - api_logger - INFO - Router cargado: /auth
2026-04-17 12:52:12,406 - api_logger - INFO - Router cargado: /users
2026-04-17 12:52:13,220 - api_logger - INFO - Router cargado: /bankaccount
2026-04-17 12:52:13,253 - api_logger - INFO - Router cargado: /catalogs
2026-04-17 12:52:13,256 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-17 12:52:13,257 - api_logger - INFO - Router cargado: /export
2026-04-17 12:52:13,261 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-17 12:52:13,261 - api_logger - INFO - Router cargado: /licenses
2026-04-17 12:52:13,261 - api_logger - INFO - Router cargado: /menu_options
2026-04-17 12:52:13,269 - api_logger - INFO - Router cargado: /movements_banks
2026-04-17 12:52:13,270 - api_logger - INFO - Router cargado: /payment
2026-04-17 12:52:13,270 - api_logger - INFO - Router cargado: /plans
2026-04-17 12:52:13,271 - api_logger - INFO - Router cargado: 
2026-04-17 12:52:13,272 - api_logger - INFO - Router cargado: /webservices
2026-04-17 12:52:13,274 - api_logger - INFO - Router cargado: /auth
2026-04-17 12:52:13,275 - api_logger - INFO - Router cargado: /users
2026-04-17 12:52:13,306 - api_logger - INFO - Router cargado: /bankaccount
2026-04-17 12:52:13,335 - api_logger - INFO - Router cargado: /catalogs
2026-04-17 12:52:13,337 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-17 12:52:13,338 - api_logger - INFO - Router cargado: /export
2026-04-17 12:52:13,341 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-17 12:52:13,341 - api_logger - INFO - Router cargado: /licenses
2026-04-17 12:52:13,341 - api_logger - INFO - Router cargado: /menu_options
2026-04-17 12:52:13,350 - api_logger - INFO - Router cargado: /movements_banks
2026-04-17 12:52:13,350 - api_logger - INFO - Router cargado: /payment
2026-04-17 12:52:13,350 - api_logger - INFO - Router cargado: /plans
2026-04-17 12:52:13,351 - api_logger - INFO - Router cargado: 
2026-04-17 12:52:13,353 - api_logger - INFO - Router cargado: /webservices
2026-04-17 12:52:13,354 - api_logger - INFO - Router cargado: /auth
2026-04-17 12:52:13,355 - api_logger - INFO - Router cargado: /users
2026-04-17 12:59:07,088 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-17 12:59:07,088 - api_logger - DEBUG - Renderizando invite_account.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'recipient_email', 'verification_url', 'expire_time', 'expiration_time_unit']
2026-04-17 13:12:19,117 - api_logger - INFO - EmailService inicializado con timeout: 10 segundos
2026-04-17 13:12:19,117 - api_logger - DEBUG - Renderizando verify_account.html con ctx=['username', 'company_name', 'support_email', 'logo_url', 'year', 'verification_url', 'expire_time', 'expiration_time_unit']
2026-04-17 13:24:56,425 - api_logger - INFO - Router cargado: /bankaccount
2026-04-17 13:24:56,458 - api_logger - INFO - Router cargado: /catalogs
2026-04-17 13:24:56,461 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-17 13:24:56,462 - api_logger - INFO - Router cargado: /export
2026-04-17 13:24:56,465 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-17 13:24:56,465 - api_logger - INFO - Router cargado: /licenses
2026-04-17 13:24:56,466 - api_logger - INFO - Router cargado: /menu_options
2026-04-17 13:24:56,473 - api_logger - INFO - Router cargado: /movements_banks
2026-04-17 13:24:56,474 - api_logger - INFO - Router cargado: /payment
2026-04-17 13:24:56,474 - api_logger - INFO - Router cargado: /plans
2026-04-17 13:24:56,475 - api_logger - INFO - Router cargado: 
2026-04-17 13:24:56,476 - api_logger - INFO - Router cargado: /webservices
2026-04-17 13:24:56,478 - api_logger - INFO - Router cargado: /auth
2026-04-17 13:24:56,479 - api_logger - INFO - Router cargado: /users
2026-04-17 13:24:57,237 - api_logger - INFO - Router cargado: /bankaccount
2026-04-17 13:24:57,269 - api_logger - INFO - Router cargado: /catalogs
2026-04-17 13:24:57,271 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-17 13:24:57,272 - api_logger - INFO - Router cargado: /export
2026-04-17 13:24:57,276 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-17 13:24:57,276 - api_logger - INFO - Router cargado: /licenses
2026-04-17 13:24:57,276 - api_logger - INFO - Router cargado: /menu_options
2026-04-17 13:24:57,283 - api_logger - INFO - Router cargado: /movements_banks
2026-04-17 13:24:57,284 - api_logger - INFO - Router cargado: /payment
2026-04-17 13:24:57,284 - api_logger - INFO - Router cargado: /plans
2026-04-17 13:24:57,285 - api_logger - INFO - Router cargado: 
2026-04-17 13:24:57,286 - api_logger - INFO - Router cargado: /webservices
2026-04-17 13:24:57,288 - api_logger - INFO - Router cargado: /auth
2026-04-17 13:24:57,289 - api_logger - INFO - Router cargado: /users
2026-04-17 13:24:57,318 - api_logger - INFO - Router cargado: /bankaccount
2026-04-17 13:24:57,345 - api_logger - INFO - Router cargado: /catalogs
2026-04-17 13:24:57,347 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-17 13:24:57,348 - api_logger - INFO - Router cargado: /export
2026-04-17 13:24:57,351 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-17 13:24:57,351 - api_logger - INFO - Router cargado: /licenses
2026-04-17 13:24:57,351 - api_logger - INFO - Router cargado: /menu_options
2026-04-17 13:24:57,359 - api_logger - INFO - Router cargado: /movements_banks
2026-04-17 13:24:57,359 - api_logger - INFO - Router cargado: /payment
2026-04-17 13:24:57,359 - api_logger - INFO - Router cargado: /plans
2026-04-17 13:24:57,360 - api_logger - INFO - Router cargado: 
2026-04-17 13:24:57,361 - api_logger - INFO - Router cargado: /webservices
2026-04-17 13:24:57,362 - api_logger - INFO - Router cargado: /auth
2026-04-17 13:24:57,364 - api_logger - INFO - Router cargado: /users
2026-04-17 13:25:00,424 - api_logger - DEBUG - [TooManyRequestsError] http://localhost:8000/v1/auth/resend-verification?tkn=e7563243-950e-4066-9c33-33c33c4dd1eb: Has superado el límite de intentos.
2026-04-17 13:28:29,525 - api_logger - DEBUG - [TooManyRequestsError] http://localhost:8000/v1/auth/resend-verification?tkn=e7563243-950e-4066-9c33-33c33c4dd1eb: Has superado el límite de intentos.
2026-04-17 13:28:49,222 - api_logger - DEBUG - [TooManyRequestsError] http://localhost:8000/v1/auth/resend-verification?tkn=e7563243-950e-4066-9c33-33c33c4dd1eb: Has superado el límite de intentos.
2026-04-17 13:29:52,482 - api_logger - DEBUG - [TooManyRequestsError] http://localhost:8000/v1/auth/resend-verification?tkn=e7563243-950e-4066-9c33-33c33c4dd1eb: Has superado el límite de intentos.
2026-04-19 04:23:05,726 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6344, 2149, F37B5A12-367E-4B43-94D0-AC020EAAD22D, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2149, 'uuid': 'F37B5A12-367E-4B43-94D0-AC020EAAD22D', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:23:06,398 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6345, 2150, 98217F7B-37BB-4967-8EB4-8A755493A4AD, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2150, 'uuid': '98217F7B-37BB-4967-8EB4-8A755493A4AD', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:23:07,090 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6346, 2151, 6D4651A4-3CC0-4C5C-AFFA-CD8D2083C3A6, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2151, 'uuid': '6D4651A4-3CC0-4C5C-AFFA-CD8D2083C3A6', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:23:07,773 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6347, 2152, 3070C830-2886-4C53-8F04-C168EEB4808B, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2152, 'uuid': '3070C830-2886-4C53-8F04-C168EEB4808B', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:23:08,450 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6348, 2153, 49577CF8-4670-4CC3-A334-97DC2631C4F2, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2153, 'uuid': '49577CF8-4670-4CC3-A334-97DC2631C4F2', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:23:10,443 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6349, 2154, E99599DB-DDC3-49E8-81E7-97DC26310574, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2154, 'uuid': 'E99599DB-DDC3-49E8-81E7-97DC26310574', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:23:11,179 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6350, 2155, a8a6d00a-e0c3-4499-878f-51acc74398a4, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2155, 'uuid': 'a8a6d00a-e0c3-4499-878f-51acc74398a4', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:23:11,912 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6351, 2156, 95941e83-f978-446c-9be2-55fbb9734783, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2156, 'uuid': '95941e83-f978-446c-9be2-55fbb9734783', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:23:12,592 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6352, 2157, 87774724-DE11-4C26-B397-95AA2F2181A0, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2157, 'uuid': '87774724-DE11-4C26-B397-95AA2F2181A0', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:23:13,271 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6353, 2158, 872AFB86-779B-456D-8664-CB3874D06D7B, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2158, 'uuid': '872AFB86-779B-456D-8664-CB3874D06D7B', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:23:13,961 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6354, 2159, fcb793cf-23c3-41de-aeb5-44c2e11aa308, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2159, 'uuid': 'fcb793cf-23c3-41de-aeb5-44c2e11aa308', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:23:14,624 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6355, 2160, E5824F68-F18E-412F-9B3B-3537155D5C02, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2160, 'uuid': 'E5824F68-F18E-412F-9B3B-3537155D5C02', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:23:15,350 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6356, 2161, 2886C3C5-F37C-4A1A-98E0-449430D99671, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2161, 'uuid': '2886C3C5-F37C-4A1A-98E0-449430D99671', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:23:16,014 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6357, 2162, A65F5EEE-0085-4E5C-81E1-97DC26316DAA, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2162, 'uuid': 'A65F5EEE-0085-4E5C-81E1-97DC26316DAA', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:23:18,078 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6358, 2163, 21BF89DC-8513-4BBA-B4A4-65B8E49B006C, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2163, 'uuid': '21BF89DC-8513-4BBA-B4A4-65B8E49B006C', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:23:18,757 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6359, 2164, 1F69F217-ED6A-4EFD-BC4A-A1ABD45001CB, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2164, 'uuid': '1F69F217-ED6A-4EFD-BC4A-A1ABD45001CB', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:24:44,268 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6360, 2165, 017AB26A-0A5E-4C03-9CAC-910AB7EB6481, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2165, 'uuid': '017AB26A-0A5E-4C03-9CAC-910AB7EB6481', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:24:46,179 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6361, 2166, 20a28869-6311-41da-9e3f-15d1b3c9fc22, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2166, 'uuid': '20a28869-6311-41da-9e3f-15d1b3c9fc22', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:24:46,861 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6362, 2167, AD3D919F-CB9C-45EC-BA7A-DF836CA74A33, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2167, 'uuid': 'AD3D919F-CB9C-45EC-BA7A-DF836CA74A33', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:24:47,984 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6363, 2168, 10154B06-BD71-4C51-BDA5-61ED7EBB54B2, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2168, 'uuid': '10154B06-BD71-4C51-BDA5-61ED7EBB54B2', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:24:48,647 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6364, 2169, BE80AAF1-D18E-4B4F-9A96-97DC26312C42, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2169, 'uuid': 'BE80AAF1-D18E-4B4F-9A96-97DC26312C42', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:24:49,311 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6365, 2170, 836E0116-5350-4E3E-8ADF-B9425301AC77, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2170, 'uuid': '836E0116-5350-4E3E-8ADF-B9425301AC77', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:24:50,433 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6366, 2171, DDDF8EDF-A3E8-4186-8DC8-97DC26317D60, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2171, 'uuid': 'DDDF8EDF-A3E8-4186-8DC8-97DC26317D60', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:24:51,104 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6367, 2172, 65F8A750-0F11-4C93-9F1C-92D797BE8533, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2172, 'uuid': '65F8A750-0F11-4C93-9F1C-92D797BE8533', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:24:52,230 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6368, 2173, D7E4E914-9EB1-480B-BB65-643578929FA9, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2173, 'uuid': 'D7E4E914-9EB1-480B-BB65-643578929FA9', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:24:52,890 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6369, 2174, 39F48306-9CD1-420A-8989-E9E0AC14727F, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2174, 'uuid': '39F48306-9CD1-420A-8989-E9E0AC14727F', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:24:53,546 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6370, 2175, 29dc72d3-b510-475b-8cf5-6fe35c398a8f, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2175, 'uuid': '29dc72d3-b510-475b-8cf5-6fe35c398a8f', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:24:54,222 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6371, 2176, FDC25A21-B67E-4D74-B9F6-97DC2631E997, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2176, 'uuid': 'FDC25A21-B67E-4D74-B9F6-97DC2631E997', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:24:54,888 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6372, 2177, 84282D25-BC26-4C42-B438-73F24B2FF70C, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2177, 'uuid': '84282D25-BC26-4C42-B438-73F24B2FF70C', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:24:55,558 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6373, 2178, 92923C24-7122-459E-B943-97DC2631C0A5, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2178, 'uuid': '92923C24-7122-459E-B943-97DC2631C0A5', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:24:56,282 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6374, 2179, 91c2ccd8-0bc1-48ee-aca3-d354e305ea19, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2179, 'uuid': '91c2ccd8-0bc1-48ee-aca3-d354e305ea19', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:24:56,954 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6375, 2180, 6A05CF4F-5C3F-4C29-92FE-5B7CC635BF51, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2180, 'uuid': '6A05CF4F-5C3F-4C29-92FE-5B7CC635BF51', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:24:58,062 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6376, 2181, 5EE9C775-7F04-4CB3-B6DF-7CF31D7A94FA, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2181, 'uuid': '5EE9C775-7F04-4CB3-B6DF-7CF31D7A94FA', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:24:58,734 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6377, 2182, 062EFBF5-9973-4E55-A1D4-A9CE773B81F0, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2182, 'uuid': '062EFBF5-9973-4E55-A1D4-A9CE773B81F0', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:24:59,854 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6378, 2183, C10B088E-9846-4BB8-B211-97DC2631AD85, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2183, 'uuid': 'C10B088E-9846-4BB8-B211-97DC2631AD85', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:00,520 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6379, 2184, C44E2C0D-C430-48AD-BCD5-0E6A9205FE0C, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2184, 'uuid': 'C44E2C0D-C430-48AD-BCD5-0E6A9205FE0C', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:01,188 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6380, 2185, 5D179BE8-3BF0-4027-B978-23F263B95D82, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2185, 'uuid': '5D179BE8-3BF0-4027-B978-23F263B95D82', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:06,249 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6381, 2186, 829D7B29-A305-432E-9E4F-A936D03C9CB3, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2186, 'uuid': '829D7B29-A305-432E-9E4F-A936D03C9CB3', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:08,144 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6382, 2187, 32655814-4384-42B7-B1C0-97DC2631593D, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2187, 'uuid': '32655814-4384-42B7-B1C0-97DC2631593D', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:08,811 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6383, 2188, 5E58E85D-89C0-40E5-B6BE-97DC2631D0F5, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2188, 'uuid': '5E58E85D-89C0-40E5-B6BE-97DC2631D0F5', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:09,479 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6384, 2189, 2EF56DE1-4394-4029-B8E1-BC8FF2DDF24A, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2189, 'uuid': '2EF56DE1-4394-4029-B8E1-BC8FF2DDF24A', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:10,150 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6385, 2190, 5BDEB07C-8D6B-47E0-BAD3-97DC2631D499, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2190, 'uuid': '5BDEB07C-8D6B-47E0-BAD3-97DC2631D499', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:10,814 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6386, 2191, 1730ECE7-1DE4-464E-951D-97DC26315169, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2191, 'uuid': '1730ECE7-1DE4-464E-951D-97DC26315169', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:11,472 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6387, 2192, 9E2E711C-CD89-4645-9435-3D221F4EAC29, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2192, 'uuid': '9E2E711C-CD89-4645-9435-3D221F4EAC29', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:12,594 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6388, 2193, CAD826B9-B8BE-4085-B8FF-45C011E8E786, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2193, 'uuid': 'CAD826B9-B8BE-4085-B8FF-45C011E8E786', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:13,270 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6389, 2194, BC05038D-EC96-4447-8ED9-97DC26314F3F, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2194, 'uuid': 'BC05038D-EC96-4447-8ED9-97DC26314F3F', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:13,937 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6390, 2195, 1264427D-DBD8-445A-8863-97DC26318D4B, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2195, 'uuid': '1264427D-DBD8-445A-8863-97DC26318D4B', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:15,940 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6391, 2196, 831C2DC1-C0A6-4FD8-A186-97DC2631F90A, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2196, 'uuid': '831C2DC1-C0A6-4FD8-A186-97DC2631F90A', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:17,056 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6392, 2197, 131C714E-8EC5-453F-9AE6-0659CB8DA1AB, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2197, 'uuid': '131C714E-8EC5-453F-9AE6-0659CB8DA1AB', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:17,720 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6393, 2198, AB3F658B-8B52-4A13-9E1F-97DC2631FD97, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2198, 'uuid': 'AB3F658B-8B52-4A13-9E1F-97DC2631FD97', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:18,379 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6394, 2199, 8A9CC2E8-BE39-4D4F-9F5A-97DC26312082, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2199, 'uuid': '8A9CC2E8-BE39-4D4F-9F5A-97DC26312082', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:19,043 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6395, 2200, cc9a04e6-2547-4317-81f8-5bce83dbab0f, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2200, 'uuid': 'cc9a04e6-2547-4317-81f8-5bce83dbab0f', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:19,713 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6396, 2201, 5FD2FB21-E54B-4DAA-97C8-DDCF45E133B6, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2201, 'uuid': '5FD2FB21-E54B-4DAA-97C8-DDCF45E133B6', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:20,378 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6397, 2202, 469F9EAE-68FB-4D0F-ABCA-97DC2631BA5E, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2202, 'uuid': '469F9EAE-68FB-4D0F-ABCA-97DC2631BA5E', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:21,048 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6398, 2203, D5C6B8E6-820E-4474-920A-20685177F1FB, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2203, 'uuid': 'D5C6B8E6-820E-4474-920A-20685177F1FB', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:21,707 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6399, 2204, 7833AF3E-BDD6-4524-9E7C-CD241D83543F, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2204, 'uuid': '7833AF3E-BDD6-4524-9E7C-CD241D83543F', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:22,370 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6400, 2205, BB560EAD-9EFA-4B32-B3EA-65E3FEDA71FD, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2205, 'uuid': 'BB560EAD-9EFA-4B32-B3EA-65E3FEDA71FD', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:23,029 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6401, 2206, 1C0A4C3E-8D21-4B25-84BC-97DC26314D27, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2206, 'uuid': '1C0A4C3E-8D21-4B25-84BC-97DC26314D27', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:23,687 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6402, 2207, 895A8FB2-090A-43FF-8A4A-27DFF5837192, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2207, 'uuid': '895A8FB2-090A-43FF-8A4A-27DFF5837192', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:24,345 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6403, 2208, 14243DD6-B2F6-40C3-9217-558768536921, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2208, 'uuid': '14243DD6-B2F6-40C3-9217-558768536921', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:25,498 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6404, 2209, c576ef9e-9e80-4f11-af4c-14ccfe5e915c, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2209, 'uuid': 'c576ef9e-9e80-4f11-af4c-14ccfe5e915c', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:26,156 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6405, 2210, 77EE22F1-1457-44EF-9C2E-2D706B5BE50F, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2210, 'uuid': '77EE22F1-1457-44EF-9C2E-2D706B5BE50F', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:27,269 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6406, 2211, C7127257-1BC6-49EC-A29D-96E40EDC2017, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2211, 'uuid': 'C7127257-1BC6-49EC-A29D-96E40EDC2017', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:27,985 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6407, 2212, c30cc734-b1fb-4c06-a746-ed5bd28e5af9, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2212, 'uuid': 'c30cc734-b1fb-4c06-a746-ed5bd28e5af9', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:48,269 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6408, 2213, 31DDDA24-2B7D-443C-BB49-FD21D36D1550, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2213, 'uuid': '31DDDA24-2B7D-443C-BB49-FD21D36D1550', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:48,939 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6409, 2214, 6AE35AE8-1FC5-4841-BB87-3C93205E729C, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2214, 'uuid': '6AE35AE8-1FC5-4841-BB87-3C93205E729C', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:49,608 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6410, 2215, 82194135-3DA7-40D1-9F60-73167C540D18, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2215, 'uuid': '82194135-3DA7-40D1-9F60-73167C540D18', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:51,535 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6411, 2216, E2A371F7-7A96-4CCC-A2C9-4F4D7471C723, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2216, 'uuid': 'E2A371F7-7A96-4CCC-A2C9-4F4D7471C723', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:52,205 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6412, 2217, 15ECC1E8-91C5-4101-A395-97DC26315174, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2217, 'uuid': '15ECC1E8-91C5-4101-A395-97DC26315174', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:53,322 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6413, 2218, 8BDBD1E9-8FAA-4FEA-8267-97DC2631251A, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2218, 'uuid': '8BDBD1E9-8FAA-4FEA-8267-97DC2631251A', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:55,348 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6414, 2219, 867f879c-6e41-4304-98a0-401c63b896fb, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2219, 'uuid': '867f879c-6e41-4304-98a0-401c63b896fb', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:56,014 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6415, 2220, e6206b84-1830-41e5-a032-874088fa9531, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2220, 'uuid': 'e6206b84-1830-41e5-a032-874088fa9531', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:25:56,686 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6416, 2221, 223c07ec-44e0-4166-8b11-9a6ac376021d, RECIBIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 2221, 'uuid': '223c07ec-44e0-4166-8b11-9a6ac376021d', 'invoice_type': 'RECIBIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:44:57,805 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6490, 4602, 485CF133-5FAF-4CE3-A536-D483ACA8E2DF, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4602, 'uuid': '485CF133-5FAF-4CE3-A536-D483ACA8E2DF', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:44:58,468 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6491, 4603, 04BC4C5E-C893-4EFE-8762-3C3EDAD03DFB, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4603, 'uuid': '04BC4C5E-C893-4EFE-8762-3C3EDAD03DFB', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:44:59,127 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6492, 4604, 8D9E8E05-5524-4DD5-94CC-F8B2CCDB81B0, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4604, 'uuid': '8D9E8E05-5524-4DD5-94CC-F8B2CCDB81B0', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:44:59,791 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6493, 4605, C582F567-BCEE-4419-8BC1-54A5BBF5B9BA, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4605, 'uuid': 'C582F567-BCEE-4419-8BC1-54A5BBF5B9BA', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:45:00,450 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6494, 4606, FF91F5C9-279B-4DFB-B56A-02D43F9EFB7C, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4606, 'uuid': 'FF91F5C9-279B-4DFB-B56A-02D43F9EFB7C', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:45:02,394 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6495, 4607, 3952CB98-0405-43AA-8FDD-03D8A0B8ACCA, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4607, 'uuid': '3952CB98-0405-43AA-8FDD-03D8A0B8ACCA', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:45:03,052 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6496, 4608, 50E4543D-3B15-4109-8DED-8CE8B8954C76, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4608, 'uuid': '50E4543D-3B15-4109-8DED-8CE8B8954C76', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:45:03,711 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6497, 4609, 45D9ED3B-96D1-4D40-BC3D-36E379D719B4, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4609, 'uuid': '45D9ED3B-96D1-4D40-BC3D-36E379D719B4', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:45:04,369 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6498, 4610, 6F9D672D-EC17-414B-8D91-260F5F548788, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4610, 'uuid': '6F9D672D-EC17-414B-8D91-260F5F548788', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:45:05,028 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6499, 4611, 85B50D8C-89A2-4E85-9E90-79D4323AED41, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4611, 'uuid': '85B50D8C-89A2-4E85-9E90-79D4323AED41', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:45:05,686 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6500, 4612, EE1FE326-708B-4C89-BC04-E2E67A666D37, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4612, 'uuid': 'EE1FE326-708B-4C89-BC04-E2E67A666D37', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:45:06,344 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6501, 4613, 9B4B50F7-6371-4B90-8302-783A9B0052FB, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4613, 'uuid': '9B4B50F7-6371-4B90-8302-783A9B0052FB', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:45:07,447 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6502, 4614, 36B2757A-2701-4014-AD20-7D4B328FD8E2, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4614, 'uuid': '36B2757A-2701-4014-AD20-7D4B328FD8E2', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:45:08,564 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6503, 4615, 85F968DF-CB68-4A6A-966D-A1F5E85ADDFE, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4615, 'uuid': '85F968DF-CB68-4A6A-966D-A1F5E85ADDFE', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:45:09,220 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6504, 4616, 79EFE7F3-E89D-45E0-8FEF-B5D849553964, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4616, 'uuid': '79EFE7F3-E89D-45E0-8FEF-B5D849553964', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:45:09,891 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6505, 4617, 363DFE9F-CB51-4B74-9CA7-5AF8961A65A8, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4617, 'uuid': '363DFE9F-CB51-4B74-9CA7-5AF8961A65A8', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:45:10,549 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6506, 4618, 9363133D-CA1C-47E5-B394-90DA42C85027, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4618, 'uuid': '9363133D-CA1C-47E5-B394-90DA42C85027', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:45:11,208 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6507, 4619, 9531F54D-1EE2-4F8A-89A5-963E56EB0148, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4619, 'uuid': '9531F54D-1EE2-4F8A-89A5-963E56EB0148', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:45:11,866 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6508, 4620, 1F50ED09-3286-49E4-A66D-7F0C24F3390D, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4620, 'uuid': '1F50ED09-3286-49E4-A66D-7F0C24F3390D', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:45:12,525 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6509, 4621, 90F4BA12-E4B2-4263-B1D2-D66DB2B8F940, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4621, 'uuid': '90F4BA12-E4B2-4263-B1D2-D66DB2B8F940', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:45:13,189 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6510, 4622, 26FC38CD-AD21-4B28-AE81-DC993770C5A3, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4622, 'uuid': '26FC38CD-AD21-4B28-AE81-DC993770C5A3', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:45:13,847 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6511, 4623, 800AB257-3F18-43C6-8651-C40CB1B46D95, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4623, 'uuid': '800AB257-3F18-43C6-8651-C40CB1B46D95', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:45:14,505 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6512, 4624, 1A1D7E9A-8BDA-4EF3-965A-A5F89A2E43FC, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4624, 'uuid': '1A1D7E9A-8BDA-4EF3-965A-A5F89A2E43FC', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:45:15,603 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6513, 4625, 603E7922-6E19-4EBC-AFCC-963B4AC85549, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4625, 'uuid': '603E7922-6E19-4EBC-AFCC-963B4AC85549', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:45:16,718 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6514, 4626, 5803E0D0-A936-488E-8F27-ADF64CF1E90A, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4626, 'uuid': '5803E0D0-A936-488E-8F27-ADF64CF1E90A', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:45:17,388 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6515, 4627, 679965AB-B7A6-4C2C-919F-72D2BBBD7DC9, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4627, 'uuid': '679965AB-B7A6-4C2C-919F-72D2BBBD7DC9', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:45:18,047 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6516, 4628, 74C76C87-C97D-4235-BD78-D38775D3B472, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4628, 'uuid': '74C76C87-C97D-4235-BD78-D38775D3B472', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:45:18,704 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6517, 4629, 17B6297D-4657-45F5-9972-5E5F6694A48E, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4629, 'uuid': '17B6297D-4657-45F5-9972-5E5F6694A48E', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:45:19,650 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6518, 4630, 0FCD9F8F-D61C-42EC-847D-4B4D51190967, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4630, 'uuid': '0FCD9F8F-D61C-42EC-847D-4B4D51190967', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:45:20,309 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6519, 4631, DC11FDFE-AB6C-4741-8396-FD12ACD4119F, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4631, 'uuid': 'DC11FDFE-AB6C-4741-8396-FD12ACD4119F', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:45:20,966 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6520, 4632, 8CA8D985-7DAF-42D1-A42C-2932F0598E91, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4632, 'uuid': '8CA8D985-7DAF-42D1-A42C-2932F0598E91', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:45:22,111 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6521, 4633, DFB344BD-68BE-4830-89E9-A47AFF4EAEB6, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4633, 'uuid': 'DFB344BD-68BE-4830-89E9-A47AFF4EAEB6', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:45:22,774 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6522, 4634, C43345FB-219C-406D-8BAD-C71EC343BB3C, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4634, 'uuid': 'C43345FB-219C-406D-8BAD-C71EC343BB3C', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:45:23,441 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6523, 4635, 5CA5AB20-C04C-4026-B3C1-C5283EC117FB, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4635, 'uuid': '5CA5AB20-C04C-4026-B3C1-C5283EC117FB', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:45:24,161 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6524, 4636, 70F803BC-0A09-40C7-B05B-CC8A22EBA014, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4636, 'uuid': '70F803BC-0A09-40C7-B05B-CC8A22EBA014', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:14,160 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6525, 4637, FB677ED4-49E8-40DC-B178-D4695824FF54, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4637, 'uuid': 'FB677ED4-49E8-40DC-B178-D4695824FF54', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:14,830 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6526, 4638, 6C31B217-1EAC-4C56-BB76-3E21C6F7D194, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4638, 'uuid': '6C31B217-1EAC-4C56-BB76-3E21C6F7D194', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:15,493 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6527, 4639, 6EFCE29E-64AD-431D-A945-3CBFC8AAA7D6, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4639, 'uuid': '6EFCE29E-64AD-431D-A945-3CBFC8AAA7D6', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:16,155 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6528, 4640, 05757348-9876-4980-A076-85011490F422, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4640, 'uuid': '05757348-9876-4980-A076-85011490F422', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:16,820 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6529, 4641, 4FE6CD92-3B33-40D4-BFDE-B275385CF0D5, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4641, 'uuid': '4FE6CD92-3B33-40D4-BFDE-B275385CF0D5', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:17,494 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6530, 4642, 868AAD8E-744D-405F-B778-D335F4860705, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4642, 'uuid': '868AAD8E-744D-405F-B778-D335F4860705', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:18,151 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6531, 4643, 754372E1-0334-4E57-9F22-5B300491483B, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4643, 'uuid': '754372E1-0334-4E57-9F22-5B300491483B', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:19,018 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6532, 4644, 76A8E9D4-1DD4-44FD-8C7C-605BC4EB53F2, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4644, 'uuid': '76A8E9D4-1DD4-44FD-8C7C-605BC4EB53F2', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:20,918 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6533, 4645, 706978DC-FC46-4F0D-8E88-F2B976298B40, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4645, 'uuid': '706978DC-FC46-4F0D-8E88-F2B976298B40', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:21,583 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6534, 4646, F34DAB58-4C8B-4761-9AF4-D5444B42A635, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4646, 'uuid': 'F34DAB58-4C8B-4761-9AF4-D5444B42A635', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:22,248 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6535, 4647, 51B3A264-125F-4DB6-8293-37E795FEAC9A, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4647, 'uuid': '51B3A264-125F-4DB6-8293-37E795FEAC9A', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:22,912 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6536, 4648, CF7F7288-75BD-4368-BED0-F05A939B6892, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4648, 'uuid': 'CF7F7288-75BD-4368-BED0-F05A939B6892', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:23,625 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6537, 4649, 3DD3A1B6-71C1-42FF-8FEA-1E5CF5AF82C4, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4649, 'uuid': '3DD3A1B6-71C1-42FF-8FEA-1E5CF5AF82C4', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:24,284 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6538, 4650, 5FE65998-8647-4152-9035-CA23E7E96EF7, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4650, 'uuid': '5FE65998-8647-4152-9035-CA23E7E96EF7', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:24,942 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6539, 4651, C458DEBB-D90D-4EBE-AE4F-16A5D8BB7455, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4651, 'uuid': 'C458DEBB-D90D-4EBE-AE4F-16A5D8BB7455', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:25,600 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6540, 4652, E7668CC5-197A-4F74-BDA0-27506EFBE9CC, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4652, 'uuid': 'E7668CC5-197A-4F74-BDA0-27506EFBE9CC', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:26,714 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6541, 4653, 262DA388-1053-4F86-9BB5-FCDF1286949F, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4653, 'uuid': '262DA388-1053-4F86-9BB5-FCDF1286949F', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:27,373 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6542, 4654, BFC81004-E8FB-407C-82DF-FCD6B0987F83, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4654, 'uuid': 'BFC81004-E8FB-407C-82DF-FCD6B0987F83', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:28,044 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6543, 4655, 444C9B88-AF42-42FA-921C-CE2B98DDB908, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4655, 'uuid': '444C9B88-AF42-42FA-921C-CE2B98DDB908', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:28,712 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6544, 4656, 7F7515B9-3CD9-4391-9B2A-523F05516552, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4656, 'uuid': '7F7515B9-3CD9-4391-9B2A-523F05516552', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:29,385 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6545, 4657, 92791F6C-9F46-4A45-B63E-324F7C719C22, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4657, 'uuid': '92791F6C-9F46-4A45-B63E-324F7C719C22', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:30,043 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6546, 4658, 836DAE57-9E88-499D-A096-B4D9D29337EB, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4658, 'uuid': '836DAE57-9E88-499D-A096-B4D9D29337EB', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:30,707 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6547, 4659, F5C82230-8DD2-41A5-A3C9-790C831AC841, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4659, 'uuid': 'F5C82230-8DD2-41A5-A3C9-790C831AC841', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:31,372 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6548, 4660, 47D4B178-B5F2-4A96-9919-4596A91DABD5, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4660, 'uuid': '47D4B178-B5F2-4A96-9919-4596A91DABD5', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:32,048 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6549, 4661, F76E243C-C162-4563-80E9-02E7D5D257F0, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4661, 'uuid': 'F76E243C-C162-4563-80E9-02E7D5D257F0', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:32,719 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6550, 4662, 7A994EC8-3D31-487E-851C-FA565D106905, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4662, 'uuid': '7A994EC8-3D31-487E-851C-FA565D106905', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:33,383 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6551, 4663, A702A876-9D52-4C29-BB19-31CFCFAE5050, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4663, 'uuid': 'A702A876-9D52-4C29-BB19-31CFCFAE5050', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:34,061 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6552, 4664, F6FADDDA-2CF5-41EF-B697-3BAC386842DE, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4664, 'uuid': 'F6FADDDA-2CF5-41EF-B697-3BAC386842DE', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:34,727 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6553, 4665, D81CE861-3952-4850-9232-7D26AB341B8C, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4665, 'uuid': 'D81CE861-3952-4850-9232-7D26AB341B8C', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:35,396 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6554, 4666, AC7B00FE-9419-48C0-8EB6-DCB0A20C6074, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4666, 'uuid': 'AC7B00FE-9419-48C0-8EB6-DCB0A20C6074', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:36,961 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6555, 4667, FD09A710-315E-4210-94C1-CF63B45CCDAE, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4667, 'uuid': 'FD09A710-315E-4210-94C1-CF63B45CCDAE', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:37,639 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6556, 4668, 9B69169F-2CBF-40C3-B07C-FE7204EAEBA2, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4668, 'uuid': '9B69169F-2CBF-40C3-B07C-FE7204EAEBA2', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:38,299 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6557, 4669, 1B87449C-7E9D-4E5E-A03B-5284431708A6, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4669, 'uuid': '1B87449C-7E9D-4E5E-A03B-5284431708A6', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:39,460 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6558, 4670, 77B5F81E-3A40-4BDC-83DB-8B46876D0368, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4670, 'uuid': '77B5F81E-3A40-4BDC-83DB-8B46876D0368', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:40,131 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6559, 4671, 185FAA46-3EEC-4C56-B99D-D8F8A064FFEE, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4671, 'uuid': '185FAA46-3EEC-4C56-B99D-D8F8A064FFEE', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:40,794 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6560, 4672, 6AC1F18B-2EEA-45C4-8471-4CF203A23A9F, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4672, 'uuid': '6AC1F18B-2EEA-45C4-8471-4CF203A23A9F', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:41,453 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6561, 4673, 5756152E-2E39-4827-B6E7-FB264B7559C8, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4673, 'uuid': '5756152E-2E39-4827-B6E7-FB264B7559C8', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:42,118 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6562, 4674, D0B6861D-324F-4B99-B5C8-A7A7B0A5B99B, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4674, 'uuid': 'D0B6861D-324F-4B99-B5C8-A7A7B0A5B99B', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:42,781 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6563, 4675, F1BD65CD-2A89-4B4D-8981-298A86B6DFDD, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4675, 'uuid': 'F1BD65CD-2A89-4B4D-8981-298A86B6DFDD', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:43,878 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6564, 4676, 448EE409-C7BA-47AC-9359-8FE99230001F, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4676, 'uuid': '448EE409-C7BA-47AC-9359-8FE99230001F', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:44,543 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6565, 4677, 97877F94-FF70-4C13-9383-E49658DC76BE, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4677, 'uuid': '97877F94-FF70-4C13-9383-E49658DC76BE', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:45,221 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6566, 4678, 193DBAB3-3DE9-4553-A955-55C3B7948358, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4678, 'uuid': '193DBAB3-3DE9-4553-A955-55C3B7948358', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:45,879 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6567, 4679, 1D1748E7-3F8E-4580-B341-2B8EE7816B40, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4679, 'uuid': '1D1748E7-3F8E-4580-B341-2B8EE7816B40', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:46,549 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6568, 4680, 5025CBA2-ACC1-4E7A-8E6A-019AD9D23226, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4680, 'uuid': '5025CBA2-ACC1-4E7A-8E6A-019AD9D23226', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:47,214 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6569, 4681, D172268E-78FB-4C8D-A1D6-6DD5F5A57F14, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4681, 'uuid': 'D172268E-78FB-4C8D-A1D6-6DD5F5A57F14', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:47:47,878 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6570, 4682, BF8A0539-249D-458B-84B4-06B9DDCEDF15, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4682, 'uuid': 'BF8A0539-249D-458B-84B4-06B9DDCEDF15', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:20,534 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6571, 4683, 8604E4CF-460A-452A-B34E-2C531D10A3E0, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4683, 'uuid': '8604E4CF-460A-452A-B34E-2C531D10A3E0', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:22,432 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6572, 4684, 8C030B8B-C05F-4EAB-9DF6-0B8F6AA472E0, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4684, 'uuid': '8C030B8B-C05F-4EAB-9DF6-0B8F6AA472E0', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:23,548 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6573, 4685, 37C397DB-BF3B-44FB-B2EA-8C4CBCD970D9, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4685, 'uuid': '37C397DB-BF3B-44FB-B2EA-8C4CBCD970D9', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:24,673 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6574, 4686, 147A63D0-6976-4DC1-A11D-F9183928A232, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4686, 'uuid': '147A63D0-6976-4DC1-A11D-F9183928A232', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:25,350 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6575, 4687, B55E6C67-CE64-4061-B93B-A41965BF7997, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4687, 'uuid': 'B55E6C67-CE64-4061-B93B-A41965BF7997', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:26,014 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6576, 4688, B2EE1D9A-3674-4162-8651-754C21A7BD5D, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4688, 'uuid': 'B2EE1D9A-3674-4162-8651-754C21A7BD5D', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:27,109 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6577, 4689, F26BEFBD-81A3-4186-87C1-2A55D06CDAA2, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4689, 'uuid': 'F26BEFBD-81A3-4186-87C1-2A55D06CDAA2', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:28,659 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6578, 4690, 6C7CE4D4-7644-4D8C-913B-F957A67117E6, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4690, 'uuid': '6C7CE4D4-7644-4D8C-913B-F957A67117E6', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:29,323 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6579, 4691, AF9B9522-E1FA-411F-B912-5C9388428E2C, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4691, 'uuid': 'AF9B9522-E1FA-411F-B912-5C9388428E2C', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:30,005 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6580, 4692, CF3788E6-CE01-4D65-82FB-45C132F1CDB2, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4692, 'uuid': 'CF3788E6-CE01-4D65-82FB-45C132F1CDB2', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:31,113 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6581, 4693, B631783E-5B53-4A1F-A3DB-C69ABB39EB62, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4693, 'uuid': 'B631783E-5B53-4A1F-A3DB-C69ABB39EB62', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:31,773 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6582, 4694, FCC3DE22-CAF3-408B-85C3-AD3F2FE90381, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4694, 'uuid': 'FCC3DE22-CAF3-408B-85C3-AD3F2FE90381', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:32,438 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6583, 4695, 4DD77496-AF6C-45EF-8BDE-D47CAEADAA7A, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4695, 'uuid': '4DD77496-AF6C-45EF-8BDE-D47CAEADAA7A', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:33,546 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6584, 4696, BC7EC0D5-0CE6-4AB3-A304-3B44AC9AEEAD, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4696, 'uuid': 'BC7EC0D5-0CE6-4AB3-A304-3B44AC9AEEAD', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:34,217 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6585, 4697, FDC8E7C9-5FA5-489D-A33C-F03C5DC664AC, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4697, 'uuid': 'FDC8E7C9-5FA5-489D-A33C-F03C5DC664AC', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:34,881 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6586, 4698, F3928222-6111-4E2C-965B-9E932D866F6A, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4698, 'uuid': 'F3928222-6111-4E2C-965B-9E932D866F6A', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:35,984 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6587, 4699, BB25D2C0-255F-45AA-A8D4-B68B5ABAE5FF, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4699, 'uuid': 'BB25D2C0-255F-45AA-A8D4-B68B5ABAE5FF', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:36,654 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6588, 4700, E3102F2B-4879-430C-8924-E4EC16447635, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4700, 'uuid': 'E3102F2B-4879-430C-8924-E4EC16447635', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:37,374 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6589, 4701, 3BB4CF69-E242-428D-9826-4EA50C7D22E7, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4701, 'uuid': '3BB4CF69-E242-428D-9826-4EA50C7D22E7', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:38,031 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6590, 4702, E128C19A-AFE6-43E5-A515-797778D899B7, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4702, 'uuid': 'E128C19A-AFE6-43E5-A515-797778D899B7', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:38,704 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6591, 4703, 4B672246-D623-4B3A-AD86-CFC5AC8CA169, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4703, 'uuid': '4B672246-D623-4B3A-AD86-CFC5AC8CA169', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:39,368 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6592, 4704, BB1BECC8-0FBA-41CF-B306-B02EF41104E9, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4704, 'uuid': 'BB1BECC8-0FBA-41CF-B306-B02EF41104E9', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:40,031 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6593, 4705, 8AD95A36-9FEE-4479-8BBA-FFB0463D15AC, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4705, 'uuid': '8AD95A36-9FEE-4479-8BBA-FFB0463D15AC', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:40,695 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6594, 4706, FF7FE3EE-9264-4FF4-BE2B-AD90F0F8AB1F, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4706, 'uuid': 'FF7FE3EE-9264-4FF4-BE2B-AD90F0F8AB1F', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:41,357 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6595, 4707, 856BD1D1-C7F6-4B4E-801A-DD67F29E08E5, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4707, 'uuid': '856BD1D1-C7F6-4B4E-801A-DD67F29E08E5', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:42,022 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6596, 4708, 217027FD-F10B-4B03-8159-E973AC900C42, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4708, 'uuid': '217027FD-F10B-4B03-8159-E973AC900C42', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:42,680 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6597, 4709, 21BECDD4-7F61-4765-8754-09DE2E59755E, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4709, 'uuid': '21BECDD4-7F61-4765-8754-09DE2E59755E', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:43,782 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6598, 4710, 1F032F2B-92F9-4F56-B346-E486743FDEEC, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4710, 'uuid': '1F032F2B-92F9-4F56-B346-E486743FDEEC', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:44,888 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6599, 4711, A5D64FCE-8E33-4F9B-8D37-05181CD6CA2F, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4711, 'uuid': 'A5D64FCE-8E33-4F9B-8D37-05181CD6CA2F', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:45,990 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6600, 4712, 75D2C833-CE3A-4827-B8B6-30CD1D7449B0, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4712, 'uuid': '75D2C833-CE3A-4827-B8B6-30CD1D7449B0', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:47,096 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6601, 4713, 19F350A5-6FD3-42EB-81C7-9FB6AAC43D08, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4713, 'uuid': '19F350A5-6FD3-42EB-81C7-9FB6AAC43D08', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:47,776 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6602, 4714, 5D696616-FFF4-4FA9-AA31-72B15A317156, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4714, 'uuid': '5D696616-FFF4-4FA9-AA31-72B15A317156', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:48,883 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6603, 4715, 20480F4B-B80D-4039-AA11-8745B95A8B07, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4715, 'uuid': '20480F4B-B80D-4039-AA11-8745B95A8B07', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:49,987 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6604, 4716, CB196916-3587-49A7-8856-7236A0E90CAF, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4716, 'uuid': 'CB196916-3587-49A7-8856-7236A0E90CAF', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:50,649 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6605, 4717, C55A794C-F212-4FBE-BB83-CE00CC4152BE, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4717, 'uuid': 'C55A794C-F212-4FBE-BB83-CE00CC4152BE', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:51,758 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6606, 4718, 10A2B7E6-A831-4609-AD4C-27E9BB8AE6F7, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4718, 'uuid': '10A2B7E6-A831-4609-AD4C-27E9BB8AE6F7', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:52,418 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6607, 4719, 4116E5D1-23D7-4FD6-B199-A3F62AC93094, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4719, 'uuid': '4116E5D1-23D7-4FD6-B199-A3F62AC93094', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:53,084 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6608, 4720, 09F2E97D-8344-45AD-B48F-6CE94C4DA3DB, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4720, 'uuid': '09F2E97D-8344-45AD-B48F-6CE94C4DA3DB', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:53,741 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6609, 4721, 7C611296-566B-456D-A6E3-0F3703BA94DD, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4721, 'uuid': '7C611296-566B-456D-A6E3-0F3703BA94DD', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:54,413 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6610, 4722, 80896541-CA3E-4C0B-855D-53FD3D30FA51, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4722, 'uuid': '80896541-CA3E-4C0B-855D-53FD3D30FA51', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:55,083 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6611, 4723, 64385362-4707-4695-9D15-20B5B201A05E, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4723, 'uuid': '64385362-4707-4695-9D15-20B5B201A05E', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:55,802 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6612, 4724, A8924715-6344-4F9D-A4CE-1FBC48E9D344, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4724, 'uuid': 'A8924715-6344-4F9D-A4CE-1FBC48E9D344', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:56,465 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6613, 4725, C28DB129-B10B-496B-A67F-250D0ABC825C, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4725, 'uuid': 'C28DB129-B10B-496B-A67F-250D0ABC825C', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:57,123 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6614, 4726, 622D4037-439B-4A96-9782-1E269A498418, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4726, 'uuid': '622D4037-439B-4A96-9782-1E269A498418', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:57,781 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6615, 4727, E4B67DBC-2A7E-468F-802A-AAB3BD0B0A51, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4727, 'uuid': 'E4B67DBC-2A7E-468F-802A-AAB3BD0B0A51', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:58,455 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6616, 4728, 3F0928B0-4080-4232-9072-A801AFBDB553, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4728, 'uuid': '3F0928B0-4080-4232-9072-A801AFBDB553', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:48:59,572 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6617, 4729, 2E1F4373-0385-46AE-8050-A9C0503305AC, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4729, 'uuid': '2E1F4373-0385-46AE-8050-A9C0503305AC', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:49:00,230 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6618, 4730, CF80CD19-8589-4BBD-94F6-CC026EB5F95B, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4730, 'uuid': 'CF80CD19-8589-4BBD-94F6-CC026EB5F95B', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:49:00,907 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6619, 4731, FBE85D5F-3A8F-4BD5-9B9E-03ECAF640235, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4731, 'uuid': 'FBE85D5F-3A8F-4BD5-9B9E-03ECAF640235', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:49:01,566 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6620, 4732, 3BC9BDE9-9AC6-47C6-8C77-4390C041F8F6, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4732, 'uuid': '3BC9BDE9-9AC6-47C6-8C77-4390C041F8F6', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:49:02,670 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6621, 4733, 7B1FC50D-7C7E-40D6-B27A-8D2612880249, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4733, 'uuid': '7B1FC50D-7C7E-40D6-B27A-8D2612880249', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:49:03,843 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6622, 4734, F82CF863-E052-498A-8E9E-079674F39AF8, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4734, 'uuid': 'F82CF863-E052-498A-8E9E-079674F39AF8', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:49:04,503 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6623, 4735, 27658223-FF27-4D3E-B2F4-432A4B40777C, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4735, 'uuid': '27658223-FF27-4D3E-B2F4-432A4B40777C', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:49:05,619 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6624, 4736, B42452FE-5EFC-4739-BB22-392F4E8016D2, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4736, 'uuid': 'B42452FE-5EFC-4739-BB22-392F4E8016D2', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:49:06,715 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6625, 4737, 27600A2D-1FA4-4D94-A82F-A44A75610655, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4737, 'uuid': '27600A2D-1FA4-4D94-A82F-A44A75610655', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:49:08,260 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6626, 4738, 915592F6-761F-4BA5-A578-81B7ED30E5AE, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4738, 'uuid': '915592F6-761F-4BA5-A578-81B7ED30E5AE', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:49:09,367 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6627, 4739, BAE29099-6F3D-4945-8A96-043E648449D5, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4739, 'uuid': 'BAE29099-6F3D-4945-8A96-043E648449D5', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:49:10,038 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6628, 4740, B9C51C11-06AF-42C2-B168-086883D98734, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4740, 'uuid': 'B9C51C11-06AF-42C2-B168-086883D98734', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:49:10,697 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6629, 4741, 40383ABB-1911-444C-A813-C4146FDCB78A, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4741, 'uuid': '40383ABB-1911-444C-A813-C4146FDCB78A', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:49:11,415 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6630, 4742, B45A40EE-684E-4D7E-B2A2-EDB529C6123A, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4742, 'uuid': 'B45A40EE-684E-4D7E-B2A2-EDB529C6123A', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:49:12,083 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6631, 4743, 47E9A950-4E8B-41BE-ABAB-3617DA58F444, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4743, 'uuid': '47E9A950-4E8B-41BE-ABAB-3617DA58F444', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:49:12,746 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6632, 4744, E0000A11-EAF4-490F-A826-F4F9E40B9088, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4744, 'uuid': 'E0000A11-EAF4-490F-A826-F4F9E40B9088', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:49:14,295 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6633, 4745, 1F106693-2DA7-4AAC-9608-014521D9AB2B, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4745, 'uuid': '1F106693-2DA7-4AAC-9608-014521D9AB2B', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:49:15,401 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6634, 4746, 36795AB1-2102-4E5A-B314-F6A8A650D73C, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4746, 'uuid': '36795AB1-2102-4E5A-B314-F6A8A650D73C', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:49:59,099 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6635, 4747, 1E803E62-37F4-4DFE-971E-5C882EE78EA6, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4747, 'uuid': '1E803E62-37F4-4DFE-971E-5C882EE78EA6', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:49:59,758 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6636, 4748, CAA67562-1DDD-4A81-B3A4-E5D654C682B1, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4748, 'uuid': 'CAA67562-1DDD-4A81-B3A4-E5D654C682B1', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:00,424 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6637, 4749, A4A566EB-B2A1-4E25-9F78-AE42FF0EBD29, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4749, 'uuid': 'A4A566EB-B2A1-4E25-9F78-AE42FF0EBD29', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:01,082 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6638, 4750, 62C168EE-17BD-4BF3-8E18-A38ACB287854, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4750, 'uuid': '62C168EE-17BD-4BF3-8E18-A38ACB287854', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:01,739 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6639, 4751, E6972B05-7B96-4BF1-BDC1-4CA2F1290837, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4751, 'uuid': 'E6972B05-7B96-4BF1-BDC1-4CA2F1290837', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:02,423 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6640, 4752, 9D9C8578-34BA-4F2B-9F41-8B7A71059260, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4752, 'uuid': '9D9C8578-34BA-4F2B-9F41-8B7A71059260', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:03,098 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6641, 4753, B827BE28-1247-4C7E-9969-5D084C1CD48F, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4753, 'uuid': 'B827BE28-1247-4C7E-9969-5D084C1CD48F', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:03,762 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6642, 4754, C49DFEDC-61C4-416A-A6E3-18A6E6C67E5A, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4754, 'uuid': 'C49DFEDC-61C4-416A-A6E3-18A6E6C67E5A', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:05,664 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6643, 4755, D24134D2-DFD1-47FF-AAF9-088794C80C01, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4755, 'uuid': 'D24134D2-DFD1-47FF-AAF9-088794C80C01', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:06,322 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6644, 4756, F1CF367F-D38D-44B4-B66C-B7B9EB8FF1E7, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4756, 'uuid': 'F1CF367F-D38D-44B4-B66C-B7B9EB8FF1E7', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:07,413 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6645, 4757, 8E9D0BBB-ECDA-46B1-8C10-2226F8BB0F89, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4757, 'uuid': '8E9D0BBB-ECDA-46B1-8C10-2226F8BB0F89', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:08,544 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6646, 4758, 2288E8B8-37C9-4B04-8F60-E80AE3DA596C, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4758, 'uuid': '2288E8B8-37C9-4B04-8F60-E80AE3DA596C', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:09,205 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6647, 4759, 622B1CE8-8953-412E-BF9C-A1321783972A, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4759, 'uuid': '622B1CE8-8953-412E-BF9C-A1321783972A', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:09,869 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6648, 4760, E1F0AB65-E6F4-4821-8059-F312E5F108ED, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4760, 'uuid': 'E1F0AB65-E6F4-4821-8059-F312E5F108ED', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:10,534 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6649, 4761, 4024CF65-A694-4796-B28B-97494DADC9F3, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4761, 'uuid': '4024CF65-A694-4796-B28B-97494DADC9F3', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:11,643 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6650, 4762, 25A8EA5C-FA10-4A0A-89BF-9AC4BB63E76F, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4762, 'uuid': '25A8EA5C-FA10-4A0A-89BF-9AC4BB63E76F', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:12,308 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6651, 4763, 4722C949-7744-4355-BDBD-F1EC914546F8, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4763, 'uuid': '4722C949-7744-4355-BDBD-F1EC914546F8', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:12,967 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6652, 4764, 0FA5DFDC-61B9-4F5D-8307-4390E32F3D9A, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4764, 'uuid': '0FA5DFDC-61B9-4F5D-8307-4390E32F3D9A', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:13,630 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6653, 4765, 2B69FFE2-CA62-46E2-BBEE-2FE65C462085, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4765, 'uuid': '2B69FFE2-CA62-46E2-BBEE-2FE65C462085', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:14,296 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6654, 4766, 50DD50B5-7FAB-48EB-AE3B-653DCC5C5C0C, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4766, 'uuid': '50DD50B5-7FAB-48EB-AE3B-653DCC5C5C0C', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:14,960 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6655, 4767, A5AA3749-9305-4472-AF36-F5FBE37085FE, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4767, 'uuid': 'A5AA3749-9305-4472-AF36-F5FBE37085FE', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:15,618 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6656, 4768, 30BCBAF8-8BAC-437A-A5F4-7950F9C5E73C, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4768, 'uuid': '30BCBAF8-8BAC-437A-A5F4-7950F9C5E73C', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:16,274 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6657, 4769, 5E7B95CD-B6D7-4176-881B-94B17CC04116, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4769, 'uuid': '5E7B95CD-B6D7-4176-881B-94B17CC04116', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:16,941 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6658, 4770, 2BA80040-9CB2-4B63-B499-0419191A4149, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4770, 'uuid': '2BA80040-9CB2-4B63-B499-0419191A4149', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:17,603 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6659, 4771, A7F888B9-3208-40E7-B42C-D1E264D3A0AD, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4771, 'uuid': 'A7F888B9-3208-40E7-B42C-D1E264D3A0AD', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:18,322 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6660, 4772, 9FEC2137-14DA-4F8D-8D4D-63DA904BC5DE, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4772, 'uuid': '9FEC2137-14DA-4F8D-8D4D-63DA904BC5DE', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:18,981 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6661, 4773, 5F5C8A20-0DCD-4234-8079-119D0354CE4D, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4773, 'uuid': '5F5C8A20-0DCD-4234-8079-119D0354CE4D', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:19,639 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6662, 4774, 23DAE1AF-C1DA-46C6-9071-491A16DF4650, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4774, 'uuid': '23DAE1AF-C1DA-46C6-9071-491A16DF4650', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:20,309 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6663, 4775, 8200179F-1FB7-4E02-85F0-57FF4A9F9203, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4775, 'uuid': '8200179F-1FB7-4E02-85F0-57FF4A9F9203', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:21,486 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6664, 4776, AD215694-60E7-43D6-AD5E-DC739ACEDFA5, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4776, 'uuid': 'AD215694-60E7-43D6-AD5E-DC739ACEDFA5', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:22,150 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6665, 4777, 6F0128A3-CE68-466F-AC7F-B89C4CDB58AD, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4777, 'uuid': '6F0128A3-CE68-466F-AC7F-B89C4CDB58AD', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:22,816 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6666, 4778, 0A849811-7F7F-4536-8693-8A481C35FCF9, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4778, 'uuid': '0A849811-7F7F-4536-8693-8A481C35FCF9', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:23,486 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6667, 4779, 3BCC6E94-1756-44F8-A607-741882D686B3, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4779, 'uuid': '3BCC6E94-1756-44F8-A607-741882D686B3', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:24,149 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6668, 4780, DCB86C17-4E21-4C59-B639-7CBF52F460F1, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4780, 'uuid': 'DCB86C17-4E21-4C59-B639-7CBF52F460F1', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:24,817 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6669, 4781, DB5F530E-3D8F-4820-9767-4E528343FA44, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4781, 'uuid': 'DB5F530E-3D8F-4820-9767-4E528343FA44', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:25,485 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6670, 4782, C0A3084F-74C5-4D9D-A308-0D0C0390C8B9, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4782, 'uuid': 'C0A3084F-74C5-4D9D-A308-0D0C0390C8B9', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:26,593 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6671, 4783, 479B483C-8D67-4622-96DF-1A8C5197C61F, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4783, 'uuid': '479B483C-8D67-4622-96DF-1A8C5197C61F', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:28,173 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6672, 4784, E0B00E02-F844-4A0C-B1C8-6CA5640EF6DE, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4784, 'uuid': 'E0B00E02-F844-4A0C-B1C8-6CA5640EF6DE', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:28,881 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6673, 4785, 502C7069-2603-416F-A3A4-339392161BC9, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4785, 'uuid': '502C7069-2603-416F-A3A4-339392161BC9', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-19 04:50:29,545 - api_logger - ERROR - Error creating record: (psycopg2.errors.NotNullViolation) null value in column "created_at" of relation "reconciliation_status" violates not-null constraint
DETAIL:  Failing row contains (6674, 4786, A44F3C0C-6ED4-484F-A643-FEE70331EB98, EMITIDA, null, PENDIENTE, null).

[SQL: INSERT INTO cfdi_system.reconciliation_status (id_cfdi, uuid, invoice_type, bank_movements, reconciliation_status, created_at) VALUES (%(id_cfdi)s, %(uuid)s, %(invoice_type)s, %(bank_movements)s, %(reconciliation_status)s, %(created_at)s) RETURNING cfdi_system.reconciliation_status.id]
[parameters: {'id_cfdi': 4786, 'uuid': 'A44F3C0C-6ED4-484F-A643-FEE70331EB98', 'invoice_type': 'EMITIDA', 'bank_movements': None, 'reconciliation_status': 'PENDIENTE', 'created_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-04-21 03:26:52,594 - api_logger - INFO - Router cargado: /bankaccount
2026-04-21 03:26:52,636 - api_logger - INFO - Router cargado: /catalogs
2026-04-21 03:26:52,638 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-21 03:26:52,639 - api_logger - INFO - Router cargado: /export
2026-04-21 03:26:52,642 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-21 03:26:52,643 - api_logger - INFO - Router cargado: /licenses
2026-04-21 03:26:52,643 - api_logger - INFO - Router cargado: /menu_options
2026-04-21 03:26:52,650 - api_logger - INFO - Router cargado: /movements_banks
2026-04-21 03:26:52,651 - api_logger - INFO - Router cargado: /payment
2026-04-21 03:26:52,651 - api_logger - INFO - Router cargado: /plans
2026-04-21 03:26:52,652 - api_logger - INFO - Router cargado: 
2026-04-21 03:26:52,653 - api_logger - INFO - Router cargado: /webservices
2026-04-21 03:26:52,655 - api_logger - INFO - Router cargado: /auth
2026-04-21 03:26:52,657 - api_logger - INFO - Router cargado: /users
2026-04-21 03:26:52,658 - api_logger - INFO - Router cargado: /cfdidocuments
2026-04-21 03:42:27,179 - api_logger - INFO - Router cargado: /bankaccount
2026-04-21 03:42:27,212 - api_logger - INFO - Router cargado: /catalogs
2026-04-21 03:42:27,214 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-21 03:42:27,215 - api_logger - INFO - Router cargado: /export
2026-04-21 03:42:27,219 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-21 03:42:27,219 - api_logger - INFO - Router cargado: /licenses
2026-04-21 03:42:27,219 - api_logger - INFO - Router cargado: /menu_options
2026-04-21 03:42:27,226 - api_logger - INFO - Router cargado: /movements_banks
2026-04-21 03:42:27,227 - api_logger - INFO - Router cargado: /payment
2026-04-21 03:42:27,227 - api_logger - INFO - Router cargado: /plans
2026-04-21 03:42:27,228 - api_logger - INFO - Router cargado: 
2026-04-21 03:42:27,230 - api_logger - INFO - Router cargado: /webservices
2026-04-21 03:42:27,231 - api_logger - INFO - Router cargado: /auth
2026-04-21 03:42:27,233 - api_logger - INFO - Router cargado: /users
2026-04-21 03:42:27,233 - api_logger - INFO - Router cargado: /cfdidocuments
2026-04-21 03:42:27,498 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 cfdis=5
2026-04-21 03:42:27,498 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=fiel paquetes=1 cfdis=5
2026-04-21 03:42:27,500 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 cfdis=3
2026-04-21 03:42:27,501 - api_logger - WARNING - [Orchestrator] RFC XAXX010101000 sin credenciales: Sin credenciales
2026-04-21 03:42:27,503 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=2 cfdis=10
2026-04-21 03:42:27,504 - api_logger - ERROR - [Orchestrator] Error en RFC=XAXX010101000: Error SAT
2026-04-21 03:42:27,506 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 cfdis=2
2026-04-21 03:42:27,509 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 esperando turno (semáforo)...
2026-04-21 03:42:27,509 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 iniciando sesión SAT
2026-04-21 03:42:27,509 - api_logger - ERROR - [Orchestrator] Error en RFC=YYYYYY010101000: An asyncio.Future, a coroutine or an awaitable is required
2026-04-21 03:42:27,534 - api_logger - ERROR - [GetCFDIWebServices] Error crítico en execute: fallo crítico
2026-04-21 03:42:27,535 - api_logger - WARNING - [emitidos] Solicitud rechazada por el SAT: {'cod_estatus': '5002', 'id_solicitud': 'SOL-001'}
2026-04-21 03:42:27,557 - api_logger - ERROR - [GetCFDIWebServices] Error en _run_descarga [emitidos]: timeout
2026-04-21 03:42:27,559 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=1
2026-04-21 03:42:27,560 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=1
2026-04-21 03:42:27,560 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=2
2026-04-21 03:42:27,561 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=3
2026-04-21 03:42:27,562 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=4 intento=1
2026-04-21 03:42:27,563 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=5 intento=1
2026-04-21 03:45:59,381 - api_logger - INFO - Router cargado: /bankaccount
2026-04-21 03:45:59,422 - api_logger - INFO - Router cargado: /catalogs
2026-04-21 03:45:59,424 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-21 03:45:59,425 - api_logger - INFO - Router cargado: /export
2026-04-21 03:45:59,429 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-21 03:45:59,429 - api_logger - INFO - Router cargado: /licenses
2026-04-21 03:45:59,429 - api_logger - INFO - Router cargado: /menu_options
2026-04-21 03:45:59,437 - api_logger - INFO - Router cargado: /movements_banks
2026-04-21 03:45:59,437 - api_logger - INFO - Router cargado: /payment
2026-04-21 03:45:59,437 - api_logger - INFO - Router cargado: /plans
2026-04-21 03:45:59,438 - api_logger - INFO - Router cargado: 
2026-04-21 03:45:59,440 - api_logger - INFO - Router cargado: /webservices
2026-04-21 03:45:59,441 - api_logger - INFO - Router cargado: /auth
2026-04-21 03:45:59,443 - api_logger - INFO - Router cargado: /users
2026-04-21 03:45:59,443 - api_logger - INFO - Router cargado: /cfdidocuments
2026-04-21 03:45:59,555 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 esperando turno (semáforo)...
2026-04-21 03:45:59,556 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 iniciando sesión SAT
2026-04-21 03:45:59,556 - api_logger - ERROR - [Orchestrator] Error en RFC=YYYYYY010101000: An asyncio.Future, a coroutine or an awaitable is required
2026-04-21 03:49:02,927 - api_logger - INFO - Router cargado: /bankaccount
2026-04-21 03:49:02,969 - api_logger - INFO - Router cargado: /catalogs
2026-04-21 03:49:02,971 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-21 03:49:02,972 - api_logger - INFO - Router cargado: /export
2026-04-21 03:49:02,976 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-21 03:49:02,976 - api_logger - INFO - Router cargado: /licenses
2026-04-21 03:49:02,976 - api_logger - INFO - Router cargado: /menu_options
2026-04-21 03:49:02,984 - api_logger - INFO - Router cargado: /movements_banks
2026-04-21 03:49:02,984 - api_logger - INFO - Router cargado: /payment
2026-04-21 03:49:02,984 - api_logger - INFO - Router cargado: /plans
2026-04-21 03:49:02,985 - api_logger - INFO - Router cargado: 
2026-04-21 03:49:02,987 - api_logger - INFO - Router cargado: /webservices
2026-04-21 03:49:02,988 - api_logger - INFO - Router cargado: /auth
2026-04-21 03:49:02,990 - api_logger - INFO - Router cargado: /users
2026-04-21 03:49:02,991 - api_logger - INFO - Router cargado: /cfdidocuments
2026-04-21 03:49:03,032 - api_logger - ERROR - [CredentialsProvider] Error desencriptando FIEL desde DB: 
2026-04-21 03:49:03,035 - api_logger - ERROR - [CredentialsProvider] Error leyendo CIEC desde Vault: Could not find a suitable TLS CA certificate bundle, invalid path: /tmp/vault-tls2242728984/vault-ca.pem
2026-04-21 03:49:03,107 - api_logger - ERROR - [CredentialsProvider] Error leyendo CIEC desde Vault: Could not find a suitable TLS CA certificate bundle, invalid path: /tmp/vault-tls2242728984/vault-ca.pem
2026-04-21 03:49:03,111 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 cfdis=5
2026-04-21 03:49:03,111 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=fiel paquetes=1 cfdis=5
2026-04-21 03:49:03,112 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 cfdis=3
2026-04-21 03:49:03,113 - api_logger - WARNING - [Orchestrator] RFC XAXX010101000 sin credenciales: Sin credenciales
2026-04-21 03:49:03,115 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=2 cfdis=10
2026-04-21 03:49:03,116 - api_logger - ERROR - [Orchestrator] Error en RFC=XAXX010101000: Error SAT
2026-04-21 03:49:03,118 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 cfdis=2
2026-04-21 03:49:03,121 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 esperando turno (semáforo)...
2026-04-21 03:49:03,121 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 iniciando sesión SAT
2026-04-21 03:49:03,121 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 sesión terminada — esperando 120s antes de la siguiente
2026-04-21 03:49:03,121 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=ciec paquetes=0 cfdis=0
2026-04-21 03:49:03,126 - api_logger - ERROR - [GetCFDIWebServices] Error crítico en execute: fallo crítico
2026-04-21 03:49:03,128 - api_logger - WARNING - [emitidos] Solicitud rechazada por el SAT: {'cod_estatus': '5002', 'id_solicitud': 'SOL-001'}
2026-04-21 03:49:03,128 - api_logger - INFO - [GetCFDIWebServices] Sin paquetes disponibles para emitidos
2026-04-21 03:49:03,129 - api_logger - ERROR - [GetCFDIWebServices] Error en _run_descarga [emitidos]: timeout
2026-04-21 03:49:03,130 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=1
2026-04-21 03:49:03,132 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=1
2026-04-21 03:49:03,132 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=2
2026-04-21 03:49:03,132 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=3
2026-04-21 03:49:03,133 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=4 intento=1
2026-04-21 03:49:03,134 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=5 intento=1
2026-04-21 04:04:47,751 - api_logger - INFO - Router cargado: /bankaccount
2026-04-21 04:04:47,836 - api_logger - INFO - Router cargado: /catalogs
2026-04-21 04:04:47,841 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-21 04:04:47,843 - api_logger - INFO - Router cargado: /export
2026-04-21 04:04:47,853 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-21 04:04:47,853 - api_logger - INFO - Router cargado: /licenses
2026-04-21 04:04:47,853 - api_logger - INFO - Router cargado: /menu_options
2026-04-21 04:04:47,861 - api_logger - INFO - Router cargado: /movements_banks
2026-04-21 04:04:47,862 - api_logger - INFO - Router cargado: /payment
2026-04-21 04:04:47,862 - api_logger - INFO - Router cargado: /plans
2026-04-21 04:04:47,863 - api_logger - INFO - Router cargado: 
2026-04-21 04:04:47,865 - api_logger - INFO - Router cargado: /webservices
2026-04-21 04:04:47,866 - api_logger - INFO - Router cargado: /auth
2026-04-21 04:04:47,868 - api_logger - INFO - Router cargado: /users
2026-04-21 04:04:47,868 - api_logger - INFO - Router cargado: /cfdidocuments
2026-04-21 04:04:48,086 - api_logger - ERROR - [CredentialsProvider] Error desencriptando FIEL desde DB: 
2026-04-21 04:04:48,097 - api_logger - ERROR - [CredentialsProvider] Error desencriptando CIEC desde DB: 
2026-04-21 04:04:48,105 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 cfdis=5
2026-04-21 04:04:48,106 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=fiel paquetes=1 cfdis=5
2026-04-21 04:04:48,110 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 cfdis=3
2026-04-21 04:04:48,114 - api_logger - WARNING - [Orchestrator] RFC XAXX010101000 sin credenciales: Sin credenciales
2026-04-21 04:04:48,116 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=2 cfdis=10
2026-04-21 04:04:48,118 - api_logger - ERROR - [Orchestrator] Error en RFC=XAXX010101000: Error SAT
2026-04-21 04:04:48,120 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 cfdis=2
2026-04-21 04:04:48,125 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 esperando turno (semáforo)...
2026-04-21 04:04:48,125 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 iniciando sesión SAT
2026-04-21 04:04:48,125 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 sesión terminada — esperando 120s antes de la siguiente
2026-04-21 04:04:48,126 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=ciec paquetes=0 cfdis=0
2026-04-21 04:04:48,130 - api_logger - ERROR - [GetCFDIWebServices] Error crítico en execute: fallo crítico
2026-04-21 04:04:48,132 - api_logger - WARNING - [emitidos] Solicitud rechazada por el SAT: {'cod_estatus': '5002', 'id_solicitud': 'SOL-001'}
2026-04-21 04:04:48,135 - api_logger - INFO - [GetCFDIWebServices] Sin paquetes disponibles para emitidos
2026-04-21 04:04:48,138 - api_logger - ERROR - [GetCFDIWebServices] Error en _run_descarga [emitidos]: timeout
2026-04-21 04:04:48,141 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=1
2026-04-21 04:04:48,143 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=1
2026-04-21 04:04:48,143 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=2
2026-04-21 04:04:48,143 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=3
2026-04-21 04:04:48,146 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=4 intento=1
2026-04-21 04:04:48,148 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=5 intento=1
2026-04-21 04:05:36,236 - api_logger - INFO - Router cargado: /bankaccount
2026-04-21 04:05:36,277 - api_logger - INFO - Router cargado: /catalogs
2026-04-21 04:05:36,279 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-21 04:05:36,280 - api_logger - INFO - Router cargado: /export
2026-04-21 04:05:36,284 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-21 04:05:36,284 - api_logger - INFO - Router cargado: /licenses
2026-04-21 04:05:36,284 - api_logger - INFO - Router cargado: /menu_options
2026-04-21 04:05:36,291 - api_logger - INFO - Router cargado: /movements_banks
2026-04-21 04:05:36,292 - api_logger - INFO - Router cargado: /payment
2026-04-21 04:05:36,292 - api_logger - INFO - Router cargado: /plans
2026-04-21 04:05:36,293 - api_logger - INFO - Router cargado: 
2026-04-21 04:05:36,295 - api_logger - INFO - Router cargado: /webservices
2026-04-21 04:05:36,296 - api_logger - INFO - Router cargado: /auth
2026-04-21 04:05:36,298 - api_logger - INFO - Router cargado: /users
2026-04-21 04:05:36,298 - api_logger - INFO - Router cargado: /cfdidocuments
2026-04-21 04:05:36,327 - api_logger - ERROR - [CredentialsProvider] Error desencriptando FIEL desde DB: 
2026-04-21 04:05:36,330 - api_logger - ERROR - [CredentialsProvider] Error desencriptando CIEC desde DB: 
2026-04-21 04:05:36,333 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 cfdis=5
2026-04-21 04:05:36,333 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=fiel paquetes=1 cfdis=5
2026-04-21 04:05:36,335 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 cfdis=3
2026-04-21 04:05:36,336 - api_logger - WARNING - [Orchestrator] RFC XAXX010101000 sin credenciales: Sin credenciales
2026-04-21 04:05:36,337 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=2 cfdis=10
2026-04-21 04:05:36,338 - api_logger - ERROR - [Orchestrator] Error en RFC=XAXX010101000: Error SAT
2026-04-21 04:05:36,340 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 cfdis=2
2026-04-21 04:05:36,344 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 esperando turno (semáforo)...
2026-04-21 04:05:36,345 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 iniciando sesión SAT
2026-04-21 04:05:36,345 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 sesión terminada — esperando 120s antes de la siguiente
2026-04-21 04:05:36,345 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=ciec paquetes=0 cfdis=0
2026-04-21 04:05:36,349 - api_logger - ERROR - [GetCFDIWebServices] Error crítico en execute: fallo crítico
2026-04-21 04:05:36,351 - api_logger - WARNING - [emitidos] Solicitud rechazada por el SAT: {'cod_estatus': '5002', 'id_solicitud': 'SOL-001'}
2026-04-21 04:05:36,352 - api_logger - INFO - [GetCFDIWebServices] Sin paquetes disponibles para emitidos
2026-04-21 04:05:36,353 - api_logger - ERROR - [GetCFDIWebServices] Error en _run_descarga [emitidos]: timeout
2026-04-21 04:05:36,354 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=1
2026-04-21 04:05:36,355 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=1
2026-04-21 04:05:36,355 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=2
2026-04-21 04:05:36,355 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=3
2026-04-21 04:05:36,356 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=4 intento=1
2026-04-21 04:05:36,357 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=5 intento=1
2026-04-21 04:15:28,440 - api_logger - INFO - Router cargado: /bankaccount
2026-04-21 04:15:28,482 - api_logger - INFO - Router cargado: /catalogs
2026-04-21 04:15:28,484 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-21 04:15:28,485 - api_logger - INFO - Router cargado: /export
2026-04-21 04:15:28,489 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-21 04:15:28,489 - api_logger - INFO - Router cargado: /licenses
2026-04-21 04:15:28,489 - api_logger - INFO - Router cargado: /menu_options
2026-04-21 04:15:28,496 - api_logger - INFO - Router cargado: /movements_banks
2026-04-21 04:15:28,497 - api_logger - INFO - Router cargado: /payment
2026-04-21 04:15:28,497 - api_logger - INFO - Router cargado: /plans
2026-04-21 04:15:28,498 - api_logger - INFO - Router cargado: 
2026-04-21 04:15:28,500 - api_logger - INFO - Router cargado: /webservices
2026-04-21 04:15:28,501 - api_logger - INFO - Router cargado: /auth
2026-04-21 04:15:28,503 - api_logger - INFO - Router cargado: /users
2026-04-21 04:15:28,503 - api_logger - INFO - Router cargado: /cfdidocuments
2026-04-21 04:15:28,559 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-04-20 → 2026-04-20 retry_only=False
2026-04-21 04:15:28,559 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-21 04:15:28,559 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-04-21 04:15:28,559 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-04-21 04:15:28,560 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-20 → 2026-04-20 retry_only=False
2026-04-21 04:15:28,560 - api_logger - INFO - [run_daily_download] Licencia 5 — jobs creados: [10, 11]
2026-04-21 04:15:28,561 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-20 → 2026-04-20 retry_only=False
2026-04-21 04:15:28,561 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-21 04:15:28,562 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-20 → 2026-04-20 retry_only=False
2026-04-21 04:15:28,562 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-21 04:15:28,562 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-20 → 2026-04-20 retry_only=False
2026-04-21 04:15:28,562 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-21 04:15:28,563 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-14 → 2026-04-20 retry_only=False
2026-04-21 04:15:28,563 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-21 04:15:28,564 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-04-20 → 2026-04-20 retry_only=True
2026-04-21 04:15:28,564 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs reintentados: [10]
2026-04-21 04:15:28,564 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs reintentados: [10]
2026-04-21 04:15:28,564 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs reintentados: [10]
2026-04-21 04:15:28,565 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-04-20 → 2026-04-20 retry_only=False
2026-04-21 04:15:28,565 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-21 04:15:28,565 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-04-21 04:15:28,565 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-04-21 04:15:28,566 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-04-20 → 2026-04-20 retry_only=False
2026-04-21 04:15:28,566 - api_logger - ERROR - [run_daily_download] Error en licencia 1: SAT no disponible
2026-04-21 04:15:28,566 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10]
2026-04-21 04:15:28,566 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [11]
2026-04-21 04:15:28,566 - api_logger - INFO - [run_daily_download] Iniciando — licencias=0 rango=2026-04-20 → 2026-04-20 retry_only=False
2026-04-21 04:18:31,728 - api_logger - INFO - Router cargado: /bankaccount
2026-04-21 04:18:31,768 - api_logger - INFO - Router cargado: /catalogs
2026-04-21 04:18:31,770 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-21 04:18:31,771 - api_logger - INFO - Router cargado: /export
2026-04-21 04:18:31,775 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-21 04:18:31,775 - api_logger - INFO - Router cargado: /licenses
2026-04-21 04:18:31,775 - api_logger - INFO - Router cargado: /menu_options
2026-04-21 04:18:31,783 - api_logger - INFO - Router cargado: /movements_banks
2026-04-21 04:18:31,783 - api_logger - INFO - Router cargado: /payment
2026-04-21 04:18:31,784 - api_logger - INFO - Router cargado: /plans
2026-04-21 04:18:31,784 - api_logger - INFO - Router cargado: 
2026-04-21 04:18:31,786 - api_logger - INFO - Router cargado: /webservices
2026-04-21 04:18:31,787 - api_logger - INFO - Router cargado: /auth
2026-04-21 04:18:31,789 - api_logger - INFO - Router cargado: /users
2026-04-21 04:18:31,789 - api_logger - INFO - Router cargado: /cfdidocuments
2026-04-21 04:18:31,826 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-04-20 → 2026-04-20 retry_only=False
2026-04-21 04:18:31,826 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-21 04:18:31,826 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-04-21 04:18:31,826 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-04-21 04:18:31,827 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-20 → 2026-04-20 retry_only=False
2026-04-21 04:18:31,827 - api_logger - INFO - [run_daily_download] Licencia 5 — jobs creados: [10, 11]
2026-04-21 04:18:31,828 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-20 → 2026-04-20 retry_only=False
2026-04-21 04:18:31,828 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-21 04:18:31,828 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-20 → 2026-04-20 retry_only=False
2026-04-21 04:18:31,829 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-21 04:18:31,829 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-20 → 2026-04-20 retry_only=False
2026-04-21 04:18:31,829 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-21 04:18:31,830 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-14 → 2026-04-20 retry_only=False
2026-04-21 04:18:31,830 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-21 04:18:31,831 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-04-20 → 2026-04-20 retry_only=True
2026-04-21 04:18:31,831 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs reintentados: [10]
2026-04-21 04:18:31,831 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs reintentados: [10]
2026-04-21 04:18:31,831 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs reintentados: [10]
2026-04-21 04:18:31,831 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-04-20 → 2026-04-20 retry_only=False
2026-04-21 04:18:31,831 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-21 04:18:31,831 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-04-21 04:18:31,832 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-04-21 04:18:31,832 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-04-20 → 2026-04-20 retry_only=False
2026-04-21 04:18:31,832 - api_logger - ERROR - [run_daily_download] Error en licencia 1: SAT no disponible
2026-04-21 04:18:31,832 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10]
2026-04-21 04:18:31,832 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [11]
2026-04-21 04:18:31,833 - api_logger - INFO - [run_daily_download] Iniciando — licencias=0 rango=2026-04-20 → 2026-04-20 retry_only=False
2026-04-21 04:18:54,434 - api_logger - INFO - Router cargado: /bankaccount
2026-04-21 04:18:54,474 - api_logger - INFO - Router cargado: /catalogs
2026-04-21 04:18:54,476 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-21 04:18:54,477 - api_logger - INFO - Router cargado: /export
2026-04-21 04:18:54,481 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-21 04:18:54,481 - api_logger - INFO - Router cargado: /licenses
2026-04-21 04:18:54,481 - api_logger - INFO - Router cargado: /menu_options
2026-04-21 04:18:54,488 - api_logger - INFO - Router cargado: /movements_banks
2026-04-21 04:18:54,489 - api_logger - INFO - Router cargado: /payment
2026-04-21 04:18:54,489 - api_logger - INFO - Router cargado: /plans
2026-04-21 04:18:54,490 - api_logger - INFO - Router cargado: 
2026-04-21 04:18:54,492 - api_logger - INFO - Router cargado: /webservices
2026-04-21 04:18:54,493 - api_logger - INFO - Router cargado: /auth
2026-04-21 04:18:54,495 - api_logger - INFO - Router cargado: /users
2026-04-21 04:18:54,495 - api_logger - INFO - Router cargado: /cfdidocuments
2026-04-21 04:18:54,578 - api_logger - ERROR - [CredentialsProvider] Error desencriptando FIEL desde DB: 
2026-04-21 04:18:54,580 - api_logger - ERROR - [CredentialsProvider] Error desencriptando CIEC desde DB: 
2026-04-21 04:18:54,584 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 cfdis=5
2026-04-21 04:18:54,585 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=fiel paquetes=1 cfdis=5
2026-04-21 04:18:54,586 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 cfdis=3
2026-04-21 04:18:54,587 - api_logger - WARNING - [Orchestrator] RFC XAXX010101000 sin credenciales: Sin credenciales
2026-04-21 04:18:54,589 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=2 cfdis=10
2026-04-21 04:18:54,590 - api_logger - ERROR - [Orchestrator] Error en RFC=XAXX010101000: Error SAT
2026-04-21 04:18:54,592 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 cfdis=2
2026-04-21 04:18:54,596 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 esperando turno (semáforo)...
2026-04-21 04:18:54,596 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 iniciando sesión SAT
2026-04-21 04:18:54,596 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 sesión terminada — esperando 120s antes de la siguiente
2026-04-21 04:18:54,596 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=ciec paquetes=0 cfdis=0
2026-04-21 04:18:54,601 - api_logger - ERROR - [GetCFDIWebServices] Error crítico en execute: fallo crítico
2026-04-21 04:18:54,603 - api_logger - WARNING - [emitidos] Solicitud rechazada por el SAT: {'cod_estatus': '5002', 'id_solicitud': 'SOL-001'}
2026-04-21 04:18:54,604 - api_logger - INFO - [GetCFDIWebServices] Sin paquetes disponibles para emitidos
2026-04-21 04:18:54,605 - api_logger - ERROR - [GetCFDIWebServices] Error en _run_descarga [emitidos]: timeout
2026-04-21 04:18:54,606 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=1
2026-04-21 04:18:54,607 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=1
2026-04-21 04:18:54,607 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=2
2026-04-21 04:18:54,607 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=3
2026-04-21 04:18:54,609 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=4 intento=1
2026-04-21 04:18:54,610 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=5 intento=1
2026-04-21 04:18:54,626 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-04-20 → 2026-04-20 retry_only=False
2026-04-21 04:18:54,626 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-21 04:18:54,626 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-04-21 04:18:54,626 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-04-21 04:18:54,627 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-20 → 2026-04-20 retry_only=False
2026-04-21 04:18:54,627 - api_logger - INFO - [run_daily_download] Licencia 5 — jobs creados: [10, 11]
2026-04-21 04:18:54,628 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-20 → 2026-04-20 retry_only=False
2026-04-21 04:18:54,628 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-21 04:18:54,628 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-20 → 2026-04-20 retry_only=False
2026-04-21 04:18:54,628 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-21 04:18:54,629 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-20 → 2026-04-20 retry_only=False
2026-04-21 04:18:54,629 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-21 04:18:54,630 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-14 → 2026-04-20 retry_only=False
2026-04-21 04:18:54,630 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-21 04:18:54,630 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-04-20 → 2026-04-20 retry_only=True
2026-04-21 04:18:54,631 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs reintentados: [10]
2026-04-21 04:18:54,631 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs reintentados: [10]
2026-04-21 04:18:54,631 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs reintentados: [10]
2026-04-21 04:18:54,631 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-04-20 → 2026-04-20 retry_only=False
2026-04-21 04:18:54,631 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-21 04:18:54,632 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-04-21 04:18:54,632 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-04-21 04:18:54,632 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-04-20 → 2026-04-20 retry_only=False
2026-04-21 04:18:54,632 - api_logger - ERROR - [run_daily_download] Error en licencia 1: SAT no disponible
2026-04-21 04:18:54,632 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10]
2026-04-21 04:18:54,632 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [11]
2026-04-21 04:18:54,633 - api_logger - INFO - [run_daily_download] Iniciando — licencias=0 rango=2026-04-20 → 2026-04-20 retry_only=False
2026-04-21 05:06:09,085 - api_logger - INFO - Router cargado: /bankaccount
2026-04-21 05:06:09,126 - api_logger - INFO - Router cargado: /catalogs
2026-04-21 05:06:09,128 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-21 05:06:09,129 - api_logger - INFO - Router cargado: /export
2026-04-21 05:06:09,133 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-21 05:06:09,133 - api_logger - INFO - Router cargado: /licenses
2026-04-21 05:06:09,133 - api_logger - INFO - Router cargado: /menu_options
2026-04-21 05:06:09,140 - api_logger - INFO - Router cargado: /movements_banks
2026-04-21 05:06:09,141 - api_logger - INFO - Router cargado: /payment
2026-04-21 05:06:09,141 - api_logger - INFO - Router cargado: /plans
2026-04-21 05:06:09,142 - api_logger - INFO - Router cargado: 
2026-04-21 05:06:09,144 - api_logger - INFO - Router cargado: /webservices
2026-04-21 05:06:09,145 - api_logger - INFO - Router cargado: /auth
2026-04-21 05:06:09,147 - api_logger - INFO - Router cargado: /users
2026-04-21 05:06:09,147 - api_logger - INFO - Router cargado: /cfdidocuments
2026-04-21 05:06:09,250 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/login: Usuario no encontrado.
2026-04-21 05:06:09,252 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 4.
2026-04-21 05:06:09,253 - api_logger - DEBUG - [LockedError] http://testserver/v1/auth/login: Cuenta bloqueada.
2026-04-21 05:06:09,255 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/auth/login: Tu cuenta aún no ha sido verificada.
2026-04-21 05:06:09,257 - api_logger - DEBUG - [UnavailableForLegalReasonsError] http://testserver/v1/auth/login: Tu cuenta ha sido suspendida.
2026-04-21 05:06:09,260 - api_logger - DEBUG - [ConflictError] http://testserver/v1/auth/register: El correo electrónico nuevo@example.com ya está registrado.
2026-04-21 05:06:09,263 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/recovery/passwd: Cuenta no registrada.
2026-04-21 05:06:09,265 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/reset/passwd: El token para permitir el cambio de contraseña ha expirado.
2026-04-21 05:06:09,268 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/resend-verification?tkn=bad-token: Token no válido
2026-04-21 05:06:09,270 - api_logger - DEBUG - [TooManyRequestsError] http://testserver/v1/auth/resend-verification?tkn=any-token: Has superado el límite de intentos.
2026-04-21 05:06:09,275 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getall: Sin cuentas registradas.
2026-04-21 05:06:09,278 - api_logger - DEBUG - [ConflictError] http://testserver/v1/bankaccount/create: La cuenta ya existe.
2026-04-21 05:06:09,281 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getbyid/999: Cuenta no encontrada.
2026-04-21 05:06:09,284 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/update/999: Cuenta no encontrada.
2026-04-21 05:06:09,286 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/delete/999: Cuenta no encontrada.
2026-04-21 05:06:09,289 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?current_page=0: current_page debe ser un valor positivo.
2026-04-21 05:06:09,291 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?page_size=200: page_size debe estar entre 1 y 100.
2026-04-21 05:06:09,321 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 cfdis=5
2026-04-21 05:06:09,321 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=fiel paquetes=1 cfdis=5
2026-04-21 05:06:09,323 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 cfdis=3
2026-04-21 05:06:09,324 - api_logger - WARNING - [Orchestrator] RFC XAXX010101000 sin credenciales: Sin credenciales
2026-04-21 05:06:09,325 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=2 cfdis=10
2026-04-21 05:06:09,327 - api_logger - ERROR - [Orchestrator] Error en RFC=XAXX010101000: Error SAT
2026-04-21 05:06:09,329 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 cfdis=2
2026-04-21 05:06:09,332 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 esperando turno (semáforo)...
2026-04-21 05:06:09,332 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 iniciando sesión SAT
2026-04-21 05:06:09,332 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 sesión terminada — esperando 120s antes de la siguiente
2026-04-21 05:06:09,332 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=ciec paquetes=0 cfdis=0
2026-04-21 05:06:09,350 - api_logger - ERROR - [CredentialsProvider] Error desencriptando FIEL desde DB: 
2026-04-21 05:06:09,353 - api_logger - ERROR - [CredentialsProvider] Error desencriptando CIEC desde DB: 
2026-04-21 05:06:09,358 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/create: El RFC ya está registrado.
2026-04-21 05:06:09,359 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/fiscalcustomer/create: No autorizado.
2026-04-21 05:06:09,364 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/update/999: RFC no encontrado.
2026-04-21 05:06:09,368 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/list/byid/999: RFC no encontrado.
2026-04-21 05:06:09,373 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/setselected/999: RFC no encontrado.
2026-04-21 05:06:09,376 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/getselected: Sin RFC seleccionado.
2026-04-21 05:06:18,417 - api_logger - ERROR - [GetCFDIWebServices] Error crítico en execute: fallo crítico
2026-04-21 05:06:18,421 - api_logger - WARNING - [emitidos] Solicitud rechazada por el SAT: {'cod_estatus': '5002', 'id_solicitud': 'SOL-001'}
2026-04-21 05:06:18,513 - api_logger - INFO - [GetCFDIWebServices] Sin paquetes disponibles para emitidos
2026-04-21 05:06:18,515 - api_logger - ERROR - [GetCFDIWebServices] Error en _run_descarga [emitidos]: timeout
2026-04-21 05:06:18,516 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=1
2026-04-21 05:06:18,517 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=1
2026-04-21 05:06:18,517 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=2
2026-04-21 05:06:18,517 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=3
2026-04-21 05:06:18,519 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=4 intento=1
2026-04-21 05:06:18,520 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=5 intento=1
2026-04-21 05:06:18,526 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/licenses/info: Licencia no encontrada.
2026-04-21 05:06:18,529 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/licenses/info: Licencia suspendida.
2026-04-21 05:06:18,533 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/menu_options/get: Rol no encontrado.
2026-04-21 05:06:18,538 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/getall: Sin movimientos.
2026-04-21 05:06:18,542 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/get_selected_rfc: Sin RFC seleccionado.
2026-04-21 05:06:18,546 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/delete/999: Movimiento no encontrado.
2026-04-21 05:06:18,550 - api_logger - DEBUG - [DomainError] http://testserver/v1/movements_banks/upload/bbva: Formato de archivo inválido.
2026-04-21 05:06:18,554 - api_logger - DEBUG - [ConflictError] http://testserver/v1/payment/stripe/checkout: Suscripción activa.
2026-04-21 05:06:18,559 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/getsubscription: Sin suscripción activa.
2026-04-21 05:06:18,562 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/cancelsubscription/sub_INVALID: Suscripción no encontrada.
2026-04-21 05:06:18,567 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-04-20 → 2026-04-20 retry_only=False
2026-04-21 05:06:18,567 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-21 05:06:18,567 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-04-21 05:06:18,567 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-04-21 05:06:18,568 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-20 → 2026-04-20 retry_only=False
2026-04-21 05:06:18,568 - api_logger - INFO - [run_daily_download] Licencia 5 — jobs creados: [10, 11]
2026-04-21 05:06:18,569 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-20 → 2026-04-20 retry_only=False
2026-04-21 05:06:18,569 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-21 05:06:18,570 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-20 → 2026-04-20 retry_only=False
2026-04-21 05:06:18,570 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-21 05:06:18,571 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-20 → 2026-04-20 retry_only=False
2026-04-21 05:06:18,571 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-21 05:06:18,572 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-14 → 2026-04-20 retry_only=False
2026-04-21 05:06:18,572 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-21 05:06:18,573 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-04-20 → 2026-04-20 retry_only=True
2026-04-21 05:06:18,573 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs reintentados: [10]
2026-04-21 05:06:18,573 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs reintentados: [10]
2026-04-21 05:06:18,573 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs reintentados: [10]
2026-04-21 05:06:18,573 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-04-20 → 2026-04-20 retry_only=False
2026-04-21 05:06:18,574 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-21 05:06:18,574 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-04-21 05:06:18,574 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-04-21 05:06:18,574 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-04-20 → 2026-04-20 retry_only=False
2026-04-21 05:06:18,574 - api_logger - ERROR - [run_daily_download] Error en licencia 1: SAT no disponible
2026-04-21 05:06:18,575 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10]
2026-04-21 05:06:18,575 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [11]
2026-04-21 05:06:18,575 - api_logger - INFO - [run_daily_download] Iniciando — licencias=0 rango=2026-04-20 → 2026-04-20 retry_only=False
2026-04-21 05:06:18,586 - api_logger - WARNING - invoice.payment_succeeded sin customer_email, ignorando
2026-04-21 05:06:18,587 - api_logger - WARNING - invoice.payment_failed sin customer_email, ignorando
2026-04-21 05:06:18,588 - api_logger - WARNING - invoice.upcoming sin customer_email, ignorando
2026-04-21 05:06:18,592 - api_logger - WARNING - invoice.payment_action_required sin customer_email, ignorando
2026-04-21 05:06:18,594 - api_logger - WARNING - No se pudo obtener last4 para action_required: error
2026-04-21 05:06:18,605 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: test@example.com
2026-04-21 05:06:18,606 - api_logger - INFO - Pago fallido registrado | user: test@example.com | decline_code: card_declined | last4: 4242
2026-04-21 05:06:18,607 - api_logger - WARNING - Charge fallido: card_declined - None - email: None
2026-04-21 05:06:18,607 - api_logger - ERROR - charge.failed sin customer_email, no se puede registrar
2026-04-21 05:06:18,608 - api_logger - ERROR - PaymentIntent fallido | customer: cus_stripe123 | decline_code: card_declined | message: Your card was declined.
2026-04-21 05:06:18,613 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile: Usuario no encontrado.
2026-04-21 05:06:18,616 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile/update: Usuario no encontrado.
2026-04-21 05:06:18,620 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/users/subusers: No tienes permisos.
2026-04-21 05:06:18,624 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/detail?id=999: Subusuario no encontrado.
2026-04-21 05:06:18,630 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/delete?id_subuser=999: Subusuario no encontrado.
2026-04-21 05:06:18,634 - api_logger - DEBUG - [ConflictError] http://testserver/v1/users/subuser/create: El correo ya está registrado.
2026-04-23 04:26:01,074 - api_logger - INFO - Router cargado: /bankaccount
2026-04-23 04:26:01,106 - api_logger - INFO - Router cargado: /catalogs
2026-04-23 04:26:01,108 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-23 04:26:01,109 - api_logger - INFO - Router cargado: /export
2026-04-23 04:26:01,113 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-23 04:26:01,113 - api_logger - INFO - Router cargado: /licenses
2026-04-23 04:26:01,113 - api_logger - INFO - Router cargado: /menu_options
2026-04-23 04:26:01,120 - api_logger - INFO - Router cargado: /movements_banks
2026-04-23 04:26:01,121 - api_logger - INFO - Router cargado: /payment
2026-04-23 04:26:01,121 - api_logger - INFO - Router cargado: /plans
2026-04-23 04:26:01,122 - api_logger - INFO - Router cargado: 
2026-04-23 04:26:01,124 - api_logger - INFO - Router cargado: /webservices
2026-04-23 04:26:01,125 - api_logger - INFO - Router cargado: /auth
2026-04-23 04:26:01,126 - api_logger - INFO - Router cargado: /users
2026-04-23 04:26:01,127 - api_logger - INFO - Router cargado: /cfdidocuments
2026-04-23 04:26:01,212 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/login: Usuario no encontrado.
2026-04-23 04:26:01,214 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 4.
2026-04-23 04:26:01,216 - api_logger - DEBUG - [LockedError] http://testserver/v1/auth/login: Cuenta bloqueada.
2026-04-23 04:26:01,217 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/auth/login: Tu cuenta aún no ha sido verificada.
2026-04-23 04:26:01,219 - api_logger - DEBUG - [UnavailableForLegalReasonsError] http://testserver/v1/auth/login: Tu cuenta ha sido suspendida.
2026-04-23 04:26:01,222 - api_logger - DEBUG - [ConflictError] http://testserver/v1/auth/register: El correo electrónico nuevo@example.com ya está registrado.
2026-04-23 04:26:01,224 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/recovery/passwd: Cuenta no registrada.
2026-04-23 04:26:01,228 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/reset/passwd: El token para permitir el cambio de contraseña ha expirado.
2026-04-23 04:26:01,231 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/resend-verification?tkn=bad-token: Token no válido
2026-04-23 04:26:01,232 - api_logger - DEBUG - [TooManyRequestsError] http://testserver/v1/auth/resend-verification?tkn=any-token: Has superado el límite de intentos.
2026-04-23 04:26:01,237 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getall: Sin cuentas registradas.
2026-04-23 04:26:01,240 - api_logger - DEBUG - [ConflictError] http://testserver/v1/bankaccount/create: La cuenta ya existe.
2026-04-23 04:26:01,242 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getbyid/999: Cuenta no encontrada.
2026-04-23 04:26:01,245 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/update/999: Cuenta no encontrada.
2026-04-23 04:26:01,247 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/delete/999: Cuenta no encontrada.
2026-04-23 04:26:01,250 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?current_page=0: current_page debe ser un valor positivo.
2026-04-23 04:26:01,251 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?page_size=200: page_size debe estar entre 1 y 100.
2026-04-23 04:26:01,280 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 cfdis=5
2026-04-23 04:26:01,281 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=fiel paquetes=1 cfdis=5
2026-04-23 04:26:01,282 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 cfdis=3
2026-04-23 04:26:01,283 - api_logger - WARNING - [Orchestrator] RFC XAXX010101000 sin credenciales: Sin credenciales
2026-04-23 04:26:01,284 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=2 cfdis=10
2026-04-23 04:26:01,286 - api_logger - ERROR - [Orchestrator] Error en RFC=XAXX010101000: Error SAT
2026-04-23 04:26:01,289 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 cfdis=2
2026-04-23 04:26:01,293 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 esperando turno (semáforo)...
2026-04-23 04:26:01,293 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 iniciando sesión SAT
2026-04-23 04:26:01,293 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 sesión terminada — esperando 120s antes de la siguiente
2026-04-23 04:26:01,293 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=ciec paquetes=0 cfdis=0
2026-04-23 04:26:01,314 - api_logger - ERROR - [CredentialsProvider] Error desencriptando FIEL desde DB: 
2026-04-23 04:26:01,316 - api_logger - ERROR - [CredentialsProvider] Error desencriptando CIEC desde DB: 
2026-04-23 04:26:01,321 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/create: El RFC ya está registrado.
2026-04-23 04:26:01,322 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/fiscalcustomer/create: No autorizado.
2026-04-23 04:26:01,327 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/update/999: RFC no encontrado.
2026-04-23 04:26:01,332 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/list/byid/999: RFC no encontrado.
2026-04-23 04:26:01,337 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/setselected/999: RFC no encontrado.
2026-04-23 04:26:01,340 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/getselected: Sin RFC seleccionado.
2026-04-23 04:26:10,378 - api_logger - ERROR - [GetCFDIWebServices] Error crítico en execute: fallo crítico
2026-04-23 04:26:10,380 - api_logger - WARNING - [emitidos] Solicitud rechazada por el SAT: {'cod_estatus': '5002', 'id_solicitud': 'SOL-001'}
2026-04-23 04:26:10,383 - api_logger - INFO - [GetCFDIWebServices] Sin paquetes disponibles para emitidos
2026-04-23 04:26:10,384 - api_logger - ERROR - [GetCFDIWebServices] Error en _run_descarga [emitidos]: timeout
2026-04-23 04:26:10,386 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=1
2026-04-23 04:26:10,387 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=1
2026-04-23 04:26:10,387 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=2
2026-04-23 04:26:10,387 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=3
2026-04-23 04:26:10,388 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=4 intento=1
2026-04-23 04:26:10,390 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=5 intento=1
2026-04-23 04:26:10,395 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/licenses/info: Licencia no encontrada.
2026-04-23 04:26:10,397 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/licenses/info: Licencia suspendida.
2026-04-23 04:26:10,400 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/menu_options/get: Rol no encontrado.
2026-04-23 04:26:10,406 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/getall: Sin movimientos.
2026-04-23 04:26:10,409 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/get_selected_rfc: Sin RFC seleccionado.
2026-04-23 04:26:10,413 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/delete/999: Movimiento no encontrado.
2026-04-23 04:26:10,417 - api_logger - DEBUG - [DomainError] http://testserver/v1/movements_banks/upload/bbva: Formato de archivo inválido.
2026-04-23 04:26:10,420 - api_logger - DEBUG - [ConflictError] http://testserver/v1/payment/stripe/checkout: Suscripción activa.
2026-04-23 04:26:10,426 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/getsubscription: Sin suscripción activa.
2026-04-23 04:26:10,429 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/cancelsubscription/sub_INVALID: Suscripción no encontrada.
2026-04-23 04:26:10,434 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:26:10,434 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-23 04:26:10,434 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-04-23 04:26:10,434 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-04-23 04:26:10,435 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:26:10,435 - api_logger - INFO - [run_daily_download] Licencia 5 — jobs creados: [10, 11]
2026-04-23 04:26:10,436 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:26:10,436 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-23 04:26:10,437 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:26:10,437 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-23 04:26:10,438 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:26:10,438 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-23 04:26:10,438 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-16 → 2026-04-22 retry_only=False
2026-04-23 04:26:10,439 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-23 04:26:10,439 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-04-22 → 2026-04-22 retry_only=True
2026-04-23 04:26:10,439 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs reintentados: [10]
2026-04-23 04:26:10,439 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs reintentados: [10]
2026-04-23 04:26:10,440 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs reintentados: [10]
2026-04-23 04:26:10,440 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:26:10,440 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-23 04:26:10,440 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-04-23 04:26:10,441 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-04-23 04:26:10,441 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:26:10,441 - api_logger - ERROR - [run_daily_download] Error en licencia 1: SAT no disponible
2026-04-23 04:26:10,441 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10]
2026-04-23 04:26:10,442 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [11]
2026-04-23 04:26:10,442 - api_logger - INFO - [run_daily_download] Iniciando — licencias=0 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:26:10,531 - api_logger - WARNING - invoice.payment_succeeded sin customer_email, ignorando
2026-04-23 04:26:10,532 - api_logger - WARNING - invoice.payment_failed sin customer_email, ignorando
2026-04-23 04:26:10,533 - api_logger - WARNING - invoice.upcoming sin customer_email, ignorando
2026-04-23 04:26:10,537 - api_logger - WARNING - invoice.payment_action_required sin customer_email, ignorando
2026-04-23 04:26:10,538 - api_logger - WARNING - No se pudo obtener last4 para action_required: error
2026-04-23 04:26:10,545 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: test@example.com
2026-04-23 04:26:10,547 - api_logger - INFO - Pago fallido registrado | user: test@example.com | decline_code: card_declined | last4: 4242
2026-04-23 04:26:10,548 - api_logger - WARNING - Charge fallido: card_declined - None - email: None
2026-04-23 04:26:10,548 - api_logger - ERROR - charge.failed sin customer_email, no se puede registrar
2026-04-23 04:26:10,549 - api_logger - ERROR - PaymentIntent fallido | customer: cus_stripe123 | decline_code: card_declined | message: Your card was declined.
2026-04-23 04:26:10,554 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile: Usuario no encontrado.
2026-04-23 04:26:10,558 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile/update: Usuario no encontrado.
2026-04-23 04:26:10,561 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/users/subusers: No tienes permisos.
2026-04-23 04:26:10,565 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/detail?id=999: Subusuario no encontrado.
2026-04-23 04:26:10,571 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/delete?id_subuser=999: Subusuario no encontrado.
2026-04-23 04:26:10,574 - api_logger - DEBUG - [ConflictError] http://testserver/v1/users/subuser/create: El correo ya está registrado.
2026-04-23 04:35:07,243 - api_logger - INFO - Router cargado: /bankaccount
2026-04-23 04:35:07,277 - api_logger - INFO - Router cargado: /catalogs
2026-04-23 04:35:07,280 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-23 04:35:07,281 - api_logger - INFO - Router cargado: /export
2026-04-23 04:35:07,285 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-23 04:35:07,285 - api_logger - INFO - Router cargado: /licenses
2026-04-23 04:35:07,285 - api_logger - INFO - Router cargado: /menu_options
2026-04-23 04:35:07,293 - api_logger - INFO - Router cargado: /movements_banks
2026-04-23 04:35:07,294 - api_logger - INFO - Router cargado: /payment
2026-04-23 04:35:07,294 - api_logger - INFO - Router cargado: /plans
2026-04-23 04:35:07,295 - api_logger - INFO - Router cargado: 
2026-04-23 04:35:07,296 - api_logger - INFO - Router cargado: /webservices
2026-04-23 04:35:07,297 - api_logger - INFO - Router cargado: /auth
2026-04-23 04:35:07,299 - api_logger - INFO - Router cargado: /users
2026-04-23 04:35:07,299 - api_logger - INFO - Router cargado: /cfdidocuments
2026-04-23 04:35:07,388 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/login: Usuario no encontrado.
2026-04-23 04:35:07,389 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 4.
2026-04-23 04:35:07,391 - api_logger - DEBUG - [LockedError] http://testserver/v1/auth/login: Cuenta bloqueada.
2026-04-23 04:35:07,392 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/auth/login: Tu cuenta aún no ha sido verificada.
2026-04-23 04:35:07,394 - api_logger - DEBUG - [UnavailableForLegalReasonsError] http://testserver/v1/auth/login: Tu cuenta ha sido suspendida.
2026-04-23 04:35:07,397 - api_logger - DEBUG - [ConflictError] http://testserver/v1/auth/register: El correo electrónico nuevo@example.com ya está registrado.
2026-04-23 04:35:07,401 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/recovery/passwd: Cuenta no registrada.
2026-04-23 04:35:07,405 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/reset/passwd: El token para permitir el cambio de contraseña ha expirado.
2026-04-23 04:35:07,408 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/resend-verification?tkn=bad-token: Token no válido
2026-04-23 04:35:07,410 - api_logger - DEBUG - [TooManyRequestsError] http://testserver/v1/auth/resend-verification?tkn=any-token: Has superado el límite de intentos.
2026-04-23 04:35:07,414 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getall: Sin cuentas registradas.
2026-04-23 04:35:07,416 - api_logger - DEBUG - [ConflictError] http://testserver/v1/bankaccount/create: La cuenta ya existe.
2026-04-23 04:35:07,419 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getbyid/999: Cuenta no encontrada.
2026-04-23 04:35:07,422 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/update/999: Cuenta no encontrada.
2026-04-23 04:35:07,425 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/delete/999: Cuenta no encontrada.
2026-04-23 04:35:07,428 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?current_page=0: current_page debe ser un valor positivo.
2026-04-23 04:35:07,429 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?page_size=200: page_size debe estar entre 1 y 100.
2026-04-23 04:35:07,463 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 cfdis=5
2026-04-23 04:35:07,463 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=fiel paquetes=1 cfdis=5
2026-04-23 04:35:07,465 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 cfdis=3
2026-04-23 04:35:07,466 - api_logger - WARNING - [Orchestrator] RFC XAXX010101000 sin credenciales: Sin credenciales
2026-04-23 04:35:07,467 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=2 cfdis=10
2026-04-23 04:35:07,469 - api_logger - ERROR - [Orchestrator] Error en RFC=XAXX010101000: Error SAT
2026-04-23 04:35:07,472 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 cfdis=2
2026-04-23 04:35:07,476 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 esperando turno (semáforo)...
2026-04-23 04:35:07,476 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 iniciando sesión SAT
2026-04-23 04:35:07,476 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 sesión terminada — esperando 120s antes de la siguiente
2026-04-23 04:35:07,476 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=ciec paquetes=0 cfdis=0
2026-04-23 04:35:07,495 - api_logger - ERROR - [CredentialsProvider] Error desencriptando FIEL desde DB: 
2026-04-23 04:35:07,498 - api_logger - ERROR - [CredentialsProvider] Error desencriptando CIEC desde DB: 
2026-04-23 04:35:07,502 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/create: El RFC ya está registrado.
2026-04-23 04:35:07,504 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/fiscalcustomer/create: No autorizado.
2026-04-23 04:35:07,509 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/update/999: RFC no encontrado.
2026-04-23 04:35:07,514 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/list/byid/999: RFC no encontrado.
2026-04-23 04:35:07,519 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/setselected/999: RFC no encontrado.
2026-04-23 04:35:07,521 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/getselected: Sin RFC seleccionado.
2026-04-23 04:35:16,562 - api_logger - ERROR - [GetCFDIWebServices] Error crítico en execute: fallo crítico
2026-04-23 04:35:16,564 - api_logger - WARNING - [emitidos] Solicitud rechazada por el SAT: {'cod_estatus': '5002', 'id_solicitud': 'SOL-001'}
2026-04-23 04:35:16,567 - api_logger - INFO - [GetCFDIWebServices] Sin paquetes disponibles para emitidos
2026-04-23 04:35:16,568 - api_logger - ERROR - [GetCFDIWebServices] Error en _run_descarga [emitidos]: timeout
2026-04-23 04:35:16,569 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=1
2026-04-23 04:35:16,571 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=1
2026-04-23 04:35:16,571 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=2
2026-04-23 04:35:16,571 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=3
2026-04-23 04:35:16,572 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=4 intento=1
2026-04-23 04:35:16,574 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=5 intento=1
2026-04-23 04:35:16,579 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/licenses/info: Licencia no encontrada.
2026-04-23 04:35:16,581 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/licenses/info: Licencia suspendida.
2026-04-23 04:35:16,584 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/menu_options/get: Rol no encontrado.
2026-04-23 04:35:16,589 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/getall: Sin movimientos.
2026-04-23 04:35:16,593 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/get_selected_rfc: Sin RFC seleccionado.
2026-04-23 04:35:16,596 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/delete/999: Movimiento no encontrado.
2026-04-23 04:35:16,601 - api_logger - DEBUG - [DomainError] http://testserver/v1/movements_banks/upload/bbva: Formato de archivo inválido.
2026-04-23 04:35:16,604 - api_logger - DEBUG - [ConflictError] http://testserver/v1/payment/stripe/checkout: Suscripción activa.
2026-04-23 04:35:16,609 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/getsubscription: Sin suscripción activa.
2026-04-23 04:35:16,612 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/cancelsubscription/sub_INVALID: Suscripción no encontrada.
2026-04-23 04:35:16,617 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:35:16,617 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-23 04:35:16,617 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-04-23 04:35:16,618 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-04-23 04:35:16,618 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:35:16,618 - api_logger - INFO - [run_daily_download] Licencia 5 — jobs creados: [10, 11]
2026-04-23 04:35:16,619 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:35:16,619 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-23 04:35:16,620 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:35:16,620 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-23 04:35:16,621 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:35:16,621 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-23 04:35:16,622 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-16 → 2026-04-22 retry_only=False
2026-04-23 04:35:16,622 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-23 04:35:16,623 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-04-22 → 2026-04-22 retry_only=True
2026-04-23 04:35:16,623 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs reintentados: [10]
2026-04-23 04:35:16,623 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs reintentados: [10]
2026-04-23 04:35:16,623 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs reintentados: [10]
2026-04-23 04:35:16,624 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:35:16,624 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-23 04:35:16,624 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-04-23 04:35:16,624 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-04-23 04:35:16,625 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:35:16,625 - api_logger - ERROR - [run_daily_download] Error en licencia 1: SAT no disponible
2026-04-23 04:35:16,625 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10]
2026-04-23 04:35:16,625 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [11]
2026-04-23 04:35:16,626 - api_logger - INFO - [run_daily_download] Iniciando — licencias=0 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:35:16,732 - api_logger - WARNING - invoice.payment_succeeded sin customer_email, ignorando
2026-04-23 04:35:16,733 - api_logger - WARNING - invoice.payment_failed sin customer_email, ignorando
2026-04-23 04:35:16,734 - api_logger - WARNING - invoice.upcoming sin customer_email, ignorando
2026-04-23 04:35:16,738 - api_logger - WARNING - invoice.payment_action_required sin customer_email, ignorando
2026-04-23 04:35:16,739 - api_logger - WARNING - No se pudo obtener last4 para action_required: error
2026-04-23 04:35:16,746 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: test@example.com
2026-04-23 04:35:16,748 - api_logger - INFO - Pago fallido registrado | user: test@example.com | decline_code: card_declined | last4: 4242
2026-04-23 04:35:16,749 - api_logger - WARNING - Charge fallido: card_declined - None - email: None
2026-04-23 04:35:16,749 - api_logger - ERROR - charge.failed sin customer_email, no se puede registrar
2026-04-23 04:35:16,750 - api_logger - ERROR - PaymentIntent fallido | customer: cus_stripe123 | decline_code: card_declined | message: Your card was declined.
2026-04-23 04:35:16,755 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile: Usuario no encontrado.
2026-04-23 04:35:16,758 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile/update: Usuario no encontrado.
2026-04-23 04:35:16,762 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/users/subusers: No tienes permisos.
2026-04-23 04:35:16,766 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/detail?id=999: Subusuario no encontrado.
2026-04-23 04:35:16,771 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/delete?id_subuser=999: Subusuario no encontrado.
2026-04-23 04:35:16,774 - api_logger - DEBUG - [ConflictError] http://testserver/v1/users/subuser/create: El correo ya está registrado.
2026-04-23 04:38:57,269 - api_logger - INFO - Router cargado: /bankaccount
2026-04-23 04:38:57,309 - api_logger - INFO - Router cargado: /catalogs
2026-04-23 04:38:57,311 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-23 04:38:57,312 - api_logger - INFO - Router cargado: /export
2026-04-23 04:38:57,315 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-23 04:38:57,316 - api_logger - INFO - Router cargado: /licenses
2026-04-23 04:38:57,316 - api_logger - INFO - Router cargado: /menu_options
2026-04-23 04:38:57,323 - api_logger - INFO - Router cargado: /movements_banks
2026-04-23 04:38:57,324 - api_logger - INFO - Router cargado: /payment
2026-04-23 04:38:57,324 - api_logger - INFO - Router cargado: /plans
2026-04-23 04:38:57,325 - api_logger - INFO - Router cargado: 
2026-04-23 04:38:57,326 - api_logger - INFO - Router cargado: /webservices
2026-04-23 04:38:57,328 - api_logger - INFO - Router cargado: /auth
2026-04-23 04:38:57,329 - api_logger - INFO - Router cargado: /users
2026-04-23 04:38:57,330 - api_logger - INFO - Router cargado: /cfdidocuments
2026-04-23 04:38:57,385 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/login: Usuario no encontrado.
2026-04-23 04:38:57,387 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 4.
2026-04-23 04:38:57,389 - api_logger - DEBUG - [LockedError] http://testserver/v1/auth/login: Cuenta bloqueada.
2026-04-23 04:38:57,390 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/auth/login: Tu cuenta aún no ha sido verificada.
2026-04-23 04:38:57,392 - api_logger - DEBUG - [UnavailableForLegalReasonsError] http://testserver/v1/auth/login: Tu cuenta ha sido suspendida.
2026-04-23 04:38:57,394 - api_logger - DEBUG - [ConflictError] http://testserver/v1/auth/register: El correo electrónico nuevo@example.com ya está registrado.
2026-04-23 04:38:57,397 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/recovery/passwd: Cuenta no registrada.
2026-04-23 04:38:57,401 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/reset/passwd: El token para permitir el cambio de contraseña ha expirado.
2026-04-23 04:38:57,404 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/resend-verification?tkn=bad-token: Token no válido
2026-04-23 04:38:57,405 - api_logger - DEBUG - [TooManyRequestsError] http://testserver/v1/auth/resend-verification?tkn=any-token: Has superado el límite de intentos.
2026-04-23 04:38:57,410 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getall: Sin cuentas registradas.
2026-04-23 04:38:57,413 - api_logger - DEBUG - [ConflictError] http://testserver/v1/bankaccount/create: La cuenta ya existe.
2026-04-23 04:38:57,416 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getbyid/999: Cuenta no encontrada.
2026-04-23 04:38:57,419 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/update/999: Cuenta no encontrada.
2026-04-23 04:38:57,421 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/delete/999: Cuenta no encontrada.
2026-04-23 04:38:57,424 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?current_page=0: current_page debe ser un valor positivo.
2026-04-23 04:38:57,426 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?page_size=200: page_size debe estar entre 1 y 100.
2026-04-23 04:38:57,455 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 cfdis=5
2026-04-23 04:38:57,455 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=fiel paquetes=1 cfdis=5
2026-04-23 04:38:57,457 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 cfdis=3
2026-04-23 04:38:57,458 - api_logger - WARNING - [Orchestrator] RFC XAXX010101000 sin credenciales: Sin credenciales
2026-04-23 04:38:57,459 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=2 cfdis=10
2026-04-23 04:38:57,461 - api_logger - ERROR - [Orchestrator] Error en RFC=XAXX010101000: Error SAT
2026-04-23 04:38:57,463 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 cfdis=2
2026-04-23 04:38:57,466 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 esperando turno (semáforo)...
2026-04-23 04:38:57,466 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 iniciando sesión SAT
2026-04-23 04:38:57,466 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 sesión terminada — esperando 120s antes de la siguiente
2026-04-23 04:38:57,467 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=ciec paquetes=0 cfdis=0
2026-04-23 04:38:57,486 - api_logger - ERROR - [CredentialsProvider] Error desencriptando FIEL desde DB: 
2026-04-23 04:38:57,489 - api_logger - ERROR - [CredentialsProvider] Error desencriptando CIEC desde DB: 
2026-04-23 04:38:57,495 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/create: El RFC ya está registrado.
2026-04-23 04:38:57,497 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/fiscalcustomer/create: No autorizado.
2026-04-23 04:38:57,502 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/update/999: RFC no encontrado.
2026-04-23 04:38:57,507 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/list/byid/999: RFC no encontrado.
2026-04-23 04:38:57,511 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/setselected/999: RFC no encontrado.
2026-04-23 04:38:57,514 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/getselected: Sin RFC seleccionado.
2026-04-23 04:39:06,554 - api_logger - ERROR - [GetCFDIWebServices] Error crítico en execute: fallo crítico
2026-04-23 04:39:06,556 - api_logger - WARNING - [emitidos] Solicitud rechazada por el SAT: {'cod_estatus': '5002', 'id_solicitud': 'SOL-001'}
2026-04-23 04:39:06,559 - api_logger - INFO - [GetCFDIWebServices] Sin paquetes disponibles para emitidos
2026-04-23 04:39:06,560 - api_logger - ERROR - [GetCFDIWebServices] Error en _run_descarga [emitidos]: timeout
2026-04-23 04:39:06,561 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=1
2026-04-23 04:39:06,562 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=1
2026-04-23 04:39:06,563 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=2
2026-04-23 04:39:06,563 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=3
2026-04-23 04:39:06,564 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=4 intento=1
2026-04-23 04:39:06,565 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=5 intento=1
2026-04-23 04:39:06,571 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/licenses/info: Licencia no encontrada.
2026-04-23 04:39:06,573 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/licenses/info: Licencia suspendida.
2026-04-23 04:39:06,577 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/menu_options/get: Rol no encontrado.
2026-04-23 04:39:06,582 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/getall: Sin movimientos.
2026-04-23 04:39:06,585 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/get_selected_rfc: Sin RFC seleccionado.
2026-04-23 04:39:06,589 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/delete/999: Movimiento no encontrado.
2026-04-23 04:39:06,594 - api_logger - DEBUG - [DomainError] http://testserver/v1/movements_banks/upload/bbva: Formato de archivo inválido.
2026-04-23 04:39:06,598 - api_logger - DEBUG - [ConflictError] http://testserver/v1/payment/stripe/checkout: Suscripción activa.
2026-04-23 04:39:06,602 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/getsubscription: Sin suscripción activa.
2026-04-23 04:39:06,606 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/cancelsubscription/sub_INVALID: Suscripción no encontrada.
2026-04-23 04:39:06,610 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:39:06,610 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-23 04:39:06,610 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-04-23 04:39:06,610 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-04-23 04:39:06,611 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:39:06,611 - api_logger - INFO - [run_daily_download] Licencia 5 — jobs creados: [10, 11]
2026-04-23 04:39:06,612 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:39:06,612 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-23 04:39:06,613 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:39:06,613 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-23 04:39:06,614 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:39:06,614 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-23 04:39:06,615 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-16 → 2026-04-22 retry_only=False
2026-04-23 04:39:06,615 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-23 04:39:06,616 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-04-22 → 2026-04-22 retry_only=True
2026-04-23 04:39:06,616 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs reintentados: [10]
2026-04-23 04:39:06,616 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs reintentados: [10]
2026-04-23 04:39:06,616 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs reintentados: [10]
2026-04-23 04:39:06,617 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:39:06,617 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-23 04:39:06,617 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-04-23 04:39:06,617 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-04-23 04:39:06,618 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:39:06,618 - api_logger - ERROR - [run_daily_download] Error en licencia 1: SAT no disponible
2026-04-23 04:39:06,618 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10]
2026-04-23 04:39:06,618 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [11]
2026-04-23 04:39:06,619 - api_logger - INFO - [run_daily_download] Iniciando — licencias=0 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:39:06,719 - api_logger - WARNING - invoice.payment_succeeded sin customer_email, ignorando
2026-04-23 04:39:06,720 - api_logger - WARNING - invoice.payment_failed sin customer_email, ignorando
2026-04-23 04:39:06,721 - api_logger - WARNING - invoice.upcoming sin customer_email, ignorando
2026-04-23 04:39:06,725 - api_logger - WARNING - invoice.payment_action_required sin customer_email, ignorando
2026-04-23 04:39:06,726 - api_logger - WARNING - No se pudo obtener last4 para action_required: error
2026-04-23 04:39:06,734 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: test@example.com
2026-04-23 04:39:06,736 - api_logger - INFO - Pago fallido registrado | user: test@example.com | decline_code: card_declined | last4: 4242
2026-04-23 04:39:06,737 - api_logger - WARNING - Charge fallido: card_declined - None - email: None
2026-04-23 04:39:06,737 - api_logger - ERROR - charge.failed sin customer_email, no se puede registrar
2026-04-23 04:39:06,738 - api_logger - ERROR - PaymentIntent fallido | customer: cus_stripe123 | decline_code: card_declined | message: Your card was declined.
2026-04-23 04:39:06,742 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile: Usuario no encontrado.
2026-04-23 04:39:06,747 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile/update: Usuario no encontrado.
2026-04-23 04:39:06,750 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/users/subusers: No tienes permisos.
2026-04-23 04:39:06,754 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/detail?id=999: Subusuario no encontrado.
2026-04-23 04:39:06,760 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/delete?id_subuser=999: Subusuario no encontrado.
2026-04-23 04:39:06,763 - api_logger - DEBUG - [ConflictError] http://testserver/v1/users/subuser/create: El correo ya está registrado.
2026-04-23 04:48:04,050 - api_logger - INFO - Router cargado: /bankaccount
2026-04-23 04:48:04,083 - api_logger - INFO - Router cargado: /catalogs
2026-04-23 04:48:04,085 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-23 04:48:04,086 - api_logger - INFO - Router cargado: /export
2026-04-23 04:48:04,090 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-23 04:48:04,090 - api_logger - INFO - Router cargado: /licenses
2026-04-23 04:48:04,090 - api_logger - INFO - Router cargado: /menu_options
2026-04-23 04:48:04,097 - api_logger - INFO - Router cargado: /movements_banks
2026-04-23 04:48:04,098 - api_logger - INFO - Router cargado: /payment
2026-04-23 04:48:04,098 - api_logger - INFO - Router cargado: /plans
2026-04-23 04:48:04,099 - api_logger - INFO - Router cargado: 
2026-04-23 04:48:04,101 - api_logger - INFO - Router cargado: /webservices
2026-04-23 04:48:04,102 - api_logger - INFO - Router cargado: /auth
2026-04-23 04:48:04,103 - api_logger - INFO - Router cargado: /users
2026-04-23 04:48:04,104 - api_logger - INFO - Router cargado: /cfdidocuments
2026-04-23 04:48:04,208 - api_logger - ERROR - [CredentialsProvider] Error desencriptando FIEL desde DB: 
2026-04-23 04:48:04,211 - api_logger - ERROR - [CredentialsProvider] Error desencriptando CIEC desde DB: 
2026-04-23 04:48:09,141 - api_logger - INFO - Router cargado: /bankaccount
2026-04-23 04:48:09,182 - api_logger - INFO - Router cargado: /catalogs
2026-04-23 04:48:09,185 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-23 04:48:09,186 - api_logger - INFO - Router cargado: /export
2026-04-23 04:48:09,189 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-23 04:48:09,189 - api_logger - INFO - Router cargado: /licenses
2026-04-23 04:48:09,190 - api_logger - INFO - Router cargado: /menu_options
2026-04-23 04:48:09,197 - api_logger - INFO - Router cargado: /movements_banks
2026-04-23 04:48:09,198 - api_logger - INFO - Router cargado: /payment
2026-04-23 04:48:09,198 - api_logger - INFO - Router cargado: /plans
2026-04-23 04:48:09,199 - api_logger - INFO - Router cargado: 
2026-04-23 04:48:09,200 - api_logger - INFO - Router cargado: /webservices
2026-04-23 04:48:09,201 - api_logger - INFO - Router cargado: /auth
2026-04-23 04:48:09,203 - api_logger - INFO - Router cargado: /users
2026-04-23 04:48:09,203 - api_logger - INFO - Router cargado: /cfdidocuments
2026-04-23 04:48:09,281 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/login: Usuario no encontrado.
2026-04-23 04:48:09,282 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 4.
2026-04-23 04:48:09,284 - api_logger - DEBUG - [LockedError] http://testserver/v1/auth/login: Cuenta bloqueada.
2026-04-23 04:48:09,285 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/auth/login: Tu cuenta aún no ha sido verificada.
2026-04-23 04:48:09,287 - api_logger - DEBUG - [UnavailableForLegalReasonsError] http://testserver/v1/auth/login: Tu cuenta ha sido suspendida.
2026-04-23 04:48:09,290 - api_logger - DEBUG - [ConflictError] http://testserver/v1/auth/register: El correo electrónico nuevo@example.com ya está registrado.
2026-04-23 04:48:09,292 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/recovery/passwd: Cuenta no registrada.
2026-04-23 04:48:09,296 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/reset/passwd: El token para permitir el cambio de contraseña ha expirado.
2026-04-23 04:48:09,299 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/resend-verification?tkn=bad-token: Token no válido
2026-04-23 04:48:09,300 - api_logger - DEBUG - [TooManyRequestsError] http://testserver/v1/auth/resend-verification?tkn=any-token: Has superado el límite de intentos.
2026-04-23 04:48:09,304 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getall: Sin cuentas registradas.
2026-04-23 04:48:09,306 - api_logger - DEBUG - [ConflictError] http://testserver/v1/bankaccount/create: La cuenta ya existe.
2026-04-23 04:48:09,309 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getbyid/999: Cuenta no encontrada.
2026-04-23 04:48:09,312 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/update/999: Cuenta no encontrada.
2026-04-23 04:48:09,315 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/delete/999: Cuenta no encontrada.
2026-04-23 04:48:09,318 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?current_page=0: current_page debe ser un valor positivo.
2026-04-23 04:48:09,319 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?page_size=200: page_size debe estar entre 1 y 100.
2026-04-23 04:48:09,350 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 cfdis=5
2026-04-23 04:48:09,350 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=fiel paquetes=1 cfdis=5
2026-04-23 04:48:09,352 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 cfdis=3
2026-04-23 04:48:09,353 - api_logger - WARNING - [Orchestrator] RFC XAXX010101000 sin credenciales: Sin credenciales
2026-04-23 04:48:09,354 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=2 cfdis=10
2026-04-23 04:48:09,356 - api_logger - ERROR - [Orchestrator] Error en RFC=XAXX010101000: Error SAT
2026-04-23 04:48:09,358 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 cfdis=2
2026-04-23 04:48:09,361 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 esperando turno (semáforo)...
2026-04-23 04:48:09,361 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 iniciando sesión SAT
2026-04-23 04:48:09,362 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 sesión terminada — esperando 120s antes de la siguiente
2026-04-23 04:48:09,362 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=ciec paquetes=0 cfdis=0
2026-04-23 04:48:09,382 - api_logger - ERROR - [CredentialsProvider] Error desencriptando FIEL desde DB: 
2026-04-23 04:48:09,384 - api_logger - ERROR - [CredentialsProvider] Error desencriptando CIEC desde DB: 
2026-04-23 04:48:09,390 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/create: El RFC ya está registrado.
2026-04-23 04:48:09,391 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/fiscalcustomer/create: No autorizado.
2026-04-23 04:48:09,396 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/update/999: RFC no encontrado.
2026-04-23 04:48:09,401 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/list/byid/999: RFC no encontrado.
2026-04-23 04:48:09,406 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/setselected/999: RFC no encontrado.
2026-04-23 04:48:09,409 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/getselected: Sin RFC seleccionado.
2026-04-23 04:48:18,449 - api_logger - ERROR - [GetCFDIWebServices] Error crítico en execute: fallo crítico
2026-04-23 04:48:18,452 - api_logger - WARNING - [emitidos] Solicitud rechazada por el SAT: {'cod_estatus': '5002', 'id_solicitud': 'SOL-001'}
2026-04-23 04:48:18,454 - api_logger - INFO - [GetCFDIWebServices] Sin paquetes disponibles para emitidos
2026-04-23 04:48:18,456 - api_logger - ERROR - [GetCFDIWebServices] Error en _run_descarga [emitidos]: timeout
2026-04-23 04:48:18,457 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=1
2026-04-23 04:48:18,458 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=1
2026-04-23 04:48:18,458 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=2
2026-04-23 04:48:18,458 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=3
2026-04-23 04:48:18,460 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=4 intento=1
2026-04-23 04:48:18,461 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=5 intento=1
2026-04-23 04:48:18,466 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/licenses/info: Licencia no encontrada.
2026-04-23 04:48:18,468 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/licenses/info: Licencia suspendida.
2026-04-23 04:48:18,472 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/menu_options/get: Rol no encontrado.
2026-04-23 04:48:18,477 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/getall: Sin movimientos.
2026-04-23 04:48:18,480 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/get_selected_rfc: Sin RFC seleccionado.
2026-04-23 04:48:18,484 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/delete/999: Movimiento no encontrado.
2026-04-23 04:48:18,488 - api_logger - DEBUG - [DomainError] http://testserver/v1/movements_banks/upload/bbva: Formato de archivo inválido.
2026-04-23 04:48:18,492 - api_logger - DEBUG - [ConflictError] http://testserver/v1/payment/stripe/checkout: Suscripción activa.
2026-04-23 04:48:18,497 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/getsubscription: Sin suscripción activa.
2026-04-23 04:48:18,501 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/cancelsubscription/sub_INVALID: Suscripción no encontrada.
2026-04-23 04:48:18,506 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:48:18,506 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-23 04:48:18,506 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-04-23 04:48:18,506 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-04-23 04:48:18,507 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:48:18,507 - api_logger - INFO - [run_daily_download] Licencia 5 — jobs creados: [10, 11]
2026-04-23 04:48:18,508 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:48:18,508 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-23 04:48:18,509 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:48:18,509 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-23 04:48:18,509 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:48:18,510 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-23 04:48:18,510 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-16 → 2026-04-22 retry_only=False
2026-04-23 04:48:18,510 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-23 04:48:18,511 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-04-22 → 2026-04-22 retry_only=True
2026-04-23 04:48:18,511 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs reintentados: [10]
2026-04-23 04:48:18,511 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs reintentados: [10]
2026-04-23 04:48:18,512 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs reintentados: [10]
2026-04-23 04:48:18,512 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:48:18,512 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-23 04:48:18,512 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-04-23 04:48:18,512 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-04-23 04:48:18,513 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:48:18,513 - api_logger - ERROR - [run_daily_download] Error en licencia 1: SAT no disponible
2026-04-23 04:48:18,513 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10]
2026-04-23 04:48:18,513 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [11]
2026-04-23 04:48:18,514 - api_logger - INFO - [run_daily_download] Iniciando — licencias=0 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:48:18,602 - api_logger - WARNING - invoice.payment_succeeded sin customer_email, ignorando
2026-04-23 04:48:18,603 - api_logger - WARNING - invoice.payment_failed sin customer_email, ignorando
2026-04-23 04:48:18,604 - api_logger - WARNING - invoice.upcoming sin customer_email, ignorando
2026-04-23 04:48:18,608 - api_logger - WARNING - invoice.payment_action_required sin customer_email, ignorando
2026-04-23 04:48:18,609 - api_logger - WARNING - No se pudo obtener last4 para action_required: error
2026-04-23 04:48:18,617 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: test@example.com
2026-04-23 04:48:18,619 - api_logger - INFO - Pago fallido registrado | user: test@example.com | decline_code: card_declined | last4: 4242
2026-04-23 04:48:18,620 - api_logger - WARNING - Charge fallido: card_declined - None - email: None
2026-04-23 04:48:18,620 - api_logger - ERROR - charge.failed sin customer_email, no se puede registrar
2026-04-23 04:48:18,621 - api_logger - ERROR - PaymentIntent fallido | customer: cus_stripe123 | decline_code: card_declined | message: Your card was declined.
2026-04-23 04:48:18,626 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile: Usuario no encontrado.
2026-04-23 04:48:18,630 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile/update: Usuario no encontrado.
2026-04-23 04:48:18,633 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/users/subusers: No tienes permisos.
2026-04-23 04:48:18,637 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/detail?id=999: Subusuario no encontrado.
2026-04-23 04:48:18,643 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/delete?id_subuser=999: Subusuario no encontrado.
2026-04-23 04:48:18,646 - api_logger - DEBUG - [ConflictError] http://testserver/v1/users/subuser/create: El correo ya está registrado.
2026-04-23 04:53:00,054 - api_logger - INFO - Router cargado: /bankaccount
2026-04-23 04:53:00,095 - api_logger - INFO - Router cargado: /catalogs
2026-04-23 04:53:00,098 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-23 04:53:00,099 - api_logger - INFO - Router cargado: /export
2026-04-23 04:53:00,102 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-23 04:53:00,102 - api_logger - INFO - Router cargado: /licenses
2026-04-23 04:53:00,103 - api_logger - INFO - Router cargado: /menu_options
2026-04-23 04:53:00,110 - api_logger - INFO - Router cargado: /movements_banks
2026-04-23 04:53:00,111 - api_logger - INFO - Router cargado: /payment
2026-04-23 04:53:00,111 - api_logger - INFO - Router cargado: /plans
2026-04-23 04:53:00,112 - api_logger - INFO - Router cargado: 
2026-04-23 04:53:00,113 - api_logger - INFO - Router cargado: /webservices
2026-04-23 04:53:00,115 - api_logger - INFO - Router cargado: /auth
2026-04-23 04:53:00,116 - api_logger - INFO - Router cargado: /users
2026-04-23 04:53:00,117 - api_logger - INFO - Router cargado: /cfdidocuments
2026-04-23 04:53:05,272 - api_logger - INFO - Router cargado: /bankaccount
2026-04-23 04:53:05,313 - api_logger - INFO - Router cargado: /catalogs
2026-04-23 04:53:05,315 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-23 04:53:05,316 - api_logger - INFO - Router cargado: /export
2026-04-23 04:53:05,320 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-23 04:53:05,320 - api_logger - INFO - Router cargado: /licenses
2026-04-23 04:53:05,320 - api_logger - INFO - Router cargado: /menu_options
2026-04-23 04:53:05,328 - api_logger - INFO - Router cargado: /movements_banks
2026-04-23 04:53:05,329 - api_logger - INFO - Router cargado: /payment
2026-04-23 04:53:05,329 - api_logger - INFO - Router cargado: /plans
2026-04-23 04:53:05,330 - api_logger - INFO - Router cargado: 
2026-04-23 04:53:05,331 - api_logger - INFO - Router cargado: /webservices
2026-04-23 04:53:05,333 - api_logger - INFO - Router cargado: /auth
2026-04-23 04:53:05,334 - api_logger - INFO - Router cargado: /users
2026-04-23 04:53:05,335 - api_logger - INFO - Router cargado: /cfdidocuments
2026-04-23 04:57:14,701 - api_logger - INFO - Router cargado: /bankaccount
2026-04-23 04:57:14,732 - api_logger - INFO - Router cargado: /catalogs
2026-04-23 04:57:14,735 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-23 04:57:14,736 - api_logger - INFO - Router cargado: /export
2026-04-23 04:57:14,739 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-23 04:57:14,739 - api_logger - INFO - Router cargado: /licenses
2026-04-23 04:57:14,740 - api_logger - INFO - Router cargado: /menu_options
2026-04-23 04:57:14,747 - api_logger - INFO - Router cargado: /movements_banks
2026-04-23 04:57:14,748 - api_logger - INFO - Router cargado: /payment
2026-04-23 04:57:14,748 - api_logger - INFO - Router cargado: /plans
2026-04-23 04:57:14,749 - api_logger - INFO - Router cargado: 
2026-04-23 04:57:14,750 - api_logger - INFO - Router cargado: /webservices
2026-04-23 04:57:14,751 - api_logger - INFO - Router cargado: /auth
2026-04-23 04:57:14,753 - api_logger - INFO - Router cargado: /users
2026-04-23 04:57:14,753 - api_logger - INFO - Router cargado: /cfdidocuments
2026-04-23 04:57:14,838 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/create: El RFC ya está registrado.
2026-04-23 04:57:14,840 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/fiscalcustomer/create: No autorizado.
2026-04-23 04:57:14,844 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/update/999: RFC no encontrado.
2026-04-23 04:57:14,849 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/list/byid/999: RFC no encontrado.
2026-04-23 04:57:14,854 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/setselected/999: RFC no encontrado.
2026-04-23 04:57:14,857 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/getselected: Sin RFC seleccionado.
2026-04-23 04:57:14,861 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/savecerts: error al guardar certificados FIEL.
2026-04-23 04:57:14,868 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/saveciec: error al guardar contraseña CIEC.
2026-04-23 04:57:14,870 - api_logger - ERROR - Error inesperado en http://testserver/v1/fiscalcustomer/saveciec: 'NoneType' object has no attribute 'encode'
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/fiscal_customers.py", line 70, in saveciec
    srv = await srvfc.saveciec(data_rfc_customer)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/services/FiscalCustomersService.py", line 136, in saveciec
    data_rfc_customer.password.encode('utf-8')
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'encode'
2026-04-23 04:57:30,028 - api_logger - INFO - Router cargado: /bankaccount
2026-04-23 04:57:30,069 - api_logger - INFO - Router cargado: /catalogs
2026-04-23 04:57:30,071 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-23 04:57:30,072 - api_logger - INFO - Router cargado: /export
2026-04-23 04:57:30,075 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-23 04:57:30,076 - api_logger - INFO - Router cargado: /licenses
2026-04-23 04:57:30,076 - api_logger - INFO - Router cargado: /menu_options
2026-04-23 04:57:30,083 - api_logger - INFO - Router cargado: /movements_banks
2026-04-23 04:57:30,084 - api_logger - INFO - Router cargado: /payment
2026-04-23 04:57:30,084 - api_logger - INFO - Router cargado: /plans
2026-04-23 04:57:30,085 - api_logger - INFO - Router cargado: 
2026-04-23 04:57:30,086 - api_logger - INFO - Router cargado: /webservices
2026-04-23 04:57:30,087 - api_logger - INFO - Router cargado: /auth
2026-04-23 04:57:30,089 - api_logger - INFO - Router cargado: /users
2026-04-23 04:57:30,089 - api_logger - INFO - Router cargado: /cfdidocuments
2026-04-23 04:57:30,122 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/create: El RFC ya está registrado.
2026-04-23 04:57:30,124 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/fiscalcustomer/create: No autorizado.
2026-04-23 04:57:30,129 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/update/999: RFC no encontrado.
2026-04-23 04:57:30,134 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/list/byid/999: RFC no encontrado.
2026-04-23 04:57:30,139 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/setselected/999: RFC no encontrado.
2026-04-23 04:57:30,142 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/getselected: Sin RFC seleccionado.
2026-04-23 04:57:30,146 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/savecerts: error al guardar certificados FIEL.
2026-04-23 04:57:30,152 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/saveciec: error al guardar contraseña CIEC.
2026-04-23 04:57:39,342 - api_logger - INFO - Router cargado: /bankaccount
2026-04-23 04:57:39,383 - api_logger - INFO - Router cargado: /catalogs
2026-04-23 04:57:39,385 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-23 04:57:39,386 - api_logger - INFO - Router cargado: /export
2026-04-23 04:57:39,390 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-23 04:57:39,390 - api_logger - INFO - Router cargado: /licenses
2026-04-23 04:57:39,390 - api_logger - INFO - Router cargado: /menu_options
2026-04-23 04:57:39,398 - api_logger - INFO - Router cargado: /movements_banks
2026-04-23 04:57:39,398 - api_logger - INFO - Router cargado: /payment
2026-04-23 04:57:39,399 - api_logger - INFO - Router cargado: /plans
2026-04-23 04:57:39,400 - api_logger - INFO - Router cargado: 
2026-04-23 04:57:39,401 - api_logger - INFO - Router cargado: /webservices
2026-04-23 04:57:39,402 - api_logger - INFO - Router cargado: /auth
2026-04-23 04:57:39,404 - api_logger - INFO - Router cargado: /users
2026-04-23 04:57:39,404 - api_logger - INFO - Router cargado: /cfdidocuments
2026-04-23 04:57:39,471 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/login: Usuario no encontrado.
2026-04-23 04:57:39,473 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 4.
2026-04-23 04:57:39,474 - api_logger - DEBUG - [LockedError] http://testserver/v1/auth/login: Cuenta bloqueada.
2026-04-23 04:57:39,476 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/auth/login: Tu cuenta aún no ha sido verificada.
2026-04-23 04:57:39,477 - api_logger - DEBUG - [UnavailableForLegalReasonsError] http://testserver/v1/auth/login: Tu cuenta ha sido suspendida.
2026-04-23 04:57:39,480 - api_logger - DEBUG - [ConflictError] http://testserver/v1/auth/register: El correo electrónico nuevo@example.com ya está registrado.
2026-04-23 04:57:39,482 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/recovery/passwd: Cuenta no registrada.
2026-04-23 04:57:39,486 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/reset/passwd: El token para permitir el cambio de contraseña ha expirado.
2026-04-23 04:57:39,489 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/resend-verification?tkn=bad-token: Token no válido
2026-04-23 04:57:39,490 - api_logger - DEBUG - [TooManyRequestsError] http://testserver/v1/auth/resend-verification?tkn=any-token: Has superado el límite de intentos.
2026-04-23 04:57:39,495 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getall: Sin cuentas registradas.
2026-04-23 04:57:39,498 - api_logger - DEBUG - [ConflictError] http://testserver/v1/bankaccount/create: La cuenta ya existe.
2026-04-23 04:57:39,501 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getbyid/999: Cuenta no encontrada.
2026-04-23 04:57:39,504 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/update/999: Cuenta no encontrada.
2026-04-23 04:57:39,506 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/delete/999: Cuenta no encontrada.
2026-04-23 04:57:39,509 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?current_page=0: current_page debe ser un valor positivo.
2026-04-23 04:57:39,511 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?page_size=200: page_size debe estar entre 1 y 100.
2026-04-23 04:57:39,541 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 cfdis=5
2026-04-23 04:57:39,541 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=fiel paquetes=1 cfdis=5
2026-04-23 04:57:39,543 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 cfdis=3
2026-04-23 04:57:39,544 - api_logger - WARNING - [Orchestrator] RFC XAXX010101000 sin credenciales: Sin credenciales
2026-04-23 04:57:39,545 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=2 cfdis=10
2026-04-23 04:57:39,547 - api_logger - ERROR - [Orchestrator] Error en RFC=XAXX010101000: Error SAT
2026-04-23 04:57:39,549 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 cfdis=2
2026-04-23 04:57:39,552 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 esperando turno (semáforo)...
2026-04-23 04:57:39,552 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 iniciando sesión SAT
2026-04-23 04:57:39,553 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 sesión terminada — esperando 120s antes de la siguiente
2026-04-23 04:57:39,553 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=ciec paquetes=0 cfdis=0
2026-04-23 04:57:39,571 - api_logger - ERROR - [CredentialsProvider] Error desencriptando FIEL desde DB: 
2026-04-23 04:57:39,573 - api_logger - ERROR - [CredentialsProvider] Error desencriptando CIEC desde DB: 
2026-04-23 04:57:39,578 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/create: El RFC ya está registrado.
2026-04-23 04:57:39,580 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/fiscalcustomer/create: No autorizado.
2026-04-23 04:57:39,584 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/update/999: RFC no encontrado.
2026-04-23 04:57:39,589 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/list/byid/999: RFC no encontrado.
2026-04-23 04:57:39,593 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/setselected/999: RFC no encontrado.
2026-04-23 04:57:39,596 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/getselected: Sin RFC seleccionado.
2026-04-23 04:57:39,600 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/savecerts: error al guardar certificados FIEL.
2026-04-23 04:57:39,606 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/saveciec: error al guardar contraseña CIEC.
2026-04-23 04:57:48,666 - api_logger - ERROR - [GetCFDIWebServices] Error crítico en execute: fallo crítico
2026-04-23 04:57:48,668 - api_logger - WARNING - [emitidos] Solicitud rechazada por el SAT: {'cod_estatus': '5002', 'id_solicitud': 'SOL-001'}
2026-04-23 04:57:48,669 - api_logger - INFO - [GetCFDIWebServices] Sin paquetes disponibles para emitidos
2026-04-23 04:57:48,670 - api_logger - ERROR - [GetCFDIWebServices] Error en _run_descarga [emitidos]: timeout
2026-04-23 04:57:48,672 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=1
2026-04-23 04:57:48,673 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=1
2026-04-23 04:57:48,673 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=2
2026-04-23 04:57:48,673 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=3
2026-04-23 04:57:48,674 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=4 intento=1
2026-04-23 04:57:48,676 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=5 intento=1
2026-04-23 04:57:48,681 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/licenses/info: Licencia no encontrada.
2026-04-23 04:57:48,683 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/licenses/info: Licencia suspendida.
2026-04-23 04:57:48,688 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/menu_options/get: Rol no encontrado.
2026-04-23 04:57:48,694 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/getall: Sin movimientos.
2026-04-23 04:57:48,697 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/get_selected_rfc: Sin RFC seleccionado.
2026-04-23 04:57:48,782 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/delete/999: Movimiento no encontrado.
2026-04-23 04:57:48,787 - api_logger - DEBUG - [DomainError] http://testserver/v1/movements_banks/upload/bbva: Formato de archivo inválido.
2026-04-23 04:57:48,790 - api_logger - DEBUG - [ConflictError] http://testserver/v1/payment/stripe/checkout: Suscripción activa.
2026-04-23 04:57:48,795 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/getsubscription: Sin suscripción activa.
2026-04-23 04:57:48,799 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/cancelsubscription/sub_INVALID: Suscripción no encontrada.
2026-04-23 04:57:48,804 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:57:48,804 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-23 04:57:48,804 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-04-23 04:57:48,804 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-04-23 04:57:48,805 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:57:48,805 - api_logger - INFO - [run_daily_download] Licencia 5 — jobs creados: [10, 11]
2026-04-23 04:57:48,805 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:57:48,805 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-23 04:57:48,806 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:57:48,807 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-23 04:57:48,807 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:57:48,807 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-23 04:57:48,808 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-04-16 → 2026-04-22 retry_only=False
2026-04-23 04:57:48,808 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-23 04:57:48,809 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-04-22 → 2026-04-22 retry_only=True
2026-04-23 04:57:48,809 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs reintentados: [10]
2026-04-23 04:57:48,809 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs reintentados: [10]
2026-04-23 04:57:48,809 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs reintentados: [10]
2026-04-23 04:57:48,810 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:57:48,810 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-04-23 04:57:48,810 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-04-23 04:57:48,810 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-04-23 04:57:48,811 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:57:48,811 - api_logger - ERROR - [run_daily_download] Error en licencia 1: SAT no disponible
2026-04-23 04:57:48,811 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10]
2026-04-23 04:57:48,811 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [11]
2026-04-23 04:57:48,812 - api_logger - INFO - [run_daily_download] Iniciando — licencias=0 rango=2026-04-22 → 2026-04-22 retry_only=False
2026-04-23 04:57:48,821 - api_logger - WARNING - invoice.payment_succeeded sin customer_email, ignorando
2026-04-23 04:57:48,822 - api_logger - WARNING - invoice.payment_failed sin customer_email, ignorando
2026-04-23 04:57:48,824 - api_logger - WARNING - invoice.upcoming sin customer_email, ignorando
2026-04-23 04:57:48,828 - api_logger - WARNING - invoice.payment_action_required sin customer_email, ignorando
2026-04-23 04:57:48,829 - api_logger - WARNING - No se pudo obtener last4 para action_required: error
2026-04-23 04:57:48,837 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: test@example.com
2026-04-23 04:57:48,837 - api_logger - INFO - Pago fallido registrado | user: test@example.com | decline_code: card_declined | last4: 4242
2026-04-23 04:57:48,838 - api_logger - WARNING - Charge fallido: card_declined - None - email: None
2026-04-23 04:57:48,838 - api_logger - ERROR - charge.failed sin customer_email, no se puede registrar
2026-04-23 04:57:48,839 - api_logger - ERROR - PaymentIntent fallido | customer: cus_stripe123 | decline_code: card_declined | message: Your card was declined.
2026-04-23 04:57:48,843 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile: Usuario no encontrado.
2026-04-23 04:57:48,847 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile/update: Usuario no encontrado.
2026-04-23 04:57:48,851 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/users/subusers: No tienes permisos.
2026-04-23 04:57:48,854 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/detail?id=999: Subusuario no encontrado.
2026-04-23 04:57:48,860 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/delete?id_subuser=999: Subusuario no encontrado.
2026-04-23 04:57:48,864 - api_logger - DEBUG - [ConflictError] http://testserver/v1/users/subuser/create: El correo ya está registrado.
2026-04-23 05:21:03,268 - api_logger - INFO - Router cargado: /bankaccount
2026-04-23 05:21:03,300 - api_logger - INFO - Router cargado: /catalogs
2026-04-23 05:21:03,303 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-23 05:21:03,304 - api_logger - INFO - Router cargado: /export
2026-04-23 05:21:03,304 - api_logger - INFO - Router cargado: /licenses
2026-04-23 05:21:03,304 - api_logger - INFO - Router cargado: /menu_options
2026-04-23 05:21:03,311 - api_logger - INFO - Router cargado: /movements_banks
2026-04-23 05:21:03,312 - api_logger - INFO - Router cargado: /payment
2026-04-23 05:21:03,312 - api_logger - INFO - Router cargado: /plans
2026-04-23 05:21:03,313 - api_logger - INFO - Router cargado: 
2026-04-23 05:21:03,314 - api_logger - INFO - Router cargado: /webservices
2026-04-23 05:21:03,316 - api_logger - INFO - Router cargado: /auth
2026-04-23 05:21:03,317 - api_logger - INFO - Router cargado: /users
2026-04-23 05:21:03,321 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-23 05:21:03,379 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getall: Sin cuentas registradas.
2026-04-23 05:21:03,382 - api_logger - DEBUG - [ConflictError] http://testserver/v1/bankaccount/create: La cuenta ya existe.
2026-04-23 05:21:03,385 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getbyid/999: Cuenta no encontrada.
2026-04-23 05:21:03,388 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/update/999: Cuenta no encontrada.
2026-04-23 05:21:03,392 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/delete/999: Cuenta no encontrada.
2026-04-23 05:25:42,337 - api_logger - INFO - Router cargado: /bankaccount
2026-04-23 05:25:42,368 - api_logger - INFO - Router cargado: /catalogs
2026-04-23 05:25:42,371 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-23 05:25:42,372 - api_logger - INFO - Router cargado: /export
2026-04-23 05:25:42,372 - api_logger - INFO - Router cargado: /licenses
2026-04-23 05:25:42,372 - api_logger - INFO - Router cargado: /menu_options
2026-04-23 05:25:42,379 - api_logger - INFO - Router cargado: /movements_banks
2026-04-23 05:25:42,380 - api_logger - INFO - Router cargado: /payment
2026-04-23 05:25:42,380 - api_logger - INFO - Router cargado: /plans
2026-04-23 05:25:42,381 - api_logger - INFO - Router cargado: 
2026-04-23 05:25:42,383 - api_logger - INFO - Router cargado: /webservices
2026-04-23 05:25:42,384 - api_logger - INFO - Router cargado: /auth
2026-04-23 05:25:42,385 - api_logger - INFO - Router cargado: /users
2026-04-23 05:25:42,389 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-23 05:25:43,200 - api_logger - INFO - Router cargado: /bankaccount
2026-04-23 05:25:43,232 - api_logger - INFO - Router cargado: /catalogs
2026-04-23 05:25:43,234 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-23 05:25:43,235 - api_logger - INFO - Router cargado: /export
2026-04-23 05:25:43,235 - api_logger - INFO - Router cargado: /licenses
2026-04-23 05:25:43,235 - api_logger - INFO - Router cargado: /menu_options
2026-04-23 05:25:43,243 - api_logger - INFO - Router cargado: /movements_banks
2026-04-23 05:25:43,243 - api_logger - INFO - Router cargado: /payment
2026-04-23 05:25:43,244 - api_logger - INFO - Router cargado: /plans
2026-04-23 05:25:43,245 - api_logger - INFO - Router cargado: 
2026-04-23 05:25:43,246 - api_logger - INFO - Router cargado: /webservices
2026-04-23 05:25:43,247 - api_logger - INFO - Router cargado: /auth
2026-04-23 05:25:43,249 - api_logger - INFO - Router cargado: /users
2026-04-23 05:25:43,252 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-23 05:25:43,282 - api_logger - INFO - Router cargado: /bankaccount
2026-04-23 05:25:43,309 - api_logger - INFO - Router cargado: /catalogs
2026-04-23 05:25:43,311 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-23 05:25:43,312 - api_logger - INFO - Router cargado: /export
2026-04-23 05:25:43,312 - api_logger - INFO - Router cargado: /licenses
2026-04-23 05:25:43,312 - api_logger - INFO - Router cargado: /menu_options
2026-04-23 05:25:43,319 - api_logger - INFO - Router cargado: /movements_banks
2026-04-23 05:25:43,320 - api_logger - INFO - Router cargado: /payment
2026-04-23 05:25:43,320 - api_logger - INFO - Router cargado: /plans
2026-04-23 05:25:43,321 - api_logger - INFO - Router cargado: 
2026-04-23 05:25:43,322 - api_logger - INFO - Router cargado: /webservices
2026-04-23 05:25:43,323 - api_logger - INFO - Router cargado: /auth
2026-04-23 05:25:43,325 - api_logger - INFO - Router cargado: /users
2026-04-23 05:25:43,329 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-23 05:28:51,253 - api_logger - INFO - Router cargado: /bankaccount
2026-04-23 05:28:51,295 - api_logger - INFO - Router cargado: /catalogs
2026-04-23 05:28:51,298 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-23 05:28:51,299 - api_logger - INFO - Router cargado: /export
2026-04-23 05:28:51,299 - api_logger - INFO - Router cargado: /licenses
2026-04-23 05:28:51,299 - api_logger - INFO - Router cargado: /menu_options
2026-04-23 05:28:51,308 - api_logger - INFO - Router cargado: /movements_banks
2026-04-23 05:28:51,309 - api_logger - INFO - Router cargado: /payment
2026-04-23 05:28:51,309 - api_logger - INFO - Router cargado: /plans
2026-04-23 05:28:51,310 - api_logger - INFO - Router cargado: 
2026-04-23 05:28:51,312 - api_logger - INFO - Router cargado: /webservices
2026-04-23 05:28:51,313 - api_logger - INFO - Router cargado: /auth
2026-04-23 05:28:51,315 - api_logger - INFO - Router cargado: /users
2026-04-23 05:28:51,318 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-23 05:28:51,351 - api_logger - INFO - Router cargado: /bankaccount
2026-04-23 05:28:51,380 - api_logger - INFO - Router cargado: /catalogs
2026-04-23 05:28:51,382 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-23 05:28:51,383 - api_logger - INFO - Router cargado: /export
2026-04-23 05:28:51,383 - api_logger - INFO - Router cargado: /licenses
2026-04-23 05:28:51,383 - api_logger - INFO - Router cargado: /menu_options
2026-04-23 05:28:51,391 - api_logger - INFO - Router cargado: /movements_banks
2026-04-23 05:28:51,392 - api_logger - INFO - Router cargado: /payment
2026-04-23 05:28:51,392 - api_logger - INFO - Router cargado: /plans
2026-04-23 05:28:51,392 - api_logger - INFO - Router cargado: 
2026-04-23 05:28:51,394 - api_logger - INFO - Router cargado: /webservices
2026-04-23 05:28:51,395 - api_logger - INFO - Router cargado: /auth
2026-04-23 05:28:51,397 - api_logger - INFO - Router cargado: /users
2026-04-23 05:28:51,402 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-23 05:28:57,302 - api_logger - INFO - Router cargado: /bankaccount
2026-04-23 05:28:57,336 - api_logger - INFO - Router cargado: /catalogs
2026-04-23 05:28:57,338 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-23 05:28:57,339 - api_logger - INFO - Router cargado: /export
2026-04-23 05:28:57,339 - api_logger - INFO - Router cargado: /licenses
2026-04-23 05:28:57,339 - api_logger - INFO - Router cargado: /menu_options
2026-04-23 05:28:57,347 - api_logger - INFO - Router cargado: /movements_banks
2026-04-23 05:28:57,348 - api_logger - INFO - Router cargado: /payment
2026-04-23 05:28:57,348 - api_logger - INFO - Router cargado: /plans
2026-04-23 05:28:57,349 - api_logger - INFO - Router cargado: 
2026-04-23 05:28:57,351 - api_logger - INFO - Router cargado: /webservices
2026-04-23 05:28:57,352 - api_logger - INFO - Router cargado: /auth
2026-04-23 05:28:57,354 - api_logger - INFO - Router cargado: /users
2026-04-23 05:28:57,357 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-23 05:28:57,380 - api_logger - INFO - Router cargado: /bankaccount
2026-04-23 05:28:57,409 - api_logger - INFO - Router cargado: /catalogs
2026-04-23 05:28:57,412 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-23 05:28:57,412 - api_logger - INFO - Router cargado: /export
2026-04-23 05:28:57,413 - api_logger - INFO - Router cargado: /licenses
2026-04-23 05:28:57,413 - api_logger - INFO - Router cargado: /menu_options
2026-04-23 05:28:57,421 - api_logger - INFO - Router cargado: /movements_banks
2026-04-23 05:28:57,422 - api_logger - INFO - Router cargado: /payment
2026-04-23 05:28:57,422 - api_logger - INFO - Router cargado: /plans
2026-04-23 05:28:57,423 - api_logger - INFO - Router cargado: 
2026-04-23 05:28:57,424 - api_logger - INFO - Router cargado: /webservices
2026-04-23 05:28:57,426 - api_logger - INFO - Router cargado: /auth
2026-04-23 05:28:57,427 - api_logger - INFO - Router cargado: /users
2026-04-23 05:28:57,432 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-24 05:55:13,322 - api_logger - INFO - Router cargado: /catalogs
2026-04-24 05:55:13,325 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-24 05:55:13,327 - api_logger - INFO - Router cargado: /export
2026-04-24 05:55:13,327 - api_logger - INFO - Router cargado: /licenses
2026-04-24 05:55:13,327 - api_logger - INFO - Router cargado: /menu_options
2026-04-24 05:55:13,336 - api_logger - INFO - Router cargado: /movements_banks
2026-04-24 05:55:13,337 - api_logger - INFO - Router cargado: /payment
2026-04-24 05:55:13,337 - api_logger - INFO - Router cargado: /plans
2026-04-24 05:55:13,338 - api_logger - INFO - Router cargado: 
2026-04-24 05:55:13,340 - api_logger - INFO - Router cargado: /webservices
2026-04-24 05:55:13,342 - api_logger - INFO - Router cargado: /auth
2026-04-24 05:55:13,343 - api_logger - INFO - Router cargado: /users
2026-04-24 05:55:13,346 - api_logger - INFO - Router cargado: /bankaccount
2026-04-24 05:55:13,347 - api_logger - INFO - Router cargado: /cfdidocuments
2026-04-24 05:55:13,350 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-24 05:55:13,492 - api_logger - INFO - Router cargado: /catalogs
2026-04-24 05:55:13,499 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-24 05:55:13,500 - api_logger - INFO - Router cargado: /export
2026-04-24 05:55:13,500 - api_logger - INFO - Router cargado: /licenses
2026-04-24 05:55:13,500 - api_logger - INFO - Router cargado: /menu_options
2026-04-24 05:55:13,508 - api_logger - INFO - Router cargado: /movements_banks
2026-04-24 05:55:13,508 - api_logger - INFO - Router cargado: /payment
2026-04-24 05:55:13,509 - api_logger - INFO - Router cargado: /plans
2026-04-24 05:55:13,509 - api_logger - INFO - Router cargado: 
2026-04-24 05:55:13,511 - api_logger - INFO - Router cargado: /webservices
2026-04-24 05:55:13,512 - api_logger - INFO - Router cargado: /auth
2026-04-24 05:55:13,513 - api_logger - INFO - Router cargado: /users
2026-04-24 05:55:13,515 - api_logger - INFO - Router cargado: /bankaccount
2026-04-24 05:55:13,516 - api_logger - INFO - Router cargado: /cfdidocuments
2026-04-24 05:55:13,519 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-24 18:13:00,896 - api_logger - INFO - Router cargado: /catalogs
2026-04-24 18:13:00,899 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-24 18:13:00,900 - api_logger - INFO - Router cargado: /export
2026-04-24 18:13:00,900 - api_logger - INFO - Router cargado: /licenses
2026-04-24 18:13:00,901 - api_logger - INFO - Router cargado: /menu_options
2026-04-24 18:13:00,908 - api_logger - INFO - Router cargado: /movements_banks
2026-04-24 18:13:00,909 - api_logger - INFO - Router cargado: /payment
2026-04-24 18:13:00,909 - api_logger - INFO - Router cargado: /plans
2026-04-24 18:13:00,910 - api_logger - INFO - Router cargado: 
2026-04-24 18:13:00,912 - api_logger - INFO - Router cargado: /webservices
2026-04-24 18:13:00,913 - api_logger - INFO - Router cargado: /auth
2026-04-24 18:13:00,915 - api_logger - INFO - Router cargado: /users
2026-04-24 18:13:00,917 - api_logger - INFO - Router cargado: /bankaccount
2026-04-24 18:13:00,918 - api_logger - INFO - Router cargado: /cfdidocuments
2026-04-24 18:13:00,921 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-24 18:13:01,748 - api_logger - INFO - Router cargado: /catalogs
2026-04-24 18:13:01,751 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-24 18:13:01,752 - api_logger - INFO - Router cargado: /export
2026-04-24 18:13:01,752 - api_logger - INFO - Router cargado: /licenses
2026-04-24 18:13:01,752 - api_logger - INFO - Router cargado: /menu_options
2026-04-24 18:13:01,759 - api_logger - INFO - Router cargado: /movements_banks
2026-04-24 18:13:01,760 - api_logger - INFO - Router cargado: /payment
2026-04-24 18:13:01,760 - api_logger - INFO - Router cargado: /plans
2026-04-24 18:13:01,761 - api_logger - INFO - Router cargado: 
2026-04-24 18:13:01,762 - api_logger - INFO - Router cargado: /webservices
2026-04-24 18:13:01,764 - api_logger - INFO - Router cargado: /auth
2026-04-24 18:13:01,765 - api_logger - INFO - Router cargado: /users
2026-04-24 18:13:01,767 - api_logger - INFO - Router cargado: /bankaccount
2026-04-24 18:13:01,768 - api_logger - INFO - Router cargado: /cfdidocuments
2026-04-24 18:13:01,771 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-24 18:13:01,822 - api_logger - INFO - Router cargado: /catalogs
2026-04-24 18:13:01,824 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-24 18:13:01,825 - api_logger - INFO - Router cargado: /export
2026-04-24 18:13:01,825 - api_logger - INFO - Router cargado: /licenses
2026-04-24 18:13:01,825 - api_logger - INFO - Router cargado: /menu_options
2026-04-24 18:13:01,832 - api_logger - INFO - Router cargado: /movements_banks
2026-04-24 18:13:01,833 - api_logger - INFO - Router cargado: /payment
2026-04-24 18:13:01,833 - api_logger - INFO - Router cargado: /plans
2026-04-24 18:13:01,834 - api_logger - INFO - Router cargado: 
2026-04-24 18:13:01,835 - api_logger - INFO - Router cargado: /webservices
2026-04-24 18:13:01,836 - api_logger - INFO - Router cargado: /auth
2026-04-24 18:13:01,837 - api_logger - INFO - Router cargado: /users
2026-04-24 18:13:01,839 - api_logger - INFO - Router cargado: /bankaccount
2026-04-24 18:13:01,840 - api_logger - INFO - Router cargado: /cfdidocuments
2026-04-24 18:13:01,843 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-27 16:50:29,758 - api_logger - INFO - Router cargado: /catalogs
2026-04-27 16:50:29,761 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-27 16:50:29,762 - api_logger - INFO - Router cargado: /export
2026-04-27 16:50:29,763 - api_logger - INFO - Router cargado: /licenses
2026-04-27 16:50:29,763 - api_logger - INFO - Router cargado: /menu_options
2026-04-27 16:50:29,770 - api_logger - INFO - Router cargado: /movements_banks
2026-04-27 16:50:29,771 - api_logger - INFO - Router cargado: /payment
2026-04-27 16:50:29,771 - api_logger - INFO - Router cargado: /plans
2026-04-27 16:50:29,772 - api_logger - INFO - Router cargado: 
2026-04-27 16:50:29,773 - api_logger - INFO - Router cargado: /webservices
2026-04-27 16:50:29,774 - api_logger - INFO - Router cargado: /auth
2026-04-27 16:50:29,776 - api_logger - INFO - Router cargado: /users
2026-04-27 16:50:29,778 - api_logger - INFO - Router cargado: /bankaccount
2026-04-27 16:50:29,781 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-27 16:50:30,597 - api_logger - INFO - Router cargado: /catalogs
2026-04-27 16:50:30,599 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-27 16:50:30,600 - api_logger - INFO - Router cargado: /export
2026-04-27 16:50:30,600 - api_logger - INFO - Router cargado: /licenses
2026-04-27 16:50:30,600 - api_logger - INFO - Router cargado: /menu_options
2026-04-27 16:50:30,608 - api_logger - INFO - Router cargado: /movements_banks
2026-04-27 16:50:30,608 - api_logger - INFO - Router cargado: /payment
2026-04-27 16:50:30,609 - api_logger - INFO - Router cargado: /plans
2026-04-27 16:50:30,610 - api_logger - INFO - Router cargado: 
2026-04-27 16:50:30,611 - api_logger - INFO - Router cargado: /webservices
2026-04-27 16:50:30,612 - api_logger - INFO - Router cargado: /auth
2026-04-27 16:50:30,614 - api_logger - INFO - Router cargado: /users
2026-04-27 16:50:30,616 - api_logger - INFO - Router cargado: /bankaccount
2026-04-27 16:50:30,619 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-27 16:50:30,673 - api_logger - INFO - Router cargado: /catalogs
2026-04-27 16:50:30,676 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-27 16:50:30,676 - api_logger - INFO - Router cargado: /export
2026-04-27 16:50:30,677 - api_logger - INFO - Router cargado: /licenses
2026-04-27 16:50:30,677 - api_logger - INFO - Router cargado: /menu_options
2026-04-27 16:50:30,684 - api_logger - INFO - Router cargado: /movements_banks
2026-04-27 16:50:30,684 - api_logger - INFO - Router cargado: /payment
2026-04-27 16:50:30,684 - api_logger - INFO - Router cargado: /plans
2026-04-27 16:50:30,685 - api_logger - INFO - Router cargado: 
2026-04-27 16:50:30,686 - api_logger - INFO - Router cargado: /webservices
2026-04-27 16:50:30,688 - api_logger - INFO - Router cargado: /auth
2026-04-27 16:50:30,689 - api_logger - INFO - Router cargado: /users
2026-04-27 16:50:30,691 - api_logger - INFO - Router cargado: /bankaccount
2026-04-27 16:50:30,694 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-27 17:03:22,850 - api_logger - INFO - Router cargado: /catalogs
2026-04-27 17:03:22,853 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-27 17:03:22,854 - api_logger - INFO - Router cargado: /export
2026-04-27 17:03:22,854 - api_logger - INFO - Router cargado: /licenses
2026-04-27 17:03:22,855 - api_logger - INFO - Router cargado: /menu_options
2026-04-27 17:03:22,862 - api_logger - INFO - Router cargado: /movements_banks
2026-04-27 17:03:22,863 - api_logger - INFO - Router cargado: /payment
2026-04-27 17:03:22,863 - api_logger - INFO - Router cargado: /plans
2026-04-27 17:03:22,864 - api_logger - INFO - Router cargado: 
2026-04-27 17:03:22,865 - api_logger - INFO - Router cargado: /webservices
2026-04-27 17:03:22,867 - api_logger - INFO - Router cargado: /auth
2026-04-27 17:03:22,868 - api_logger - INFO - Router cargado: /users
2026-04-27 17:03:22,870 - api_logger - INFO - Router cargado: /bankaccount
2026-04-27 17:03:22,874 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-27 17:10:07,151 - api_logger - INFO - Router cargado: /catalogs
2026-04-27 17:10:07,153 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-27 17:10:07,154 - api_logger - INFO - Router cargado: /export
2026-04-27 17:10:07,155 - api_logger - INFO - Router cargado: /licenses
2026-04-27 17:10:07,155 - api_logger - INFO - Router cargado: /menu_options
2026-04-27 17:10:07,163 - api_logger - INFO - Router cargado: /movements_banks
2026-04-27 17:10:07,165 - api_logger - INFO - Router cargado: /payment
2026-04-27 17:10:07,165 - api_logger - INFO - Router cargado: /plans
2026-04-27 17:10:07,166 - api_logger - INFO - Router cargado: 
2026-04-27 17:10:07,167 - api_logger - INFO - Router cargado: /webservices
2026-04-27 17:10:07,169 - api_logger - INFO - Router cargado: /auth
2026-04-27 17:10:07,170 - api_logger - INFO - Router cargado: /users
2026-04-27 17:10:07,174 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-27 17:10:07,176 - api_logger - INFO - Router cargado: /bankaccount
2026-04-27 17:10:07,228 - api_logger - INFO - Router cargado: /catalogs
2026-04-27 17:10:07,231 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-27 17:10:07,232 - api_logger - INFO - Router cargado: /export
2026-04-27 17:10:07,232 - api_logger - INFO - Router cargado: /licenses
2026-04-27 17:10:07,232 - api_logger - INFO - Router cargado: /menu_options
2026-04-27 17:10:07,239 - api_logger - INFO - Router cargado: /movements_banks
2026-04-27 17:10:07,240 - api_logger - INFO - Router cargado: /payment
2026-04-27 17:10:07,240 - api_logger - INFO - Router cargado: /plans
2026-04-27 17:10:07,241 - api_logger - INFO - Router cargado: 
2026-04-27 17:10:07,242 - api_logger - INFO - Router cargado: /webservices
2026-04-27 17:10:07,243 - api_logger - INFO - Router cargado: /auth
2026-04-27 17:10:07,245 - api_logger - INFO - Router cargado: /users
2026-04-27 17:10:07,248 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-27 17:10:07,250 - api_logger - INFO - Router cargado: /bankaccount
2026-04-27 17:15:17,139 - api_logger - INFO - Router cargado: /catalogs
2026-04-27 17:15:17,141 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-27 17:15:17,142 - api_logger - INFO - Router cargado: /export
2026-04-27 17:15:17,143 - api_logger - INFO - Router cargado: /licenses
2026-04-27 17:15:17,143 - api_logger - INFO - Router cargado: /menu_options
2026-04-27 17:15:17,151 - api_logger - INFO - Router cargado: /movements_banks
2026-04-27 17:15:17,151 - api_logger - INFO - Router cargado: /payment
2026-04-27 17:15:17,151 - api_logger - INFO - Router cargado: /plans
2026-04-27 17:15:17,152 - api_logger - INFO - Router cargado: 
2026-04-27 17:15:17,154 - api_logger - INFO - Router cargado: /webservices
2026-04-27 17:15:17,155 - api_logger - INFO - Router cargado: /auth
2026-04-27 17:15:17,157 - api_logger - INFO - Router cargado: /users
2026-04-27 17:15:17,160 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-27 17:15:17,162 - api_logger - INFO - Router cargado: /bankaccount
2026-04-27 17:15:17,210 - api_logger - INFO - Router cargado: /catalogs
2026-04-27 17:15:17,213 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-27 17:15:17,213 - api_logger - INFO - Router cargado: /export
2026-04-27 17:15:17,214 - api_logger - INFO - Router cargado: /licenses
2026-04-27 17:15:17,214 - api_logger - INFO - Router cargado: /menu_options
2026-04-27 17:15:17,221 - api_logger - INFO - Router cargado: /movements_banks
2026-04-27 17:15:17,222 - api_logger - INFO - Router cargado: /payment
2026-04-27 17:15:17,222 - api_logger - INFO - Router cargado: /plans
2026-04-27 17:15:17,222 - api_logger - INFO - Router cargado: 
2026-04-27 17:15:17,224 - api_logger - INFO - Router cargado: /webservices
2026-04-27 17:15:17,225 - api_logger - INFO - Router cargado: /auth
2026-04-27 17:15:17,226 - api_logger - INFO - Router cargado: /users
2026-04-27 17:15:17,229 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-27 17:15:17,231 - api_logger - INFO - Router cargado: /bankaccount
2026-04-27 17:15:26,054 - api_logger - INFO - Router cargado: /catalogs
2026-04-27 17:15:26,057 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-27 17:15:26,058 - api_logger - INFO - Router cargado: /export
2026-04-27 17:15:26,058 - api_logger - INFO - Router cargado: /licenses
2026-04-27 17:15:26,059 - api_logger - INFO - Router cargado: /menu_options
2026-04-27 17:15:26,068 - api_logger - INFO - Router cargado: /movements_banks
2026-04-27 17:15:26,069 - api_logger - INFO - Router cargado: /payment
2026-04-27 17:15:26,069 - api_logger - INFO - Router cargado: /plans
2026-04-27 17:15:26,071 - api_logger - INFO - Router cargado: 
2026-04-27 17:15:26,072 - api_logger - INFO - Router cargado: /webservices
2026-04-27 17:15:26,074 - api_logger - INFO - Router cargado: /auth
2026-04-27 17:15:26,075 - api_logger - INFO - Router cargado: /users
2026-04-27 17:15:26,079 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-27 17:15:26,081 - api_logger - INFO - Router cargado: /bankaccount
2026-04-27 17:15:26,127 - api_logger - INFO - Router cargado: /catalogs
2026-04-27 17:15:26,130 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-27 17:15:26,130 - api_logger - INFO - Router cargado: /export
2026-04-27 17:15:26,131 - api_logger - INFO - Router cargado: /licenses
2026-04-27 17:15:26,131 - api_logger - INFO - Router cargado: /menu_options
2026-04-27 17:15:26,138 - api_logger - INFO - Router cargado: /movements_banks
2026-04-27 17:15:26,139 - api_logger - INFO - Router cargado: /payment
2026-04-27 17:15:26,139 - api_logger - INFO - Router cargado: /plans
2026-04-27 17:15:26,140 - api_logger - INFO - Router cargado: 
2026-04-27 17:15:26,141 - api_logger - INFO - Router cargado: /webservices
2026-04-27 17:15:26,142 - api_logger - INFO - Router cargado: /auth
2026-04-27 17:15:26,143 - api_logger - INFO - Router cargado: /users
2026-04-27 17:15:26,146 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-27 17:15:26,148 - api_logger - INFO - Router cargado: /bankaccount
2026-04-30 06:18:28,192 - api_logger - INFO - Router cargado: /catalogs
2026-04-30 06:18:28,195 - api_logger - INFO - Router cargado: /catalogsloadables
2026-04-30 06:18:28,196 - api_logger - INFO - Router cargado: /export
2026-04-30 06:18:28,196 - api_logger - INFO - Router cargado: /licenses
2026-04-30 06:18:28,196 - api_logger - INFO - Router cargado: /menu_options
2026-04-30 06:18:28,204 - api_logger - INFO - Router cargado: /movements_banks
2026-04-30 06:18:28,204 - api_logger - INFO - Router cargado: /payment
2026-04-30 06:18:28,204 - api_logger - INFO - Router cargado: /plans
2026-04-30 06:18:28,205 - api_logger - INFO - Router cargado: 
2026-04-30 06:18:28,207 - api_logger - INFO - Router cargado: /webservices
2026-04-30 06:18:28,208 - api_logger - INFO - Router cargado: /auth
2026-04-30 06:18:28,210 - api_logger - INFO - Router cargado: /users
2026-04-30 06:18:28,213 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-04-30 06:18:28,215 - api_logger - INFO - Router cargado: /bankaccount
2026-04-30 06:18:28,317 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getall: Sin cuentas registradas.
2026-04-30 06:18:28,321 - api_logger - DEBUG - [ConflictError] http://testserver/v1/bankaccount/create: La cuenta ya existe.
2026-04-30 06:18:28,323 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getbyid/999: Cuenta no encontrada.
2026-04-30 06:18:28,327 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/update/999: Cuenta no encontrada.
2026-04-30 06:18:28,330 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/delete/999: Cuenta no encontrada.
2026-04-30 06:18:28,334 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/getall: Sin movimientos.
2026-04-30 06:18:28,338 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/get_selected_rfc: Sin RFC seleccionado.
2026-04-30 06:18:28,341 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/delete/999: Movimiento no encontrado.
2026-04-30 06:18:28,345 - api_logger - DEBUG - [DomainError] http://testserver/v1/movements_banks/upload/bbva: Formato de archivo inválido.
2026-05-08 13:18:07,890 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 13:18:07,893 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 13:18:07,894 - api_logger - INFO - Router cargado: /export
2026-05-08 13:18:07,894 - api_logger - INFO - Router cargado: /licenses
2026-05-08 13:18:07,894 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 13:18:07,901 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 13:18:07,902 - api_logger - INFO - Router cargado: /payment
2026-05-08 13:18:07,902 - api_logger - INFO - Router cargado: /plans
2026-05-08 13:18:07,903 - api_logger - INFO - Router cargado: 
2026-05-08 13:18:07,904 - api_logger - INFO - Router cargado: /webservices
2026-05-08 13:18:07,906 - api_logger - INFO - Router cargado: /auth
2026-05-08 13:18:07,907 - api_logger - INFO - Router cargado: /users
2026-05-08 13:18:07,909 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 13:18:07,910 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 13:18:07,913 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 13:18:08,758 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 13:18:08,760 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 13:18:08,761 - api_logger - INFO - Router cargado: /export
2026-05-08 13:18:08,761 - api_logger - INFO - Router cargado: /licenses
2026-05-08 13:18:08,762 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 13:18:08,769 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 13:18:08,770 - api_logger - INFO - Router cargado: /payment
2026-05-08 13:18:08,770 - api_logger - INFO - Router cargado: /plans
2026-05-08 13:18:08,771 - api_logger - INFO - Router cargado: 
2026-05-08 13:18:08,772 - api_logger - INFO - Router cargado: /webservices
2026-05-08 13:18:08,774 - api_logger - INFO - Router cargado: /auth
2026-05-08 13:18:08,775 - api_logger - INFO - Router cargado: /users
2026-05-08 13:18:08,778 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 13:18:08,778 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 13:18:08,781 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 13:18:08,835 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 13:18:08,837 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 13:18:08,838 - api_logger - INFO - Router cargado: /export
2026-05-08 13:18:08,838 - api_logger - INFO - Router cargado: /licenses
2026-05-08 13:18:08,838 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 13:18:08,846 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 13:18:08,846 - api_logger - INFO - Router cargado: /payment
2026-05-08 13:18:08,846 - api_logger - INFO - Router cargado: /plans
2026-05-08 13:18:08,847 - api_logger - INFO - Router cargado: 
2026-05-08 13:18:08,848 - api_logger - INFO - Router cargado: /webservices
2026-05-08 13:18:08,850 - api_logger - INFO - Router cargado: /auth
2026-05-08 13:18:08,851 - api_logger - INFO - Router cargado: /users
2026-05-08 13:18:08,853 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 13:18:08,853 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 13:18:08,856 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 17:32:22,016 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 17:32:22,019 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 17:32:22,020 - api_logger - INFO - Router cargado: /export
2026-05-08 17:32:22,020 - api_logger - INFO - Router cargado: /licenses
2026-05-08 17:32:22,020 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 17:32:22,027 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 17:32:22,028 - api_logger - INFO - Router cargado: /payment
2026-05-08 17:32:22,028 - api_logger - INFO - Router cargado: /plans
2026-05-08 17:32:22,029 - api_logger - INFO - Router cargado: 
2026-05-08 17:32:22,030 - api_logger - INFO - Router cargado: /webservices
2026-05-08 17:32:22,032 - api_logger - INFO - Router cargado: /auth
2026-05-08 17:32:22,033 - api_logger - INFO - Router cargado: /users
2026-05-08 17:32:22,035 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 17:32:22,036 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 17:32:22,039 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 17:32:22,864 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 17:32:22,867 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 17:32:22,868 - api_logger - INFO - Router cargado: /export
2026-05-08 17:32:22,868 - api_logger - INFO - Router cargado: /licenses
2026-05-08 17:32:22,868 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 17:32:22,875 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 17:32:22,876 - api_logger - INFO - Router cargado: /payment
2026-05-08 17:32:22,876 - api_logger - INFO - Router cargado: /plans
2026-05-08 17:32:22,877 - api_logger - INFO - Router cargado: 
2026-05-08 17:32:22,878 - api_logger - INFO - Router cargado: /webservices
2026-05-08 17:32:22,880 - api_logger - INFO - Router cargado: /auth
2026-05-08 17:32:22,881 - api_logger - INFO - Router cargado: /users
2026-05-08 17:32:22,884 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 17:32:22,884 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 17:32:22,887 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 17:32:22,932 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 17:32:22,935 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 17:32:22,936 - api_logger - INFO - Router cargado: /export
2026-05-08 17:32:22,936 - api_logger - INFO - Router cargado: /licenses
2026-05-08 17:32:22,936 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 17:32:22,943 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 17:32:22,943 - api_logger - INFO - Router cargado: /payment
2026-05-08 17:32:22,944 - api_logger - INFO - Router cargado: /plans
2026-05-08 17:32:22,944 - api_logger - INFO - Router cargado: 
2026-05-08 17:32:22,946 - api_logger - INFO - Router cargado: /webservices
2026-05-08 17:32:22,947 - api_logger - INFO - Router cargado: /auth
2026-05-08 17:32:22,948 - api_logger - INFO - Router cargado: /users
2026-05-08 17:32:22,950 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 17:32:22,950 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 17:32:22,953 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 17:39:49,341 - api_logger - WARNING - error en usuario gustavo@vctra.xyz :: Tu cuenta aún no ha sido verificada.
2026-05-08 17:39:49,341 - api_logger - DEBUG - [ForbiddenError] http://localhost:8000/v1/auth/login: Tu cuenta aún no ha sido verificada.
2026-05-08 17:40:17,055 - api_logger - WARNING - error en usuario gvictoria0702@gmail.com :: Tu cuenta aún no ha sido verificada.
2026-05-08 17:40:17,055 - api_logger - DEBUG - [ForbiddenError] http://localhost:8000/v1/auth/login: Tu cuenta aún no ha sido verificada.
2026-05-08 17:50:33,570 - api_logger - INFO - Creando particion en tabla cfdi_documents_emitidos: para MJM200228CA7 key: ead11a8d04a58779
2026-05-08 17:50:34,821 - api_logger - INFO - Creando particion en tabla cfdi_documents_recibidos: para MJM200228CA7 key: ead11a8d04a58779
2026-05-08 17:50:35,886 - api_logger - INFO - Se crea particion 50_MJM200228CA7 en cfdi_documents satisfactoriamente.
2026-05-08 17:50:36,904 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "fiscal_customers_unique"
DETAIL:  Key (rfc)=(MJM200228CA7) already exists.

[SQL: INSERT INTO licensing.fiscal_customers (license_id, created_by, razon_social, nombre, rfc, fiel_certificate, fiel_private_key, fiel_password_hash, fiel_valid_from, fiel_valid_to, fiel_serial_number, csd_certificate, csd_private_key, csd_password_hash, csd_valid_from, csd_valid_to, csd_serial_number, status, created_at, updated_at, rfc_password_hash) VALUES (%(license_id)s, %(created_by)s, %(razon_social)s, %(nombre)s, %(rfc)s, %(fiel_certificate)s, %(fiel_private_key)s, %(fiel_password_hash)s, %(fiel_valid_from)s, %(fiel_valid_to)s, %(fiel_serial_number)s, %(csd_certificate)s, %(csd_private_key)s, %(csd_password_hash)s, %(csd_valid_from)s, %(csd_valid_to)s, %(csd_serial_number)s, %(status)s, %(created_at)s, %(updated_at)s, %(rfc_password_hash)s) RETURNING licensing.fiscal_customers.id]
[parameters: {'license_id': 50, 'created_by': 96, 'razon_social': 'Una razon social', 'nombre': 'Un nombre', 'rfc': 'MJM200228CA7', 'fiel_certificate': None, 'fiel_private_key': None, 'fiel_password_hash': None, 'fiel_valid_from': None, 'fiel_valid_to': None, 'fiel_serial_number': None, 'csd_certificate': None, 'csd_private_key': None, 'csd_password_hash': None, 'csd_valid_from': None, 'csd_valid_to': None, 'csd_serial_number': None, 'status': False, 'created_at': datetime.datetime(2026, 5, 8, 23, 32, 22, 687609, tzinfo=<UTC>), 'updated_at': datetime.datetime(2026, 5, 8, 23, 32, 22, 687625, tzinfo=<UTC>), 'rfc_password_hash': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-08 17:57:35,411 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 17:57:35,413 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 17:57:35,414 - api_logger - INFO - Router cargado: /export
2026-05-08 17:57:35,414 - api_logger - INFO - Router cargado: /licenses
2026-05-08 17:57:35,415 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 17:57:35,422 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 17:57:35,423 - api_logger - INFO - Router cargado: /payment
2026-05-08 17:57:35,423 - api_logger - INFO - Router cargado: /plans
2026-05-08 17:57:35,424 - api_logger - INFO - Router cargado: 
2026-05-08 17:57:35,425 - api_logger - INFO - Router cargado: /webservices
2026-05-08 17:57:35,427 - api_logger - INFO - Router cargado: /auth
2026-05-08 17:57:35,428 - api_logger - INFO - Router cargado: /users
2026-05-08 17:57:35,430 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 17:57:35,431 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 17:57:35,434 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 17:57:35,480 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 17:57:35,483 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 17:57:35,484 - api_logger - INFO - Router cargado: /export
2026-05-08 17:57:35,484 - api_logger - INFO - Router cargado: /licenses
2026-05-08 17:57:35,484 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 17:57:35,491 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 17:57:35,492 - api_logger - INFO - Router cargado: /payment
2026-05-08 17:57:35,492 - api_logger - INFO - Router cargado: /plans
2026-05-08 17:57:35,493 - api_logger - INFO - Router cargado: 
2026-05-08 17:57:35,494 - api_logger - INFO - Router cargado: /webservices
2026-05-08 17:57:35,495 - api_logger - INFO - Router cargado: /auth
2026-05-08 17:57:35,496 - api_logger - INFO - Router cargado: /users
2026-05-08 17:57:35,498 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 17:57:35,498 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 17:57:35,501 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 17:57:47,165 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 17:57:47,168 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 17:57:47,169 - api_logger - INFO - Router cargado: /export
2026-05-08 17:57:47,169 - api_logger - INFO - Router cargado: /licenses
2026-05-08 17:57:47,169 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 17:57:47,177 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 17:57:47,178 - api_logger - INFO - Router cargado: /payment
2026-05-08 17:57:47,178 - api_logger - INFO - Router cargado: /plans
2026-05-08 17:57:47,179 - api_logger - INFO - Router cargado: 
2026-05-08 17:57:47,180 - api_logger - INFO - Router cargado: /webservices
2026-05-08 17:57:47,182 - api_logger - INFO - Router cargado: /auth
2026-05-08 17:57:47,183 - api_logger - INFO - Router cargado: /users
2026-05-08 17:57:47,185 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 17:57:47,186 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 17:57:47,190 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 17:57:47,241 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 17:57:47,243 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 17:57:47,244 - api_logger - INFO - Router cargado: /export
2026-05-08 17:57:47,244 - api_logger - INFO - Router cargado: /licenses
2026-05-08 17:57:47,244 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 17:57:47,252 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 17:57:47,252 - api_logger - INFO - Router cargado: /payment
2026-05-08 17:57:47,252 - api_logger - INFO - Router cargado: /plans
2026-05-08 17:57:47,253 - api_logger - INFO - Router cargado: 
2026-05-08 17:57:47,254 - api_logger - INFO - Router cargado: /webservices
2026-05-08 17:57:47,256 - api_logger - INFO - Router cargado: /auth
2026-05-08 17:57:47,257 - api_logger - INFO - Router cargado: /users
2026-05-08 17:57:47,259 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 17:57:47,259 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 17:57:47,262 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 17:58:05,811 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 17:58:05,813 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 17:58:05,814 - api_logger - INFO - Router cargado: /export
2026-05-08 17:58:05,814 - api_logger - INFO - Router cargado: /licenses
2026-05-08 17:58:05,814 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 17:58:05,822 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 17:58:05,823 - api_logger - INFO - Router cargado: /payment
2026-05-08 17:58:05,823 - api_logger - INFO - Router cargado: /plans
2026-05-08 17:58:05,824 - api_logger - INFO - Router cargado: 
2026-05-08 17:58:05,825 - api_logger - INFO - Router cargado: /webservices
2026-05-08 17:58:05,827 - api_logger - INFO - Router cargado: /auth
2026-05-08 17:58:05,828 - api_logger - INFO - Router cargado: /users
2026-05-08 17:58:05,830 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 17:58:05,831 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 17:58:05,834 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 17:58:05,881 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 17:58:05,883 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 17:58:05,884 - api_logger - INFO - Router cargado: /export
2026-05-08 17:58:05,884 - api_logger - INFO - Router cargado: /licenses
2026-05-08 17:58:05,884 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 17:58:05,892 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 17:58:05,892 - api_logger - INFO - Router cargado: /payment
2026-05-08 17:58:05,892 - api_logger - INFO - Router cargado: /plans
2026-05-08 17:58:05,893 - api_logger - INFO - Router cargado: 
2026-05-08 17:58:05,894 - api_logger - INFO - Router cargado: /webservices
2026-05-08 17:58:05,896 - api_logger - INFO - Router cargado: /auth
2026-05-08 17:58:05,897 - api_logger - INFO - Router cargado: /users
2026-05-08 17:58:05,899 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 17:58:05,899 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 17:58:05,902 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 17:58:20,952 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 17:58:20,954 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 17:58:20,955 - api_logger - INFO - Router cargado: /export
2026-05-08 17:58:20,956 - api_logger - INFO - Router cargado: /licenses
2026-05-08 17:58:20,956 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 17:58:20,965 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 17:58:20,965 - api_logger - INFO - Router cargado: /payment
2026-05-08 17:58:20,965 - api_logger - INFO - Router cargado: /plans
2026-05-08 17:58:20,966 - api_logger - INFO - Router cargado: 
2026-05-08 17:58:20,968 - api_logger - INFO - Router cargado: /webservices
2026-05-08 17:58:20,970 - api_logger - INFO - Router cargado: /auth
2026-05-08 17:58:20,971 - api_logger - INFO - Router cargado: /users
2026-05-08 17:58:20,974 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 17:58:20,974 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 17:58:20,978 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 17:58:21,032 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 17:58:21,034 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 17:58:21,035 - api_logger - INFO - Router cargado: /export
2026-05-08 17:58:21,036 - api_logger - INFO - Router cargado: /licenses
2026-05-08 17:58:21,036 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 17:58:21,044 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 17:58:21,044 - api_logger - INFO - Router cargado: /payment
2026-05-08 17:58:21,044 - api_logger - INFO - Router cargado: /plans
2026-05-08 17:58:21,045 - api_logger - INFO - Router cargado: 
2026-05-08 17:58:21,047 - api_logger - INFO - Router cargado: /webservices
2026-05-08 17:58:21,048 - api_logger - INFO - Router cargado: /auth
2026-05-08 17:58:21,050 - api_logger - INFO - Router cargado: /users
2026-05-08 17:58:21,052 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 17:58:21,052 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 17:58:21,055 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 17:58:34,870 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 17:58:34,873 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 17:58:34,874 - api_logger - INFO - Router cargado: /export
2026-05-08 17:58:34,874 - api_logger - INFO - Router cargado: /licenses
2026-05-08 17:58:34,874 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 17:58:34,881 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 17:58:34,882 - api_logger - INFO - Router cargado: /payment
2026-05-08 17:58:34,882 - api_logger - INFO - Router cargado: /plans
2026-05-08 17:58:34,883 - api_logger - INFO - Router cargado: 
2026-05-08 17:58:34,885 - api_logger - INFO - Router cargado: /webservices
2026-05-08 17:58:34,886 - api_logger - INFO - Router cargado: /auth
2026-05-08 17:58:34,888 - api_logger - INFO - Router cargado: /users
2026-05-08 17:58:34,890 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 17:58:34,890 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 17:58:34,893 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 17:58:34,953 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/create: El RFC ya está registrado.
2026-05-08 17:58:34,955 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/fiscalcustomer/create: No autorizado.
2026-05-08 17:58:34,959 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/update/999: RFC no encontrado.
2026-05-08 17:58:34,964 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/list/byid/999: RFC no encontrado.
2026-05-08 17:58:34,969 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/setselected/999: RFC no encontrado.
2026-05-08 17:58:34,972 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/getselected: Sin RFC seleccionado.
2026-05-08 17:58:34,976 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/savecerts: error al guardar certificados FIEL.
2026-05-08 17:58:34,985 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/saveciec: error al guardar contraseña CIEC.
2026-05-08 18:00:53,940 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 18:00:53,943 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 18:00:53,944 - api_logger - INFO - Router cargado: /export
2026-05-08 18:00:53,944 - api_logger - INFO - Router cargado: /licenses
2026-05-08 18:00:53,944 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 18:00:53,952 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 18:00:53,952 - api_logger - INFO - Router cargado: /payment
2026-05-08 18:00:53,953 - api_logger - INFO - Router cargado: /plans
2026-05-08 18:00:53,953 - api_logger - INFO - Router cargado: 
2026-05-08 18:00:53,955 - api_logger - INFO - Router cargado: /webservices
2026-05-08 18:00:53,956 - api_logger - INFO - Router cargado: /auth
2026-05-08 18:00:53,958 - api_logger - INFO - Router cargado: /users
2026-05-08 18:00:53,960 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 18:00:53,961 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 18:00:53,964 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 18:00:54,011 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 18:00:54,013 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 18:00:54,014 - api_logger - INFO - Router cargado: /export
2026-05-08 18:00:54,014 - api_logger - INFO - Router cargado: /licenses
2026-05-08 18:00:54,014 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 18:00:54,022 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 18:00:54,022 - api_logger - INFO - Router cargado: /payment
2026-05-08 18:00:54,022 - api_logger - INFO - Router cargado: /plans
2026-05-08 18:00:54,023 - api_logger - INFO - Router cargado: 
2026-05-08 18:00:54,024 - api_logger - INFO - Router cargado: /webservices
2026-05-08 18:00:54,026 - api_logger - INFO - Router cargado: /auth
2026-05-08 18:00:54,027 - api_logger - INFO - Router cargado: /users
2026-05-08 18:00:54,029 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 18:00:54,029 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 18:00:54,032 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 18:01:04,587 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 18:01:04,590 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 18:01:04,591 - api_logger - INFO - Router cargado: /export
2026-05-08 18:01:04,591 - api_logger - INFO - Router cargado: /licenses
2026-05-08 18:01:04,591 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 18:01:04,599 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 18:01:04,599 - api_logger - INFO - Router cargado: /payment
2026-05-08 18:01:04,600 - api_logger - INFO - Router cargado: /plans
2026-05-08 18:01:04,601 - api_logger - INFO - Router cargado: 
2026-05-08 18:01:04,602 - api_logger - INFO - Router cargado: /webservices
2026-05-08 18:01:04,604 - api_logger - INFO - Router cargado: /auth
2026-05-08 18:01:04,605 - api_logger - INFO - Router cargado: /users
2026-05-08 18:01:04,608 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 18:01:04,608 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 18:01:04,612 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 18:01:04,659 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 18:01:04,661 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 18:01:04,662 - api_logger - INFO - Router cargado: /export
2026-05-08 18:01:04,662 - api_logger - INFO - Router cargado: /licenses
2026-05-08 18:01:04,663 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 18:01:04,670 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 18:01:04,671 - api_logger - INFO - Router cargado: /payment
2026-05-08 18:01:04,671 - api_logger - INFO - Router cargado: /plans
2026-05-08 18:01:04,672 - api_logger - INFO - Router cargado: 
2026-05-08 18:01:04,673 - api_logger - INFO - Router cargado: /webservices
2026-05-08 18:01:04,674 - api_logger - INFO - Router cargado: /auth
2026-05-08 18:01:04,675 - api_logger - INFO - Router cargado: /users
2026-05-08 18:01:04,677 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 18:01:04,678 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 18:01:04,681 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 18:01:27,363 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 18:01:27,366 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 18:01:27,367 - api_logger - INFO - Router cargado: /export
2026-05-08 18:01:27,367 - api_logger - INFO - Router cargado: /licenses
2026-05-08 18:01:27,367 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 18:01:27,375 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 18:01:27,375 - api_logger - INFO - Router cargado: /payment
2026-05-08 18:01:27,376 - api_logger - INFO - Router cargado: /plans
2026-05-08 18:01:27,377 - api_logger - INFO - Router cargado: 
2026-05-08 18:01:27,378 - api_logger - INFO - Router cargado: /webservices
2026-05-08 18:01:27,379 - api_logger - INFO - Router cargado: /auth
2026-05-08 18:01:27,381 - api_logger - INFO - Router cargado: /users
2026-05-08 18:01:27,383 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 18:01:27,384 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 18:01:27,387 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 18:01:27,437 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 18:01:27,439 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 18:01:27,440 - api_logger - INFO - Router cargado: /export
2026-05-08 18:01:27,440 - api_logger - INFO - Router cargado: /licenses
2026-05-08 18:01:27,441 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 18:01:27,448 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 18:01:27,449 - api_logger - INFO - Router cargado: /payment
2026-05-08 18:01:27,449 - api_logger - INFO - Router cargado: /plans
2026-05-08 18:01:27,450 - api_logger - INFO - Router cargado: 
2026-05-08 18:01:27,451 - api_logger - INFO - Router cargado: /webservices
2026-05-08 18:01:27,452 - api_logger - INFO - Router cargado: /auth
2026-05-08 18:01:27,454 - api_logger - INFO - Router cargado: /users
2026-05-08 18:01:27,456 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 18:01:27,456 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 18:01:27,459 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 18:02:42,388 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 18:02:42,391 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 18:02:42,391 - api_logger - INFO - Router cargado: /export
2026-05-08 18:02:42,392 - api_logger - INFO - Router cargado: /licenses
2026-05-08 18:02:42,392 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 18:02:42,399 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 18:02:42,400 - api_logger - INFO - Router cargado: /payment
2026-05-08 18:02:42,400 - api_logger - INFO - Router cargado: /plans
2026-05-08 18:02:42,401 - api_logger - INFO - Router cargado: 
2026-05-08 18:02:42,403 - api_logger - INFO - Router cargado: /webservices
2026-05-08 18:02:42,404 - api_logger - INFO - Router cargado: /auth
2026-05-08 18:02:42,406 - api_logger - INFO - Router cargado: /users
2026-05-08 18:02:42,408 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 18:02:42,408 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 18:02:42,412 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 18:02:42,459 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 18:02:42,461 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 18:02:42,462 - api_logger - INFO - Router cargado: /export
2026-05-08 18:02:42,462 - api_logger - INFO - Router cargado: /licenses
2026-05-08 18:02:42,462 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 18:02:42,470 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 18:02:42,470 - api_logger - INFO - Router cargado: /payment
2026-05-08 18:02:42,470 - api_logger - INFO - Router cargado: /plans
2026-05-08 18:02:42,471 - api_logger - INFO - Router cargado: 
2026-05-08 18:02:42,472 - api_logger - INFO - Router cargado: /webservices
2026-05-08 18:02:42,474 - api_logger - INFO - Router cargado: /auth
2026-05-08 18:02:42,475 - api_logger - INFO - Router cargado: /users
2026-05-08 18:02:42,477 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 18:02:42,477 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 18:02:42,481 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 18:03:07,621 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 18:03:07,624 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 18:03:07,625 - api_logger - INFO - Router cargado: /export
2026-05-08 18:03:07,625 - api_logger - INFO - Router cargado: /licenses
2026-05-08 18:03:07,625 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 18:03:07,632 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 18:03:07,633 - api_logger - INFO - Router cargado: /payment
2026-05-08 18:03:07,633 - api_logger - INFO - Router cargado: /plans
2026-05-08 18:03:07,634 - api_logger - INFO - Router cargado: 
2026-05-08 18:03:07,636 - api_logger - INFO - Router cargado: /webservices
2026-05-08 18:03:07,637 - api_logger - INFO - Router cargado: /auth
2026-05-08 18:03:07,639 - api_logger - INFO - Router cargado: /users
2026-05-08 18:03:07,641 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 18:03:07,641 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 18:03:07,645 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 18:03:07,677 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/create: El RFC ya está registrado.
2026-05-08 18:03:07,678 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/fiscalcustomer/create: No autorizado.
2026-05-08 18:03:07,683 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/update/999: RFC no encontrado.
2026-05-08 18:03:07,688 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/list/byid/999: RFC no encontrado.
2026-05-08 18:03:07,693 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/setselected/999: RFC no encontrado.
2026-05-08 18:03:07,696 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/getselected: Sin RFC seleccionado.
2026-05-08 18:03:07,700 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/savecerts: error al guardar certificados FIEL.
2026-05-08 18:03:07,707 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/saveciec: error al guardar contraseña CIEC.
2026-05-08 18:06:18,298 - api_logger - INFO - Creando particion en tabla cfdi_documents_emitidos: para MJM200228CA7 key: ead11a8d04a58779
2026-05-08 18:06:19,284 - api_logger - INFO - Creando particion en tabla cfdi_documents_recibidos: para MJM200228CA7 key: ead11a8d04a58779
2026-05-08 18:06:20,270 - api_logger - INFO - Se crea particion 50_MJM200228CA7 en cfdi_documents satisfactoriamente.
2026-05-08 18:06:21,285 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "fiscal_customers_unique"
DETAIL:  Key (rfc)=(MJM200228CA7) already exists.

[SQL: INSERT INTO licensing.fiscal_customers (license_id, created_by, razon_social, nombre, rfc, fiel_certificate, fiel_private_key, fiel_password_hash, fiel_valid_from, fiel_valid_to, fiel_serial_number, csd_certificate, csd_private_key, csd_password_hash, csd_valid_from, csd_valid_to, csd_serial_number, status, created_at, updated_at, rfc_password_hash) VALUES (%(license_id)s, %(created_by)s, %(razon_social)s, %(nombre)s, %(rfc)s, %(fiel_certificate)s, %(fiel_private_key)s, %(fiel_password_hash)s, %(fiel_valid_from)s, %(fiel_valid_to)s, %(fiel_serial_number)s, %(csd_certificate)s, %(csd_private_key)s, %(csd_password_hash)s, %(csd_valid_from)s, %(csd_valid_to)s, %(csd_serial_number)s, %(status)s, %(created_at)s, %(updated_at)s, %(rfc_password_hash)s) RETURNING licensing.fiscal_customers.id]
[parameters: {'license_id': 50, 'created_by': 96, 'razon_social': 'Una razon social', 'nombre': 'Un nombre', 'rfc': 'MJM200228CA7', 'fiel_certificate': None, 'fiel_private_key': None, 'fiel_password_hash': None, 'fiel_valid_from': None, 'fiel_valid_to': None, 'fiel_serial_number': None, 'csd_certificate': None, 'csd_private_key': None, 'csd_password_hash': None, 'csd_valid_from': None, 'csd_valid_to': None, 'csd_serial_number': None, 'status': False, 'created_at': datetime.datetime(2026, 5, 9, 0, 2, 42, 196977, tzinfo=<UTC>), 'updated_at': datetime.datetime(2026, 5, 9, 0, 2, 42, 196994, tzinfo=<UTC>), 'rfc_password_hash': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-08 18:06:21,285 - api_logger - DEBUG - [ConflictError] http://localhost:8000/v1/fiscalcustomer/create: El RFC ya está registrado.
2026-05-08 18:06:51,025 - api_logger - INFO - Creando particion en tabla cfdi_documents_emitidos: para MJM200228CA7 key: ead11a8d04a58779
2026-05-08 18:06:52,003 - api_logger - INFO - Creando particion en tabla cfdi_documents_recibidos: para MJM200228CA7 key: ead11a8d04a58779
2026-05-08 18:06:52,998 - api_logger - INFO - Se crea particion 50_MJM200228CA7 en cfdi_documents satisfactoriamente.
2026-05-08 18:12:11,715 - api_logger - INFO - Creando particion en tabla cfdi_documents_emitidos: para MJM200228CA7 key: ead11a8d04a58779
2026-05-08 18:12:12,695 - api_logger - INFO - Creando particion en tabla cfdi_documents_recibidos: para MJM200228CA7 key: ead11a8d04a58779
2026-05-08 18:12:13,714 - api_logger - INFO - Se crea particion 50_MJM200228CA7 en cfdi_documents satisfactoriamente.
2026-05-08 18:22:00,926 - api_logger - INFO - [Orchestrator/CIEC] RFC=MJM200228CA7 esperando turno (semáforo)...
2026-05-08 18:22:00,926 - api_logger - INFO - [Orchestrator/CIEC] RFC=MJM200228CA7 iniciando sesión SAT
2026-05-08 18:22:33,038 - api_logger - ERROR - [Orchestrator] Error en RFC=MJM200228CA7: 500: Page.fill: Timeout 30000ms exceeded.
Call log:
  - waiting for locator("#rfc")

2026-05-08 18:24:36,910 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 18:24:36,913 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 18:24:36,914 - api_logger - INFO - Router cargado: /export
2026-05-08 18:24:36,914 - api_logger - INFO - Router cargado: /licenses
2026-05-08 18:24:36,914 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 18:24:36,922 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 18:24:36,922 - api_logger - INFO - Router cargado: /payment
2026-05-08 18:24:36,923 - api_logger - INFO - Router cargado: /plans
2026-05-08 18:24:36,923 - api_logger - INFO - Router cargado: 
2026-05-08 18:24:36,925 - api_logger - INFO - Router cargado: /webservices
2026-05-08 18:24:36,927 - api_logger - INFO - Router cargado: /auth
2026-05-08 18:24:36,928 - api_logger - INFO - Router cargado: /users
2026-05-08 18:24:36,930 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 18:24:36,931 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 18:24:36,935 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 18:24:36,986 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 18:24:36,988 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 18:24:36,989 - api_logger - INFO - Router cargado: /export
2026-05-08 18:24:36,989 - api_logger - INFO - Router cargado: /licenses
2026-05-08 18:24:36,989 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 18:24:36,997 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 18:24:36,998 - api_logger - INFO - Router cargado: /payment
2026-05-08 18:24:36,998 - api_logger - INFO - Router cargado: /plans
2026-05-08 18:24:36,999 - api_logger - INFO - Router cargado: 
2026-05-08 18:24:37,000 - api_logger - INFO - Router cargado: /webservices
2026-05-08 18:24:37,001 - api_logger - INFO - Router cargado: /auth
2026-05-08 18:24:37,003 - api_logger - INFO - Router cargado: /users
2026-05-08 18:24:37,005 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 18:24:37,005 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 18:24:37,009 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 18:29:50,044 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 18:29:50,047 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 18:29:50,048 - api_logger - INFO - Router cargado: /export
2026-05-08 18:29:50,048 - api_logger - INFO - Router cargado: /licenses
2026-05-08 18:29:50,048 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 18:29:50,056 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 18:29:50,056 - api_logger - INFO - Router cargado: /payment
2026-05-08 18:29:50,057 - api_logger - INFO - Router cargado: /plans
2026-05-08 18:29:50,057 - api_logger - INFO - Router cargado: 
2026-05-08 18:29:50,059 - api_logger - INFO - Router cargado: /webservices
2026-05-08 18:29:50,060 - api_logger - INFO - Router cargado: /auth
2026-05-08 18:29:50,062 - api_logger - INFO - Router cargado: /users
2026-05-08 18:29:50,064 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 18:29:50,065 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 18:29:50,068 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 18:29:50,115 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 18:29:50,118 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 18:29:50,119 - api_logger - INFO - Router cargado: /export
2026-05-08 18:29:50,119 - api_logger - INFO - Router cargado: /licenses
2026-05-08 18:29:50,119 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 18:29:50,126 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 18:29:50,127 - api_logger - INFO - Router cargado: /payment
2026-05-08 18:29:50,127 - api_logger - INFO - Router cargado: /plans
2026-05-08 18:29:50,128 - api_logger - INFO - Router cargado: 
2026-05-08 18:29:50,129 - api_logger - INFO - Router cargado: /webservices
2026-05-08 18:29:50,130 - api_logger - INFO - Router cargado: /auth
2026-05-08 18:29:50,131 - api_logger - INFO - Router cargado: /users
2026-05-08 18:29:50,133 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 18:29:50,134 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 18:29:50,137 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 18:30:35,951 - api_logger - INFO - [Orchestrator/CIEC] RFC=MJM200228CA7 esperando turno (semáforo)...
2026-05-08 18:30:35,951 - api_logger - INFO - [Orchestrator/CIEC] RFC=MJM200228CA7 iniciando sesión SAT
2026-05-08 18:30:39,506 - api_logger - ERROR - [Orchestrator] Error en RFC=MJM200228CA7: 500: cannot unpack non-iterable NoneType object
2026-05-08 18:33:07,277 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 18:33:07,280 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 18:33:07,281 - api_logger - INFO - Router cargado: /export
2026-05-08 18:33:07,281 - api_logger - INFO - Router cargado: /licenses
2026-05-08 18:33:07,281 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 18:33:07,289 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 18:33:07,290 - api_logger - INFO - Router cargado: /payment
2026-05-08 18:33:07,290 - api_logger - INFO - Router cargado: /plans
2026-05-08 18:33:07,291 - api_logger - INFO - Router cargado: 
2026-05-08 18:33:07,293 - api_logger - INFO - Router cargado: /webservices
2026-05-08 18:33:07,294 - api_logger - INFO - Router cargado: /auth
2026-05-08 18:33:07,296 - api_logger - INFO - Router cargado: /users
2026-05-08 18:33:07,298 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 18:33:07,299 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 18:33:07,302 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 18:33:07,353 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 18:33:07,356 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 18:33:07,356 - api_logger - INFO - Router cargado: /export
2026-05-08 18:33:07,356 - api_logger - INFO - Router cargado: /licenses
2026-05-08 18:33:07,357 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 18:33:07,364 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 18:33:07,364 - api_logger - INFO - Router cargado: /payment
2026-05-08 18:33:07,365 - api_logger - INFO - Router cargado: /plans
2026-05-08 18:33:07,365 - api_logger - INFO - Router cargado: 
2026-05-08 18:33:07,367 - api_logger - INFO - Router cargado: /webservices
2026-05-08 18:33:07,368 - api_logger - INFO - Router cargado: /auth
2026-05-08 18:33:07,369 - api_logger - INFO - Router cargado: /users
2026-05-08 18:33:07,371 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 18:33:07,372 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 18:33:07,374 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 18:33:17,906 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 18:33:17,909 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 18:33:17,910 - api_logger - INFO - Router cargado: /export
2026-05-08 18:33:17,910 - api_logger - INFO - Router cargado: /licenses
2026-05-08 18:33:17,910 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 18:33:17,918 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 18:33:17,919 - api_logger - INFO - Router cargado: /payment
2026-05-08 18:33:17,919 - api_logger - INFO - Router cargado: /plans
2026-05-08 18:33:17,920 - api_logger - INFO - Router cargado: 
2026-05-08 18:33:17,921 - api_logger - INFO - Router cargado: /webservices
2026-05-08 18:33:17,923 - api_logger - INFO - Router cargado: /auth
2026-05-08 18:33:17,924 - api_logger - INFO - Router cargado: /users
2026-05-08 18:33:17,927 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 18:33:17,927 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 18:33:17,931 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 18:33:17,977 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 18:33:17,979 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 18:33:17,980 - api_logger - INFO - Router cargado: /export
2026-05-08 18:33:17,980 - api_logger - INFO - Router cargado: /licenses
2026-05-08 18:33:17,980 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 18:33:17,987 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 18:33:17,988 - api_logger - INFO - Router cargado: /payment
2026-05-08 18:33:17,988 - api_logger - INFO - Router cargado: /plans
2026-05-08 18:33:17,989 - api_logger - INFO - Router cargado: 
2026-05-08 18:33:17,990 - api_logger - INFO - Router cargado: /webservices
2026-05-08 18:33:17,991 - api_logger - INFO - Router cargado: /auth
2026-05-08 18:33:17,993 - api_logger - INFO - Router cargado: /users
2026-05-08 18:33:17,994 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 18:33:17,995 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 18:33:17,998 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 18:34:39,996 - api_logger - INFO - [Orchestrator/CIEC] RFC=MJM200228CA7 esperando turno (semáforo)...
2026-05-08 18:34:39,996 - api_logger - INFO - [Orchestrator/CIEC] RFC=MJM200228CA7 iniciando sesión SAT
2026-05-08 18:35:48,770 - api_logger - ERROR - [Orchestrator] Error en reintento RFC=MJM200228CA7: 500: Login fallido (captcha o credenciales incorrectas)
2026-05-08 18:46:36,173 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 18:46:36,176 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 18:46:36,177 - api_logger - INFO - Router cargado: /export
2026-05-08 18:46:36,177 - api_logger - INFO - Router cargado: /licenses
2026-05-08 18:46:36,177 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 18:46:36,185 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 18:46:36,185 - api_logger - INFO - Router cargado: /payment
2026-05-08 18:46:36,185 - api_logger - INFO - Router cargado: /plans
2026-05-08 18:46:36,186 - api_logger - INFO - Router cargado: 
2026-05-08 18:46:36,188 - api_logger - INFO - Router cargado: /webservices
2026-05-08 18:46:36,189 - api_logger - INFO - Router cargado: /auth
2026-05-08 18:46:36,191 - api_logger - INFO - Router cargado: /users
2026-05-08 18:46:36,193 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 18:46:36,193 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 18:46:36,197 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 18:46:36,241 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 18:46:36,243 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 18:46:36,244 - api_logger - INFO - Router cargado: /export
2026-05-08 18:46:36,244 - api_logger - INFO - Router cargado: /licenses
2026-05-08 18:46:36,244 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 18:46:36,251 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 18:46:36,252 - api_logger - INFO - Router cargado: /payment
2026-05-08 18:46:36,252 - api_logger - INFO - Router cargado: /plans
2026-05-08 18:46:36,253 - api_logger - INFO - Router cargado: 
2026-05-08 18:46:36,254 - api_logger - INFO - Router cargado: /webservices
2026-05-08 18:46:36,255 - api_logger - INFO - Router cargado: /auth
2026-05-08 18:46:36,256 - api_logger - INFO - Router cargado: /users
2026-05-08 18:46:36,258 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 18:46:36,259 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 18:46:36,261 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 18:46:46,313 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 18:46:46,316 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 18:46:46,317 - api_logger - INFO - Router cargado: /export
2026-05-08 18:46:46,317 - api_logger - INFO - Router cargado: /licenses
2026-05-08 18:46:46,317 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 18:46:46,325 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 18:46:46,326 - api_logger - INFO - Router cargado: /payment
2026-05-08 18:46:46,326 - api_logger - INFO - Router cargado: /plans
2026-05-08 18:46:46,327 - api_logger - INFO - Router cargado: 
2026-05-08 18:46:46,328 - api_logger - INFO - Router cargado: /webservices
2026-05-08 18:46:46,330 - api_logger - INFO - Router cargado: /auth
2026-05-08 18:46:46,332 - api_logger - INFO - Router cargado: /users
2026-05-08 18:46:46,334 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 18:46:46,335 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 18:46:46,339 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 18:46:46,388 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 18:46:46,391 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 18:46:46,391 - api_logger - INFO - Router cargado: /export
2026-05-08 18:46:46,392 - api_logger - INFO - Router cargado: /licenses
2026-05-08 18:46:46,392 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 18:46:46,399 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 18:46:46,400 - api_logger - INFO - Router cargado: /payment
2026-05-08 18:46:46,400 - api_logger - INFO - Router cargado: /plans
2026-05-08 18:46:46,400 - api_logger - INFO - Router cargado: 
2026-05-08 18:46:46,402 - api_logger - INFO - Router cargado: /webservices
2026-05-08 18:46:46,403 - api_logger - INFO - Router cargado: /auth
2026-05-08 18:46:46,404 - api_logger - INFO - Router cargado: /users
2026-05-08 18:46:46,406 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 18:46:46,407 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 18:46:46,409 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 18:48:18,238 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 18:48:18,241 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 18:48:18,242 - api_logger - INFO - Router cargado: /export
2026-05-08 18:48:18,242 - api_logger - INFO - Router cargado: /licenses
2026-05-08 18:48:18,242 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 18:48:18,250 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 18:48:18,251 - api_logger - INFO - Router cargado: /payment
2026-05-08 18:48:18,251 - api_logger - INFO - Router cargado: /plans
2026-05-08 18:48:18,252 - api_logger - INFO - Router cargado: 
2026-05-08 18:48:18,253 - api_logger - INFO - Router cargado: /webservices
2026-05-08 18:48:18,255 - api_logger - INFO - Router cargado: /auth
2026-05-08 18:48:18,256 - api_logger - INFO - Router cargado: /users
2026-05-08 18:48:18,258 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 18:48:18,259 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 18:48:18,262 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 18:48:18,308 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 18:48:18,311 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 18:48:18,312 - api_logger - INFO - Router cargado: /export
2026-05-08 18:48:18,312 - api_logger - INFO - Router cargado: /licenses
2026-05-08 18:48:18,312 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 18:48:18,319 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 18:48:18,320 - api_logger - INFO - Router cargado: /payment
2026-05-08 18:48:18,320 - api_logger - INFO - Router cargado: /plans
2026-05-08 18:48:18,320 - api_logger - INFO - Router cargado: 
2026-05-08 18:48:18,322 - api_logger - INFO - Router cargado: /webservices
2026-05-08 18:48:18,323 - api_logger - INFO - Router cargado: /auth
2026-05-08 18:48:18,324 - api_logger - INFO - Router cargado: /users
2026-05-08 18:48:18,326 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 18:48:18,327 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 18:48:18,330 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 18:48:26,058 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 18:48:26,061 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 18:48:26,062 - api_logger - INFO - Router cargado: /export
2026-05-08 18:48:26,062 - api_logger - INFO - Router cargado: /licenses
2026-05-08 18:48:26,062 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 18:48:26,069 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 18:48:26,070 - api_logger - INFO - Router cargado: /payment
2026-05-08 18:48:26,070 - api_logger - INFO - Router cargado: /plans
2026-05-08 18:48:26,071 - api_logger - INFO - Router cargado: 
2026-05-08 18:48:26,073 - api_logger - INFO - Router cargado: /webservices
2026-05-08 18:48:26,074 - api_logger - INFO - Router cargado: /auth
2026-05-08 18:48:26,076 - api_logger - INFO - Router cargado: /users
2026-05-08 18:48:26,078 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 18:48:26,078 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 18:48:26,082 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 18:48:26,127 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 18:48:26,129 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 18:48:26,130 - api_logger - INFO - Router cargado: /export
2026-05-08 18:48:26,130 - api_logger - INFO - Router cargado: /licenses
2026-05-08 18:48:26,130 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 18:48:26,137 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 18:48:26,137 - api_logger - INFO - Router cargado: /payment
2026-05-08 18:48:26,138 - api_logger - INFO - Router cargado: /plans
2026-05-08 18:48:26,138 - api_logger - INFO - Router cargado: 
2026-05-08 18:48:26,140 - api_logger - INFO - Router cargado: /webservices
2026-05-08 18:48:26,141 - api_logger - INFO - Router cargado: /auth
2026-05-08 18:48:26,142 - api_logger - INFO - Router cargado: /users
2026-05-08 18:48:26,144 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 18:48:26,144 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 18:48:26,147 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 18:50:21,661 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 18:50:21,664 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 18:50:21,665 - api_logger - INFO - Router cargado: /export
2026-05-08 18:50:21,665 - api_logger - INFO - Router cargado: /licenses
2026-05-08 18:50:21,665 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 18:50:21,672 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 18:50:21,673 - api_logger - INFO - Router cargado: /payment
2026-05-08 18:50:21,673 - api_logger - INFO - Router cargado: /plans
2026-05-08 18:50:21,674 - api_logger - INFO - Router cargado: 
2026-05-08 18:50:21,676 - api_logger - INFO - Router cargado: /webservices
2026-05-08 18:50:21,677 - api_logger - INFO - Router cargado: /auth
2026-05-08 18:50:21,679 - api_logger - INFO - Router cargado: /users
2026-05-08 18:50:21,681 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 18:50:21,682 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 18:50:21,685 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 18:50:52,190 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 18:50:52,193 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 18:50:52,194 - api_logger - INFO - Router cargado: /export
2026-05-08 18:50:52,194 - api_logger - INFO - Router cargado: /licenses
2026-05-08 18:50:52,194 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 18:50:52,201 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 18:50:52,202 - api_logger - INFO - Router cargado: /payment
2026-05-08 18:50:52,202 - api_logger - INFO - Router cargado: /plans
2026-05-08 18:50:52,203 - api_logger - INFO - Router cargado: 
2026-05-08 18:50:52,204 - api_logger - INFO - Router cargado: /webservices
2026-05-08 18:50:52,206 - api_logger - INFO - Router cargado: /auth
2026-05-08 18:50:52,207 - api_logger - INFO - Router cargado: /users
2026-05-08 18:50:52,210 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 18:50:52,210 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 18:50:52,213 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 18:51:11,177 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 18:51:11,179 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 18:51:11,180 - api_logger - INFO - Router cargado: /export
2026-05-08 18:51:11,180 - api_logger - INFO - Router cargado: /licenses
2026-05-08 18:51:11,180 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 18:51:11,188 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 18:51:11,188 - api_logger - INFO - Router cargado: /payment
2026-05-08 18:51:11,189 - api_logger - INFO - Router cargado: /plans
2026-05-08 18:51:11,189 - api_logger - INFO - Router cargado: 
2026-05-08 18:51:11,191 - api_logger - INFO - Router cargado: /webservices
2026-05-08 18:51:11,192 - api_logger - INFO - Router cargado: /auth
2026-05-08 18:51:11,194 - api_logger - INFO - Router cargado: /users
2026-05-08 18:51:11,196 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 18:51:11,196 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 18:51:11,200 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 18:51:55,314 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 18:51:55,317 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 18:51:55,318 - api_logger - INFO - Router cargado: /export
2026-05-08 18:51:55,318 - api_logger - INFO - Router cargado: /licenses
2026-05-08 18:51:55,318 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 18:51:55,325 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 18:51:55,326 - api_logger - INFO - Router cargado: /payment
2026-05-08 18:51:55,326 - api_logger - INFO - Router cargado: /plans
2026-05-08 18:51:55,327 - api_logger - INFO - Router cargado: 
2026-05-08 18:51:55,329 - api_logger - INFO - Router cargado: /webservices
2026-05-08 18:51:55,330 - api_logger - INFO - Router cargado: /auth
2026-05-08 18:51:55,332 - api_logger - INFO - Router cargado: /users
2026-05-08 18:51:55,334 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 18:51:55,334 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 18:51:55,338 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 18:53:04,493 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 18:53:04,496 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 18:53:04,497 - api_logger - INFO - Router cargado: /export
2026-05-08 18:53:04,497 - api_logger - INFO - Router cargado: /licenses
2026-05-08 18:53:04,497 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 18:53:04,505 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 18:53:04,505 - api_logger - INFO - Router cargado: /payment
2026-05-08 18:53:04,505 - api_logger - INFO - Router cargado: /plans
2026-05-08 18:53:04,506 - api_logger - INFO - Router cargado: 
2026-05-08 18:53:04,508 - api_logger - INFO - Router cargado: /webservices
2026-05-08 18:53:04,509 - api_logger - INFO - Router cargado: /auth
2026-05-08 18:53:04,511 - api_logger - INFO - Router cargado: /users
2026-05-08 18:53:04,513 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 18:53:04,513 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 18:53:04,517 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 18:53:51,339 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 18:53:51,341 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 18:53:51,342 - api_logger - INFO - Router cargado: /export
2026-05-08 18:53:51,342 - api_logger - INFO - Router cargado: /licenses
2026-05-08 18:53:51,343 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 18:53:51,350 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 18:53:51,351 - api_logger - INFO - Router cargado: /payment
2026-05-08 18:53:51,351 - api_logger - INFO - Router cargado: /plans
2026-05-08 18:53:51,352 - api_logger - INFO - Router cargado: 
2026-05-08 18:53:51,353 - api_logger - INFO - Router cargado: /webservices
2026-05-08 18:53:51,354 - api_logger - INFO - Router cargado: /auth
2026-05-08 18:53:51,356 - api_logger - INFO - Router cargado: /users
2026-05-08 18:53:51,358 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 18:53:51,359 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 18:53:51,362 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 18:53:52,203 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 18:53:52,206 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 18:53:52,207 - api_logger - INFO - Router cargado: /export
2026-05-08 18:53:52,207 - api_logger - INFO - Router cargado: /licenses
2026-05-08 18:53:52,207 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 18:53:52,215 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 18:53:52,215 - api_logger - INFO - Router cargado: /payment
2026-05-08 18:53:52,216 - api_logger - INFO - Router cargado: /plans
2026-05-08 18:53:52,217 - api_logger - INFO - Router cargado: 
2026-05-08 18:53:52,218 - api_logger - INFO - Router cargado: /webservices
2026-05-08 18:53:52,219 - api_logger - INFO - Router cargado: /auth
2026-05-08 18:53:52,221 - api_logger - INFO - Router cargado: /users
2026-05-08 18:53:52,223 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 18:53:52,224 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 18:53:52,227 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 18:53:52,272 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 18:53:52,274 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 18:53:52,275 - api_logger - INFO - Router cargado: /export
2026-05-08 18:53:52,275 - api_logger - INFO - Router cargado: /licenses
2026-05-08 18:53:52,276 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 18:53:52,283 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 18:53:52,283 - api_logger - INFO - Router cargado: /payment
2026-05-08 18:53:52,283 - api_logger - INFO - Router cargado: /plans
2026-05-08 18:53:52,284 - api_logger - INFO - Router cargado: 
2026-05-08 18:53:52,285 - api_logger - INFO - Router cargado: /webservices
2026-05-08 18:53:52,287 - api_logger - INFO - Router cargado: /auth
2026-05-08 18:53:52,288 - api_logger - INFO - Router cargado: /users
2026-05-08 18:53:52,290 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 18:53:52,290 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 18:53:52,293 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 18:54:24,600 - api_logger - INFO - [Orchestrator/CIEC] RFC=MJM200228CA7 esperando turno (semáforo)...
2026-05-08 18:54:24,600 - api_logger - INFO - [Orchestrator/CIEC] RFC=MJM200228CA7 iniciando sesión SAT
2026-05-08 18:56:14,633 - api_logger - ERROR - [Orchestrator] Error en reintento RFC=MJM200228CA7: 500: Login fallido (captcha o credenciales incorrectas)
2026-05-08 19:14:13,397 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 19:14:13,399 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 19:14:13,400 - api_logger - INFO - Router cargado: /export
2026-05-08 19:14:13,400 - api_logger - INFO - Router cargado: /licenses
2026-05-08 19:14:13,400 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 19:14:13,408 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 19:14:13,408 - api_logger - INFO - Router cargado: /payment
2026-05-08 19:14:13,409 - api_logger - INFO - Router cargado: /plans
2026-05-08 19:14:13,409 - api_logger - INFO - Router cargado: 
2026-05-08 19:14:13,411 - api_logger - INFO - Router cargado: /webservices
2026-05-08 19:14:13,412 - api_logger - INFO - Router cargado: /auth
2026-05-08 19:14:13,414 - api_logger - INFO - Router cargado: /users
2026-05-08 19:14:13,418 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 19:14:13,419 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 19:14:13,423 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 19:15:48,569 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 19:15:48,571 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 19:15:48,572 - api_logger - INFO - Router cargado: /export
2026-05-08 19:15:48,572 - api_logger - INFO - Router cargado: /licenses
2026-05-08 19:15:48,572 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 19:15:48,580 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 19:15:48,581 - api_logger - INFO - Router cargado: /payment
2026-05-08 19:15:48,581 - api_logger - INFO - Router cargado: /plans
2026-05-08 19:15:48,582 - api_logger - INFO - Router cargado: 
2026-05-08 19:15:48,583 - api_logger - INFO - Router cargado: /webservices
2026-05-08 19:15:48,584 - api_logger - INFO - Router cargado: /auth
2026-05-08 19:15:48,586 - api_logger - INFO - Router cargado: /users
2026-05-08 19:15:48,588 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 19:15:48,589 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 19:15:48,592 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 19:15:49,416 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 19:15:49,419 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 19:15:49,420 - api_logger - INFO - Router cargado: /export
2026-05-08 19:15:49,420 - api_logger - INFO - Router cargado: /licenses
2026-05-08 19:15:49,420 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 19:15:49,428 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 19:15:49,428 - api_logger - INFO - Router cargado: /payment
2026-05-08 19:15:49,429 - api_logger - INFO - Router cargado: /plans
2026-05-08 19:15:49,429 - api_logger - INFO - Router cargado: 
2026-05-08 19:15:49,431 - api_logger - INFO - Router cargado: /webservices
2026-05-08 19:15:49,432 - api_logger - INFO - Router cargado: /auth
2026-05-08 19:15:49,434 - api_logger - INFO - Router cargado: /users
2026-05-08 19:15:49,436 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 19:15:49,436 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 19:15:49,440 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 19:15:49,485 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 19:15:49,487 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 19:15:49,488 - api_logger - INFO - Router cargado: /export
2026-05-08 19:15:49,488 - api_logger - INFO - Router cargado: /licenses
2026-05-08 19:15:49,488 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 19:15:49,496 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 19:15:49,496 - api_logger - INFO - Router cargado: /payment
2026-05-08 19:15:49,496 - api_logger - INFO - Router cargado: /plans
2026-05-08 19:15:49,497 - api_logger - INFO - Router cargado: 
2026-05-08 19:15:49,499 - api_logger - INFO - Router cargado: /webservices
2026-05-08 19:15:49,500 - api_logger - INFO - Router cargado: /auth
2026-05-08 19:15:49,501 - api_logger - INFO - Router cargado: /users
2026-05-08 19:15:49,503 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 19:15:49,503 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 19:15:49,506 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 19:17:32,965 - api_logger - INFO - Creando particion en tabla cfdi_documents_emitidos: para IAS191111S86 key: ead11a8d04a58779
2026-05-08 19:17:34,168 - api_logger - INFO - Creando particion en tabla cfdi_documents_recibidos: para IAS191111S86 key: ead11a8d04a58779
2026-05-08 19:17:35,243 - api_logger - INFO - Se crea particion 50_IAS191111S86 en cfdi_documents satisfactoriamente.
2026-05-08 19:20:50,466 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:20:50,917 - api_logger - INFO - [GetCFDIWebServices] Solicitud emitidos: {'id_solicitud': 'e1f7c740-bd86-42b0-a5f4-ca6a930732e0', 'cod_estatus': '5000', 'mensaje': 'Solicitud Aceptada'}
2026-05-08 19:20:51,107 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:20:51,516 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=e1f7c740-bd86-42b0-a5f4-ca6a930732e0 estado=5 intento=1
2026-05-08 19:20:51,517 - api_logger - ERROR - [GetCFDIWebServices] Error en _run_descarga [emitidos]: Solicitud e1f7c740-bd86-42b0-a5f4-ca6a930732e0 terminó con estado de error: 5
2026-05-08 19:20:51,848 - api_logger - INFO - [Orchestrator] RFC=IAS191111S86 método=fiel paquetes=0 cfdis=0
2026-05-08 19:22:37,620 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 19:22:37,623 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 19:22:37,624 - api_logger - INFO - Router cargado: /export
2026-05-08 19:22:37,624 - api_logger - INFO - Router cargado: /licenses
2026-05-08 19:22:37,624 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 19:22:37,632 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 19:22:37,633 - api_logger - INFO - Router cargado: /payment
2026-05-08 19:22:37,633 - api_logger - INFO - Router cargado: /plans
2026-05-08 19:22:37,634 - api_logger - INFO - Router cargado: 
2026-05-08 19:22:37,635 - api_logger - INFO - Router cargado: /webservices
2026-05-08 19:22:37,637 - api_logger - INFO - Router cargado: /auth
2026-05-08 19:22:37,638 - api_logger - INFO - Router cargado: /users
2026-05-08 19:22:37,640 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 19:22:37,641 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 19:22:37,645 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 19:22:37,693 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 19:22:37,696 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 19:22:37,697 - api_logger - INFO - Router cargado: /export
2026-05-08 19:22:37,697 - api_logger - INFO - Router cargado: /licenses
2026-05-08 19:22:37,697 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 19:22:37,704 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 19:22:37,705 - api_logger - INFO - Router cargado: /payment
2026-05-08 19:22:37,705 - api_logger - INFO - Router cargado: /plans
2026-05-08 19:22:37,706 - api_logger - INFO - Router cargado: 
2026-05-08 19:22:37,707 - api_logger - INFO - Router cargado: /webservices
2026-05-08 19:22:37,708 - api_logger - INFO - Router cargado: /auth
2026-05-08 19:22:37,710 - api_logger - INFO - Router cargado: /users
2026-05-08 19:22:37,712 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 19:22:37,712 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 19:22:37,715 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 19:22:42,838 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 19:22:42,841 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 19:22:42,842 - api_logger - INFO - Router cargado: /export
2026-05-08 19:22:42,842 - api_logger - INFO - Router cargado: /licenses
2026-05-08 19:22:42,843 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 19:22:42,851 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 19:22:42,852 - api_logger - INFO - Router cargado: /payment
2026-05-08 19:22:42,852 - api_logger - INFO - Router cargado: /plans
2026-05-08 19:22:42,853 - api_logger - INFO - Router cargado: 
2026-05-08 19:22:42,854 - api_logger - INFO - Router cargado: /webservices
2026-05-08 19:22:42,856 - api_logger - INFO - Router cargado: /auth
2026-05-08 19:22:42,857 - api_logger - INFO - Router cargado: /users
2026-05-08 19:22:42,860 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 19:22:42,860 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 19:22:42,863 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 19:22:42,910 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 19:22:42,913 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 19:22:42,914 - api_logger - INFO - Router cargado: /export
2026-05-08 19:22:42,914 - api_logger - INFO - Router cargado: /licenses
2026-05-08 19:22:42,914 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 19:22:42,921 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 19:22:42,922 - api_logger - INFO - Router cargado: /payment
2026-05-08 19:22:42,922 - api_logger - INFO - Router cargado: /plans
2026-05-08 19:22:42,923 - api_logger - INFO - Router cargado: 
2026-05-08 19:22:42,924 - api_logger - INFO - Router cargado: /webservices
2026-05-08 19:22:42,925 - api_logger - INFO - Router cargado: /auth
2026-05-08 19:22:42,926 - api_logger - INFO - Router cargado: /users
2026-05-08 19:22:42,928 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 19:22:42,929 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 19:22:42,932 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 19:24:09,514 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:24:09,994 - api_logger - INFO - [GetCFDIWebServices] Solicitud emitidos: {'id_solicitud': 'a89e119a-af76-4d9f-9afa-4afdb5612c3d', 'cod_estatus': '5000', 'mensaje': 'Solicitud Aceptada'}
2026-05-08 19:24:10,200 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:24:10,702 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=1
2026-05-08 19:24:20,892 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:24:21,424 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=2
2026-05-08 19:24:31,595 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:24:31,980 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=3
2026-05-08 19:24:42,153 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:24:42,556 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=4
2026-05-08 19:25:42,727 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:25:44,000 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=5
2026-05-08 19:26:44,167 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:26:44,662 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=6
2026-05-08 19:27:44,840 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:27:45,371 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=7
2026-05-08 19:28:45,538 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:28:45,923 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=8
2026-05-08 19:29:46,097 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:29:46,589 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=9
2026-05-08 19:30:46,758 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:30:47,175 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=10
2026-05-08 19:31:47,334 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:31:47,779 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=11
2026-05-08 19:32:17,819 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:32:18,288 - api_logger - INFO - [GetCFDIWebServices] Solicitud recibidos: {'id_solicitud': 'eddb1852-0375-4b4b-83e7-d8ebd5bca3b4', 'cod_estatus': '5000', 'mensaje': 'Solicitud Aceptada'}
2026-05-08 19:32:18,452 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:32:18,805 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=1
2026-05-08 19:32:28,993 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:32:29,431 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=2
2026-05-08 19:32:39,596 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:32:40,063 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=3
2026-05-08 19:32:47,953 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:32:48,361 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=12
2026-05-08 19:32:50,256 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:32:51,467 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=4
2026-05-08 19:33:48,878 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:33:49,269 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=13
2026-05-08 19:33:51,664 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:33:52,078 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=5
2026-05-08 19:34:49,500 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:34:49,896 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=14
2026-05-08 19:34:52,280 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:34:52,703 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=6
2026-05-08 19:35:50,083 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:35:50,494 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=15
2026-05-08 19:35:52,887 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:35:53,289 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=7
2026-05-08 19:36:50,666 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:36:51,099 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=16
2026-05-08 19:36:53,534 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:36:53,913 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=8
2026-05-08 19:37:51,262 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:37:51,637 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=17
2026-05-08 19:37:54,092 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:37:54,589 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=9
2026-05-08 19:38:51,824 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:38:52,226 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=18
2026-05-08 19:38:54,790 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:38:55,289 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=10
2026-05-08 19:39:52,440 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:39:52,895 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=19
2026-05-08 19:39:55,458 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:39:55,875 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=11
2026-05-08 19:40:53,091 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:40:53,514 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=20
2026-05-08 19:40:56,119 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:40:56,547 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=12
2026-05-08 19:41:53,710 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:41:54,208 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=21
2026-05-08 19:41:56,708 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:41:57,117 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=13
2026-05-08 19:42:54,440 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:42:54,897 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=22
2026-05-08 19:42:57,307 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:42:57,795 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=14
2026-05-08 19:43:55,084 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:43:55,489 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=23
2026-05-08 19:43:57,959 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:43:58,376 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=15
2026-05-08 19:44:55,665 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:44:56,057 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=24
2026-05-08 19:44:58,579 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:44:59,110 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=16
2026-05-08 19:45:56,264 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:45:56,917 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=25
2026-05-08 19:45:59,409 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:45:59,892 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=17
2026-05-08 19:46:57,076 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:46:57,475 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=26
2026-05-08 19:47:00,141 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:47:00,767 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=18
2026-05-08 19:47:57,644 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:47:58,143 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=27
2026-05-08 19:48:00,984 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:48:01,546 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=19
2026-05-08 19:48:58,333 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:48:58,720 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=28
2026-05-08 19:49:01,719 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:49:02,781 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=20
2026-05-08 19:49:58,889 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:49:59,364 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=29
2026-05-08 19:50:02,959 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:50:03,372 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=21
2026-05-08 19:50:59,525 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:50:59,986 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=30
2026-05-08 19:51:03,558 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:51:04,503 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=22
2026-05-08 19:52:00,178 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:52:00,675 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=31
2026-05-08 19:52:04,682 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:52:05,054 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=23
2026-05-08 19:53:00,859 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:53:01,271 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=32
2026-05-08 19:53:05,223 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:53:05,707 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=24
2026-05-08 19:54:01,446 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:54:02,521 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=33
2026-05-08 19:54:05,869 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:54:06,279 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=25
2026-05-08 19:55:02,693 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:55:03,132 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=34
2026-05-08 19:55:06,443 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:55:06,844 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=26
2026-05-08 19:56:03,301 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:56:03,711 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=35
2026-05-08 19:56:07,035 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:56:07,447 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=27
2026-05-08 19:57:03,884 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:57:04,257 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=36
2026-05-08 19:57:07,619 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:57:07,999 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=28
2026-05-08 19:58:04,431 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:58:04,865 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=37
2026-05-08 19:58:08,191 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:58:08,632 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=29
2026-05-08 19:59:05,027 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:59:05,440 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=38
2026-05-08 19:59:08,807 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 19:59:09,209 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=30
2026-05-08 20:00:05,607 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:00:05,998 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=39
2026-05-08 20:00:09,403 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:00:09,806 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=31
2026-05-08 20:01:06,207 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:01:06,655 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=40
2026-05-08 20:01:09,970 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:01:10,372 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=32
2026-05-08 20:02:06,827 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:02:07,491 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=41
2026-05-08 20:02:10,537 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:02:10,960 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=33
2026-05-08 20:03:07,650 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:03:08,050 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=42
2026-05-08 20:03:11,129 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:03:11,516 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=34
2026-05-08 20:04:08,255 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:04:08,645 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=43
2026-05-08 20:04:11,680 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:04:12,114 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=35
2026-05-08 20:05:08,812 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:05:09,254 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=44
2026-05-08 20:05:12,276 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:05:12,650 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=36
2026-05-08 20:06:09,428 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:06:09,922 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=45
2026-05-08 20:06:12,819 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:06:13,635 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=37
2026-05-08 20:07:10,097 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:07:10,812 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=46
2026-05-08 20:07:13,805 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:07:14,223 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=38
2026-05-08 20:08:10,997 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:08:12,380 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=47
2026-05-08 20:08:14,413 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:08:14,908 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=39
2026-05-08 20:09:12,546 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:09:12,934 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=48
2026-05-08 20:09:15,082 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:09:15,555 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=40
2026-05-08 20:10:13,102 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:10:13,501 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=49
2026-05-08 20:10:15,736 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:10:16,196 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=41
2026-05-08 20:11:13,675 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:11:14,098 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=50
2026-05-08 20:11:16,373 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:11:17,255 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=42
2026-05-08 20:12:14,282 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:12:14,968 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=51
2026-05-08 20:12:17,520 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:12:17,945 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=43
2026-05-08 20:13:15,143 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:13:15,554 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=52
2026-05-08 20:13:18,114 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:13:18,558 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=44
2026-05-08 20:14:15,750 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:14:16,663 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=53
2026-05-08 20:14:18,748 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:14:19,530 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=45
2026-05-08 20:15:16,836 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:15:17,554 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=54
2026-05-08 20:15:19,714 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:15:21,260 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=46
2026-05-08 20:16:17,735 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:16:18,109 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=2 intento=55
2026-05-08 20:16:21,431 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:16:21,797 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=2 intento=47
2026-05-08 20:17:18,276 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:17:18,670 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=a89e119a-af76-4d9f-9afa-4afdb5612c3d estado=3 intento=56
2026-05-08 20:17:18,841 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:17:19,353 - api_logger - INFO - [GetCFDIWebServices] Paquete guardado: /home/gothic/Documentos/geniubs/sat/app/api/tmp/cfdi_ws/IAS191111S86/A89E119A-AF76-4D9F-9AFA-4AFDB5612C3D_01.zip
2026-05-08 20:17:20,635 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_emitidos_ead11a8d04a58779_ias191111s86" violates foreign key constraint "cfdi_documents_emitidos_company_id_fkey"
DETAIL:  Key (company_id)=(45) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_emitidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_emitidos.cfdi_id, cfdi_system.cfdi_documents_emitidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_ias191111s86', 'uuid': '844E875D-284F-4F5A-81D6-2F3654AE8A54', 'company_id': 45, 'tenant_id': None, 'version': '4.0', 'series': 'REP', 'number_leaf': '678', 'dates': '2026-04-28T08:12:00', 'stamp': 'MA3s8uUsVHiOVZdx9hRxIkJHO0tpU8BhW/XJzl405A+4OGsVJQ+niYSvTimW6zX7TXiD9IHEZmBBXR1deFDnNTDMxSIEvr0p2QQ29nEvjmubjvPat4Eyoo/ZLEFx6atUFb6FCVPQZLSzD4aicZx+m ... (46 characters truncated) ... Bogv2UQ7q6iePt5OQXQhH8T/hGyqOf3EKMbEWV5NLuFLcJNRqef+4u5dW1saPYmZ28GvDpkicGkga1odvGLXqjl2gTR+WTPj7kFilNrAeVb3PsO1UmjskcFZjK/2VlaudxkLe0RY3zY1Bcyjf/w==', 'certificate_number': '00001000000705046403', 'certificate': 'MIIGHDCCBASgAwIBAgIUMDAwMDEwMDAwMDA3MDUwNDY0MDMwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1794 characters truncated) ... tIw+o/UGo+qnZWtwIF/Q8iZzUX/crZwZtNNFQwqyjwOItOqiEFz+C6B+KKRzp5diHF1nn9GOWF2uoXzVXCNzU9ABRiAxUCj1PX0HIkyiiRomzkCoP6JsIAkhlLN/6efrAavLpCXQcectSu3gEgd8=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '0', 'discount': '0', 'currency': 'XXX', 'exchange_rate': '1', 'total': '0', 'type_of_fiscal_document': 'P', 'export': '01', 'payment_method': '', 'place_of_issuance': '03810', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'IAS191111S86', 'name_of_the_issuer': 'ILEXLU ACCOUNTING SERVICES', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'AOPC880303LV4', 'name_of_the_receiver': 'CLAUDIA MARIANA ACOSTA PEREZ BERTHELY', 'tax_address_of_the_receiver': '53160', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CP01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111506", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago",  ... (4 characters truncated) ... or_unitario": "0", "importe": "0", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2026-04-28T08:12:11', 'certif_provider_rfc': 'MAS0810247C0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/cfdi_ws/IAS191111S86/844e875d-284f-4f5a-81d6-2f3654ae8a54.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-08 20:17:20,865 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_emitidos_ead11a8d04a58779_ias191111s86" violates foreign key constraint "cfdi_documents_emitidos_company_id_fkey"
DETAIL:  Key (company_id)=(45) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_emitidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_emitidos.cfdi_id, cfdi_system.cfdi_documents_emitidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_ias191111s86', 'uuid': 'E6E6EDA6-BFA3-440B-B9EA-D85B3E63149A', 'company_id': 45, 'tenant_id': None, 'version': '4.0', 'series': '2026', 'number_leaf': '8', 'dates': '2026-04-30T22:22:02', 'stamp': 'NYdVn387SuvpoWR8GjsR6ajUIV5yJaqL15Jj63zfNx1mqf5MNZl/FR9JKaS0NBVFKInxQgiJ4KOkM7PIcWXrGxuLhNbm85Q4D56X//HMf522KvOZoL53MI+y6N7jx3BfOFmgparTFyhALbreLcUvH ... (46 characters truncated) ... 1OfFxL7MzUDYUY1vlL8K5l4OUd+VQ66z7ZCtNGkqvVn/OFgZuJDfvrD6tCtWukR9iUjX+yuFp5WP/e7M61arjka2bvFt4kQRIVx12/POSGWiCglMMjP24QRjpdcI1om81oaVR3yTth/0UWSc7jw==', 'certificate_number': '00001000000705046403', 'certificate': 'MIIGHDCCBASgAwIBAgIUMDAwMDEwMDAwMDA3MDUwNDY0MDMwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1794 characters truncated) ... tIw+o/UGo+qnZWtwIF/Q8iZzUX/crZwZtNNFQwqyjwOItOqiEFz+C6B+KKRzp5diHF1nn9GOWF2uoXzVXCNzU9ABRiAxUCj1PX0HIkyiiRomzkCoP6JsIAkhlLN/6efrAavLpCXQcectSu3gEgd8=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '12110.02', 'discount': '1987.82', 'currency': 'MXN', 'exchange_rate': '1', 'total': '10122.20', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03810', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'IAS191111S86', 'name_of_the_issuer': 'ILEXLU ACCOUNTING SERVICES', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'PECG82120934A', 'name_of_the_receiver': 'GUADALUPE ISABEL PEÑA CRUZ', 'tax_address_of_the_receiver': '56553', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 02", "importe": "12110.02", "descuento": "1987.82", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2026-04-30T22:22:10', 'certif_provider_rfc': 'MAS0810247C0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/cfdi_ws/IAS191111S86/e6e6eda6-bfa3-440b-b9ea-d85b3e63149a.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-08 20:17:21,091 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_emitidos_ead11a8d04a58779_ias191111s86" violates foreign key constraint "cfdi_documents_emitidos_company_id_fkey"
DETAIL:  Key (company_id)=(45) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_emitidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_emitidos.cfdi_id, cfdi_system.cfdi_documents_emitidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_ias191111s86', 'uuid': '27ADF05F-C9C1-4607-B868-1B2B070811F7', 'company_id': 45, 'tenant_id': None, 'version': '4.0', 'series': '2026', 'number_leaf': '8', 'dates': '2026-04-30T22:22:05', 'stamp': 'jYW+aPcCK0i+MX627WE8menND+yGt17q1NUq3AT1s+yAITwy81LHAFUexI+fFTKEpBIjelfijva6rP57/gA6r4dr+/SZUuKKrITGXaGetxVSG+NpRKwctnvIudAE9W8h24WZkOvOwvRcjnIxeqsXq ... (46 characters truncated) ... 0ndVoGYkpMVKpDEzlrvFG0zPunBkk0Wc/XJ3665G4ULZIUu4ccxwUgF2CXUdeMDDwZgTRRjsuksFPyw9qbtUKJsUv74txcsvGVYGvDuwGazFo1xFEzzLCTVutvKkRVFoUtLY1EvyHVgXMnxWQyQ==', 'certificate_number': '00001000000705046403', 'certificate': 'MIIGHDCCBASgAwIBAgIUMDAwMDEwMDAwMDA3MDUwNDY0MDMwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1794 characters truncated) ... tIw+o/UGo+qnZWtwIF/Q8iZzUX/crZwZtNNFQwqyjwOItOqiEFz+C6B+KKRzp5diHF1nn9GOWF2uoXzVXCNzU9ABRiAxUCj1PX0HIkyiiRomzkCoP6JsIAkhlLN/6efrAavLpCXQcectSu3gEgd8=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '9805.16', 'discount': '2238.76', 'currency': 'MXN', 'exchange_rate': '1', 'total': '7566.40', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03810', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'IAS191111S86', 'name_of_the_issuer': 'ILEXLU ACCOUNTING SERVICES', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VINK911220CN2', 'name_of_the_receiver': 'KARLA MARISOL VILLA NAVA', 'tax_address_of_the_receiver': '16029', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (33 characters truncated) ... .16", "importe": "9805.16", "descuento": "2238.76", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2026-04-30T22:22:15', 'certif_provider_rfc': 'MAS0810247C0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/cfdi_ws/IAS191111S86/27adf05f-c9c1-4607-b868-1b2b070811f7.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-08 20:17:21,319 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_emitidos_ead11a8d04a58779_ias191111s86" violates foreign key constraint "cfdi_documents_emitidos_company_id_fkey"
DETAIL:  Key (company_id)=(45) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_emitidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_emitidos.cfdi_id, cfdi_system.cfdi_documents_emitidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_ias191111s86', 'uuid': '56941A10-FF46-4464-BE3F-86206E5B9FD7', 'company_id': 45, 'tenant_id': None, 'version': '4.0', 'series': '2026', 'number_leaf': '8', 'dates': '2026-04-30T22:22:03', 'stamp': 'BowAoryc/Tcj7VJzBC+ZY2k4xO/2GLErzvDqo3NTqyv/bAItq6d64fWmHZhSZIMF7R25bbzGtb+8TLvBvm0C8oeB47xx7B9oTLoUQtA8+95E7OyLT03PeCNUWvtAx0Pf+2NxiCBUuKCoxz/ZOT/5F ... (46 characters truncated) ... xU/gZqivt7qOa7DhiRZVAnY7zVQLEBEkMB4nViimUJdwV17ukl5TYVBM9ISwjcDv2h9ufqXDD2x4P49eid9CiBnuUpOrKrhP9S63KtwcgXe4Rlx0Hcqd15zmHtPgj3zLvsrbtvsIcBEhhUXoKZQ==', 'certificate_number': '00001000000705046403', 'certificate': 'MIIGHDCCBASgAwIBAgIUMDAwMDEwMDAwMDA3MDUwNDY0MDMwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1794 characters truncated) ... tIw+o/UGo+qnZWtwIF/Q8iZzUX/crZwZtNNFQwqyjwOItOqiEFz+C6B+KKRzp5diHF1nn9GOWF2uoXzVXCNzU9ABRiAxUCj1PX0HIkyiiRomzkCoP6JsIAkhlLN/6efrAavLpCXQcectSu3gEgd8=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '18625.09', 'discount': '3595.29', 'currency': 'MXN', 'exchange_rate': '1', 'total': '15029.80', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03810', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'IAS191111S86', 'name_of_the_issuer': 'ILEXLU ACCOUNTING SERVICES', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'SAGR8410224B6', 'name_of_the_receiver': 'RUBI SANCHEZ GONZALEZ', 'tax_address_of_the_receiver': '56604', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 09", "importe": "18625.09", "descuento": "3595.29", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2026-04-30T22:22:13', 'certif_provider_rfc': 'MAS0810247C0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/cfdi_ws/IAS191111S86/56941a10-ff46-4464-be3f-86206e5b9fd7.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-08 20:17:21,544 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_emitidos_ead11a8d04a58779_ias191111s86" violates foreign key constraint "cfdi_documents_emitidos_company_id_fkey"
DETAIL:  Key (company_id)=(45) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_emitidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_emitidos.cfdi_id, cfdi_system.cfdi_documents_emitidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_ias191111s86', 'uuid': '37E36DEA-B4BC-4E34-BE50-55D2FEE9E724', 'company_id': 45, 'tenant_id': None, 'version': '4.0', 'series': '2026', 'number_leaf': '8', 'dates': '2026-04-30T22:22:08', 'stamp': 'Xq3yOBI2TTYQzyhQocrpg+i+s/AvJA58XmZUl3Pk7RzuSuF3N+xuk8JKHAbQehJNWh1kA3c9puFtCTefLn/j3cKD+3vDQ6eBGNSE5ot4/Ak4g5fg5kQ+thM0BV8+jP9bQQaHV2T8KD0IAGG+479UR ... (46 characters truncated) ... LvTmgMESGB6N88udF/rkcHuXVgnjw4XuFmhoCU8VDyzN3qQE518ODoAEaDGXBqhH+vCULyepCtcmPFtWpP5qj/+dpAC+hoAJwXWhPP3M61i76DUSzWy2h+8hytV/T5RUzBs2dlFRbmBfaK0ChBg==', 'certificate_number': '00001000000705046403', 'certificate': 'MIIGHDCCBASgAwIBAgIUMDAwMDEwMDAwMDA3MDUwNDY0MDMwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1794 characters truncated) ... tIw+o/UGo+qnZWtwIF/Q8iZzUX/crZwZtNNFQwqyjwOItOqiEFz+C6B+KKRzp5diHF1nn9GOWF2uoXzVXCNzU9ABRiAxUCj1PX0HIkyiiRomzkCoP6JsIAkhlLN/6efrAavLpCXQcectSu3gEgd8=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '11592.05', 'discount': '1591.45', 'currency': 'MXN', 'exchange_rate': '1', 'total': '10000.60', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03810', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'IAS191111S86', 'name_of_the_issuer': 'ILEXLU ACCOUNTING SERVICES', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'MEGY8612213Z7', 'name_of_the_receiver': 'YENERY MELCHOR GONZALEZ', 'tax_address_of_the_receiver': '03730', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 05", "importe": "11592.05", "descuento": "1591.45", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2026-04-30T22:22:17', 'certif_provider_rfc': 'MAS0810247C0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/cfdi_ws/IAS191111S86/37e36dea-b4bc-4e34-be50-55d2fee9e724.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-08 20:17:21,776 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_emitidos_ead11a8d04a58779_ias191111s86" violates foreign key constraint "cfdi_documents_emitidos_company_id_fkey"
DETAIL:  Key (company_id)=(45) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_emitidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_emitidos.cfdi_id, cfdi_system.cfdi_documents_emitidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_ias191111s86', 'uuid': '5F4030E5-9121-42F6-B102-D1363264472B', 'company_id': 45, 'tenant_id': None, 'version': '4.0', 'series': '2026', 'number_leaf': '8', 'dates': '2026-04-30T22:21:53', 'stamp': 'aveWSLtJBX8N1ddlz4y+bZKoz+IJFtaAwp6QbEt2ERNb0i+UliP6lWactoErCg9ygWVm6gHy77t3FbnuOxKaAgJO/+9h9tBTgGlUXbkxMUwI+TXSQBSvTxGAtkjgcPIhwcYPRgGoa94cW7vFaCMHk ... (46 characters truncated) ... Hu03T4nNYDI1wnqHbH3KP1utVoo8b9TMpa9HPLGnGP3bhuxJnIO5J0AxCW891PgN6Hdx/tms53PEzIhU4O4O4BJPZ6k0HQ2EFnkFelV9uPo13Im6QXb9P+dZNvKy9ShI33wXnLm/QEE/4n+V8Fg==', 'certificate_number': '00001000000705046403', 'certificate': 'MIIGHDCCBASgAwIBAgIUMDAwMDEwMDAwMDA3MDUwNDY0MDMwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1794 characters truncated) ... tIw+o/UGo+qnZWtwIF/Q8iZzUX/crZwZtNNFQwqyjwOItOqiEFz+C6B+KKRzp5diHF1nn9GOWF2uoXzVXCNzU9ABRiAxUCj1PX0HIkyiiRomzkCoP6JsIAkhlLN/6efrAavLpCXQcectSu3gEgd8=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '8800.05', 'discount': '1184.45', 'currency': 'MXN', 'exchange_rate': '1', 'total': '7615.60', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03810', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'IAS191111S86', 'name_of_the_issuer': 'ILEXLU ACCOUNTING SERVICES', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'SACR970717SN0', 'name_of_the_receiver': 'RUTH EVELIN SALAS CRUZ', 'tax_address_of_the_receiver': '56607', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (33 characters truncated) ... .05", "importe": "8800.05", "descuento": "1184.45", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2026-04-30T22:22:07', 'certif_provider_rfc': 'MAS0810247C0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/cfdi_ws/IAS191111S86/5f4030e5-9121-42f6-b102-d1363264472b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-08 20:17:21,976 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:17:22,003 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_emitidos_ead11a8d04a58779_ias191111s86" violates foreign key constraint "cfdi_documents_emitidos_company_id_fkey"
DETAIL:  Key (company_id)=(45) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_emitidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_emitidos.cfdi_id, cfdi_system.cfdi_documents_emitidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_ias191111s86', 'uuid': 'D769A778-F3D6-404A-8303-62D37D60EB21', 'company_id': 45, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '902', 'dates': '2026-04-28T08:16:18', 'stamp': 'AEzm0ZdZGW+4cPK6ypQuZhoQKsfs0I78pRyZhV99+xTHlyOvsUmCuRPHJEb0FFgXHr4idoTiG8XBXuIHt6+0IKHgDyuZ9dEazjH86byVsVfWZhhWY+gQrLKvc7hSnsy13GkZUutUpfpv9ZSzt2Ol3 ... (46 characters truncated) ... Eu+HGNAIh6IWcd7nJGlV0QUvF1tqC9hmRUmPbx3VG9ZvgYhLkHLDyYwlWlCfqxTigw/mPIb4EUSIeENHZWlPWraWzIu2AEtkKG0R8Jsig8elRq57sf6EE/PilYOVcfiV/ptyXwrkxnlSbIinjQQ==', 'certificate_number': '00001000000705046403', 'certificate': 'MIIGHDCCBASgAwIBAgIUMDAwMDEwMDAwMDA3MDUwNDY0MDMwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1794 characters truncated) ... tIw+o/UGo+qnZWtwIF/Q8iZzUX/crZwZtNNFQwqyjwOItOqiEFz+C6B+KKRzp5diHF1nn9GOWF2uoXzVXCNzU9ABRiAxUCj1PX0HIkyiiRomzkCoP6JsIAkhlLN/6efrAavLpCXQcectSu3gEgd8=', 'form_of_payment': '99', 'payment_terms': None, 'subtotal': '4500.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '5220.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PPD', 'place_of_issuance': '03810', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'IAS191111S86', 'name_of_the_issuer': 'ILEXLU ACCOUNTING SERVICES', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'BEPV840908BY0', 'name_of_the_receiver': 'VALERIE BENATAR PUENTE', 'tax_address_of_the_receiver': '05310', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111503", "no_identificacion": "84111503", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "des ... (181 characters truncated) ...  "4500.00", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "720.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '720.00', 'stamp_date': '2026-04-28T08:16:22', 'certif_provider_rfc': 'MAS0810247C0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/cfdi_ws/IAS191111S86/d769a778-f3d6-404a-8303-62d37d60eb21.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-08 20:17:22,234 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_emitidos_ead11a8d04a58779_ias191111s86" violates foreign key constraint "cfdi_documents_emitidos_company_id_fkey"
DETAIL:  Key (company_id)=(45) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_emitidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_emitidos.cfdi_id, cfdi_system.cfdi_documents_emitidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_ias191111s86', 'uuid': '888D175F-CDC9-4427-A072-1540D0B45C6C', 'company_id': 45, 'tenant_id': None, 'version': '4.0', 'series': '2026', 'number_leaf': '8', 'dates': '2026-04-30T22:22:00', 'stamp': 'MPeqqNkeH4hWBScfWB/R9rKgB+MwLGvpCP2z8Of2DmOEE0kf0xIp4ufGIJ/X2ietHTz0P7kzS8//CsWUmA9JfY46OyW2XOhESPOn8k49Rn/ipT6fYDv9FnT+BAzFTpCbXnKDgzlmuDK80S/aErYfH ... (46 characters truncated) ... dWSSf57SL+BrQPAC8ICxZDUIz9KVrmwVGUTZpHwY4Bickhx4Enox5Ek22jcJyle8IOssC+zKBla9B/fdpD6H2GrRugCqUYY6i+aD+h8dek3Ud715aAmL2lJnacyR0XUBseb8WJPvyPyyDzuGERg==', 'certificate_number': '00001000000705046403', 'certificate': 'MIIGHDCCBASgAwIBAgIUMDAwMDEwMDAwMDA3MDUwNDY0MDMwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1794 characters truncated) ... tIw+o/UGo+qnZWtwIF/Q8iZzUX/crZwZtNNFQwqyjwOItOqiEFz+C6B+KKRzp5diHF1nn9GOWF2uoXzVXCNzU9ABRiAxUCj1PX0HIkyiiRomzkCoP6JsIAkhlLN/6efrAavLpCXQcectSu3gEgd8=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '12109.95', 'discount': '1987.95', 'currency': 'MXN', 'exchange_rate': '1', 'total': '10122.00', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03810', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'IAS191111S86', 'name_of_the_issuer': 'ILEXLU ACCOUNTING SERVICES', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VAML700805283', 'name_of_the_receiver': 'LAURA VAZQUEZ MORALES', 'tax_address_of_the_receiver': '56605', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 95", "importe": "12109.95", "descuento": "1987.95", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2026-04-30T22:22:09', 'certif_provider_rfc': 'MAS0810247C0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/cfdi_ws/IAS191111S86/888d175f-cdc9-4427-a072-1540d0b45c6c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-08 20:17:22,234 - api_logger - INFO - [GetCFDIWebServices] emitidos → 0 CFDIs insertados
2026-05-08 20:17:22,357 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=eddb1852-0375-4b4b-83e7-d8ebd5bca3b4 estado=3 intento=48
2026-05-08 20:17:22,524 - api_logger - INFO - [GetCFDIWebServices] Token obtenido para RFC IAS191111S86
2026-05-08 20:17:22,810 - api_logger - INFO - [Orchestrator] RFC=IAS191111S86 método=fiel paquetes=1 cfdis=0
2026-05-08 20:17:23,049 - api_logger - INFO - [GetCFDIWebServices] Paquete guardado: /home/gothic/Documentos/geniubs/sat/app/api/tmp/cfdi_ws/IAS191111S86/EDDB1852-0375-4B4B-83E7-D8EBD5BCA3B4_01.zip
2026-05-08 20:17:24,040 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_ias191111s86" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(45) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_ias191111s86', 'uuid': '008D7DE5-8DB9-478A-9F29-97DC2631E13B', 'company_id': 45, 'tenant_id': None, 'version': '4.0', 'series': 'TP', 'number_leaf': '361924885583737488P1-552654660T1-0-1', 'dates': '2026-04-30T09:22:20', 'stamp': 'AzFlYYOu7Zv+QuurdyZPcxByehlG4esjJJgoZPHsb4TJDw+OBaCWxQHDdgooDFdnwKCKcPEcFJiCprHD/V6iwey69pLZVfl3AsuVFSMhyD2j6WAKVgbs2EYRCJBzpwoqXq9gCwZcVwWH0T0nnsYU3 ... (46 characters truncated) ... 1gUU3JmlckUyyPP3N7tquEeaz/XHBEtJUXTRP3z9M8sIIehzZYDXBwF06Dv3r1RBtRJHLP0iCKaF0NH28GrXeW4qKWJJdhZNGYBKJeqrqjqeSZMTR79LSYqarQi0wn0xNMOzPJ13hE7jYtd4QYw==', 'certificate_number': '00001000000708348621', 'certificate': 'MIIGQTCCBCmgAwIBAgIUMDAwMDEwMDAwMDA3MDgzNDg2MjEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1842 characters truncated) ... yrhwv7HZa7+CwV86ko2NzdWQuXQShvwNYsPtnLQVI9ph/uBI2y5JhXJi5YOHJp3v0kfL3WEm9U9wNJR9bOVvw1Ps9h56QrfVdGOzQao6TwW1FZvqA+gO7ecLIQ5/tqt8qdRVhZVwaAKwd9g7WFrUH', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '0', 'discount': '0', 'currency': 'XXX', 'exchange_rate': '1', 'total': '0', 'type_of_fiscal_document': 'P', 'export': '01', 'payment_method': '', 'place_of_issuance': '04519', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'TPT890516JP5', 'name_of_the_issuer': 'TOTAL PLAY TELECOMUNICACIONES', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'IAS191111S86', 'name_of_the_receiver': 'ILEXLU ACCOUNTING SERVICES', 'tax_address_of_the_receiver': '03810', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '601', 'use_of_cfdi': 'CP01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111506", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago",  ... (4 characters truncated) ... or_unitario": "0", "importe": "0", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2026-04-30T09:47:35', 'certif_provider_rfc': 'INT020124V62', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/cfdi_ws/IAS191111S86/008d7de5-8db9-478a-9f29-97dc2631e13b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-08 20:17:24,260 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_ias191111s86" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(45) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_ias191111s86', 'uuid': 'E9EE64E8-87A1-4CEF-B450-97DC2631A7E2', 'company_id': 45, 'tenant_id': None, 'version': '4.0', 'series': 'TP', 'number_leaf': '361924885583738512P1-552654660T1-4-1', 'dates': '2026-04-30T09:03:48', 'stamp': 'lj1+wcQecJlzwrZX19FtVGB3K7R4GcBF9LtZkH9S4b+DbEuw+zG9rBovPoq0EH7CZBm6FqFKdf6FxG68xCpSrJtlFtondZbzz74DNAcFIzzkMTT2Kjy7upvUVFm+MAymvHC8BJfJdk5DGpm0ujZhT ... (46 characters truncated) ... hctAxZsD89R3EHi1DplWJMJHJeMPWm1ZwWxaAeQ4vEgyup6cGi3vgiNwjEhp9GZlfp6rKVWSRpLEjyzSRcLtSkBn3rEWNdlR+gXPqyc0tLS7KEV/7xLsm+SEX6NOV+tCz2aQi+cp/Ji/erznGaw==', 'certificate_number': '00001000000723797608', 'certificate': 'MIIF8jCCA9qgAwIBAgIUMDAwMDEwMDAwMDA3MjM3OTc2MDgwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1738 characters truncated) ... Ua8ELCzlaQbPFMpBQ/VcVZtkYb4cgbqQeRztDzpA8RMwwOj8meln5SpEmKpr5Q8Bsii39x+BMCyCnZCKUUIepfAu88K5zcfyRD46e12MiWKEhZxR+NFLcSGHXX42ua6n2QeIEPKXeOcR6whfXUi8=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '0', 'discount': '0', 'currency': 'XXX', 'exchange_rate': '1', 'total': '0', 'type_of_fiscal_document': 'P', 'export': '01', 'payment_method': '', 'place_of_issuance': '04519', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'TBO140305DH0', 'name_of_the_issuer': 'TOTAL BOX', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'IAS191111S86', 'name_of_the_receiver': 'ILEXLU ACCOUNTING SERVICES', 'tax_address_of_the_receiver': '03810', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '601', 'use_of_cfdi': 'CP01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111506", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago",  ... (4 characters truncated) ... or_unitario": "0", "importe": "0", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2026-04-30T09:27:34', 'certif_provider_rfc': 'INT020124V62', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/cfdi_ws/IAS191111S86/e9ee64e8-87a1-4cef-b450-97dc2631a7e2.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-08 20:17:24,475 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_ias191111s86" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(45) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_ias191111s86', 'uuid': '31DB0120-9693-4348-A92C-97DC2631AA6C', 'company_id': 45, 'tenant_id': None, 'version': '4.0', 'series': 'TP', 'number_leaf': '361872108701508665_0_A1-801674711T1-0-1', 'dates': '2026-04-27T09:36:51', 'stamp': 'JNIcVKaUvDNnDLYtJl4g4f73XegpH1uSXf5lnEWpUuCXpSXXDQiWO5LKsyjGB1WiOzJIGjet9SP3cXQtxARdeda5/jAh3Jh6nAlKFpIJwr7rJfdMHIH1de+L8dhS8iRx9xjOyuGWTlvO/3Yjp4hnq ... (46 characters truncated) ... k9ZB5+i8JvJ4KEyL8BrnIzn6hl75KjAkr5MN9sv3uDvD4OnJ15Qme1kgCnRUp4L6rGTTud4KG/xhbFOsgCskegRBnWbS49H6+vmZma5I/7fELtjGkYHXcrA3I4VX42kOzraDB8lG31hN5Pos5vw==', 'certificate_number': '00001000000708348621', 'certificate': 'MIIGQTCCBCmgAwIBAgIUMDAwMDEwMDAwMDA3MDgzNDg2MjEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1842 characters truncated) ... yrhwv7HZa7+CwV86ko2NzdWQuXQShvwNYsPtnLQVI9ph/uBI2y5JhXJi5YOHJp3v0kfL3WEm9U9wNJR9bOVvw1Ps9h56QrfVdGOzQao6TwW1FZvqA+gO7ecLIQ5/tqt8qdRVhZVwaAKwd9g7WFrUH', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.13', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.15', 'type_of_fiscal_document': 'E', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '04519', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': '01', 'rfc_of_the_issuer': 'TPT890516JP5', 'name_of_the_issuer': 'TOTAL PLAY TELECOMUNICACIONES', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'IAS191111S86', 'name_of_the_receiver': 'ILEXLU ACCOUNTING SERVICES', 'tax_address_of_the_receiver': '03810', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '601', 'use_of_cfdi': 'G02', 'concepts': '{"conceptos": [{"clave_prod_serv": "83111801", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "DESCUEN ... (168 characters truncated) ... _factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.02"}], "retenciones": []}}], "cfdi_relacionados": ["28E5EC30-DAE5-4259-9AA1-97DC26311FF7"]}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.02', 'stamp_date': '2026-04-27T09:58:53', 'certif_provider_rfc': 'INT020124V62', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/cfdi_ws/IAS191111S86/31db0120-9693-4348-a92c-97dc2631aa6c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-08 20:17:24,693 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_ias191111s86" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(45) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_ias191111s86', 'uuid': '7143C835-7697-4843-B8AF-97DC2631D219', 'company_id': 45, 'tenant_id': None, 'version': '4.0', 'series': 'TP', 'number_leaf': '361872108698225882_1_A1-801674696T1-0-1', 'dates': '2026-04-27T08:44:31', 'stamp': 'fqAYGQjTwb94vRCyHczf2+/2a49eCxhlX9duropug3pTkgTbTM9s9DJzKYjtsR0mWp51NgnOKYt2ulO1QCugNGdFHCxhxeS3ncJBlQdkcyOPGGAJCUAH1fPZbc/cQ/G6pKXIcknIDkvadZBSwFoTl ... (46 characters truncated) ... LcgbrM7D3xufHT9XllPKSREhNE/9Z1VzlJXhY5f8lxzy2g/4gwYaZCAv+CQ6dWUX7cxZHmQlAKprpX4vkGpDc/WtCEQtj0VuvYz4t5wbR8TzQDtvmUtccpiy4JEaOIKfDMEQA4vMpOZ2NZMmNew==', 'certificate_number': '00001000000708348621', 'certificate': 'MIIGQTCCBCmgAwIBAgIUMDAwMDEwMDAwMDA3MDgzNDg2MjEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1842 characters truncated) ... yrhwv7HZa7+CwV86ko2NzdWQuXQShvwNYsPtnLQVI9ph/uBI2y5JhXJi5YOHJp3v0kfL3WEm9U9wNJR9bOVvw1Ps9h56QrfVdGOzQao6TwW1FZvqA+gO7ecLIQ5/tqt8qdRVhZVwaAKwd9g7WFrUH', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '42.97', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '49.84', 'type_of_fiscal_document': 'E', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '04519', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': '01', 'rfc_of_the_issuer': 'TPT890516JP5', 'name_of_the_issuer': 'TOTAL PLAY TELECOMUNICACIONES', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'IAS191111S86', 'name_of_the_receiver': 'ILEXLU ACCOUNTING SERVICES', 'tax_address_of_the_receiver': '03810', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '601', 'use_of_cfdi': 'G02', 'concepts': '{"conceptos": [{"clave_prod_serv": "81112100", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "DESCUEN ... (171 characters truncated) ... _factor": "Tasa", "tasa_cuota": "0.160000", "importe": "6.87"}], "retenciones": []}}], "cfdi_relacionados": ["A9C78227-FD81-4188-A558-97DC26317685"]}', 'total_retained_taxes': '0', 'total_transferred_taxes': '6.87', 'stamp_date': '2026-04-27T09:08:14', 'certif_provider_rfc': 'INT020124V62', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/cfdi_ws/IAS191111S86/7143c835-7697-4843-b8af-97dc2631d219.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-08 20:17:24,693 - api_logger - INFO - [GetCFDIWebServices] recibidos → 0 CFDIs insertados
2026-05-08 20:17:25,232 - api_logger - INFO - [Orchestrator] RFC=IAS191111S86 método=fiel paquetes=1 cfdis=0
2026-05-08 20:17:26,282 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 20:17:26,285 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 20:17:26,286 - api_logger - INFO - Router cargado: /export
2026-05-08 20:17:26,286 - api_logger - INFO - Router cargado: /licenses
2026-05-08 20:17:26,286 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 20:17:26,293 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 20:17:26,294 - api_logger - INFO - Router cargado: /payment
2026-05-08 20:17:26,294 - api_logger - INFO - Router cargado: /plans
2026-05-08 20:17:26,295 - api_logger - INFO - Router cargado: 
2026-05-08 20:17:26,296 - api_logger - INFO - Router cargado: /webservices
2026-05-08 20:17:26,298 - api_logger - INFO - Router cargado: /auth
2026-05-08 20:17:26,299 - api_logger - INFO - Router cargado: /users
2026-05-08 20:17:26,301 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 20:17:26,302 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 20:17:26,305 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 20:17:26,350 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 20:17:26,352 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 20:17:26,353 - api_logger - INFO - Router cargado: /export
2026-05-08 20:17:26,353 - api_logger - INFO - Router cargado: /licenses
2026-05-08 20:17:26,353 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 20:17:26,360 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 20:17:26,361 - api_logger - INFO - Router cargado: /payment
2026-05-08 20:17:26,361 - api_logger - INFO - Router cargado: /plans
2026-05-08 20:17:26,362 - api_logger - INFO - Router cargado: 
2026-05-08 20:17:26,363 - api_logger - INFO - Router cargado: /webservices
2026-05-08 20:17:26,364 - api_logger - INFO - Router cargado: /auth
2026-05-08 20:17:26,366 - api_logger - INFO - Router cargado: /users
2026-05-08 20:17:26,367 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 20:17:26,368 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 20:17:26,371 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 20:17:26,371 - api_logger - INFO - [Scheduler] Descarga diaria: 02:00 AM | Reintentos: 04:00 AM (America/Mexico_City)
2026-05-08 20:17:27,519 - api_logger - DEBUG - [UnauthorizedError] http://localhost:8000/v1/fiscalcustomer/list: El token ha expirado
2026-05-08 20:17:27,599 - api_logger - DEBUG - [UnauthorizedError] http://localhost:8000/v1/fiscalcustomer/list: El token ha expirado
2026-05-08 20:28:54,210 - api_logger - INFO - [Scheduler] Detenido.
2026-05-08 20:28:55,122 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 20:28:55,125 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 20:28:55,126 - api_logger - INFO - Router cargado: /export
2026-05-08 20:28:55,126 - api_logger - INFO - Router cargado: /licenses
2026-05-08 20:28:55,126 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 20:28:55,133 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 20:28:55,134 - api_logger - INFO - Router cargado: /payment
2026-05-08 20:28:55,134 - api_logger - INFO - Router cargado: /plans
2026-05-08 20:28:55,135 - api_logger - INFO - Router cargado: 
2026-05-08 20:28:55,137 - api_logger - INFO - Router cargado: /webservices
2026-05-08 20:28:55,138 - api_logger - INFO - Router cargado: /auth
2026-05-08 20:28:55,140 - api_logger - INFO - Router cargado: /users
2026-05-08 20:28:55,142 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 20:28:55,143 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 20:28:55,147 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 20:28:55,196 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 20:28:55,199 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 20:28:55,199 - api_logger - INFO - Router cargado: /export
2026-05-08 20:28:55,200 - api_logger - INFO - Router cargado: /licenses
2026-05-08 20:28:55,200 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 20:28:55,207 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 20:28:55,208 - api_logger - INFO - Router cargado: /payment
2026-05-08 20:28:55,208 - api_logger - INFO - Router cargado: /plans
2026-05-08 20:28:55,209 - api_logger - INFO - Router cargado: 
2026-05-08 20:28:55,210 - api_logger - INFO - Router cargado: /webservices
2026-05-08 20:28:55,211 - api_logger - INFO - Router cargado: /auth
2026-05-08 20:28:55,212 - api_logger - INFO - Router cargado: /users
2026-05-08 20:28:55,214 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 20:28:55,215 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 20:28:55,218 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 20:29:01,139 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 20:29:01,142 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 20:29:01,143 - api_logger - INFO - Router cargado: /export
2026-05-08 20:29:01,143 - api_logger - INFO - Router cargado: /licenses
2026-05-08 20:29:01,143 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 20:29:01,150 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 20:29:01,151 - api_logger - INFO - Router cargado: /payment
2026-05-08 20:29:01,151 - api_logger - INFO - Router cargado: /plans
2026-05-08 20:29:01,152 - api_logger - INFO - Router cargado: 
2026-05-08 20:29:01,154 - api_logger - INFO - Router cargado: /webservices
2026-05-08 20:29:01,155 - api_logger - INFO - Router cargado: /auth
2026-05-08 20:29:01,157 - api_logger - INFO - Router cargado: /users
2026-05-08 20:29:01,159 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 20:29:01,160 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 20:29:01,163 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 20:29:01,210 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 20:29:01,213 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 20:29:01,214 - api_logger - INFO - Router cargado: /export
2026-05-08 20:29:01,214 - api_logger - INFO - Router cargado: /licenses
2026-05-08 20:29:01,214 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 20:29:01,221 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 20:29:01,222 - api_logger - INFO - Router cargado: /payment
2026-05-08 20:29:01,222 - api_logger - INFO - Router cargado: /plans
2026-05-08 20:29:01,223 - api_logger - INFO - Router cargado: 
2026-05-08 20:29:01,224 - api_logger - INFO - Router cargado: /webservices
2026-05-08 20:29:01,226 - api_logger - INFO - Router cargado: /auth
2026-05-08 20:29:01,227 - api_logger - INFO - Router cargado: /users
2026-05-08 20:29:01,229 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 20:29:01,229 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 20:29:01,233 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 20:29:15,785 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 20:29:15,787 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 20:29:15,788 - api_logger - INFO - Router cargado: /export
2026-05-08 20:29:15,788 - api_logger - INFO - Router cargado: /licenses
2026-05-08 20:29:15,789 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 20:29:15,796 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 20:29:15,797 - api_logger - INFO - Router cargado: /payment
2026-05-08 20:29:15,797 - api_logger - INFO - Router cargado: /plans
2026-05-08 20:29:15,798 - api_logger - INFO - Router cargado: 
2026-05-08 20:29:15,800 - api_logger - INFO - Router cargado: /webservices
2026-05-08 20:29:15,801 - api_logger - INFO - Router cargado: /auth
2026-05-08 20:29:15,803 - api_logger - INFO - Router cargado: /users
2026-05-08 20:29:15,805 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 20:29:15,805 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 20:29:15,809 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-08 20:29:15,854 - api_logger - INFO - Router cargado: /catalogs
2026-05-08 20:29:15,857 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-08 20:29:15,857 - api_logger - INFO - Router cargado: /export
2026-05-08 20:29:15,858 - api_logger - INFO - Router cargado: /licenses
2026-05-08 20:29:15,858 - api_logger - INFO - Router cargado: /menu_options
2026-05-08 20:29:15,865 - api_logger - INFO - Router cargado: /movements_banks
2026-05-08 20:29:15,865 - api_logger - INFO - Router cargado: /payment
2026-05-08 20:29:15,865 - api_logger - INFO - Router cargado: /plans
2026-05-08 20:29:15,866 - api_logger - INFO - Router cargado: 
2026-05-08 20:29:15,867 - api_logger - INFO - Router cargado: /webservices
2026-05-08 20:29:15,869 - api_logger - INFO - Router cargado: /auth
2026-05-08 20:29:15,870 - api_logger - INFO - Router cargado: /users
2026-05-08 20:29:15,872 - api_logger - INFO - Router cargado: /bankaccount
2026-05-08 20:29:15,872 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-08 20:29:15,875 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-11 15:40:40,062 - api_logger - INFO - Router cargado: /catalogs
2026-05-11 15:40:40,075 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-11 15:40:40,076 - api_logger - INFO - Router cargado: /export
2026-05-11 15:40:40,076 - api_logger - INFO - Router cargado: /licenses
2026-05-11 15:40:40,077 - api_logger - INFO - Router cargado: /menu_options
2026-05-11 15:40:40,086 - api_logger - INFO - Router cargado: /movements_banks
2026-05-11 15:40:40,087 - api_logger - INFO - Router cargado: /payment
2026-05-11 15:40:40,087 - api_logger - INFO - Router cargado: /plans
2026-05-11 15:40:40,088 - api_logger - INFO - Router cargado: 
2026-05-11 15:40:40,089 - api_logger - INFO - Router cargado: /webservices
2026-05-11 15:40:40,090 - api_logger - INFO - Router cargado: /auth
2026-05-11 15:40:40,092 - api_logger - INFO - Router cargado: /users
2026-05-11 15:40:40,094 - api_logger - INFO - Router cargado: /bankaccount
2026-05-11 15:40:40,095 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-11 15:40:40,098 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-11 15:40:45,766 - api_logger - INFO - Router cargado: /catalogs
2026-05-11 15:40:45,769 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-11 15:40:45,770 - api_logger - INFO - Router cargado: /export
2026-05-11 15:40:45,771 - api_logger - INFO - Router cargado: /licenses
2026-05-11 15:40:45,771 - api_logger - INFO - Router cargado: /menu_options
2026-05-11 15:40:45,779 - api_logger - INFO - Router cargado: /movements_banks
2026-05-11 15:40:45,780 - api_logger - INFO - Router cargado: /payment
2026-05-11 15:40:45,780 - api_logger - INFO - Router cargado: /plans
2026-05-11 15:40:45,781 - api_logger - INFO - Router cargado: 
2026-05-11 15:40:45,783 - api_logger - INFO - Router cargado: /webservices
2026-05-11 15:40:45,785 - api_logger - INFO - Router cargado: /auth
2026-05-11 15:40:45,786 - api_logger - INFO - Router cargado: /users
2026-05-11 15:40:45,788 - api_logger - INFO - Router cargado: /bankaccount
2026-05-11 15:40:45,789 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-11 15:40:45,792 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-11 15:40:45,865 - api_logger - INFO - Router cargado: /catalogs
2026-05-11 15:40:45,867 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-11 15:40:45,868 - api_logger - INFO - Router cargado: /export
2026-05-11 15:40:45,868 - api_logger - INFO - Router cargado: /licenses
2026-05-11 15:40:45,868 - api_logger - INFO - Router cargado: /menu_options
2026-05-11 15:40:45,875 - api_logger - INFO - Router cargado: /movements_banks
2026-05-11 15:40:45,876 - api_logger - INFO - Router cargado: /payment
2026-05-11 15:40:45,876 - api_logger - INFO - Router cargado: /plans
2026-05-11 15:40:45,877 - api_logger - INFO - Router cargado: 
2026-05-11 15:40:45,878 - api_logger - INFO - Router cargado: /webservices
2026-05-11 15:40:45,879 - api_logger - INFO - Router cargado: /auth
2026-05-11 15:40:45,881 - api_logger - INFO - Router cargado: /users
2026-05-11 15:40:45,882 - api_logger - INFO - Router cargado: /bankaccount
2026-05-11 15:40:45,883 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-11 15:40:45,886 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-11 15:43:28,942 - api_logger - INFO - Router cargado: /catalogs
2026-05-11 15:43:28,945 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-11 15:43:28,946 - api_logger - INFO - Router cargado: /export
2026-05-11 15:43:28,946 - api_logger - INFO - Router cargado: /licenses
2026-05-11 15:43:28,946 - api_logger - INFO - Router cargado: /menu_options
2026-05-11 15:43:28,954 - api_logger - INFO - Router cargado: /movements_banks
2026-05-11 15:43:28,954 - api_logger - INFO - Router cargado: /payment
2026-05-11 15:43:28,955 - api_logger - INFO - Router cargado: /plans
2026-05-11 15:43:28,955 - api_logger - INFO - Router cargado: 
2026-05-11 15:43:28,957 - api_logger - INFO - Router cargado: /webservices
2026-05-11 15:43:28,958 - api_logger - INFO - Router cargado: /auth
2026-05-11 15:43:28,960 - api_logger - INFO - Router cargado: /users
2026-05-11 15:43:28,962 - api_logger - INFO - Router cargado: /bankaccount
2026-05-11 15:43:28,962 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-11 15:43:28,966 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-11 15:43:29,034 - api_logger - INFO - Router cargado: /catalogs
2026-05-11 15:43:29,036 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-11 15:43:29,037 - api_logger - INFO - Router cargado: /export
2026-05-11 15:43:29,037 - api_logger - INFO - Router cargado: /licenses
2026-05-11 15:43:29,037 - api_logger - INFO - Router cargado: /menu_options
2026-05-11 15:43:29,044 - api_logger - INFO - Router cargado: /movements_banks
2026-05-11 15:43:29,045 - api_logger - INFO - Router cargado: /payment
2026-05-11 15:43:29,045 - api_logger - INFO - Router cargado: /plans
2026-05-11 15:43:29,046 - api_logger - INFO - Router cargado: 
2026-05-11 15:43:29,047 - api_logger - INFO - Router cargado: /webservices
2026-05-11 15:43:29,048 - api_logger - INFO - Router cargado: /auth
2026-05-11 15:43:29,049 - api_logger - INFO - Router cargado: /users
2026-05-11 15:43:29,051 - api_logger - INFO - Router cargado: /bankaccount
2026-05-11 15:43:29,052 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-11 15:43:29,055 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-11 18:34:27,415 - api_logger - ERROR - Error creating record: Foreign key associated with column 'cfdi_pending_folios.fiscal_customer_id' could not find table 'licensing.fiscal_customers' with which to generate a foreign key to target column 'id'
2026-05-11 18:34:39,422 - api_logger - ERROR - Error creating record: Foreign key associated with column 'cfdi_pending_folios.fiscal_customer_id' could not find table 'licensing.fiscal_customers' with which to generate a foreign key to target column 'id'
2026-05-11 18:34:51,401 - api_logger - ERROR - Error creating record: Foreign key associated with column 'cfdi_pending_folios.fiscal_customer_id' could not find table 'licensing.fiscal_customers' with which to generate a foreign key to target column 'id'
2026-05-11 18:35:03,414 - api_logger - ERROR - Error creating record: Foreign key associated with column 'cfdi_pending_folios.fiscal_customer_id' could not find table 'licensing.fiscal_customers' with which to generate a foreign key to target column 'id'
2026-05-11 18:35:15,473 - api_logger - ERROR - Error creating record: Foreign key associated with column 'cfdi_pending_folios.fiscal_customer_id' could not find table 'licensing.fiscal_customers' with which to generate a foreign key to target column 'id'
2026-05-11 19:15:50,122 - api_logger - ERROR - Error creating record: Foreign key associated with column 'cfdi_pending_folios.fiscal_customer_id' could not find table 'licensing.fiscal_customers' with which to generate a foreign key to target column 'id'
2026-05-11 19:18:10,647 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_pending_folios" violates foreign key constraint "cfdi_pending_folios_fiscal_customer_id_fkey"
DETAIL:  Key (fiscal_customer_id)=(0) is not present in table "fiscal_customers".

[SQL: INSERT INTO cfdi_system.cfdi_pending_folios (folio, rfc, fiscal_customer_id, license_id, year_month, status, error_detail, package_path, requested_at, downloaded_at) VALUES (%(folio)s, %(rfc)s, %(fiscal_customer_id)s, %(license_id)s, %(year_month)s, %(status)s, %(error_detail)s, %(package_path)s, %(requested_at)s, %(downloaded_at)s) RETURNING cfdi_system.cfdi_pending_folios.id]
[parameters: {'folio': '9D7B86E5-92A0-42BA-9441-CE39544D20D6', 'rfc': 'VIRG900207RR3', 'fiscal_customer_id': 0, 'license_id': 0, 'year_month': '2025-01', 'status': 'pending', 'error_detail': None, 'package_path': None, 'requested_at': datetime.datetime(2026, 5, 12, 1, 18, 10, 467322, tzinfo=<UTC>), 'downloaded_at': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:43,737 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '5624da67-fd16-4187-a174-039aae8d99b0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'NOV78231', 'number_leaf': '50066858288', 'dates': '2025-12-02T14:28:48', 'stamp': 'WAhyGoqnPrZYXqweeyY3ghySidKeTlrnZS2UPW/41KXEHb+mx2H5wMh7g8Fe0l1ZAyqTwdEogRQaNkZ51BA6CXwG7tl3IJ+rqlB0+skqLi7arSmTQUwDtoWCfsUlU/NRPBUq7RsAGnjoDzz3ayeRN ... (46 characters truncated) ... 5ybVfHBb6GPgxRpB4YY4x4+HSJ/TrAA4EZnCrAryOETc2wPQy89+cDugeNrpfiig1NvIe6dsYUUL9z8F7atOffAnIW+271TQLG0O6HJsFeZXi3G0QizODQOpJ1CpTjEAy4ZKzpaWcik4cPOmMUA==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-12-02T20:57:18', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5624da67-fd16-4187-a174-039aae8d99b0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:43,964 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'ACB31C73-95E9-403F-A302-58BBFF4155A1', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190111', 'dates': '2025-12-02T03:11:09', 'stamp': 'H0oLHNIIyDGxQR7WJ6XlUmjGezIl9K1pQGDFCVbGT+q4HSjf7ob//WBt4S2QUvtjxeAv+6avtG0JuIPb1q8aBJ6wPtSE/bnlPFmtEkZ5/iu5EsjC6fcq9Ya/JAJIfQro1ium1U6oE/UWe+8S6Kl5r ... (46 characters truncated) ... Zmvxr3vRxN30fkCKIJvwe3bE5sQzVeMbYli+Px5nHfKsXAKzp7M8Eb1bNA18MkOMmQ/mqWEiFlHYjbHG/DXqEfsZkYpltnCOTV9dbsPq5LQf3jKD0p0stSjn+3HciYceLNLgRB3fCgPMiqn2pUg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '01376', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-12-02T21:50:24', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/acb31c73-95e9-403f-a302-58bbff4155a1.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:44,190 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '1A6F69B7-D7CE-41A4-B11B-5D8193639538', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-12-09T20:58:03', 'stamp': 'JDNzklOH7jgq1h6GuG+lOGChFfZkk0MvGR85ApfFimkJ+qa35RvbEee6krl50Hfa2pg3puD3mDPDWbvJ5y85fM7/AVRvhvuEpaVApsOV+NHpAV6HAc83GS1/SCNZcFOyBw2CwaYkssP/RRyfZLJRD ... (46 characters truncated) ... VGHccEcEPZcgLwVZYX4XtEauc9ohbRg5e5W07szHP0JMoZ1eiLpQI8MydeqUoByRAQ9mT/PTmtIM3ontoxuFwG5Ke4P4ps7M4mzO4VSlaIuvyE48lB9PT2eIonThCIe6C7p2l5V2ehFQcpGCLZQ==', 'certificate_number': '00001000000719019167', 'certificate': 'MIIGwzCCBKugAwIBAgIUMDAwMDEwMDAwMDA3MTkwMTkxNjcwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (2018 characters truncated) ... nsw1t6vyde9q51O4AnQ4tMwg91lALUtO5dhzWmGv4bibfpJsnQVAQL9EgsZqRIn3xHRPm7BpkY+7T2yTPbZJFncGzl1TBpbIM06PHnOLoeD5gQdD+5Msf+x+BB6mgfQ2mS3pbi5TD7fr5opZMPQ==', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-12-10T04:03:11', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/1a6f69b7-d7ce-41a4-b11b-5d8193639538.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:44,416 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'C0C2B478-1C94-462D-B675-C610DD2AD12A', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-12-24T09:03:51', 'stamp': 'Bm2ZRqvHLQgpjGj8O+h+k6JPy4sfUjz0xKSqCp2E2XOuDCUI4XgXSQ3blEbjUWHaiQlNwrZ3LbDl359bkDMW3QdzlJTEDm6oTfswTCxtTx039eumVAVtus6i6PxO4mHtqfmmmpNokPANMCJBzgBo4 ... (46 characters truncated) ... zyi/VuH8eeOIhmhci9orJyPzqwCYWtqqN1vjpLzynR/IiI8mFEZJFJnLA4vQXC/B77ETrTMXxM1bu8a03JFhTSIj4WS1AwH6fhDINJL+RhjrD+piXaIgS7exiUUA20IBFygM1kextC4tSKoBOpQ==', 'certificate_number': '00001000000719019167', 'certificate': 'MIIGwzCCBKugAwIBAgIUMDAwMDEwMDAwMDA3MTkwMTkxNjcwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (2018 characters truncated) ... nsw1t6vyde9q51O4AnQ4tMwg91lALUtO5dhzWmGv4bibfpJsnQVAQL9EgsZqRIn3xHRPm7BpkY+7T2yTPbZJFncGzl1TBpbIM06PHnOLoeD5gQdD+5Msf+x+BB6mgfQ2mS3pbi5TD7fr5opZMPQ==', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-12-24T10:32:06', 'certif_provider_rfc': 'SFE0807172W8', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/c0c2b478-1c94-462d-b675-c610dd2ad12a.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:44,645 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'DD45992B-8EBE-4242-84AC-1B525E6CD008', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '2012226', 'dates': '2025-12-26T19:00:45', 'stamp': 'Vuv9+/taXlbSEsJz7+42qR+vMIZuHTRFTc89qQaesHWTm5eAXGpvLmtt2VLp6+huIQpX7JoAQ7XKbnop1IhjerQBRATk0qTu5JZqyD9tpDIRbeK7hZxonHqnhTyiq7sZtlBTG2xI3a0r1dbd2RDje ... (46 characters truncated) ... GnreDAx/HjLKFjcdiMwcuoLaSplf8Qo6chWJy7B7NkvAttCb1WdEIhtub1jOIg0RnMpdej+c5PGP9qmDav//42AjAfv1DQSPW+AfPVquIW35guj12bpXrX66MXc7M+ZBw9vAp/PKeGuOYI+ua2g==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "SERVICI ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-12-26T19:09:09', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/dd45992b-8ebe-4242-84ac-1b525e6cd008.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:44,869 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '22c50670-c784-424f-a33e-508357af91c9', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '1122', 'dates': '2025-12-29T14:27:32', 'stamp': 'frJtF+UEL9dZrBoZ7TfjXQKdXV3OJGGHUapw+mNEr841JxHynLDTw8ZxySNvvF0b5/0rQeyI7ba+vO0Jqr7+UfsuboydKVQrf9EkSDs0qTFQ2oSlAkgPR0jaBIGhxgh3v5cPRgMDw66dw5fPAJCDV ... (46 characters truncated) ... BuZEHlyNp175qxanCd60Y/WeaLuE1dTvkhTDENAZUrdgT7qLsK2ddyl7BV+1Mx1B0n78oe60/xx1J+7IaoYQc6O9U/MZrbJcQw/Viy0hrBQZMdHvv/l26O5WU/NZKGiQfm84tmUDBR3LRiiv96g==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (138 characters truncated) ... s": [{"base": "800.00", "impuesto": "002", "tipo_factor": "Exento", "tasa_cuota": "", "importe": ""}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-12-29T14:27:32', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/22c50670-c784-424f-a33e-508357af91c9.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:45,088 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'DAE2C379-68FE-4DFA-82CB-255699D3FCB7', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190211', 'dates': '2025-12-02T03:11:09', 'stamp': 'NrGLn3/Zvk9I04lwfinZl04n+1tLItthIWqYbVjCZLdWpEe+U4jIjO2OEGiTKv9d6Bf5DQHpTIJ+K3W/fJIu7BFbij4SAceXCvXQ40SIcv9BLOACTxIZhnaBIkx6JESxF4JZzpY3VxSeSkhc262Fh ... (46 characters truncated) ... DKLnstm2giYnGh2B0sn6V0lywUvZF3ojga139KepG+6BYBIL4Eoy5gly5SETRoQqZjNpAPvpaqrCsqRFIozGyN4PKelNJujd/95Jtu6lEoU9d2GJG3G7RSyoT48EL+aREfX4GgsK/Tke5Ov/1dg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '01376', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-12-02T21:50:36', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/dae2c379-68fe-4dfa-82cb-255699d3fcb7.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:45,308 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'd1179d01-9af0-4632-ac2b-edef6d7a0c2e', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-12-04T19:10:28', 'stamp': 'FO4KNvSc78Fy8xJ0O3irRkJhjut+XJ50G8AxlAYCg16HsKqxbNwxSRIufT0vhUcXQ5bSc53ij4U7btQra6wdgOoxrzioEeP/MKWHJpnQfM/bJYbeB+vdNGS9mOLTC2us2cQBjPu37c+qsYzeXBVD5 ... (46 characters truncated) ... OxZZIZNSMKaXiPE06uzJYmjQaJX9HHgk5BpPwC+xK0G8+vu3lmVirZu/A2d7OvgB7JXSE1xA1838cVOyWc+UmjzjXEOnGmAOsn2D0NFOzSL/733R8LqFO3Y+u5bjdsEjCR+F5nc1dpgFa/2cqqw==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '22639.16', 'discount': '8455.68', 'currency': 'MXN', 'exchange_rate': '1', 'total': '14183.48', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 16", "importe": "22639.16", "descuento": "8455.68", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-12-05T09:28:29', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/d1179d01-9af0-4632-ac2b-edef6d7a0c2e.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:45,528 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '74429678-3624-49b4-ac30-edef6d7ac8cf', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-12-20T10:53:19', 'stamp': 'UyUBhvlWoVri0GI3voOZdgIpZ9UDh5mF71AAF1GWRAOVBEMO0flT9JA4scpmKS4Ltq/M0p09aviohWNuPso9jIq0wmyKVKlRGHMwPtPsPja2jWy54l2cY/+PBKGzUSyMDGpvMQUhrdtSgerhKb2LB ... (46 characters truncated) ... ZHpjOHjZ99eDkwcZQeNNCJiIu8iZwySNGBvXEJFvmHE8uU9EmIwHo941MS0p6uxG3DqoqAoUc0hK3tqLPLuoXUAaYYPXhn3DAT2GD4nYlCcLkPNUz01FVn4TO3gSMhuEzOsoF1aGF25V27aDghA==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '26078.16', 'discount': '10675.57', 'currency': 'MXN', 'exchange_rate': '1', 'total': '15402.59', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (36 characters truncated) ... 6", "importe": "26078.16", "descuento": "10675.57", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-12-20T11:24:29', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/74429678-3624-49b4-ac30-edef6d7ac8cf.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:45,747 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '36ae62be-d82d-4f1a-b209-edef6d7a8915', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-12-09T13:38:24', 'stamp': 'HG9OGJ8euQN+Qv2yNLJqHyyg/qI1Eub3YEpRd4Pb/w1L8UpSLWcwfRo04B0km48WPINw06JXyGsTjJfmZlt4AVYA3kE0xm9O9rC79kXWaYFt6EMXc95hKAegCTyQYTLZVrRtTDY6BGOETwxMuZEaR ... (46 characters truncated) ... kv9znvz1mjGmojkcvtCMIbJt9qhHNmyI4resRi70XSmS42weHbGnosnNU6A+I6fFxwErKYCsTNu5Uwa6yIKtxXMQD52EFXLDEebpeMxtL2yBYvH8DeAqlqG5AWUUJscfy/4K60+0PCvFgTLb+3A==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '41162.10', 'discount': '8600.32', 'currency': 'MXN', 'exchange_rate': '1', 'total': '32561.78', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 10", "importe": "41162.10", "descuento": "8600.32", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-12-09T14:02:29', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/36ae62be-d82d-4f1a-b209-edef6d7a8915.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:45,968 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '6ACA4653-73A3-4369-AF3C-384B4772E2A9', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ECUH', 'number_leaf': '6768524', 'dates': '2025-12-02T23:02:44', 'stamp': 'bvFrfaH3zp+dnN3utiPXl7czK1XcFYBS3KvrBzoGslFufbNz9Xa+98LbisszbkNpkxU2fgRnjGiHx5WjlD0vl8p2BCPbKSR7JVOKmqCIjjFnYQ5b/E+5k5v8sVSn5NqnM24j4+5+rCI42mFuVINUL ... (46 characters truncated) ... J6iyPHjqJ6/nSbiKAAwXIooNG+xEmvnmGyJcIyR0QEMvh3NzDZgMcxr+8FbtDL7Yaw1AkKa3Iot0uexKNgbFPdvnp1aMHVLPo4gPxtsuXlNSVFg4Aoi5XMDeoern2GS5eSfrtrJe5FufNAqTFxg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "Servicio", "descripcion":  ... (42 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-12-02T23:10:37', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/6aca4653-73a3-4369-af3c-384b4772e2a9.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:48,302 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'C7FB6E10-5DED-469C-845E-CFC6048DEDC7', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-11-22T09:16:36', 'stamp': 'aGYIrouqbvBA06qSjGmc4mQAaT16NA9FDXRg6Afe4JWB0rDRSxF6O5iRMcYSChsof8PqSxgm1ZsUQSKce2dvEJTOkJi6iWyVkCOgAPcCr7aMH9Gpp+Rvhjad4N4Py4+rXupBz5/j2opSh8HZ5stri ... (46 characters truncated) ... wE5gAvj8Qu02I+yWuXWO4KSiVXCjbzATWjsrKN5KhiXAVrM8zm/psIK/UtKoK7mKHu2M87uwxf1Z6AwK8/2hPME540ivxG1YQZcF+E2sxiQGUa/Dh6bhCK41LOpPtEFHBSQae7CtmcBc70uZcpQ==', 'certificate_number': '00001000000719019167', 'certificate': 'MIIGwzCCBKugAwIBAgIUMDAwMDEwMDAwMDA3MTkwMTkxNjcwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (2018 characters truncated) ... nsw1t6vyde9q51O4AnQ4tMwg91lALUtO5dhzWmGv4bibfpJsnQVAQL9EgsZqRIn3xHRPm7BpkY+7T2yTPbZJFncGzl1TBpbIM06PHnOLoeD5gQdD+5Msf+x+BB6mgfQ2mS3pbi5TD7fr5opZMPQ==', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '748.00', 'discount': '0.00', 'currency': 'MXN', 'exchange_rate': '1', 'total': '867.68', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (142 characters truncated) ... : "748.00", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "119.68"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '119.68', 'stamp_date': '2025-11-22T13:53:46', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/c7fb6e10-5ded-469c-845e-cfc6048dedc7.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:48,519 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '5a1c2d24-e005-4526-9cb4-fecb44bedaa3', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '1099', 'dates': '2025-11-28T13:11:36', 'stamp': 'al9ZvWz7VnxIZYwjX/C0Z33a/szhU0mxWkTFnWU3dWPEujYRtnoRe/RmoVMKQUPwgIG+5DH4B5FVScaZi90MDDi5+7cEHH3aTww4ZqVyPbkDA4Eu4wS64jR7I2ee6gisora9Qzg9eb9l04ZmksSMJ ... (46 characters truncated) ... CtS8ZqLZIimvmXuz7FNutLtJ1RjKHDbWFU7uz842sOvJCGN7HLRh5UCkz0jSNhig3l37kvlmPpife9n+7GGVbVy6Kp3ii+/yqRFoknrElDi1LW1J9hvQja0by2oTfBhvu3I9q6S8nh9DMh4rjxw==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "01", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Honor ... (131 characters truncated) ... s": [{"base": "800.00", "impuesto": "002", "tipo_factor": "Exento", "tasa_cuota": "", "importe": ""}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-11-28T13:11:36', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5a1c2d24-e005-4526-9cb4-fecb44bedaa3.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:48,740 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'd0285fe1-8b38-4214-8fff-ceb44911c49d', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'OCT77982', 'number_leaf': '50066858288', 'dates': '2025-11-03T20:56:37', 'stamp': 'NR1ISSYOPbFa7zeJyyauCohgJGJdzMTnLXGN/+QiUAYOx/71xh8jaVrU7V2TWsjeEEgMSx6Cv9wlSeBdQijQ5uZH+osTZVvA+JJZkM+Gxwys/xFwjK1Kbdm387VBYKRYHn91c//JIfhz0Q1gCJ+hR ... (46 characters truncated) ... 4Uy4l4Gk4/TU7xj9yd7h/SBM4B7/LT6gzY/3MnTniGEzSQYlRt3yI1Q4a3iEJZ/Ie/X5pC6YzmYlOL97ACWiX0Ehjy+btXUuh/QC2ky/IwQatjJS5mB+mXexoVxzfhY7dRCDBhuDfXM01QPA5kA==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-11-04T04:23:57', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/d0285fe1-8b38-4214-8fff-ceb44911c49d.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:48,964 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'BC77F738-4FA9-4570-A6CA-1DDAF6F09F85', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-11-08T19:29:44', 'stamp': 'UVITK1FgPejiy0tpkkdRxLcmCl/JDnmZAnmOkpXYprGgUTrC/TOH90xLNOhZO89SGAyQEkJ4O3CPoHqvImk0BxsEPgU5l2imJ9Vd7LjxakUqar8M4c7S79pOysteOjFkznbA6gxxXlV+F4NbkEvuM ... (46 characters truncated) ... AG0Pt6712FGr55blu4ULfSg9N4RyE4VBSBQw7wro+ira3x995vl+JCgp7LPqJiUZQddm9Uv2xOqncedu4vDrovSHFrLlrbs0btnHnuo/yTpfMud8YG/J1vGBaLolairfItqbYAimEaqT0+Y1Mpg==', 'certificate_number': '00001000000719019167', 'certificate': 'MIIGwzCCBKugAwIBAgIUMDAwMDEwMDAwMDA3MTkwMTkxNjcwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (2018 characters truncated) ... nsw1t6vyde9q51O4AnQ4tMwg91lALUtO5dhzWmGv4bibfpJsnQVAQL9EgsZqRIn3xHRPm7BpkY+7T2yTPbZJFncGzl1TBpbIM06PHnOLoeD5gQdD+5Msf+x+BB6mgfQ2mS3pbi5TD7fr5opZMPQ==', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-11-09T03:25:50', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/bc77f738-4fa9-4570-a6ca-1ddaf6f09f85.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:49,184 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'd5b975f2-a693-4aec-bced-edef6d7a3b0c', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-11-04T16:32:53', 'stamp': 'fCgj6P3JymF+QOS6zgAjPX6zTJ6PPxWx+B1JL18MNYsIwqRSrSxNLAeUXEOM0IRCI353u6rQ8PjsxGoXBUQVqZegFSd0nN3sfEDkGuXeaxYZImXn/akLlxpqgH3+g+j0WK9aSwSmRVcRWzv6eZeKq ... (46 characters truncated) ... puEtOaQqnntp5SsreU/R4WdeNYff738lv1YAIR32BgrvA1BeAyBJ8jmqOlXs8TZgJTX/fK3U0Q/Kl+bwiqQd03WYmcKxqMW6cA6GAwudZgw4A7JAfMSpop0Fio6rhZgiQB3ZtjC9hn1TG3GQhvg==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '22639.16', 'discount': '8455.68', 'currency': 'MXN', 'exchange_rate': '1', 'total': '14183.48', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 16", "importe": "22639.16", "descuento": "8455.68", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-11-04T19:07:29', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/d5b975f2-a693-4aec-bced-edef6d7a3b0c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:49,403 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '1CA24076-89AD-4A6F-BB95-6DFEF3A4558E', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190210', 'dates': '2025-11-04T15:00:50', 'stamp': 'ggoIRwvR8ZCvjt68sqKFgOH+MgAtl1RHlfjvNYVyKhOivDsb08+UMFn7rNLTEg9sTUOG4FASTK8+AQ8zsdjjZ634xru9c0ZiREvb44edMjuz5XhEEK+JxR10yzpzZDZyHZUEYLjUt6v589UHc2qxU ... (46 characters truncated) ... yiP8h91HdO8unvyQyT4rLwtaKgUGezJluT15zLQytMjguHfS0kbw1AUPOzqJBeEfI3B3+XTpWk96Q7gGyDEXy8LMJZ+ztd2Et5GGKV6g5etDzUQVjlOTX2of9WCZsI/9hm8qcYB0QIbt+EkrRDw==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '01376', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-11-05T05:11:26', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/1ca24076-89ad-4a6f-bb95-6dfef3a4558e.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:49,629 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '288053be-0614-4175-aed5-edef6d7a6ab2', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-11-20T09:42:25', 'stamp': 'R/tf8612HeCS5nsySk3PN27H8uy9+5Ux4oOw/bDeM1WMZpVVOWrvkNFGHNri9llKL2jsfhC5tOfU83QT/6si5rI/4fgo1kV4wJE71ThIOHSNQe/a+uqYsFi/KBcxouic/bg0oW4TsVUqDwc04waVp ... (46 characters truncated) ... 0ZuJ+74l76vAx89z6fL3N0xJFuBpHA1XsoPnmbAzDItXoMDYt8JQmbHmzbiF78VQz3tFrKce/abxCMUy6rT9x3W1zjAxk8NO/ZW231WyL9PFm0paOErpGdmMEmOngPw5Hg0Pm5nkEg1vhgxlNXA==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '26078.16', 'discount': '8424.86', 'currency': 'MXN', 'exchange_rate': '1', 'total': '17653.30', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 16", "importe": "26078.16", "descuento": "8424.86", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-11-20T10:12:29', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/288053be-0614-4175-aed5-edef6d7a6ab2.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:49,852 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '9DB75D68-C647-4242-833A-25DF6D17346B', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ECUH', 'number_leaf': '6573987', 'dates': '2025-11-03T22:50:55', 'stamp': 'RDPvk7lrdj388Ka/snwcRqmO/00UwrVHxnmBfBnj3oWOKeY5sT1599VBxVYFb2GjD7HALeAZNWJHqhS0DVAMOrOrs6LuPdVSH4T/kNh9A7jC0DmYxA7zcZWuDGOFa5LBVDG6pRBc9rk8deIyXABh8 ... (46 characters truncated) ... TMpNZThxThuWaf3aH2h4jPL+luOt822bXNVF86NytWYhumdvBquEMyJZ+4aow3eOOLCjbhWKIPnq99ti5W7r3BBn0qQX+E3oY7WBQxmt74chPFCdq04mJnz4OYvk5zrxeKu5AUc5qVtLuJSxvbw==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "Servicio", "descripcion":  ... (42 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-11-03T22:57:21', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/9db75d68-c647-4242-833a-25df6d17346b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:50,075 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'BB17C31E-4795-45D2-93A6-1F7BF3211EB9', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1957606', 'dates': '2025-11-26T18:29:47', 'stamp': 'GBMmnFBkqILbDP79+jccOtMNrU/Z+Od/48ka8rYnu6xQd3B+gJ/yj2UliIN5gjCVIXtIAN7JsZhctA9RwLLEKckhVMrBEneNCQsRSJKw/9gBuhua7AXZ7nCTWBpd+sDoTywwOPOjthrbCev7Hhhju ... (46 characters truncated) ... hIJmp47Fi89zkoZ1ixAlnE7sHxM3xWtqQYIvO+P+smuJWKd4fSgeJ8kRbXfJa07mN/ZwFo41Nk40AXqMDLwYXiIpu2Z2f9JQO+AsouAp8xZXNH/X4jZADGU7Ou9KFTYQXAz2kXIslWaWm6QF2Zg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "SERVICI ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-11-26T18:37:42', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/bb17c31e-4795-45d2-93a6-1f7bf3211eb9.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:50,305 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '12A47D00-8BDB-4F59-9EF9-F6B88252F77E', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190110', 'dates': '2025-11-04T15:00:50', 'stamp': 'C6R04T+Q0y8SDWoXc5j99bVV05ZKGLcDPi97+o39p+Ktq27nFtXVVO68H+TPWqIO6SQKvDOQxz7GvUPOp7idyxhS2wdCO8rE6U07oBIyGJbjf7rsG3Q6niQcwaaPXlL6pg2ZBYoUVbQqtyJ9RfZDl ... (46 characters truncated) ... Kznjp34UdIZwObtlFvsS4TBdIMzU/6LB/zW4T0e6tY3vm+Su2VrWR/Qa/gprWjTfGSLNjqHmnC8zT09i0SlgZPWSxXA2Z6gw7BeeUebsYJxXEcUylpK8w9/ptcfRv6RgvbVM42nt47aieiAanUg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '01376', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-11-05T05:11:17', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/12a47d00-8bdb-4f59-9ef9-f6b88252f77e.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:52,638 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '36a25ab2-a7d4-4c49-bd12-90095be1c7b2', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '1081', 'dates': '2025-10-30T18:22:48', 'stamp': 'cGEQ6XhZ9fLTqY/9lqFMOJpE8yFQynRLsGOmoie96v22tPq6RDMBdy0lYF8/898NR8QPqBcKrgtsk4aZznzsmZg09uqoSvS1WgoW+UwOpqcpK7pM/XXc9xwZRJcjQMN9vK6Hg1ki4yvcX39uOs+Rl ... (46 characters truncated) ... bIvtp69FPWyHUwj/iKqLFLeT6Quob3I7D5xy/yfAm7CVk1l09Kwg5CVsYySscJjxeIWD+OjMr3geo0Ev1E4l4sU1dxgdVJe7m4TqxnFsu1Tdc1sQXCnP/Zce1cNAE0rwBHvnPFVx47qRuz/UkUg==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '5800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '5800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (141 characters truncated) ... ": [{"base": "5800.00", "impuesto": "002", "tipo_factor": "Exento", "tasa_cuota": "", "importe": ""}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-10-30T18:22:48', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/36a25ab2-a7d4-4c49-bd12-90095be1c7b2.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:52,859 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '969CF3EB-C411-493D-A21E-8110E609BC03', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-10-24T05:04:08', 'stamp': 'IrnR54ky/piKol2xMnqSwo/t/dhpeJS0d1yd22yd4p2vSJCMCMWSbqLgpH3qsw2ExIp5LWyir4ArbQE7S1SGgYttJUd3W2VTTkEhpsCRGfH974bP5wg5vrdWmOwg9O/S+M+fVVWf9/7ffdfMN4FQf ... (46 characters truncated) ... yHuWzClpMSxEzObQyGSaufallhXpb9U73QTMCXw4xTzGVbp4iCS8jzZjV5jjsDP6IznX84mN34ozDu0GCsT1OwHoqaB5JDrs3EYbFGJ3Lm3MQ49+iH/KZQH6fPccNECUuSPbo48VggQOMpPd9yA==', 'certificate_number': '00001000000719019167', 'certificate': 'MIIGwzCCBKugAwIBAgIUMDAwMDEwMDAwMDA3MTkwMTkxNjcwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (2018 characters truncated) ... nsw1t6vyde9q51O4AnQ4tMwg91lALUtO5dhzWmGv4bibfpJsnQVAQL9EgsZqRIn3xHRPm7BpkY+7T2yTPbZJFncGzl1TBpbIM06PHnOLoeD5gQdD+5Msf+x+BB6mgfQ2mS3pbi5TD7fr5opZMPQ==', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-10-24T06:34:01', 'certif_provider_rfc': 'SFE0807172W8', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/969cf3eb-c411-493d-a21e-8110e609bc03.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:53,086 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '61af1481-8902-41da-8a2a-edef6d7ac5a8', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-10-21T19:01:37', 'stamp': 'FjEkjeHLCz+Gr6jRYWYPOsaJ7GVUB04nwH1VHptCk/Gi6cvkIXtcMIpxzikoHYj/uBc/oHSw++0W8poA17W2hp+F0WhC2DpT8Nk7VCW16TveW6NXybENujRK3eYuSifziwvkYRm73o43k0JMHceNy ... (46 characters truncated) ... KHA1xf3gJZx8EOEJnoBG6PM6NbySf5JbQkTgtHPQN/YgdDOIjwP6t6twTemH5tShOBYor6t7SlFipW5lj3xz/uVoltWpx7YV4bako1TxqX/3J/Y+nsQZk0Waeo/gkwmrLpDj2PvSm9uQoyMT0yA==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '26078.16', 'discount': '8932.72', 'currency': 'MXN', 'exchange_rate': '1', 'total': '17145.44', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 16", "importe": "26078.16", "descuento": "8932.72", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-10-22T09:42:27', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/61af1481-8902-41da-8a2a-edef6d7ac5a8.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:53,306 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '3DB3842F-7C22-47BD-91DF-5189B4E271D2', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190209', 'dates': '2025-10-02T00:07:49', 'stamp': 'o94BavRq0DSg9sD7B8JaVGds5NvX04BPzaDKEzsVKgtmtN+a5yp5ljrWrz/sskuQLlNJhbv1N5vNrf24R1xC1NSKHDBM7dQKpioSJO6sEOZWn/ZgpEZK1iiAMUAGPNeq71uuTwAGojOA3owSFodHY ... (46 characters truncated) ... kA7vSbJtETgHjuWiqxpZ6IjfA+fhPcsog0WXAqcj4wx63Av/Ril52b8m1JGrtf/bcthHoO1O7vRDjA/PDC78AGTF4tZ/TDpzcoXX6MsdnX88goG1I3/nFLJNcUnolJTIVVWJRZ55SG02KDXWCSw==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '01376', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-10-02T20:52:30', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/3db3842f-7c22-47bd-91df-5189b4e271d2.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:53,533 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'F13D2445-38E0-4C5C-B34D-0A6AC52D073D', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1908817', 'dates': '2025-10-28T12:58:14', 'stamp': 'AiMt6bQUtgZAYPVIaU4JnPPECbyK4lW9cH63a6hMQAhxh5B2tBEfzBO4h31WZhMbvK96UBGRyHP/cqwJLmakfn60iWyCVHffHN35ym3lpQ9QBBHVIAT0N8MHaN8wCF8Ot7HDWTVjNjPEiUGiLMSFS ... (46 characters truncated) ... bFrE9VRP80bsaeKo3C8J3ALQHubaV/n4EKMToZucS05mzVgLwfXaUiwC3rbaonLXIBWF5YCL/+GAM2sHrXEPfnutGWvn+2A/y4ShQbg3S7ROwfr9FiczuCfcD4oL7GdPQCZTylj+7bb5sSh7SnQ==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "SERVICI ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-10-28T13:17:29', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f13d2445-38e0-4c5c-b34d-0a6ac52d073d.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:53,754 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '23A9982D-2C68-429B-AF4D-45ED300E5CEA', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190109', 'dates': '2025-10-02T00:07:49', 'stamp': 'f3rYghAoItyLtu+4atid/Oq2Y7l4KFjabhwRSLQj9WVIahCHzpDaz+cUD00Uo4wNITc8yR38vxe+km37vyQcpHGuwwNUiiGTt7WaxKIzocLYWP55SQqRa6h/xj97cuxYGcy8pBJtQaunePDoC+19c ... (46 characters truncated) ... 6qqJeNL2d/fX6IUJu+8sXg0M85Bu0B+D97j/7S8N4dK5ReUj7KFG2iZE19GbdZ0XkHGeew8+SW2dqO9/Zg1wkZ54qZY78+kIfAUetSTOKTF/hmvamOExauJhE8IMciKaEPLLG8RhcsXZ21tUmeQ==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '01376', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-10-02T20:52:19', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/23a9982d-2c68-429b-af4d-45ed300e5cea.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:53,985 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '6c69b6dd-fe1a-452a-bcde-1cae0a940554', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'SEP77814', 'number_leaf': '50066858288', 'dates': '2025-10-03T00:37:50', 'stamp': 'Rigmj0fztXwrkmPiun3NzgBpKmym8aLylQTu5l42Sv4lrZ7XhKbNAji+LA/GmZWl3Yla4pn49rgzLilVcVwqBcF8fKC0lN7P1VYxduuT5wmPWUDhg1tv+y+6V4tgp23/kJfcjDtzZEfP6cFn2OGRC ... (46 characters truncated) ... DSP2z+FL+fQrdDfbx7x0sAaWyETKWtTatADc72OLozZD3HLskqmYqV94wcpNNivYIl2Im1ZJoFCOqqdrCZ2syVI8HH6a6zRu5418g6z+N7bjUf1RffLF4uqC98tGBUOnfmXFa/AZkC4wH2gapow==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-10-03T08:56:54', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/6c69b6dd-fe1a-452a-bcde-1cae0a940554.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:54,217 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '918ED518-0EE1-4F89-B883-B9307E494DFF', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ECUH', 'number_leaf': '6360330', 'dates': '2025-10-04T19:26:25', 'stamp': 'JYOi83DaDse11EotbMZOyjylhhB73Zks43FXCJycooKKk4skP6iLLuY1BWog/sSsNw5kqHdzHTeGXqG0ATAiIBa22bUwoVvnNHxpc83ScGsRU6v5NL3KOjavbsANDwgdkVVK2FjVL1XWN9wsplS1w ... (46 characters truncated) ... cbg1mhNx6mE1QT3pQP8VKcowT0qP+vkFZ0oBa61TO0C/b4Kc4CRsnn4NqruOCnksR1INHFBy78374un5TY8/VoEFnx1FQSM/grM+2YjbwDeTcZcYWNjStBlNUnbbeaqX+zBmExjnkuFH/SbmDZA==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "Servicio", "descripcion":  ... (42 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-10-04T19:32:40', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/918ed518-0ee1-4f89-b883-b9307e494dff.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:54,442 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'F482A290-4F2B-4752-A626-103D18355BD1', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-10-10T00:36:16', 'stamp': 'AmKsQ2IbmbIF1UsetEF8hieH2E6EB5PDIUw4Gn7lpL32pCE7/6P2Owg9pTET0aZAl2Kc/HIAWEbx/26h6OGDF088jsf2mtm2i51fGPHZQuVh3OXWdiuIz/Mjv/DGGZtf4fW1m7hPIDse2vxN/Fdpy ... (46 characters truncated) ... YIsfa+p+1s1GkdFC5fBDOrkUpq4QevNKBjw5wzHBJYFqFHUdo57l7q0sN2CV2Ma2V5otszzrGFJ6PTuC5BB9Ip4IpSQSewR/iifRzbSBHohcooKSXB12bk87Vs4m+30RLXVqvf0NJb72L394QJA==', 'certificate_number': '00001000000719019167', 'certificate': 'MIIGwzCCBKugAwIBAgIUMDAwMDEwMDAwMDA3MTkwMTkxNjcwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (2018 characters truncated) ... nsw1t6vyde9q51O4AnQ4tMwg91lALUtO5dhzWmGv4bibfpJsnQVAQL9EgsZqRIn3xHRPm7BpkY+7T2yTPbZJFncGzl1TBpbIM06PHnOLoeD5gQdD+5Msf+x+BB6mgfQ2mS3pbi5TD7fr5opZMPQ==', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-10-10T07:53:38', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f482a290-4f2b-4752-a626-103d18355bd1.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:54,669 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '602B82CE-0FD2-42A2-A38A-E9A841FF510C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'G', 'number_leaf': '59', 'dates': '2025-10-16T09:36:43', 'stamp': 'eTG9DOH55wjB+bzJWeuA8TJNbt160jBqUy7X/YKRfQoCBI7JnbsNEhTAg5/egZubyeE/yZQZdd3A5wS5x0wHOJdLSwtyOmwQC+2978pLMkSLWk9/eEo5V1V1SddVTnCCgVzJzg2tMmx0UZybxyWtM ... (46 characters truncated) ... Otv4iNDVnvyhek3RVVd4XQ6lv67HnTlDFbZPmeNipVtOyB4fzPF6uOnCf+DZwRM9eBfI4P/IxTntElKtv4Ne4L0qac0Nk18bpA6/FWZ06VHFUCOJTpN4UAjy1R+dA3pjWKeEHz76gAVebVlJvEQ==', 'certificate_number': '00001000000518762142', 'certificate': 'MIIGATCCA+mgAwIBAgIUMDAwMDEwMDAwMDA1MTg3NjIxNDIwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1758 characters truncated) ... hcSuXfQFGX1hNs8k5LY6URRWb9yqf9YKt0jahJEKZcMZTd77cP2ez46akOobzQwOisFy+99GWwF/KFrXxI3CQ83u1YCOoJTuVTPpaDly6BmzKNYiePmPh6nM1zN/tVWGTHpXAwmhLToM4pkpPJIw=', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '3229.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '3229.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '01900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'CXH230209QV4', 'name_of_the_issuer': 'CHOIZ XCALE HEALTH', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122201", "no_identificacion": "price_1SIsVUGUmdYp5tCoy4N7A1T3", "cantidad": "1", "clave_unidad": "E48", "unidad ... (254 characters truncated) ... : "3229.000000", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.000000", "importe": "0"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-10-16T09:38:17', 'certif_provider_rfc': 'PPD101129EA3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/602b82ce-0fd2-42a2-a38a-e9a841ff510c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:54,893 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'a5e2b28b-7c55-40ec-ab07-edef6d7a6e67', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-10-06T19:24:49', 'stamp': 'UOI4934oHE9d/t+Y7/nBkpjtOT0ukiT+6yUXW1r5NklUHcB0/1qNCTsVLuj2hZNYGGiaqlA2tJyVulyRL9tNuArmqa3NDop6+46XNaOOBIXbKp9/I9uCgo3dxVKobrtTW/7sQa/rTYcrSxXm8LZfa ... (46 characters truncated) ... P4AdGoA0UjjNNIBJYX8MnBToKOD3fIA8Qs8KLUHs6D8aIDsatd+ETvTu1OuAXUvufSBWlQJXqcHEGCtikf1kGv9FPPbbWO5BexKCe2ZQ5c/lcbtsw42DT86uA5bnsUQezv273WgwKxZ/e0ai5jg==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '22639.16', 'discount': '8890.88', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13748.28', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 16", "importe": "22639.16", "descuento": "8890.88", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-10-07T09:17:25', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a5e2b28b-7c55-40ec-ab07-edef6d7a6e67.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:58,054 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '099b6d0b-fda7-4fd1-b9d5-edef6d7a28e4', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-09-04T18:11:35', 'stamp': 'a4LOL4bx1Mc7xjaqtg09IFTJwOJO0ra7X+nBhPpoWhZJoFAu+k5WcrhaOAJRho/UOaXeGynqbGJlPxRbK2AcipNb7F76KM+ahy4sTEjfZt7esTCLo63eHrST8uES1R5ni1dme2/N5RgM1tfFnvcF4 ... (46 characters truncated) ... +fMRl9D8QbGoTINBJTNHB7wQqVLDhS/0wyBmx+yzzTI+G/vt4k+R2DNNcjn+lOZjSzTp/uTYfAvKVTSvACJbjCV+hBwY3TfGwLNpvkDKzQ0Ox1v4bfSFKiadAY8L+KYZQWLjDhcRrgY6GOkys/Q==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '22639.16', 'discount': '8890.88', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13748.28', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 16", "importe": "22639.16", "descuento": "8890.88", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-09-04T18:47:33', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/099b6d0b-fda7-4fd1-b9d5-edef6d7a28e4.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:58,276 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '4a619a7a-f13f-48cb-8d9d-edef6d7a3270', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-09-19T17:47:07', 'stamp': 'Uwnn1AW6AGEWPOYlw5eE2qwhWLsnO5fabwkvgVpHxhKTAVDdxF2ZXYS2xh1wfbJ+6tG0Tx6rw0IbKFD7aB5WNJd0IfBhAGyiNXDkVqkwlT9YgYaIu3MtbpvqnoErzdK/H9HXASkNk05L945VAEnUs ... (46 characters truncated) ... Y0n2Uh45QZIdughHXWF9QXdMnS3dB7jEpY6BTPA9DdMdSIqiFbPWOJOnrY65Wf5IwACXB9pGprHMBeCdnuzeGYbNr+MEe+FHCwZ7gOmN4+1PWI5AlYY9YgxS52V2xDHKlpj/vwZXfQs0L6biiDg==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '26078.16', 'discount': '8860.06', 'currency': 'MXN', 'exchange_rate': '1', 'total': '17218.10', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 16", "importe": "26078.16", "descuento": "8860.06", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-09-19T18:16:33', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/4a619a7a-f13f-48cb-8d9d-edef6d7a3270.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:58,498 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '0e78a28d-2ba2-46d7-8c99-ed6574f927f0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '1063', 'dates': '2025-09-28T19:24:30', 'stamp': 'QYuErSmyZZSd96jSAcsJUdQpKdJ5zVSTvowSbQC0XmYNaq0TlWd/Lg+Igr6FaVMPB4/69+ngBfue9nBDBaHA2xvdi51NWiBG6Dw/yXI2QMRHbgfn9Pl7fw95eI2niswn1PoytEPUQX8P1q/k2b7Pm ... (46 characters truncated) ... YRncpFsAVet7ijzsN0VDiVKShpryAKU+ZHh8mDXDXfoQ4/Va3iMR912fKTmQO4wpzudBk5t0UvSRoF59KuR0W11kFokCl1WnK89rKKywX//WextROjLg4OUZF0As4jOSQYnQ8YwAmw1ug54vjbA==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (138 characters truncated) ... s": [{"base": "800.00", "impuesto": "002", "tipo_factor": "Exento", "tasa_cuota": "", "importe": ""}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-09-28T19:24:30', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/0e78a28d-2ba2-46d7-8c99-ed6574f927f0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:58,716 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '67CC749E-6EDB-4EA5-B65D-02E9429FAD6A', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-09-24T05:11:23', 'stamp': 'Ypi4Ng33JudPtSbJA/q0PXjG3kp8UUiSAd5vngfyuBrJrV6msHLp18CCmoP34miHSSQVDwtnPDhX1AKz+2pV0UY+qSM2aFmgcKV5uUV4DnNmdEOyFUfd6tuDscsKOhRXKHq6RWhNJvlQFjO0ieocZ ... (46 characters truncated) ... OsbKUcvBt/GAqJ11k5ApcsujUJ40EttrJOpI8aneotZ29ba/5jXYvQpN2Gnex5KHDxAhJxvtnv9NeMNGsvYFsitooa1wXX7/cccPFlNp7JzlN8pte+866fzp4JqFeVVVwNZvMJH60XNCBhrXYHA==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-09-24T06:51:51', 'certif_provider_rfc': 'SFE0807172W8', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/67cc749e-6edb-4ea5-b65d-02e9429fad6a.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:58,936 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'E1D028BA-B227-483B-9333-25C7462DD8F7', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190208', 'dates': '2025-09-01T22:54:22', 'stamp': 'nPoOCF3dmB+hdZVsPE/p0hMNWPvWJQ7CPbRveK0AEFg3/8NlVm27Wvq0GxNB+NO/Xm2YoXGQrOQsnqZ/9J04XJ3HjYH81Wewqn1mELx8ghmJ1UiaAd21vYLECpRCg3jzPrUa9elOvSq1FHq6chH7W ... (46 characters truncated) ... 4RMod3/b3oEz48mV2aRU++Td3peya7XgVmX3lSdsL91ZAobOg4P1AmpshQgX64tpEaemOa/iaiyDOObAAK9PiUxFM18LbkpQRRZQZ70H0Dap7DbMCiLFR1G7sCWaz6z7gNHBWW1+5dzNYkc6lkg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '01376', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-09-03T01:02:32', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/e1d028ba-b227-483b-9333-25c7462dd8f7.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:59,155 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '856035FF-360D-4838-BC26-F71A02BAEAC3', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190108', 'dates': '2025-09-01T22:54:22', 'stamp': 'GmkLpoGkSCeuTRoKTVxCfWodbAlkFl5iOdMaHR3qmcOUXmCgKqLlp7fXNBIpppJ3wlxj4iM5gWzpldEzqi/glP6B/RXEdv9tyVR+kgo+Y3dnu8OYclE8YzRTS6YjZqlynhVgaezhEGeoalh7l0sTS ... (46 characters truncated) ... rMQwNIXT+IUpFBt8Jd7pQdZBuLECTR3E4POT+t3Y3Y2VO7rXOPoJ6knUcLw1dQA1a8BPg568ErSonmsewSBa8oMADwMT/d0P0BUxXk0gMG2IwEkbPH9XLz5rflRm/5RQIiKqr7qbavNpfPINtAQ==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '01376', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-09-03T01:02:23', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/856035ff-360d-4838-bc26-f71a02baeac3.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:59,376 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'FB6A6E85-43B6-468F-BFF9-5D36FEAF24A1', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-09-10T10:19:03', 'stamp': 'G3qBhC1sewL3p8czsSYfSQGFaC73/v5osPEPytphe7blJjCYYUFbJBnwnoCv6V4jnv6a3T9f76qi0gT9gav/Z99aBp0WPELqlpOnwZC++dvtqO6ZvS1vFVAe68hwNxTHmDRt61fyDMT8J5R4YfhQs ... (46 characters truncated) ... D1gx0FdtsxfZa+nbPchKfOx/2snhqedRbgpFFQq/+5GSsFsyBx2dF2nH1JxtZDd/cNBiBtW2Dywd51cmP21T3b/A7Z6zrYw6ZS6ObuolEymDcdtXE7pcn5SJutRnFYYCOIeOZiatbNutbkiVPVw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-09-10T17:55:28', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/fb6a6e85-43b6-468f-bff9-5d36feaf24a1.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:59,600 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '9712B2EE-3282-4E4C-8C70-AF8682BAFA39', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ECUH', 'number_leaf': '6142572', 'dates': '2025-09-03T15:38:27', 'stamp': 'I1FUWtdB34Ojh63LYm+gfm43ed9jAazsLM4ZlTOUjuzdEjrJAy9csA+RlMfcBEsFVLdfJtgykUWBzJ+dZftPmXAQeqFQwSrk5KfrQ8iY0pljgCVyF845/neyuTtyHVArnYFnW8C+vhEwfWuEBsEwN ... (46 characters truncated) ... +isDay0ufH2o5K4SwykKyTHkIXZYBMeSqrv0abSvfriQgLCghC7j7kCN42D1aYhcgy3c0DSxGqlzbIVXnNFqMf7rMV32/JP/EjEc79tZNCK9LseDUW5lbrzAm6rk4SmtwPdyyRcPvX6ZVgwJCrA==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "Servicio", "descripcion":  ... (42 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-09-03T15:41:27', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/9712b2ee-3282-4e4c-8c70-af8682bafa39.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:42:59,837 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'AB118AA5-718C-44C4-A794-3960E704EA6B', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1851798', 'dates': '2025-09-26T17:56:15', 'stamp': 'b9serqsjhVZ/sJ6FabdbTRmtfQ9U8CMZJzhZEUhBkCpEZ58uLcLVnbQC6ZjZ3a1mwZ/A8JgV97++9w1/K13De1HrkKMmHa8yddku/VlHJMqq+LVQJwiAEELGuTeHd091LidHvAQvZO7SOzr0oPnZk ... (46 characters truncated) ... DJaBephB8Cbng/E10ICg+WJtizICkLCI4I2XBrOHk3ABcmOD60kZWWKkWD4KJqPbwm1I9XnomGHWVvM8f9wzWYIK/QxRuRJ0/I/SC3G2p4OeCJhKNgCBeb6zOgHyViGaUtp0UDdlhUh8kznlXpw==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "SERVICI ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-09-26T18:02:44', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/ab118aa5-718c-44c4-a794-3960e704ea6b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:00,063 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'a30226d1-06d1-4cd9-a43e-909c7cb981b8', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'AGO77553', 'number_leaf': '50066858288', 'dates': '2025-09-04T13:41:16', 'stamp': 'bS0I+AyHBMSSriPw0gd1xLSJT/kSojKeTGZ/qNW0xeiTyztWRZFxvJgKvRsne7PEKAzDLvM6uT5ZQoqn1cSfkysypOItsvClI/F/d3VEH7s9mVHYk/pp241vwF8wrPEBippRag+UKIuPevTKKymaq ... (46 characters truncated) ... 0dQjoscmiYnF5SpZzzTTqWEueVvnckyG5BzOlp3yKsvfLdN4K91S7jWtHi6dLWPNRtNTxraBmj0l8boQLG9S5byyhAzLlm5pnGsc0NtxBZu1OfkQTXmlJsfoDmnJMAGLh0nvNLmcuXFd3FK7thQ==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-09-04T16:24:05', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a30226d1-06d1-4cd9-a43e-909c7cb981b8.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:03,192 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'f7e38851-2f3a-4c50-8df9-edef6d7a4788', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-08-20T14:16:45', 'stamp': 'RlAxke68gDbSbZZhlga+buhMxvMQwBSp6dGOat+4R6YBxVLpsZy5gF6+8eegK/N8x3bMCBwK3B6New8KHmDk7RZ+ioS/L2yQhFaLxSUDH8WhsnUaq/d86EaWaQ7vU0Ob4foUXO/VdRVll5L7BewmR ... (46 characters truncated) ... 4w926EFh9ogcfqeXcwtaVtnNT7ebqS60M5K9LgEw4df93RV3jctsxl5xsNKTP7I92oJwPaxTcOdGjjVeuICn5WBcXpXnN1C099pAW71Bu/HIwguXtht0xb6tzWVTFfOEE1ol5xmZatcDmF8GEtw==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '30910.18', 'discount': '9605.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '21305.17', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 18", "importe": "30910.18", "descuento": "9605.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-08-20T16:09:34', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f7e38851-2f3a-4c50-8df9-edef6d7a4788.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:03,419 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'c6622795-8a85-404e-881a-edef6d7a8ee1', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-08-06T18:00:18', 'stamp': 'fU0fK32Uieo4p8la28LsEcdVYmz6KCZKo/V/g1PVzKjwf4Fpt54zgpoZ1F5OPZiDKIYjJ7zguY9FxDtcJpqw9lE5lIThgrCC7tbDyfPlUFiCsruRXys2m3sCfhLYlniI9CrSNnGxi195o14jlmmHP ... (46 characters truncated) ... dKeYBQhLhjdDjGf+vIFjKHl4xrTOYu4H9SAlvQQuPXpl4GzBBl2DHyK/8S7fr/80StkND+6Ff7bSUaeQP7ywvxb+DDKphKJaGj0tL9OX8yEh3SBi+w8O45eovNRUdIgB9XcEuwRbpLN2xJiXFTA==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '79571.27', 'discount': '21663.50', 'currency': 'MXN', 'exchange_rate': '1', 'total': '57907.77', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (36 characters truncated) ... 7", "importe": "79571.27", "descuento": "21663.50", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-08-06T18:21:24', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/c6622795-8a85-404e-881a-edef6d7a8ee1.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:03,641 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '1c07a9a3-9a89-4f07-9f02-7f65858e9e2f', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'JUL77390', 'number_leaf': '50066858288', 'dates': '2025-08-02T16:24:45', 'stamp': 'Sed/Fg+E+lNwy7RXKsXoECc+lqpJ6m8ja/LcqJbb/EmoyS7fyq1ww5dTEXgHZXjrDvQ2KTkfFNkEBzq8SEnFtEwCU/j9wVQTyszgTazfG+/Cw+8wLhGx1THagVu6c/S4G/5oMVfCO3YzU5G4UROkQ ... (46 characters truncated) ... ofi4FYTGmSLrL4PclDUNEojEkKdnaJRUlXvdp3b2c9H1JdOpFvl/ATCuEy1CgHwN/8n5QSroeok1c2D+wxA7RbCgxOZRuTow+PHxZn1qTGmO/02lybeLWACmBPLi5OG3avaeM6C01sGAOHA3ZoA==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-08-02T22:45:29', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/1c07a9a3-9a89-4f07-9f02-7f65858e9e2f.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:03,869 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '603303DB-4413-49B3-9E59-8636AAEA3A99', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ECUH', 'number_leaf': '5896041', 'dates': '2025-08-06T11:32:39', 'stamp': 'CCx3joLswOviGngsmWNgIJrrmCW3GdbWT7rB2hGi8YUDItK60DhO+8JRWmAAhSG8+JVcOMpzN40V+lFfWZ2FtfDoc2KTX53BGDHWb/hxahWGJF8LkvXX/3+7+rcuKhZMyU14KH4p6oN6HcCiAaiQJ ... (46 characters truncated) ... RpiG0mSC0DVyPFkVJAzaD3tHvbisgNh75QwnUVuvIJgm0wp18MuAjx8eQ3iCTFcwFCjIumu8HOLfEEUq7E8z3feDycZMR7LCuMb91uAg3Gq6OfqqP3sm5UmO0vcigZsA6HOgpKrMWDGuqeOYAxA==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "Servicio", "descripcion":  ... (42 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-08-06T11:41:16', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/603303db-4413-49b3-9e59-8636aaea3a99.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:04,095 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '4800B35F-5816-4B90-B10F-DF42FE054130', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-08-23T10:10:00', 'stamp': 'cs/2vSSw8jmr+OyWA14mS0SiZzueWj0YOLa8kU9n3Ne0FLsxqHpM6DgocRzs8/ziizUXRh5LTK+aa6umt5QXPBzP1UIv4FEueo+e7+Jkmt0BGa1K7yBaVQFqEgzQy7YfHl8anZqdZMXRa8nBJqnlU ... (46 characters truncated) ... nfniLVXc9xFrdL3XSBVzu2Vys43c+s7+X4HdYIWhL4gYQticSVAo+CvpQuAeGWbS6J+Q3mEYoTTjTusVD638DJLcOcQdF3NN5FA38y+jlV48RrJfq0EobzqEdKIRkbkFAYQLFWk1yfgTLmDszSA==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-08-23T17:33:51', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/4800b35f-5816-4b90-b10f-df42fe054130.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:04,324 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '0740EB41-2DEC-48D1-8458-97029C94F6C6', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190107', 'dates': '2025-08-03T18:23:19', 'stamp': 'qQIobM8p97d0xa+hFMIkyLvJL3K9DcqSzBz6rnbA2d2u2dHkKK1Mu1W/VasJUMDBDor1kvSjS7i+ZA8I74gPN10cuVh01ejINW6CzJYEnNFUIl4SB+LVpxEe3kU2Jxn+7SfVllEldtA04JfjyAQKs ... (46 characters truncated) ... a6AOU171aYya9i9IGS8/9Y8PXKYGI58PAwAYUysL83v5KH8bVR2+caaj1Ki74QmH0gTJ5+ouOk9/uxjvI34A6N0V25WP+GQjIy7+5bOVvwg9MppsBGtn0nALL3StquAMiPYFblZRraiyONoJtcQ==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '01376', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-08-04T22:53:20', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/0740eb41-2dec-48d1-8458-97029c94f6c6.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:04,547 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'C4D8E01F-C79F-4271-8A98-D3812FF4606C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190207', 'dates': '2025-08-03T18:23:19', 'stamp': 'ej8Zw2ZZdp7RIN0vUtX3JxAXnvQNXf3i3kiNpXFAztR6wMYOFVgFBpbRmMnltZjgPDqkAit0m/LnNsEWLJ0uiF0E/N//ASeCQpX7oh7lMqbRODXTgVbigmWbn4vlYPmr1vhWeRoH8OE6CZRbH3cY5 ... (46 characters truncated) ... hXPz0UVoS5ejlap7VGcSPeVaCDNPANVayf42ETJfPgPP4kHozRFm48Z9mryTvzC0YQluBE+vIqnd5bbaGKD1yKvJs9NN9cK5+kpMpE0ovINIKrcXzNdPJZfCsIDzvmXvzQ+LqHnwPWbgdxTQAGQ==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '01376', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-08-04T22:53:28', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/c4d8e01f-c79f-4271-8a98-d3812ff4606c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:04,775 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '383D4AD4-CDF0-4636-A10B-2B760D15208D', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-08-09T18:05:28', 'stamp': 'BvECEPFaB1JqDSj1SgS2KKn5TpHfUCXAmDEFMdmFe/+FTziXp2iC1GGH4CTZ/ys1ix+nj59Euxk4Yr5jU7nG3TTzg/rQanQtgA8ec20A/B50qI6DOgkZMR1Hkup/4IcrzC/9umFi44c/2uevu3S2V ... (46 characters truncated) ... eNgwvQzS4yXRO/x+6OPcyGDT07z9gkVxNmbbcCjy3K6oIgTZCutyBFZUPwR/vYwpdrUDaP6DxQCewlXgCSJR78VaxwbQpPBDeFJgIjhICA9fKFf9/hLltMeVamq0WV2bhmW1im4piN7JXoasqRg==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-08-10T08:01:01', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/383d4ad4-cdf0-4636-a10b-2b760d15208d.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:05,002 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '14C12FA7-4CE7-47D3-837E-AA2249241E00', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1787331', 'dates': '2025-08-29T10:18:47', 'stamp': 'cdqex1aOCmsm3xz4hO0reMAEHg8ySKiyoZLirOe9AjCMtnXtDlagG+oadVE3plEqe9dOg/LKW7MAKqbcm1KBlimrjF0qw1Y0v0r3j0BDIsaZCoNpqmIzjd2M6NGopHGuDaTf7gGLP6LauJWFa3di6 ... (46 characters truncated) ... zGMmI6DTA/tRrzbqAiWJChqdGXXLHa4M+Bqg8dgoRdi1o18YEmDKSEIEzMRvmIKsltBhpJDgvsojviZVkdtEb8IiZBaeIB6HYogERdDrwtxPB5nFgAsDflFW1Qqh8mZ6i3+qh1bQR+KvVD8qQlQ==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "SERVICI ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-08-29T10:24:18', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/14c12fa7-4ce7-47d3-837e-aa2249241e00.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:05,223 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '4328cae6-67df-419a-ae68-03a03f36b447', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '1050', 'dates': '2025-08-30T23:28:33', 'stamp': 'EgqZTW7ngro6JT/O4wd8x5/KVukDl6t94UAPhjQYl+T3vkpTIguT1Qu3TXQ2/Bl71iuWTysoW6aeGjkRSVHXFNHFFX1rygV6nxX+qyTWN4WYc3WLeXgzLOGVwQQE84Dxzl4nCXtowZIfMyAMd6AZX ... (46 characters truncated) ... 1Cirqgdff09Tdcf0tXTpD0+SEFrWE0n8uPuneov44kv7Wh47prbi//aVWqJ96cUL7Mb6PgRYvk4E9DZD18W/ppQpELcx4BuEBG6saRoTXl9Uth/pI/riU8zGsF1m1GknIal+SOrUjVEj/k47Sdg==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (138 characters truncated) ... s": [{"base": "800.00", "impuesto": "002", "tipo_factor": "Exento", "tasa_cuota": "", "importe": ""}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-08-30T23:28:33', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/4328cae6-67df-419a-ae68-03a03f36b447.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:07,551 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '48D9C0C0-5E2D-414C-9296-9B2819D56E56', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190106', 'dates': '2025-07-01T21:29:59', 'stamp': 'Z4Jky3pn8gGKLnGjGBTJ771UKiq3XRJqvb55y9Wemlg4wCgSPdOfnNEyhaJdGC+quwlqimmKo5xlWh+DK3ztCJSoc83V9cF9i/9a9pQaRuth1MRh0Olthc5grssWcR7C+tsztIHdle/VsDfNcmCtU ... (46 characters truncated) ... cPqwoj3NVjjWN/YeUAbVBhgrainOALVxlSVqGCwzxh8rzTpJKK38ntaxE1c0mcnby/PEKTJw0yHuo1qjLlvNUHLQuMXLEewCZp0/EwJpCz77xrj2MZVcnYZryik4BcrUZPp9HvqjTsHGnBtiAPA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '01376', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-07-02T22:33:59', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/48d9c0c0-5e2d-414c-9296-9b2819d56e56.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:07,777 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '17592B64-CEEC-4EA6-B3C3-70B3F4C18989', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-07-24T05:22:31', 'stamp': 'hJ7gOtdP8JX80y//h6wdtb2bpJKzhtUyEJEuYaxEV7BVvLal4MR+0uB4H+1efFhkGghMN4TRSK/GsjJArqUvmqaR5ClPec37zKg9SGNAw7CnG4bOK+64UHT0j7OBWY5jQ4hltwnvxHa5HK7iftglB ... (46 characters truncated) ... zlAA0G6IQVGchxhtLfrU+ifOMLmwWTXsOu4K+RjDAbkl799swBB1ZJ7jHXNSV422dznJrg264SePrXoAJ9zn78XC87dDdA5LvwpGfI2VYDIOFCmJv4jyOi/NZYoK93Qycpm/uxzM5IUTtJdlwDg==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-07-24T07:41:51', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/17592b64-ceec-4ea6-b3c3-70b3f4c18989.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:08,006 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'FC206068-66FE-4AF7-A8E2-1A6B3E612AFC', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1744189', 'dates': '2025-07-31T18:12:29', 'stamp': 'FdVfyrMkNSJL+E6kBTSiMIYBj1GkaB2OtVnGECVdvrGTIL8MHclspG8t6kBE3z/JvckWOou8jZncz6B1ujl0/RykVvuioGMUCWA5DItK+XljsIo65fh3vDe8oR7H1/0iDbZB0nJXTE5ZkE4LzqL4h ... (46 characters truncated) ... /s8rExrYqfdr2WpMTqAjPFswZMafKhFCF65MfTyFdJ4tHNsl072kQjc0wATuOtcp2YDB6hwY8RNnx+VZwXHwGeyl38u9T6ZKQrMdEr0w680L1ZUnoFVJnYmPZC5AlWDN/+ixwwGTZMAStmPz1jg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "SERVICI ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-07-31T18:32:21', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/fc206068-66fe-4af7-a8e2-1a6b3e612afc.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:08,227 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '8D9D7A74-487E-4FE8-AB8B-CAA0E481357D', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ECUH', 'number_leaf': '5806000', 'dates': '2025-07-04T22:44:38', 'stamp': 'Vlf60e8qryt/Ng9rmMLOQK4WW++DrCLmWkzbWYQsM49JTwYr1rYdrcyxSgc5XElBrxnp/x7chX2FZRr3KAV2uJq+GR1awn+UG+gwwmLUlhO9jsR4NSc6zpC1wdO3qR/SKyq9t1Apds5XTGsGxFkSZ ... (46 characters truncated) ... 6XknYLMyWsxBg7GJhUqikFuttryMy1E2dsoIChXIQmxn036SBgaPuuBAo0d6YWOnlHCMyjhyCMhDiIjDYY41x8yZfobJyzMHXil/8E7U3IH7iKeIAVfncLPwqK7nEjD5Md4fwz+FQVHU0v+sXAQ==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "Servicio", "descripcion":  ... (42 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-07-04T22:51:01', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/8d9d7a74-487e-4fe8-ab8b-caa0e481357d.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:08,446 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '830D960A-74E1-4AB6-867F-229E73EA2093', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190206', 'dates': '2025-07-01T21:29:59', 'stamp': 'Hq6QmKPlXBDxHDjkj2NfgBUkhOjskliwbX8kZMKYM9TVI7dbaG2/XymLq2QqR3e/ceO+da/ddVJucWTnDQmvNDI4QGzzPkg5/vXPUL4T4m3oiHy1LIfwm1nL94PJF2Qznct7TrWHi18c754t1CUj3 ... (46 characters truncated) ... oS8avEisafgl7e8+1vHnXW5rBaJqTF5DZEM5nwXjCGb39Lnix2WR9l/rp+7yao72Ms7WY5S1SEZK6tCUdy4c/X3NpDAjRLu/dldp0cBPPyk58Zc0m2fBPHdxKo/DktYuaCSeAuUk1J3xfMuTXVA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '01376', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-07-02T22:34:06', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/830d960a-74e1-4ab6-867f-229e73ea2093.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:08,671 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '4b771f48-8899-4a69-b626-79a9a10052b0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'JUN77252', 'number_leaf': '50066858288', 'dates': '2025-07-02T18:56:54', 'stamp': 'VI2usTRkc/LaXHIgwCVepOrtLip7pWyD1xAdo08bLEA2yA+UdvrOeemYOPSIgg2udCwuSKUAZf2Ycr8upYxgcqOTZ9ijibxDVqcx5aNZb2Bkj7vwgvyviXRZ2sgGiPqCSRwC5c0BGjYdS9sfG6WLU ... (46 characters truncated) ... 4tjlQGvR61h3A1o9h1u78F+zE5+qRMWRc+mb6EK7I3VfVKs7x/qh1kYcN+M9Q+iSVS0lvBf7dgTBd2w27agzhFRJUH2SvqLa6T70fi3RJA1Kl7aG8BcN+3/Ii3LXL3JkLUnK0w3eKDgP+8nFykQ==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-07-03T03:03:56', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/4b771f48-8899-4a69-b626-79a9a10052b0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:08,892 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '722657d0-d923-4de8-bf33-736228753cb3', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-07-07T09:33:24', 'stamp': 'IbXO4FnE/p9wW7lR2DYnRdQ6ggjzLCnds2b+8gsFip9Tc4n0M/SkXyezycuvRSTQjypoHRVZTwRyj9tvMHfAPi7Aq7z4luu2l7oW+pZGw35/I/pLbF6cCzz2x9WKFxwj9gQtiRMQ/1QcADfxTPKkq ... (46 characters truncated) ... NaIfrv1YtoJKeJxUtfznMWZzw5tjvzdq+Cze7FmZXwkyk6CUmii02K0bjfa15pP+ri7tyn8PCDq6fiwihlSpdVo4S3kexIS/HJb1Xv3ms5iA5eG1schaeg68rnSG3Tk+Ndh/EZOU4LuaPrzrXMQ==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8045.75', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13627.00', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8045.75", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-07-07T10:01:17', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/722657d0-d923-4de8-bf33-736228753cb3.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:09,116 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '6cd1fcfa-6bab-4d87-a191-edef6d7a64a6', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-07-21T18:13:40', 'stamp': 'Zo4bpWMXJSaTrThEzFUZrIf6fgrxyhLk5JBbRUS0lIAgm758z7KvqCezkQU7Tzco381WAT3lMIVNhinfFanhJcWZZX0JXVkEwpUoz1nvX5MBPyOjRfGBhI5ryqWLl/uBskJ5ti1fqchYdMjoYrTVT ... (46 characters truncated) ... cd59axH48MRUQhWylU6YcmiaqSDpFgUhoWB96VGuLmI9kLniK6wx6FifJYB+NrfRf2c8dE5MI1Wko8AyLAhEvP180xE8uYp3t0EULjIqC938uf5EcqxWJdnbOJSNMrSaAWfDyq9l6nTw6X8/WIg==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '25111.75', 'discount': '8056.73', 'currency': 'MXN', 'exchange_rate': '1', 'total': '17055.02', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "25111.75", "descuento": "8056.73", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-07-21T18:42:33', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/6cd1fcfa-6bab-4d87-a191-edef6d7a64a6.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:09,335 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '335bdf59-3651-4245-a868-fa4414043e97', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '1031', 'dates': '2025-07-30T20:13:11', 'stamp': 'V/afn5AfHHwby5GT1XlNkUw5/Vbx61dv2k+0cF3PhdCbfi0VFa5eMeXRodhGXnyMXyrhIh1BjxnMpfIA2DqN866rdPNbtAKFXIFmU6YkuyxRKsF9IYQ3+ysRrcLK+6edm3jYhDb03UEPmC73WgC4O ... (46 characters truncated) ... HoFZelheZjR/iYk6FLY6moyy8EpS82JB3iUZDbxoZZEFVKGjnRujXakEizsRJfsMfVg251XA1itUfEKohm7pozt7xY5y6qhEc2h99ctt0tNTR2YW2Vx9LtpHzy7EoP6xvbrK2wQ4a91tqP93u2A==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-07-30T20:13:11', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/335bdf59-3651-4245-a868-fa4414043e97.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:09,553 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '221C6D4B-8B50-4A8F-858B-6039968B8C0C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-07-09T13:38:33', 'stamp': 'CKWKydYpQMaSBTDGIiuqUT56lyz0gdWD53qpzsPX4OFIyjR5OgFcRBcdHEEatjlsKZ8DTA/1tYqt2v28omLbxrV+oij7sAxBDFpWr5VCFVk6Lu/zoEOEDx81JQ8zK/LEYVutO+zwQ4BnBFHPnGMsy ... (46 characters truncated) ... 0759tvziLutj88voDA1ZpGEG/H7mVd9RTHWVDV1E0LPvrB/78ul+pXLm4T+rsHdwjT6fUdfOmheHA5w5SspgDlTx8emXCXUnAQEIkIHc6M2AGBXD7tjsUaAkYuI5KyFYXZSyz6RqLfQ9iWujOtA==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-07-09T20:25:51', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/221c6d4b-8b50-4a8f-858b-6039968b8c0c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:11,872 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'EA97430C-F1A5-48C6-9313-1636796C29D3', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-06-24T05:31:00', 'stamp': 'YAXT+OmM+gos73la/DtOYeP5egl9jc3suRgqfOiRE2TcKimSrzVM2JCECw3dOXSVJpetBDbjn2dPyXiH0fZTGZ08GgHISPwKpYEiEjKomD+WkV0u+3t5i+LDisa2y0P7M3AHNLJaJ6im8DFYJqOY7 ... (46 characters truncated) ... Q8nK9+r3QgA1HpTWi1HEY61Yin5jYOH6oNT8Ge/UVn/QqnGA3PrmbkuRdJjWQmV7iopUKikJ0PD4WeNI+5n7ROc2J29DGvHNDBXCoqKC1Kz5wkme/TF1ZayGOKTzXzMzHncq6Afdi574joquA0A==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-06-24T07:00:30', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/ea97430c-f1a5-48c6-9313-1636796c29d3.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:12,091 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'C1A82DB9-ACD5-4340-9DCD-7B0582E7057A', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190205', 'dates': '2025-06-03T00:29:04', 'stamp': 's52gHPD8GwJHnkQ1GTaY+9ZgtqDGIDU2w+WlBd9Vnjl6O4Q57rKmIuFBgsKFBubNwiaZTgSiCHDvkWa31eDE0Jg9ms/w+4VkIdeXJvD2WQEHgr7/TlX/QU0MwbCPgRZSoUbZfwkqFjNTj0mc8ua9x ... (46 characters truncated) ... wn0qe+PcE5YpYQhx0Hne+BackyBqRimlPM1/OSbJkJ2At5gh805rUSCfbZhok2xE1ZBQOgGLf6w18ikubfKxG4BMqXLJX5O76nULT8GVw9dWiBlDHqNm88Mew/f0tYk2IqKcs+kfLbrkaCwldAQ==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '01376', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-06-04T00:44:10', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/c1a82db9-acd5-4340-9dcd-7b0582e7057a.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:12,311 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'cd500d49-0a16-4584-9ac5-736228750d76', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-06-04T17:40:46', 'stamp': 'Lx920qPC1fyiklj0V/INGB2X3kgGzGqbK0Le3WzjXCvAMHSjXhrk2lGFTURfBdfDSibIpuUwABpUOZ19jYWpqg1xRlHKQQmaqXA1hv6NgV7vrF/sdEh+Hw88gAjf83JpQAyfu4ov5CjD9/AqHwge5 ... (46 characters truncated) ... K+YDalZQ+gUUoRXrX0bYrvakRjfrfInv/6XtEJlU6XEX7M+S+27qnosZyI9qrPMltohCRLEjlne7rj4MtXBnZh94KyfBcfMgR3BG+YADQ4hLFEDVrOiUgPEJgJ/6WNH6/k2vfPfzqJCrMOffXEw==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8045.75', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13627.00', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8045.75", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-06-04T18:00:26', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/cd500d49-0a16-4584-9ac5-736228750d76.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:12,529 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'EE4B98F8-F1CA-4745-B7E9-0889F5CE240E', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ECUH', 'number_leaf': '5545263', 'dates': '2025-06-04T13:58:43', 'stamp': 'OxuLg2/H/7YolwKN9oEJ+B+rXy/UkwfZ6V7vyw29jKTsJ1I1iUvNlKSk516U0JbXOz8ePlVYkneh1XfMhnCojOn1NnvZO1fdmRWHJ4hIFBvuILpDtYOXzOHilLTwnsZjKqqMBijUjyWjVxu5shW1v ... (46 characters truncated) ... T3ErYA/L7Gp2VUuKV8X/NGco+dbZiX3ZM67BQyO+XCRhCjOTTW8om8slWZfW6JlMCHCCs0ou8Gems4L8osp+fNLQ6HaudIieZ0hhhF5HMF+Bd+N4cKCMgAeAAjPLfu+vHaqAv6Z4zieO0ueg97A==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "Servicio", "descripcion":  ... (42 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-06-04T14:04:27', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/ee4b98f8-f1ca-4745-b7e9-0889f5ce240e.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:12,751 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '74721d01-783c-4169-9e08-edef6d7a3e72', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-06-19T18:01:36', 'stamp': 'crCCEOA85BQlsod5X56VZ1j5Pu6MRlM+y1oFlOQEmd5cAozoGludOSZcvIxGFqcsm8HRfbVW2qtfBSLiBJFg8LjSf7yELfqadFJrsh00F/wAJdnBFPS2IihVyzE4G7sWn0pZAwHJezrrw6PE6kLWt ... (46 characters truncated) ... 1ku89Jc1mqCJNXtM7wUqNAII1h0oX1B7QkGXZtcwsGMRs+ohIAPYj0IdyqMR02tCZr+fd2r4ZJjRv9UJA50GFbI3i2HWH8Vua6PIQiMJYltdNMcZ6PloJKafWjEC6/rqhD2CRYKyaaRLwA7IYDA==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '25111.75', 'discount': '8014.92', 'currency': 'MXN', 'exchange_rate': '1', 'total': '17096.83', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "25111.75", "descuento": "8014.92", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-06-19T18:32:19', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/74721d01-783c-4169-9e08-edef6d7a3e72.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:12,977 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '020857DF-C9B7-44EF-9CA8-17FB03908B21', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190105', 'dates': '2025-06-03T00:29:04', 'stamp': 'kperYMmbp8BsZjmlJtF3/aFw8QP10YVjEqPqfxwnD2ZHFk0QDySkOdSJuVAomF+HUExEeDoh4EIdKwnaJ9UfAmczq0+FK6fAlk+LVkY/FjZcr8mgoQNt8Wmk5xODS4cPTfzjZRgwG4kmxojdB0X0E ... (46 characters truncated) ... VCR4H/cMhQW7ABojndO5IvVZTZ2hx01z1VVeJLkuY4U7HmDBhG5GfXYOhqZr652mapKPI5bjGk/0ahcRqf/EOFHCN0RgP6lKgxikCYOHvfI4LmQ1wmYYbGg3Z3zC7iDIM6XrtCncB2EL6rCEAzA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '01376', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-06-04T00:44:01', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/020857df-c9b7-44ef-9ca8-17fb03908b21.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:13,198 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '3BD519D7-3D82-46FE-A1A2-AC7D5FEA316E', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-06-07T15:46:32', 'stamp': 'F2TwrZoD4rSfJzgBFdCJC6QtZ7xWnKZY+uZcB68eY+UJRj7gbsst7XPcH8zHVsL0qbHzY+O3OHx5B0+POiCI+IxrpeWkhjwWzq14ERQxgkuA0ijCJIFFzDmOgEVQyjCyKPpF5UJv3fvLSn1YxfuvN ... (46 characters truncated) ... TJbI9ySYy3Tuz8mY3uM1esakGFRd/EXRQq0uDqHW3/Gs3nMrnb9HeTIFzylCttRadglNxwi5YJbhp/TgINqGtEEtYPoy1ou87TTWxn+L3YHcy0kA2CeDz1q6xpezjmpW2Ea6pt88YVLOl8xyXHg==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-06-08T05:24:12', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/3bd519d7-3d82-46fe-a1a2-ac7d5fea316e.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:13,425 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '743efb29-53fb-46c3-b9dc-29605fcbd707', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'MAY77090', 'number_leaf': '50066858288', 'dates': '2025-06-04T14:44:55', 'stamp': 'E9fwfyIJDGG93ZJybogaFP2792xDM3sZ84UTclItK0XMLAAncCS9VR45IHtb6k0DR5+qgt9M3hR+9gdv/8ND36VTQINwCFiOZRaognSf4xvhhVW1Td+8skUY98pchIucAUar8Uq+/I4drX4Wggney ... (46 characters truncated) ... 3wZI755jGMGoMTFsuKKhaScxmy1EmVhYRvURAS3MEA4Ej82hLMs4AC/PjU4TIHn0dsgqY3UoUSPZ/xvgGxA55XhTkomIIdebx33HG/LF6QQkPt0q3t8q9w5I0BtNgjkcxHHfRRWQmLRqKsbLTcA==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-06-04T20:35:26', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/743efb29-53fb-46c3-b9dc-29605fcbd707.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:13,649 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'A3064C28-F525-43DE-9D60-F45F1E855BEB', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1685452', 'dates': '2025-06-26T20:00:38', 'stamp': 'MCIurzOtQDTCGiix/8m+Yg2kPRTHXoB+842fOpkAccGLwRo9iE1Vrqxd3I5Zc4N2e6mkBuPL4qK2wudlHTwRuC/E5zKSZHBDrs1AEwuLQsTj7J7iq7KaIYb0IukYKP0BQSFbWsH6nPjqaxluebPJJ ... (46 characters truncated) ... HwUaKh4P5RYHsP1eC+2RuFvwA/YV1AzUaGKqx/kAxag3kGPnkyk4qSUcWSb8P+jsx3pWSZJ4ydoRICQ1lp6B9L1hrhh7TOpstFR0bisumFRBvqT6ZIiouGhB4aKLECKbx51X/Sa+fE56mv0OSuQ==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '232.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '269.12', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "MSI (3/ ... (146 characters truncated) ... ": "232.00", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "37.12"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '37.12', 'stamp_date': '2025-06-26T20:05:57', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a3064c28-f525-43de-9d60-f45f1e855beb.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:13,869 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'eaed7ceb-f829-49ab-828c-8c5cfa01d09d', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '1009', 'dates': '2025-06-30T21:38:56', 'stamp': 'f76y95TyUsKJxQhhsgXnXSj/SM6Eq5wCqv061cTXW4q3PjV3W8eECCCYn6WwtOZ2Aei2rCezkcqtyOHvmAXteO6TWQ7hJ7Z7JZ+AOhoBmMcAaUfmb1tGXKY4KM/NPDSsLUrGls4YvU7Vngms71bo3 ... (46 characters truncated) ... KiPwhInY8+rDUnArlOfOGHuWXz6QqFnjPS38V4+dqQHLwMsEE+MGZvwF9B9H4wqI8VZsx81DObOnaK9+hBCd80bE9/NmVfnKyHs/u6k2K8x7hpRAAdgrpJlqf09cxzR500v5Ey6D6+6iq25Eslg==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-06-30T21:38:56', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/eaed7ceb-f829-49ab-828c-8c5cfa01d09d.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:16,169 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '5584BCB0-8DE7-4CED-A94E-E1A53343287E', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1617034', 'dates': '2025-05-30T19:39:02', 'stamp': 'ctHleSkHbZYXycmZhuvYt32U+LiLvNXGmAwrI7SZxi5i7mYw8QOFtegQlay5+NnRgxvy8sdeRFBUG6N4BSShPSEMtNnhNZpNxa3DUbI53yfw+3KQaFMcSFPCCVZaDC3uOGfuEx4VFRGUEVY6hkQ/k ... (46 characters truncated) ... sUkRM/3tGY/ONnT/igYcfZuavr9ah6UE5TK/yY6mbbppMCTkzQYD0JAMylVAyQFuipiFKHze3OKdyStY6+JeqsJ6SDx0Gkmvj58FuG3nEgqAZU0+bsPE0jrPtyeVdpf/NvTJV4CmKnUqBR8Qv5w==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '232.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '269.12', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "MSI (2/ ... (146 characters truncated) ... ": "232.00", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "37.12"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '37.12', 'stamp_date': '2025-05-30T19:43:54', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5584bcb0-8de7-4ced-a94e-e1a53343287e.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:16,383 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '2A42A262-4EBC-4165-85F7-BC2E103FC19B', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190204', 'dates': '2025-05-07T09:36:07', 'stamp': 'a6hY+WHq5dqwUWMJu3qEqCbw1Q8oNpfZRCG7SZN0PVWVw8Kq5QQEu64QRRTTH9zrkp4HioeNDC3FifV8Ixe9t+CpJHTvcyPwr+roDVryYtKlDwp2yghcHmIz9HOkyBVjVRZsN3bLvWTrNs6R08/f+ ... (46 characters truncated) ... FReQ6EKZ+zPEIQCfAvwZznfKeohwqGemel0dFfmzGsOy1IFBkWYzzoAcbfoLy6usaIeyrs5Gx2oBmQLmajgptrL5rixwI28TyH7mLUfDJCWgVWDzbGC9sCQhjfsH/thUL+WvKLWlsh0W8zbdRQA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-05-07T11:20:45', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/2a42a262-4ebc-4165-85f7-bc2e103fc19b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:16,601 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '46A5B74D-DB99-4CBE-820E-D3F584FEF527', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190104', 'dates': '2025-05-07T09:36:07', 'stamp': 'nkrqZsG5T+ml1CJ9aJVxnR/vDJTFHHES+Y5AbxKM3ZM7KEtPsBrKfWmhULqTD+7emCYK9tZKqvlarGjs7+26KeZplvmCUbsJkav+TdzVN1YFuLrnyMr6ZdqWU1jQ7WoAvaO30KkUq5+lQVrH4zjvG ... (46 characters truncated) ... 6QAK59r0kS4BMU74i5huocYLNU6H4RYzy6sZjtEfIlT20KQZsVyeuKf5GYk5bxLTozFDMvE08Lhbt0RwlRnFRqhIYU6ckBAa95+B+L4f88bhnWZP2i/jE/i32ahHlUFkHfmkm+3T6f76kUJckaA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-05-07T11:20:39', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/46a5b74d-db99-4cbe-820e-d3f584fef527.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:16,821 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '5BDBD974-1D1F-40FF-AEE4-23C38080E4A4', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ECUH', 'number_leaf': '5356850', 'dates': '2025-05-04T02:48:16', 'stamp': 'QzK07QzH2nxLzSCFpUMexBYg3x+auHVsw/vYKHlye0gtzmHocZ17Jt2+BMxIDGf8Pgqsysv0zls83Aonr4JJ5HyCYx/xVRK7qQy8x3GYJId92KEEQSi2Us9DbJrWGn2DCokV64gcDsxvea25vs+Ri ... (46 characters truncated) ... 5tfzMrbh9aLwlHAojoo21zy3StX4MUxkNVrJjmipNsGKidj5iEwJjzp55207qdmwtXCBV+cRKfT1Ydj55OCYTG8rmzcMSVze9EtuIHDZLkeOIucHZXPIwUb6cYeXZI+RwTAdIfkxcJETMpmfmzg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "Servicio", "descripcion":  ... (42 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-04T02:54:27', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5bdbd974-1d1f-40ff-aee4-23c38080e4a4.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:17,040 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'a7fa07ae-40da-43bb-9546-edef6d7ab2a9', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-05-21T09:16:28', 'stamp': 'QQU7Ov4WRUvBA4DtDPMFsvmn6NJ+wlkE4kT4bKLt6q15PT5hYU2mV3z9nIq0u8ncv+EPKlFh0fYaBpTPwIz7qhege7Q/AgbgCcpJoA+W2KUKhiEe8sY4TTHKe/rU5lLnpN4BSAfadPCs46D1CxTi7 ... (46 characters truncated) ... iTGy3xpoCGiIXTkMzfJff9FPRxZwQA6IqGcE1jkpaZGF26A/3StR0ivH4EuAZQAjzedKaJ+yVbKnVtL+J+TELYVG/IR5LtXvD4IiwJSHx0Ea1jG+GbFKrwagmTQ5Vlg3xI5m0Gk2yCK2BcyF5uA==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '25111.75', 'discount': '7831.56', 'currency': 'MXN', 'exchange_rate': '1', 'total': '17280.19', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "25111.75", "descuento": "7831.56", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-21T09:45:16', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a7fa07ae-40da-43bb-9546-edef6d7ab2a9.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:17,250 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '48d10eb1-0a95-41c0-942f-edef6d7ae487', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-05-22T13:22:20', 'stamp': 'EdIKXkgQzUk9Ep8g6TJIopNexzG0J3WXvecdheOz5bwmtAbWJZUylTibHHC+IRzACWJltKlCkLSSrZfpZUR4PLI+k7X7nK+R9xCLkTmAMEKv3AiwegNUVD7v6Ecq7qFMhv4L75KYiwikoOKO/BgfX ... (46 characters truncated) ... bRkZRggyoZcKDjMIYDxbEU3yavR26L6pE9RNnfAh+r5kq5q1QBtWiN+dqlsK25GOClGLwHktLISpO7uES/WfbLRdPuyv9lv5WCUFHDduyBaL4pL8x2pFVkQFDFBPUTdS6Qe1G/PhiIdmtLfONYw==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '2111.47', 'discount': '10.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '2101.46', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (31 characters truncated) ... 11.47", "importe": "2111.47", "descuento": "10.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-22T14:27:16', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/48d10eb1-0a95-41c0-942f-edef6d7ae487.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:17,467 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '8F226EC3-D095-4886-B970-AEEFD2657E5E', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-05-24T07:15:20', 'stamp': 'Yc+4Y0JTRlFIcZIzXfo8BeU9ARqvTUY8BkHZo6Pq55gpNtnrK6xKpOJRPjGGLB6OYWDz8j4XF/gcRW5FZ+8+WaZekjXvA2c0Nbn2I6ML6ZQmJgwgy0G4T9UqbQkeS3I2wrQsUi6W98pc26iD2ITsz ... (46 characters truncated) ... s9w9FXwdZdAtaaMY3wmmVR2cHuiOYowvJLsGptIg5uCsSSN0Cn2GSeoQNLCJ+nkLnNtbjUw2FMF5Q8eTCBB+x9FPvCATctiB/H8EeT2MmnJgNKRTHv5ljZtUrfmf8/L489KnuZAGMKSD1PMRj3A==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-24T11:41:39', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/8f226ec3-d095-4886-b970-aeefd2657e5e.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:17,679 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'a5190dd0-a8d3-4c3f-9f07-28543b621e5f', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '973', 'dates': '2025-05-10T09:32:13', 'stamp': 'IGrsWkoj9zjBt4DioapyP2NuyaAIdu5G5k/CKwy5OGbvIIsqgO4RSgEqV80P4Pn7CoIPG5wFN5feZ+5g0QWpMPzeBcuwddDDIRzEXlZmCqaxif57jOEvLPgJrgX1L/w70YsA6B68o36dEj5PT2deL ... (46 characters truncated) ... EMhVpQh0Z2veR0gSnrFekZo1NTOf/nDFYFvS3i77sms+50wwenP6GrUbGJX3SS9I7Q9G4DJaNoBnmVKViRYDEHlTDXGUEijI0RT1hcjOgjIU6rBQFVQ/Dkv0rTMp0i/Bv9hpM7UCP4qvupDXC3w==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '1600.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '1600.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (45 characters truncated) ... : "1600.00", "importe": "1600.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-10T09:32:13', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a5190dd0-a8d3-4c3f-9f07-28543b621e5f.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:17,898 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'db30d851-8509-4f83-840d-c8b2a6a324e1', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '994', 'dates': '2025-05-31T16:19:48', 'stamp': 'U69NbbHSFTI1b2gMAeGUaaepx/wtZCDLmM6LA+GqKt1LWrmpz05ZuVrD3Szr/gO6N6KxWiFRPyfd6ut2np1hYJrHq+/OE31CBHVO9KV4o+sU8rOFQ8aqML45ufPOITutuyUbQosyeAR6DcJX1VZ8S ... (46 characters truncated) ... VQZ7E6aITLZr9NnED7D7r/5GODmIZsw3b/dTlK0HLa647ToaPxCUTnJcLJx56q5bx3M+UTKkdm4nDDCEkOJ3sqnyrXe25WCs5sE6Lyn/L2EPGs0610Oa0ONgRVA/ifH1mroz9TEfHByqozlK+mQ==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-31T16:19:48', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/db30d851-8509-4f83-840d-c8b2a6a324e1.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:18,117 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '221cc71f-9ff4-4f3d-99e4-84dd0fe4a3df', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ABR76927', 'number_leaf': '50066858288', 'dates': '2025-05-02T15:52:56', 'stamp': 'D+J5rIeToe0QFv7pmnv8Uq96Xka++3Xxrb6JSs51NsTSIl6FmrbUHGYLDzNPuaCwVp9DBwW7QkpRVvnCco7HnX8YKAOJsJ+bby1MpFniHBUMzPuYdOXNmu4jg0LcT/NVcS2DqO7c1x1aeJGT2V5pb ... (46 characters truncated) ... C1Uo94yRS9WHaNXfrWJAD0Gg9byNDM7ksAPejjGJpIQGNWt1doXxwni3/jrdVmDh3aTNZejJs1s9Alo/zLl8dGK7qhbolFSmMhF27WyAnHUIK1Vhp9/SIWeCdkun6QvcTJk/S1W9hx3eIL4QV6A==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-02T18:20:47', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/221cc71f-9ff4-4f3d-99e4-84dd0fe4a3df.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:18,345 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '6E64C893-E595-40B7-9040-7AE139822970', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-05-02T08:02:23', 'stamp': 'SUboNfLH4uc4ZzPni2wMMJe6hVQz3LeQrJ5AiXPthWbN8k4LWglk9+e6CEBD8xF3M4JcP7bmXiRO2I6ZGHFRitxA0XyL1+J4TjD7gxV+XjsUKLKB60Ruw0ozge94Rd5fG/ODKIbCmZ9ZKzCo2ByuK ... (46 characters truncated) ... JsRpaqWyonWdhxKBsWNRt1bPeIGPWkBkrCkFpn0ppB3JvXsIyfRy2tisINVV84o3D97wxd48EzLK+XNA414OcWDFi6lOO7fWFRengO5+GPjfyRG2gsbnaEC+ldWTdhNV+gQYst5PL+VeE2nyjOA==', 'certificate_number': '00001000000518762142', 'certificate': 'MIIGATCCA+mgAwIBAgIUMDAwMDEwMDAwMDA1MTg3NjIxNDIwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1758 characters truncated) ... hcSuXfQFGX1hNs8k5LY6URRWb9yqf9YKt0jahJEKZcMZTd77cP2ez46akOobzQwOisFy+99GWwF/KFrXxI3CQ83u1YCOoJTuVTPpaDly6BmzKNYiePmPh6nM1zN/tVWGTHpXAwmhLToM4pkpPJIw=', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '4728.45', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '5485.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '72830', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'CXH230209QV4', 'name_of_the_issuer': 'CHOIZ XCALE HEALTH', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122201", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Unidad de servicio", "d ... (157 characters truncated) ...  "4728.45", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "756.55"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '756.55', 'stamp_date': '2025-05-02T08:02:48', 'certif_provider_rfc': 'SAT970701NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/6e64c893-e595-40b7-9040-7ae139822970.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:18,564 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '232E7F96-6F73-4D3A-BB48-75907DCD5387', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-05-09T08:25:38', 'stamp': 'i2NXIbO6wrOoo3XbNxMOJojDJQsDgT1DrTBM6x/qfjmB56/lUBwMUFKkB3o0ReBqBRWrB9Qq5h6KLaq22zm9xCtZdETvX3xH/FTuJ3Mbqgyr/deULk7x4ubkSth6/NTCNzY7Ht9QH9DeSOeyREOke ... (46 characters truncated) ... 642VXi/gBdXRZSCT15Hv0iojZQkbNaTw0+tyjeKIJKywwXVoMuPc41H2kclAq3oe4+ojd1E+8J4JGjBWHrdRZbKM5v6yRvD83gz7x+9t/3+jr02T/XFcmN9tzaHiyEo1KFRoMkYFRCJRIV9SUgQ==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-09T15:27:35', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/232e7f96-6f73-4d3a-bb48-75907dcd5387.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:18,785 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '509977a7-ab40-49f2-9004-edef6d7ad0b8', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-05-06T17:08:06', 'stamp': 'UfRb49QIelpVlSCu9G3lYXaFm/z6hgk7g37UTpjVtKbBojvlh9Q7O+C+YTYf87vjgXNAyHrhY3pMMVd7vxnXSNIgh/DujixMpP9M+ONi4IF3eiunzFEGNfFiI2DHJxh30dol4IMAJlWfml69CeZYc ... (46 characters truncated) ... 6dMdl1/yXdTVlxnGwQ0aXGPBNxSIT4Gzm9Ft3cKDdT0wb6QzTUEIZ9pAfEvrbYv3tY0+y8rhHbiCrX8ITJWHo/XsxxGLtx80PCtvbGjqKVMGRhtV9hzastnGHv397/ie8urD6WeRgkvWOx+TmKw==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '42688.75', 'discount': '13542.23', 'currency': 'MXN', 'exchange_rate': '1', 'total': '29146.52', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (36 characters truncated) ... 5", "importe": "42688.75", "descuento": "13542.23", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-06T17:41:18', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/509977a7-ab40-49f2-9004-edef6d7ad0b8.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:21,125 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '7412CCE8-1545-4C46-B656-C610A4BDD052', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190203', 'dates': '2025-04-01T23:20:35', 'stamp': 'noLUb7vDA0A9smcKPZgC/YYQd6sGnyFGlg4yIpAtVgPsw0aLyXF7RpfYlF3X2Iv8XhQwaJy5dhNa/dTfTkzBSvtZrokdpy+tTiGOCZ95oN3zn+kHw0TuqcNbEX0ozuqGrMpTiolAW141Rxb+5CTr3 ... (46 characters truncated) ... Xwd2kDQ1J/brYgZfQxSC6dX1LNpFw2B1gkjbU3WWsnWajzcr1KmWB3EcG0f3oltpuD/jTa7GxxsEY0Bmq/9AP3uVAbRtcNjjm7IhRwAC8tmR3nOGYK/V8N/Yz7GMn1myrHeC0plPoFuBy2cnJqg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-04-02T23:19:00', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/7412cce8-1545-4c46-b656-c610a4bdd052.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:21,353 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '661e2037-32ac-4369-9d62-a57e5ca51f08', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'MAR76708', 'number_leaf': '50066858288', 'dates': '2025-04-02T17:39:31', 'stamp': 'f4Kpop/WK9jDemMSo3bMzkn286TH0uHk36mVfoAFiUXcwrtRodlNEGSnyQP2ZYN9hduKvu56SqMLQQBIs/R71MWNHw1oidiZG/DRV3VRbfid3oQ1gNsUtP0hcE2kDbX0KqvgwclxH+JY9yUrLodUG ... (46 characters truncated) ... q4PSEbThc3Baj06QKmQBZghkBXCiG4xrTO/GsDqOFZxMPJTv+W2RTKuq6/z3LMlnakagk7z79h5rik+SEc//EW0MRc6JGk3aKAmRkeO4I0jVq8lU3PKUKC3maorodU93FRw2zyu6PP3DBsaAy/A==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-04-03T01:35:51', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/661e2037-32ac-4369-9d62-a57e5ca51f08.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:21,576 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'D4A735D6-5656-408D-BAB2-9904252A3BFC', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ECUH', 'number_leaf': '5144137', 'dates': '2025-04-04T20:01:00', 'stamp': 'ckRj6OUXaLiRWhosARkfAoWhGjZyz0KA9th95vcRCoIfwTrApNr+ugrZ4AHvDc1UZQMXxC/IT07nvIJH852v4CVdwAbLL9IOq4UOVlbvgI5Ns5ZjD8WzV8eDnLaOyLw87kQ8Pw07kBM8S6nBhsuCF ... (46 characters truncated) ... Bra1he0tX2sE7g6Moa+pPADivxP0WVoH84v69lWA3nnAtzi6p5/7YCI0qq8bw/FMR9pPkoCvuXmBVVhyPwx25zewddHNWT4Wwgx1wCF2+4o/g3rvjjMSZIiaDN97GLtr0rjcSAf/CBS9342Afpw==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "Servicio", "descripcion":  ... (42 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-04-04T20:06:50', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/d4a735d6-5656-408d-bab2-9904252a3bfc.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:21,797 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '560ff8a5-8834-4915-8490-edef6d7aa80b', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-04-07T12:29:45', 'stamp': 'PZiEcGyV9Ywa6QgAdK+vJ5IorLWrQCucVziuZG/4ZSfzaMzCKICkQjMiiZmPCi45ULs0WdgdrzwTnDoJqEgP0oXc0nCb7BhCsh12jfHDd7y1Rhoxm4HjagaysLXGDJu4ZBxWN/eTe3EnbRDh7X0yJ ... (46 characters truncated) ... O2jXB+QRvIMOGLhleV+wsGz9kAj5wKfGy0S3BsBL/nqgKIJPHgWdho2jmP0yL2pDTg87rit1cxxD6umgm4RB4igtaSWB/CZ3TLM4gv+TbH7oddr3xDfUIsjI2cIsjvq5/m16+ovhHLW/J+UMniw==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8447.34', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13225.41', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8447.34", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-04-07T12:45:13', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/560ff8a5-8834-4915-8490-edef6d7aa80b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:22,016 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '23E46B0A-55BC-470D-BE7C-7907E279045B', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190103', 'dates': '2025-04-01T23:20:35', 'stamp': 'log2rz113uZ7sdYdaAgogGWFo+EAJHuUm16DWb2ndRCkR/Ha4q+8h4YT0G88aIYwO2G3yzDVM0A1t8dw1/4do9g/cg9d39iLcIRD4IKGFLl4G29Yt+67wqJEGYwqwzmES7tnBMyIVp/ij2VLfYMT2 ... (46 characters truncated) ... nCJN+BELKudRIGp91ku49/8yID7YocRO1lnWlk6b55HmYtj8HEz0Bdhir0Rmi3eP45JpvPdiDW8Js5d9sHc2RGMhLhQkzGcsbV5w46KMZmIF4K+Bybs6RjffJT4XxnsNWhCfUsyeBsi/C2M/8nQ==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-04-02T23:18:39', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/23e46b0a-55bc-470d-be7c-7907e279045b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:22,242 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '7187F809-CAFF-4201-B044-55418E0AFD0A', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-04-24T04:49:35', 'stamp': 'g7hXbSBsVffBU6y74MA1fQ7K8s3N0EFvmojP6sYNXrIFaafkhBymhMSGuT18nKiwjgd+EySwzr+Y23PHRduoZe41ADjqCwWB6rCi3mw59QuC738bhssrDb+QEJrC3JIODJJUxga4QuTOZDKfXGrSj ... (46 characters truncated) ... SWSYC85OnRyiJBcjOV+FAr8nT9NwA6TVuBLTIixICkt5ZSEg7lksMC+5NZhhEALxj/WDonsBPb+kq8o6VCqaCtoT/LZS5Ls8+3LJd0pPwp2G0OsATUaRk6L0dD8ct5GElcSI+WqzMP5KkIXv2Ag==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-04-24T06:10:43', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/7187f809-caff-4201-b044-55418e0afd0a.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:22,474 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '0A169EB8-592A-4FC5-AB74-BAD39B5BE2C8', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1569919', 'dates': '2025-04-29T14:25:07', 'stamp': 'aoDTu67N7teT6CLVyhsGIS+KPkW2QE3cYKYiG5VQ5JKSqviufhlXEk+wvj/x4zI8prjcC0YWCI9nCFIJ2H4khqcBX7EA8C3VAJtmhFdNczsdjhhNY9euUUuoa46EzVsP3Bg2hB5daPSD0U50LdfNd ... (46 characters truncated) ... zMP72HphBqjbkbmLoAitvs/ovXfE8+xh7lHQaGzxKdKdFXjapP5PiJjiKr/5u8ew7STxpsPVvPyQOSnzXQRIosBMb9QKu33FzdbSr3Ha1NOkK/haeimoKJjktgm9HTnaAO1unIzX1ceM1tnbriA==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '232.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '269.12', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "MSI (1/ ... (146 characters truncated) ... ": "232.00", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "37.12"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '37.12', 'stamp_date': '2025-04-29T14:31:09', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/0a169eb8-592a-4fc5-ab74-bad39b5be2c8.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:22,695 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'D870015C-100D-4B49-9D04-AA1E9EC2D8A5', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-04-09T08:49:15', 'stamp': 'XHEcQXmU9AQgOqPiBD0suB8yYGzZqwyJ/d6SNxwPeMZD/Sg9C3zhGYFaKZoN6PZ0pvKsJRUUG2ND1G+q5iTvjhIGxssc30nZ6on4NO3mTPlCiiCa7iEL/nZV6FJ9Hv52X9munB3Xzxo7jqO+FaAZO ... (46 characters truncated) ... 8R3g7rVrfca/w8F7uzlQ5VVWocWAXbYv5ElKBEmJcQCWYF5mRzGFqElOIbya5TMG8PO+KDL3KKy3T7T4FSWUhYQZIEtirNSZJpf+k8C+wMBijYFCfss5zzQ7aV0v/vyBnXaYHP8d75MKasIYtGw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-04-09T19:20:50', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/d870015c-100d-4b49-9d04-aa1e9ec2d8a5.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:22,935 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '7be16617-28c8-4aa7-9c36-edef6d7ab2b6', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-04-22T12:45:33', 'stamp': 'Au5HV+WPDVABWIPgU4LOiwT9Vk+UMCBeYCbT9KZY6mb+8afh8KDpe8t0I4aeLFHhXC146YTcR6EraAQu2azBCo00es3hWgFLc4igQtRO3Aiw4Up+3g8CXIBFp1TSNE/ElbVkrWrV8JAoBmCQnaZK2 ... (46 characters truncated) ... IVWEHLBzRsoN4qRs2DePLuMv4lRD0GCl00Bi3XgP8oCbX/rJwEWMSffD7me/Kei8P345mFvckecQC4fweGgydJk9WkmPGuLNBCbxtmjqYEQGqtrOvuzSQ1xV+lKz2/1GdTLYqXz2+5ysg3q8fDg==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '25111.75', 'discount': '8416.51', 'currency': 'MXN', 'exchange_rate': '1', 'total': '16695.24', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "25111.75", "descuento": "8416.51", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-04-22T13:07:17', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/7be16617-28c8-4aa7-9c36-edef6d7ab2b6.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:25,272 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '623C2FB4-27FE-4263-87CF-FA983A82A653', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-03-22T09:24:26', 'stamp': 'Q3jX4dqAYAyWJttwT8/T8SpfFvtjR405pOQqUm6lByQ8jNfX4o05p9mk9O5be9THNX3dFKHNT7/Yc6/Cb8Zrx4o1zu9NabrUCVPZ8DAdSSN8LZ+paobLDRgXuc351wy3xsUkAC9W5ydRrdk7mewbf ... (46 characters truncated) ... tY2kPDv8RDfXJBzo93rbJc60CfOQWqW2OqXpZ0eYE078HO5qVTXoEbYWY6s3Qg7WT4ShsruIOImEErBA112Ef6n+WR8vcD/8802st95yGsrKXomM7IvZyHwRcy7+z1tQltRzOgo2n19q946/yyg==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-22T17:04:16', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/623c2fb4-27fe-4263-87cf-fa983a82a653.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:25,497 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'F693F17F-DEC4-4BF1-B794-740BEB0E48B0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ECUH', 'number_leaf': '4943269', 'dates': '2025-03-04T11:33:29', 'stamp': 'HpxHZOJAc/NgU7+gH/+wovn27wt1brwJYZODWeSiv9quM4DdCOsePJk7SERvIJeCeRbuTvffaiiXn2SGX26L0xbJPOCi79Hv6tQreavXlaXLGAFJo2aMLy1ULiqpl/KHQUWpn4mmWMws/LDLtMcKP ... (46 characters truncated) ... 1ISj7NBLWI5b5dGbbgopMPc9L7UyTnndY7yw8+GflY0YcDn47d1KQ/hTgMn3pN2SLeClSSLiVZV5ECkZvqMh98y+lhOjZ6WThxQepcmyTi0btYAFKJR1lSf7r4fCTQdkCO5+tQ7h5aIiJvKSYlg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "Servicio", "descripcion":  ... (42 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-04T11:40:56', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f693f17f-dec4-4bf1-b794-740beb0e48b0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:25,721 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '11C8ACE6-FDD5-11EF-A46F-018E2E04B81B', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CSale', 'number_leaf': '153125196', 'dates': '2025-03-10T11:28:24', 'stamp': 'YH5jP2gZEIBDFM301E60bE7YkKuxgpPnZIqVjpcUe9iJPVY5dfrqUQ8uuq6qVELnQKU4szhEb6q8DlHO3zjhtC252IbPvA/PL7+UB1Lr9AcuzkoOZtUfU8F0mrYufbwMHZlKsv9F628H3HM6VY9w3 ... (46 characters truncated) ... b97fl6UJioqbrwK2NlO8fYmoBXpc/ImTf96xamD9TA0uOcWLmH2/Xbnnk8x3t8fwwinuogCD2L8hrhxT54bx9HZLOwOwQi94nmPcV1Z2PN9OmObCdLn13QTzjHO5lGg4ifgxXlyDW3s13Owk+ww==', 'certificate_number': '00001000000518142818', 'certificate': 'MIIGPzCCBCegAwIBAgIUMDAwMDEwMDAwMDA1MTgxNDI4MTgwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1842 characters truncated) ... OUgofznPaNWKlbbKsyKjOKY9xz98k60myRzTUoJ8ynB8ezOF+MSwD9meYp93hgZMaoNT8XOaEYAhqvCUPPklJkzCf0UM9OopvaLGt7tazqTWhB9JbZzl3BIVYl8GBB28F+eEuJq8chQYEsBo64w==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '625.29', 'discount': '22.70', 'currency': 'MXN', 'exchange_rate': '1', 'total': '699.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '11510', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'ANE140618P37', 'name_of_the_issuer': 'SERVICIOS COMERCIALES AMAZON MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "01010101", "no_identificacion": "1_B0CQMLYFQT_395546628426301", "cantidad": "1", "clave_unidad": "H87", "unidad": ... (284 characters truncated) ... ": "602.59", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "96.41"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '96.41', 'stamp_date': '2025-03-10T11:28:38', 'certif_provider_rfc': 'EME000602QR9', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/11c8ace6-fdd5-11ef-a46f-018e2e04b81b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:25,940 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '61df4bd6-d098-48b2-90de-edef6d7aa875', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-03-20T14:04:49', 'stamp': 'KlWQ3GG8YuIu8P0QpR3BMRuewuFeW9/9PGIVwhNDaFN789PDBOiwToX9txB69Ydk4vmYvq3okFCYclxUx/UOxO1Bl6XqH2WUi62fQSzzBnmFy/6tQJkP5Z1yKrKS8zKL8XXGeCdyUZ7RvEno6IZdL ... (46 characters truncated) ... Z0/mYLWBYwQYNmOloHr7jBuFpyrePPsF7L6v6gtpz2vo1IOPqKRctFOBtmF4NIaSnBssMG7TEtkRi8AuvdXIVaM4WL0nMS2yb9ADJ69mmg1gE0sgfqX6g50APw4XpREBvEh9npGLO+nVYUZz65A==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '25111.75', 'discount': '8485.09', 'currency': 'MXN', 'exchange_rate': '1', 'total': '16626.66', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "25111.75", "descuento": "8485.09", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-20T14:28:14', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/61df4bd6-d098-48b2-90de-edef6d7aa875.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:26,163 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '7de259ff-c20e-4bf7-972b-736228755e1f', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-03-06T09:14:32', 'stamp': 'dHj991+hRzlLa7s4xborXhBbF3D5bZnM5BnqeFlI1TBrLzzinVyDdZc2K39vn7zF5n4C2TwgEOQ6cLWRyed84si3X/6uAp3/gLtBcQRG7yOH3BaY6CBP0X6wtHNFRSOiflHGHo7C18WicJo1L9kjq ... (46 characters truncated) ... hvful3HJrENiEsmV9m0dgUKtgRXRMFoCpcCkAGuO/wunEHpplw4044/CGqPhlx0WkB9e8+VEgK9zTLsNFGRttBSVjhSfr6zvJ9CpXL0L6L+FTqvpKP0+U2LmahaF9N9qL6nRqQoDXMYSwS9Izsw==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8447.34', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13225.41', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8447.34", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-06T10:40:15', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/7de259ff-c20e-4bf7-972b-736228755e1f.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:26,386 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'a686229d-71df-4c52-99f3-8a9cd4c8f8e9', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'FEB76422', 'number_leaf': '50066858288', 'dates': '2025-03-02T15:47:07', 'stamp': 'SPD7tl5yWVUMzIZwadK/T+dgNriy6wwKrOcpJSfP1gEUpYsR6lfZoFIpKzExRh1/M3lKWrBsFh2cGGtM9P2PwMn3HlQZrRDWLT++Qpc7EGdEKIiLqiDLBJJHM/HpIWw8uD0Or7mkCtDwrHP2p04y4 ... (46 characters truncated) ... xbKcP4bmxoBlkIfL1DmtVPRpLF7NsGBcRNb3l+gRVrVMBd/M0hA21wgDDQpyT2QjFBvhs4NXss/StT2SwrTp+9/kGpZi8y4Ty+jP/0oQMI8uwJSppZ/wz+Y+4TAAl61JJzxVcUXwC0urfQJMIng==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-02T21:37:33', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a686229d-71df-4c52-99f3-8a9cd4c8f8e9.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:26,615 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '9465FF77-BB95-429B-BB47-EBE8780D229B', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-03-08T12:18:42', 'stamp': 'Y/eNZsN+2VcfPqSMQ0fv61vL+x4iQpvx5lmZ/swzeYvFvcW1rae4SkaQkLmYiuULAE6BU9klBkPkcM6KQkWmG5YvBicystPiUxkzW+m12DXl1RKkcfaLm+qFVBUXwzwMNohEyFf4h/qR4zpy3ld/i ... (46 characters truncated) ... +hBgtAvOec0Peu0drUo/1Gkm5JpsJ6+M2dNd5MNKpQ+9Dm5lq/I8oYcpTQnmfrhAuOmUD3dcWZbH3OOFGqq5jVX2VjntlLvPMJ0CbPacSTTNeakN0XvGx1SDXNwu4bePAdRpxn0N3UMmrKAy7dQ==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-09T00:32:02', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/9465ff77-bb95-429b-bb47-ebe8780d229b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:26,841 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '6927b00c-efee-47cd-8921-14760711d187', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '933', 'dates': '2025-03-28T13:29:47', 'stamp': 'aeeYBYBD4RQO6ejhaymz2fgxMvWSGbCIEwLPxgJsN+ogeuzAwwdurxF23cyfVo3tr56ud+G6q0Q8Y18jYFDcuku7OgYr90QgJqFNpdh8PZZp1DZnRyYeBcUUwiYdhF0rLWgNP8BcK48rwLM01TVlx ... (46 characters truncated) ... ZuesJSbpAgbUUZjiR6hcU1bTzxrA6+hemHEzlV7AVSatoQSIblonlHWI4b6J4PBeq8gAz92tncGUYzxB3PJo+BJ+06dg2esuv1lZDVfus8R7CY568GI79ySpEhpXqopzBMaCitt+tYD7zPIyogQ==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-28T13:29:47', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/6927b00c-efee-47cd-8921-14760711d187.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:27,061 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '5AC7F222-E782-4095-8848-96B43D9DAAA9', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190202', 'dates': '2025-03-04T21:12:14', 'stamp': 'CNMn+/0BWbg/SG8s2Lmb/xgAFD5GYIbUZmV20zSi+hZgtwPXRQToP1eqwTFMfw3ZEYPrBjXCR46UiYUr+wsSyLIGX2hqENCDbarFG/RQ+3l+usBQtBpPGW+Jb4PuT23/Vw6ssJPAR2VDFWnj7YoY6 ... (46 characters truncated) ... dDqMvYufymtsbfYJ8kWTPJUdzBVEcWhPtdfXTJA+EgfkYDOX+jUSd+lD2/+WULfL/JtGYDl17QRviYzeC5WodS/IoNCeE5FjmO5HBJviLtB7MGg/EHVPbJRjmxDF1jU/QHwVhNA7vPVqI0Y1uDQ==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-03-05T05:00:43', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5ac7f222-e782-4095-8848-96b43d9daaa9.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:27,295 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'B793D98D-2037-4DFC-83F2-08A395E9FD0C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190102', 'dates': '2025-03-04T21:12:14', 'stamp': 'HxyckweoFcHeT/k2vz52+Amf5SvkWPITYeedOSmuY7y/k7sgR1YEzaeybz3Ms0/tNOy/ezhf21lDpINLObFR4oKF1yrW7lUPZfvJ0jwNxYGSzZyBaRLsO2BZ9Q6kPi2cWK4+GtF+yPk9PeGPwGEhV ... (46 characters truncated) ... cJokS4ovDBaadfd7NRHMVWCQETihaACHZho6nrUwkYEu+CGxFPA+4gd1I21kPx4EW84kyAcRpD7Efdw9wUBUUmLJYcXeUzQwVp8/DFsj4bV7TMRbZKSyZvohpXiPeTLxA/oHAxCwFjRB7vE4mTA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-03-05T05:00:34', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/b793d98d-2037-4dfc-83f2-08a395e9fd0c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:29,585 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '9C54DBFE-27F8-4F3E-9829-82FE431FA439', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190201', 'dates': '2025-02-05T15:51:45', 'stamp': 'c8Pslp2nnbDDsUF1kfzDCyYP7evbQdqv+W4c6q33b9oJ1gC5iyA8givAcA9VYpJDfA9ZZK4GQda4LQpm5r4A/jdZYtCpV3wyzOiArr0h98PXcK3bRt/bLIBGBQF/JqGVezqSG5zy9v6xboDNFkLrT ... (46 characters truncated) ... oIbJYbcnkdtoQ4lRlnciwMA/BmFLWS6vKaYhuVaCcOjTyMxoEh/AnuB7JnayLQVqVcMBg/8TmUVxyYaXAhtMNwAxopdCs40o1gbYKjJUp+3zmGFXDwVneqDvnphx0c5iBdmL92FVzR8aNe+CPhA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-02-05T23:52:27', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/9c54dbfe-27f8-4f3e-9829-82fe431fa439.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:29,811 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '54d86d57-ea62-487c-9c66-8e3a09e1046e', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '918', 'dates': '2025-02-25T09:43:55', 'stamp': 'WFsTxZbZQtZuyR3AqKymqgTOZS/ucl3333OjAhLFlzRsvoj6bGDbKy5Ya6CQdW0lJTodSVdCS2gm2p+mL7h+g++cAp5SOudKBF+7/eoYZt+57oXLMGnl2gYbh0uby1oljKud/q+v4OH3I3PwAEj76 ... (46 characters truncated) ... w+QYJz+Y59LupYTo5X8dxDziyLUc1iCsm3G6vIgkVsvUgFE/C0wLRttnGvV+VXaoF4uwISv4m5/MoNhZstt2bS55lfcgN3qZZ+wDBv/+H9veOBvcvQOA3M+MUF3EDz0u/CBkxz8R/C+usGOqLoQ==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-25T09:43:55', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/54d86d57-ea62-487c-9c66-8e3a09e1046e.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:30,033 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '3783a3c3-aac6-4c22-9970-edef6d7a0677', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-02-05T13:54:30', 'stamp': '3HiStkCZhEeHjRbRlG08V4W2kPaDLXKv3sKlMg2RmtFkuHx2wzktNvPg0U8fImhcetI/dRjCwBsDvmm5M1gjXlpZ218SRJKOkRtkRtVmvQDFUK7P0cfPPmb9e2IVZ0szg9IXj426O/hu2DqPQKbyK ... (46 characters truncated) ... aFrRA7CaI78kq+eS3wP5mkr2A0dKALpOJgkjNZTbqTPVVUBx/Hms3GxUaJQ4aRkPyWQId37g2Jl9Ll+gPuN3VLz/NZRbmr6TWlaOO4n+K1Aqg5/EdIrS+LuGnNsLr/utqCsM67rcOpc9EiXW5XA==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '79991.17', 'discount': '21759.23', 'currency': 'MXN', 'exchange_rate': '1', 'total': '58231.94', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (36 characters truncated) ... 7", "importe": "79991.17", "descuento": "21759.23", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-05T13:58:09', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/3783a3c3-aac6-4c22-9970-edef6d7a0677.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:30,260 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'e94becb5-d4ea-4e52-bf37-dfdaf308a2b2', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ENE76226', 'number_leaf': '50066858288', 'dates': '2025-02-02T18:52:49', 'stamp': 'LC+2CKgyqWeYLWLRLVNGxzFxxzCLVr6erFFZyQhOlDqq8g4yoibMWLp2P2EOmMOG/Soewu17WAuE1kevlSDOeqxSf0FPo29GyqAnxCOjTkMddPO/MjbI0ooGnz9Fmr/8DZY+cTf2Zf/VoLMmdNLNl ... (46 characters truncated) ... rds+AqOAbjWC5XaRBTjfSx7HiJAshEbZbiLjthF8RkgKO/EZ3eR4D2xpoAC3yM07L1YiJUqzI/D0IdEK5EXetwzIeNsQSNs0aduRLcxE+rTAL1WinVG1ROw/TqTh2CXmmsVDHoAUW/iiu8Qt9vg==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-03T05:07:26', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/e94becb5-d4ea-4e52-bf37-dfdaf308a2b2.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:30,477 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'C1B8BC2F-78CD-4FF5-934F-97DCA858B380', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-02-08T10:53:55', 'stamp': 'kHnGjfPuuhbEBurpQsbw0I4+KbWOrT/r0oKb9ybB+iZzBs6Ska9Jvulhox5yY3McLjjQUimtLdEapQuEN+EBq2pLekJ5SeML2L3HhxbHvZfbfYbnmZHqjYbsox+KXUC6avyH1GTp3CT+ZHlFnniNj ... (46 characters truncated) ... i2f6uVpkSJr1s5hijov4zanCIb1lGtnmjRVQyWm5nJpdaTDhI/bUiWMVgtnr4PjfL8qXyW0ie1+cICuiNRVIAcsPHjMBWSaZcQS0Ieh6WI/6I4tBRZOt/OcHIOB8yairCc0MsW1v/b5xLN9zGdQ==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-08T19:48:56', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/c1b8bc2f-78cd-4ff5-934f-97dca858b380.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:30,700 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'BEBDBEED-2E5F-45CC-B6A1-AF2F82933744', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1457016', 'dates': '2025-02-27T20:44:26', 'stamp': 'DfSjGZYGp0L+Fudrab3w4ypBuEyGJipp1vKunxy471Yq+T1vlNH5VwjzUpYBgFpRT5tpNNR38PYrjkVYB0Bcd2BYA7RazHuLXikE/R05GT8nBtMbKv1PoBMkR+X7ZwmXXPGmm16WByfas5H6eRR71 ... (46 characters truncated) ... zOeaWFR7biXZngWUHMnuT6d/XEAoxoC7KEZEO6p0pgIzbkbeceQahv82/37Iu6UGzU6ayyplYgPFOYz3aGXdpfg0z/wgOx85LcXYhOhEeH207nLk1lqKBX91tCNqpeYqMEp3Ph2Q5LbE4VLWkwQ==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '205.80', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '238.73', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "INT. DE ... (945 characters truncated) ... e": "67.51", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "10.80"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '32.93', 'stamp_date': '2025-02-27T20:54:44', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/bebdbeed-2e5f-45cc-b6a1-af2f82933744.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:30,924 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '38545538-1905-4066-BB37-F62734BA212E', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190101', 'dates': '2025-02-05T15:51:45', 'stamp': 'IZehUWvH9hDLpHZik+5xrbQniXpPzZ90FBQCr4PpqQA8pVetSrW0D7HhTYoYLUz6adHpj/37OJAMKo+LDEcfFUzQ3BDZMPshKQAI0WTZ7Hc3VxFlEaYwlJ8mKysC+Zw5gaPbrQofaT31wD4qjozSf ... (46 characters truncated) ... CoWOiG8MCr2U+P0eqFBzO16u2fOjNF2HwYAynR4nUDYkm6DwNTfQJf1URRZqV7QwGltTjuAk+zijmL8xr1MVQCqTWeA7VInB0t1TIlugOuaFgkHARRd5hFeU6gXEM04nkU0Zsy1Ss6q1H2YIonA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-02-05T23:52:18', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/38545538-1905-4066-bb37-f62734ba212e.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:31,149 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '05D46C5F-DE44-40FB-9392-A8DDF87FD6A8', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-02-22T08:30:09', 'stamp': 'YKNzsTxB0aU/lFME/OZ1v7do70g2wpMXl/EendKlu9ktYKoaUr8xb1TqNF1LeQ7vQnwnYKhuNSUJ62f+VMZGMmpCzUCcf5J8FDG/Ny73vct1NtERLyCq2qG9WMe+3lX/m9/kWmfo7c1RiIoH9Y1tG ... (46 characters truncated) ... G1tf2aImjLvw6jwmRJ+LmwnWk9zG5g2gh7gXSyjaWVE97/fZ+oi0ofre7Ts2gAnu299uSosJIv6LoHNDDQ423m81YNWaH1puTpNfcot7ih1ZL/lrFD8vLTzNiAkHqkWFhK/1aZdTt2pFlRLp6BA==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-22T15:01:25', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/05d46c5f-de44-40fb-9392-a8ddf87fd6a8.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:31,368 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'f417abad-2b06-47f4-95da-edef6d7af3fd', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-02-20T13:11:29', 'stamp': 'gqyRvYwV7EJEop9RBWMtW08CRLXRvSVia4xYk/tytwdEnkYFncPbPgh3tED0Vkj8hcvQ+ocqtwmiD8O9wWF1kLdgvWWj39Os4amVzmesF77y0MdwQR9e/K+xSkhZEXQumzGRVV71PRRGvyNzW8a+p ... (46 characters truncated) ... f/iliDXANCycczi53zafFjjj2HfDko6iTa2AXQKITkSkDXnPdScD0d8YdGImy2LID7QzLJBRzhyFsf2wYc2TbtYQPq57JVMU5kH8Ofn8G/FkCvT3shAt7S/aoiGXQ8odHixqPFy3GbfZ4Jyn4pg==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '25111.75', 'discount': '7928.71', 'currency': 'MXN', 'exchange_rate': '1', 'total': '17183.04', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "25111.75", "descuento": "7928.71", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-20T13:34:12', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f417abad-2b06-47f4-95da-edef6d7af3fd.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:33,678 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '78f14f40-fe1d-4830-b383-edef6d7a86e0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-06T19:53:52', 'stamp': 'HYNM2Ed841WndlL/7c7mrYZlvsKtmUzszZ/CXhqy81QelkQZNChZu8a63FK9Y6K7XC4I+p9iwnddk9poT1OKkvEs192qtZe4a5dlM1rTQvQciIBc6BpWb9SsF4kPG0lVgNPzOdAKReFXDS19+qSFM ... (46 characters truncated) ... iQuyPx6VF6TFWpVh0pfdrnhUCBgJfCNDbpr2KFzhi67ruJaZ2kXyZr3grhnHT01yyfpoicm5AuG9PLZswty7KjfPlk4YIZ8ROIv0p5/xlrXEZna9ZNHPJPaJIcY5H34XNHHx/e40MeIi3nTm3fQ==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8042.42', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13630.33', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8042.42", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-06T20:15:10', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/78f14f40-fe1d-4830-b383-edef6d7a86e0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:33,898 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '38C1CE7A-2F70-4688-A2DD-5C0838129C9C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1385483', 'dates': '2025-01-27T18:15:22', 'stamp': 'Dd65iwSniizBB0NYEYrbvUvARVypImtvSZTwdVJJYZ3jXDX/twXK4/EX6eqJn7CSj7S7ixyjA8oc2reDR0rxV2+NUnbUrOQ+JpFzEqRKac51zV7pflYGJCStOfq1dh6fkiY3K6H0uXgDtcut4YfeL ... (46 characters truncated) ... J33OIVodClrLT6wLwK7caTsabcmmRXd8a2mrDOm07YgbkDS3G7AIHsAdNUVHCvpIziSG03NFoOWIzr8ZfKPozfFWGwKFtnlyMhHlt7Xh+vRC1B/cQgXg8VC1J8ZltyfPnReyBp9ibSRkboUS6Fg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '405.57', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '470.45', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "INT. DE ... (954 characters truncated) ... ": "127.08", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "20.33"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '64.88', 'stamp_date': '2025-01-27T18:21:18', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/38c1ce7a-2f70-4688-a2dd-5c0838129c9c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:34,117 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'f61751e1-4c08-473e-8f32-b715544dcf20', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'DIC76005', 'number_leaf': '50066858288', 'dates': '2025-01-03T13:10:40', 'stamp': 'adeG9BSrUyM3SwZci1kls1wjj+TpEpFA8lsE5i/pL+8Xjury/MNnLjPZhnAA01dswQ3VL1BhlofJ5KelaNmIW20EM1KRzZ0eE3Irgpwm/pS+1Bqy812lU+5y2Nlfn6iP3Rmk+2667crb1Iccdbas9 ... (46 characters truncated) ... vsj0QWMGoVJDv11cM6sGSDCtr+oyvEIeExE6OO7iVlpudkZBK0OdDHqoQHeT1TkjES0wQg0j00Rr/SP6YIqdD4sA0QdnuQkZpawD+Ly0gDobrKi2l0sVnlwrusd0SG/qkpKB+JZyHEmVNdTsNzg==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-03T19:12:04', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f61751e1-4c08-473e-8f32-b715544dcf20.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:34,344 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '4cbae294-fac7-4e71-a59c-edef6d7a2da0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-22T15:04:31', 'stamp': 'IS/xHVuDRJNRxVdGo8jH7YmFHkcWTQJ19n2TDvBXgDZOfiOPq6azB2TEl2MlQAv0NW2F+KzrlwpKEErd5HH86SxU8x5BMO7ehfz+rR2Gc2djqzsEo3mrvqbgqIzB8/mL3h+SO4qMoin232ZKe9/QM ... (46 characters truncated) ... z7/3u/XCarqTFk/Wp1hoRxywAEm+1IRtXTkIc3Z2mjPeuUM3ETEQhBUQd0wR8+gpY0OcdUxQGapf1fcDg0kJzJmLQOApg6K7OdGy3oFo5klQTL1CumWePqvguwrhILuR6yWSfL18/ESloacPosw==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '24973.75', 'discount': '8053.20', 'currency': 'MXN', 'exchange_rate': '1', 'total': '16920.55', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "24973.75", "descuento": "8053.20", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-22T15:38:09', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/4cbae294-fac7-4e71-a59c-edef6d7a2da0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:34,562 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '5851A769-058A-4F53-AB9B-FF7130B0818C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-01-09T09:58:02', 'stamp': 'Q2giEiTWYd+l/a1aHNxNLJMtXZcJJ8vHiF0b0qht8O73atpInOLow4sWd7xybiuwIjsRbXIpws1QwsdhW3SmcrIMjXbF7Qeux1z3o/ueglbwYwhnyMZPlMW3vcKRtEh9FaHdGujsRlcxqo3oFuojA ... (46 characters truncated) ... EmwNBNTMClPNF4wM0Q1VbqllV8gpRVGx1OQX7uJefL7kxHaoB9a8wFa7ht4Rl8JUuyDZEQ0Vhd9etpnNJrVAUNdHRt7LSA2AyPIRRrMcBsDG1BttPTI3dHXRdg9BVc9JMD0ejjETd7F/ThXOGGw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-09T17:31:47', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5851a769-058a-4f53-ab9b-ff7130b0818c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:34,787 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'DF9D88D7-A26D-4C02-A877-F385A12F4499', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-01-24T04:29:53', 'stamp': 'TsK50wat0ZN74tstYiDQbFV5jnpWZSa99pUq65RvgsbaowLzgajRv94DvKzG4kXAqrTien4qlzmnpthnZBBzv7YnyG0YuEKl6CsXt8EaGlvS57llJ2AvG6JEHbG1elTlP3iLJVXaHSYrGmLSTv71M ... (46 characters truncated) ... MR+DzH8rRJbXDyb+qcBDhlLNDhwdPRH+UKekYStEzHBwRxpg6g49cYIrlrWFQB22uSaTB8vf9sWfX0fHqnTgFvQzwzY3LDJP5IN7124quR2tFSB9tXy4xeDc8Xp8cVP0Smz5WSCT0HJszvKXFYw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-24T06:00:15', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/df9d88d7-a26d-4c02-a877-f385a12f4499.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:35,002 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '71426F59-063F-4AFF-88E3-D21BDF84F1C4', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190212', 'dates': '2025-01-03T17:26:58', 'stamp': 'IJ1YYTtcrGk8Q/macfwKmpEChBPvZgvcZlL0btRXkYmQbhfU4ROT/wxyAmIW3AoD8/SD9Q3MTn1Dfcv5SPDLJhEnMwrdt4VcJ9qyDmiRqJ+/iV5kw6418wOTcA5xMrlkWWkFxh6xgCSg5VC3Vo38F ... (46 characters truncated) ... vHZX/ohx1nyi6cwQNS/hSAEpml8qz8MASlP/idCeNr6jmMUsPax/sthg+ZiYy2MEOwrJX3BXGX9chkaaNjPjvNwlwBRKSjkJI/OUEKU/9tQCeALUoawirnqkcsxzQ1Q7iU9uBL4jeFIM+RmHHMg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:32', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/71426f59-063f-4aff-88e3-d21bdf84f1c4.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:35,228 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'A3E5D3D7-1FCF-4F57-8916-3A4427B3D793', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190112', 'dates': '2025-01-03T17:26:58', 'stamp': 'eB1NQXQBF5nMInJi/MqqyNXituuejRvk+d9WZR8DddnHy2FWDW7l2P7FoHJMvoSZgoUMBSzj/nB8oXU96wnNp+AJgqP7XjNnFOVkPJUtqAAUJbchopg2i+DoXuL9iJFnlIl/YxCKWgvzHwPS5nAp0 ... (46 characters truncated) ... cdDTt4qkh67Dal/JZ9G4ULf2uI/fNvtCOfFX/UDUyKZS4SiUStjbVeFaAh6Zn9BhRgwqTmbs+ruzZRZ2jr+bCmrXc5qxNCpJKPhUYcKmYLlS9bq1adPs/D6ocDD54GAhveelVVw0FqsY1bomSkg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:25', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a3e5d3d7-1fcf-4f57-8916-3a4427b3d793.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:35,450 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'b815ce6a-ff29-44e8-acfd-9076b697bb57', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '897', 'dates': '2025-01-11T18:25:29', 'stamp': 'U75knfUsAo97T0dxgvD0sVMQE25jTW+VIV2eNM96PdK6JZiFK8L3l9x5CRxImTco0wmeNKqKrT/g76TN9WKhEFjvtS53+JfbJPcKN30AZrt6JK3hAfQLsFP5lxAUXkeEqnW90bkUA5VoD6s3i6B6r ... (46 characters truncated) ... HDX6Nfeh327exYZYtsQGwnbH/Z3YHMm0e1YrPeeQqN6jq3mnRnnq3QmcE5XoE53AnuLEVR7rMVNCWKV5W9Vp39VxSIv0WYsCa5t0wRACc7luPO6yLwGTi26fDK9PTn6+IXNOkxKPQx0tvpLxLlA==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-11T18:25:29', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/b815ce6a-ff29-44e8-acfd-9076b697bb57.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:38,217 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '78f14f40-fe1d-4830-b383-edef6d7a86e0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-06T19:53:52', 'stamp': 'HYNM2Ed841WndlL/7c7mrYZlvsKtmUzszZ/CXhqy81QelkQZNChZu8a63FK9Y6K7XC4I+p9iwnddk9poT1OKkvEs192qtZe4a5dlM1rTQvQciIBc6BpWb9SsF4kPG0lVgNPzOdAKReFXDS19+qSFM ... (46 characters truncated) ... iQuyPx6VF6TFWpVh0pfdrnhUCBgJfCNDbpr2KFzhi67ruJaZ2kXyZr3grhnHT01yyfpoicm5AuG9PLZswty7KjfPlk4YIZ8ROIv0p5/xlrXEZna9ZNHPJPaJIcY5H34XNHHx/e40MeIi3nTm3fQ==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8042.42', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13630.33', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8042.42", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-06T20:15:10', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/78f14f40-fe1d-4830-b383-edef6d7a86e0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:38,438 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '38C1CE7A-2F70-4688-A2DD-5C0838129C9C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1385483', 'dates': '2025-01-27T18:15:22', 'stamp': 'Dd65iwSniizBB0NYEYrbvUvARVypImtvSZTwdVJJYZ3jXDX/twXK4/EX6eqJn7CSj7S7ixyjA8oc2reDR0rxV2+NUnbUrOQ+JpFzEqRKac51zV7pflYGJCStOfq1dh6fkiY3K6H0uXgDtcut4YfeL ... (46 characters truncated) ... J33OIVodClrLT6wLwK7caTsabcmmRXd8a2mrDOm07YgbkDS3G7AIHsAdNUVHCvpIziSG03NFoOWIzr8ZfKPozfFWGwKFtnlyMhHlt7Xh+vRC1B/cQgXg8VC1J8ZltyfPnReyBp9ibSRkboUS6Fg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '405.57', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '470.45', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "INT. DE ... (954 characters truncated) ... ": "127.08", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "20.33"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '64.88', 'stamp_date': '2025-01-27T18:21:18', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/38c1ce7a-2f70-4688-a2dd-5c0838129c9c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:38,666 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'f61751e1-4c08-473e-8f32-b715544dcf20', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'DIC76005', 'number_leaf': '50066858288', 'dates': '2025-01-03T13:10:40', 'stamp': 'adeG9BSrUyM3SwZci1kls1wjj+TpEpFA8lsE5i/pL+8Xjury/MNnLjPZhnAA01dswQ3VL1BhlofJ5KelaNmIW20EM1KRzZ0eE3Irgpwm/pS+1Bqy812lU+5y2Nlfn6iP3Rmk+2667crb1Iccdbas9 ... (46 characters truncated) ... vsj0QWMGoVJDv11cM6sGSDCtr+oyvEIeExE6OO7iVlpudkZBK0OdDHqoQHeT1TkjES0wQg0j00Rr/SP6YIqdD4sA0QdnuQkZpawD+Ly0gDobrKi2l0sVnlwrusd0SG/qkpKB+JZyHEmVNdTsNzg==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-03T19:12:04', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f61751e1-4c08-473e-8f32-b715544dcf20.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:38,895 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '4cbae294-fac7-4e71-a59c-edef6d7a2da0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-22T15:04:31', 'stamp': 'IS/xHVuDRJNRxVdGo8jH7YmFHkcWTQJ19n2TDvBXgDZOfiOPq6azB2TEl2MlQAv0NW2F+KzrlwpKEErd5HH86SxU8x5BMO7ehfz+rR2Gc2djqzsEo3mrvqbgqIzB8/mL3h+SO4qMoin232ZKe9/QM ... (46 characters truncated) ... z7/3u/XCarqTFk/Wp1hoRxywAEm+1IRtXTkIc3Z2mjPeuUM3ETEQhBUQd0wR8+gpY0OcdUxQGapf1fcDg0kJzJmLQOApg6K7OdGy3oFo5klQTL1CumWePqvguwrhILuR6yWSfL18/ESloacPosw==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '24973.75', 'discount': '8053.20', 'currency': 'MXN', 'exchange_rate': '1', 'total': '16920.55', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "24973.75", "descuento": "8053.20", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-22T15:38:09', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/4cbae294-fac7-4e71-a59c-edef6d7a2da0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:39,124 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '5851A769-058A-4F53-AB9B-FF7130B0818C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-01-09T09:58:02', 'stamp': 'Q2giEiTWYd+l/a1aHNxNLJMtXZcJJ8vHiF0b0qht8O73atpInOLow4sWd7xybiuwIjsRbXIpws1QwsdhW3SmcrIMjXbF7Qeux1z3o/ueglbwYwhnyMZPlMW3vcKRtEh9FaHdGujsRlcxqo3oFuojA ... (46 characters truncated) ... EmwNBNTMClPNF4wM0Q1VbqllV8gpRVGx1OQX7uJefL7kxHaoB9a8wFa7ht4Rl8JUuyDZEQ0Vhd9etpnNJrVAUNdHRt7LSA2AyPIRRrMcBsDG1BttPTI3dHXRdg9BVc9JMD0ejjETd7F/ThXOGGw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-09T17:31:47', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5851a769-058a-4f53-ab9b-ff7130b0818c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:39,350 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'DF9D88D7-A26D-4C02-A877-F385A12F4499', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-01-24T04:29:53', 'stamp': 'TsK50wat0ZN74tstYiDQbFV5jnpWZSa99pUq65RvgsbaowLzgajRv94DvKzG4kXAqrTien4qlzmnpthnZBBzv7YnyG0YuEKl6CsXt8EaGlvS57llJ2AvG6JEHbG1elTlP3iLJVXaHSYrGmLSTv71M ... (46 characters truncated) ... MR+DzH8rRJbXDyb+qcBDhlLNDhwdPRH+UKekYStEzHBwRxpg6g49cYIrlrWFQB22uSaTB8vf9sWfX0fHqnTgFvQzwzY3LDJP5IN7124quR2tFSB9tXy4xeDc8Xp8cVP0Smz5WSCT0HJszvKXFYw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-24T06:00:15', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/df9d88d7-a26d-4c02-a877-f385a12f4499.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:39,578 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '71426F59-063F-4AFF-88E3-D21BDF84F1C4', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190212', 'dates': '2025-01-03T17:26:58', 'stamp': 'IJ1YYTtcrGk8Q/macfwKmpEChBPvZgvcZlL0btRXkYmQbhfU4ROT/wxyAmIW3AoD8/SD9Q3MTn1Dfcv5SPDLJhEnMwrdt4VcJ9qyDmiRqJ+/iV5kw6418wOTcA5xMrlkWWkFxh6xgCSg5VC3Vo38F ... (46 characters truncated) ... vHZX/ohx1nyi6cwQNS/hSAEpml8qz8MASlP/idCeNr6jmMUsPax/sthg+ZiYy2MEOwrJX3BXGX9chkaaNjPjvNwlwBRKSjkJI/OUEKU/9tQCeALUoawirnqkcsxzQ1Q7iU9uBL4jeFIM+RmHHMg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:32', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/71426f59-063f-4aff-88e3-d21bdf84f1c4.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:39,811 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'A3E5D3D7-1FCF-4F57-8916-3A4427B3D793', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190112', 'dates': '2025-01-03T17:26:58', 'stamp': 'eB1NQXQBF5nMInJi/MqqyNXituuejRvk+d9WZR8DddnHy2FWDW7l2P7FoHJMvoSZgoUMBSzj/nB8oXU96wnNp+AJgqP7XjNnFOVkPJUtqAAUJbchopg2i+DoXuL9iJFnlIl/YxCKWgvzHwPS5nAp0 ... (46 characters truncated) ... cdDTt4qkh67Dal/JZ9G4ULf2uI/fNvtCOfFX/UDUyKZS4SiUStjbVeFaAh6Zn9BhRgwqTmbs+ruzZRZ2jr+bCmrXc5qxNCpJKPhUYcKmYLlS9bq1adPs/D6ocDD54GAhveelVVw0FqsY1bomSkg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:25', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a3e5d3d7-1fcf-4f57-8916-3a4427b3d793.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:40,037 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'b815ce6a-ff29-44e8-acfd-9076b697bb57', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '897', 'dates': '2025-01-11T18:25:29', 'stamp': 'U75knfUsAo97T0dxgvD0sVMQE25jTW+VIV2eNM96PdK6JZiFK8L3l9x5CRxImTco0wmeNKqKrT/g76TN9WKhEFjvtS53+JfbJPcKN30AZrt6JK3hAfQLsFP5lxAUXkeEqnW90bkUA5VoD6s3i6B6r ... (46 characters truncated) ... HDX6Nfeh327exYZYtsQGwnbH/Z3YHMm0e1YrPeeQqN6jq3mnRnnq3QmcE5XoE53AnuLEVR7rMVNCWKV5W9Vp39VxSIv0WYsCa5t0wRACc7luPO6yLwGTi26fDK9PTn6+IXNOkxKPQx0tvpLxLlA==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-11T18:25:29', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/b815ce6a-ff29-44e8-acfd-9076b697bb57.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:42,863 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '78f14f40-fe1d-4830-b383-edef6d7a86e0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-06T19:53:52', 'stamp': 'HYNM2Ed841WndlL/7c7mrYZlvsKtmUzszZ/CXhqy81QelkQZNChZu8a63FK9Y6K7XC4I+p9iwnddk9poT1OKkvEs192qtZe4a5dlM1rTQvQciIBc6BpWb9SsF4kPG0lVgNPzOdAKReFXDS19+qSFM ... (46 characters truncated) ... iQuyPx6VF6TFWpVh0pfdrnhUCBgJfCNDbpr2KFzhi67ruJaZ2kXyZr3grhnHT01yyfpoicm5AuG9PLZswty7KjfPlk4YIZ8ROIv0p5/xlrXEZna9ZNHPJPaJIcY5H34XNHHx/e40MeIi3nTm3fQ==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8042.42', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13630.33', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8042.42", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-06T20:15:10', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/78f14f40-fe1d-4830-b383-edef6d7a86e0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:43,084 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '38C1CE7A-2F70-4688-A2DD-5C0838129C9C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1385483', 'dates': '2025-01-27T18:15:22', 'stamp': 'Dd65iwSniizBB0NYEYrbvUvARVypImtvSZTwdVJJYZ3jXDX/twXK4/EX6eqJn7CSj7S7ixyjA8oc2reDR0rxV2+NUnbUrOQ+JpFzEqRKac51zV7pflYGJCStOfq1dh6fkiY3K6H0uXgDtcut4YfeL ... (46 characters truncated) ... J33OIVodClrLT6wLwK7caTsabcmmRXd8a2mrDOm07YgbkDS3G7AIHsAdNUVHCvpIziSG03NFoOWIzr8ZfKPozfFWGwKFtnlyMhHlt7Xh+vRC1B/cQgXg8VC1J8ZltyfPnReyBp9ibSRkboUS6Fg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '405.57', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '470.45', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "INT. DE ... (954 characters truncated) ... ": "127.08", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "20.33"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '64.88', 'stamp_date': '2025-01-27T18:21:18', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/38c1ce7a-2f70-4688-a2dd-5c0838129c9c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:43,321 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'f61751e1-4c08-473e-8f32-b715544dcf20', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'DIC76005', 'number_leaf': '50066858288', 'dates': '2025-01-03T13:10:40', 'stamp': 'adeG9BSrUyM3SwZci1kls1wjj+TpEpFA8lsE5i/pL+8Xjury/MNnLjPZhnAA01dswQ3VL1BhlofJ5KelaNmIW20EM1KRzZ0eE3Irgpwm/pS+1Bqy812lU+5y2Nlfn6iP3Rmk+2667crb1Iccdbas9 ... (46 characters truncated) ... vsj0QWMGoVJDv11cM6sGSDCtr+oyvEIeExE6OO7iVlpudkZBK0OdDHqoQHeT1TkjES0wQg0j00Rr/SP6YIqdD4sA0QdnuQkZpawD+Ly0gDobrKi2l0sVnlwrusd0SG/qkpKB+JZyHEmVNdTsNzg==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-03T19:12:04', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f61751e1-4c08-473e-8f32-b715544dcf20.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:43,540 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '4cbae294-fac7-4e71-a59c-edef6d7a2da0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-22T15:04:31', 'stamp': 'IS/xHVuDRJNRxVdGo8jH7YmFHkcWTQJ19n2TDvBXgDZOfiOPq6azB2TEl2MlQAv0NW2F+KzrlwpKEErd5HH86SxU8x5BMO7ehfz+rR2Gc2djqzsEo3mrvqbgqIzB8/mL3h+SO4qMoin232ZKe9/QM ... (46 characters truncated) ... z7/3u/XCarqTFk/Wp1hoRxywAEm+1IRtXTkIc3Z2mjPeuUM3ETEQhBUQd0wR8+gpY0OcdUxQGapf1fcDg0kJzJmLQOApg6K7OdGy3oFo5klQTL1CumWePqvguwrhILuR6yWSfL18/ESloacPosw==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '24973.75', 'discount': '8053.20', 'currency': 'MXN', 'exchange_rate': '1', 'total': '16920.55', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "24973.75", "descuento": "8053.20", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-22T15:38:09', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/4cbae294-fac7-4e71-a59c-edef6d7a2da0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:43,756 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '5851A769-058A-4F53-AB9B-FF7130B0818C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-01-09T09:58:02', 'stamp': 'Q2giEiTWYd+l/a1aHNxNLJMtXZcJJ8vHiF0b0qht8O73atpInOLow4sWd7xybiuwIjsRbXIpws1QwsdhW3SmcrIMjXbF7Qeux1z3o/ueglbwYwhnyMZPlMW3vcKRtEh9FaHdGujsRlcxqo3oFuojA ... (46 characters truncated) ... EmwNBNTMClPNF4wM0Q1VbqllV8gpRVGx1OQX7uJefL7kxHaoB9a8wFa7ht4Rl8JUuyDZEQ0Vhd9etpnNJrVAUNdHRt7LSA2AyPIRRrMcBsDG1BttPTI3dHXRdg9BVc9JMD0ejjETd7F/ThXOGGw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-09T17:31:47', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5851a769-058a-4f53-ab9b-ff7130b0818c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:43,975 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'DF9D88D7-A26D-4C02-A877-F385A12F4499', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-01-24T04:29:53', 'stamp': 'TsK50wat0ZN74tstYiDQbFV5jnpWZSa99pUq65RvgsbaowLzgajRv94DvKzG4kXAqrTien4qlzmnpthnZBBzv7YnyG0YuEKl6CsXt8EaGlvS57llJ2AvG6JEHbG1elTlP3iLJVXaHSYrGmLSTv71M ... (46 characters truncated) ... MR+DzH8rRJbXDyb+qcBDhlLNDhwdPRH+UKekYStEzHBwRxpg6g49cYIrlrWFQB22uSaTB8vf9sWfX0fHqnTgFvQzwzY3LDJP5IN7124quR2tFSB9tXy4xeDc8Xp8cVP0Smz5WSCT0HJszvKXFYw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-24T06:00:15', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/df9d88d7-a26d-4c02-a877-f385a12f4499.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:44,195 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '71426F59-063F-4AFF-88E3-D21BDF84F1C4', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190212', 'dates': '2025-01-03T17:26:58', 'stamp': 'IJ1YYTtcrGk8Q/macfwKmpEChBPvZgvcZlL0btRXkYmQbhfU4ROT/wxyAmIW3AoD8/SD9Q3MTn1Dfcv5SPDLJhEnMwrdt4VcJ9qyDmiRqJ+/iV5kw6418wOTcA5xMrlkWWkFxh6xgCSg5VC3Vo38F ... (46 characters truncated) ... vHZX/ohx1nyi6cwQNS/hSAEpml8qz8MASlP/idCeNr6jmMUsPax/sthg+ZiYy2MEOwrJX3BXGX9chkaaNjPjvNwlwBRKSjkJI/OUEKU/9tQCeALUoawirnqkcsxzQ1Q7iU9uBL4jeFIM+RmHHMg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:32', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/71426f59-063f-4aff-88e3-d21bdf84f1c4.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:44,431 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'A3E5D3D7-1FCF-4F57-8916-3A4427B3D793', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190112', 'dates': '2025-01-03T17:26:58', 'stamp': 'eB1NQXQBF5nMInJi/MqqyNXituuejRvk+d9WZR8DddnHy2FWDW7l2P7FoHJMvoSZgoUMBSzj/nB8oXU96wnNp+AJgqP7XjNnFOVkPJUtqAAUJbchopg2i+DoXuL9iJFnlIl/YxCKWgvzHwPS5nAp0 ... (46 characters truncated) ... cdDTt4qkh67Dal/JZ9G4ULf2uI/fNvtCOfFX/UDUyKZS4SiUStjbVeFaAh6Zn9BhRgwqTmbs+ruzZRZ2jr+bCmrXc5qxNCpJKPhUYcKmYLlS9bq1adPs/D6ocDD54GAhveelVVw0FqsY1bomSkg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:25', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a3e5d3d7-1fcf-4f57-8916-3a4427b3d793.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:44,647 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'b815ce6a-ff29-44e8-acfd-9076b697bb57', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '897', 'dates': '2025-01-11T18:25:29', 'stamp': 'U75knfUsAo97T0dxgvD0sVMQE25jTW+VIV2eNM96PdK6JZiFK8L3l9x5CRxImTco0wmeNKqKrT/g76TN9WKhEFjvtS53+JfbJPcKN30AZrt6JK3hAfQLsFP5lxAUXkeEqnW90bkUA5VoD6s3i6B6r ... (46 characters truncated) ... HDX6Nfeh327exYZYtsQGwnbH/Z3YHMm0e1YrPeeQqN6jq3mnRnnq3QmcE5XoE53AnuLEVR7rMVNCWKV5W9Vp39VxSIv0WYsCa5t0wRACc7luPO6yLwGTi26fDK9PTn6+IXNOkxKPQx0tvpLxLlA==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-11T18:25:29', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/b815ce6a-ff29-44e8-acfd-9076b697bb57.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:47,546 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '5584BCB0-8DE7-4CED-A94E-E1A53343287E', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1617034', 'dates': '2025-05-30T19:39:02', 'stamp': 'ctHleSkHbZYXycmZhuvYt32U+LiLvNXGmAwrI7SZxi5i7mYw8QOFtegQlay5+NnRgxvy8sdeRFBUG6N4BSShPSEMtNnhNZpNxa3DUbI53yfw+3KQaFMcSFPCCVZaDC3uOGfuEx4VFRGUEVY6hkQ/k ... (46 characters truncated) ... sUkRM/3tGY/ONnT/igYcfZuavr9ah6UE5TK/yY6mbbppMCTkzQYD0JAMylVAyQFuipiFKHze3OKdyStY6+JeqsJ6SDx0Gkmvj58FuG3nEgqAZU0+bsPE0jrPtyeVdpf/NvTJV4CmKnUqBR8Qv5w==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '232.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '269.12', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "MSI (2/ ... (146 characters truncated) ... ": "232.00", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "37.12"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '37.12', 'stamp_date': '2025-05-30T19:43:54', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5584bcb0-8de7-4ced-a94e-e1a53343287e.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:47,769 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '2A42A262-4EBC-4165-85F7-BC2E103FC19B', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190204', 'dates': '2025-05-07T09:36:07', 'stamp': 'a6hY+WHq5dqwUWMJu3qEqCbw1Q8oNpfZRCG7SZN0PVWVw8Kq5QQEu64QRRTTH9zrkp4HioeNDC3FifV8Ixe9t+CpJHTvcyPwr+roDVryYtKlDwp2yghcHmIz9HOkyBVjVRZsN3bLvWTrNs6R08/f+ ... (46 characters truncated) ... FReQ6EKZ+zPEIQCfAvwZznfKeohwqGemel0dFfmzGsOy1IFBkWYzzoAcbfoLy6usaIeyrs5Gx2oBmQLmajgptrL5rixwI28TyH7mLUfDJCWgVWDzbGC9sCQhjfsH/thUL+WvKLWlsh0W8zbdRQA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-05-07T11:20:45', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/2a42a262-4ebc-4165-85f7-bc2e103fc19b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:47,992 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '46A5B74D-DB99-4CBE-820E-D3F584FEF527', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190104', 'dates': '2025-05-07T09:36:07', 'stamp': 'nkrqZsG5T+ml1CJ9aJVxnR/vDJTFHHES+Y5AbxKM3ZM7KEtPsBrKfWmhULqTD+7emCYK9tZKqvlarGjs7+26KeZplvmCUbsJkav+TdzVN1YFuLrnyMr6ZdqWU1jQ7WoAvaO30KkUq5+lQVrH4zjvG ... (46 characters truncated) ... 6QAK59r0kS4BMU74i5huocYLNU6H4RYzy6sZjtEfIlT20KQZsVyeuKf5GYk5bxLTozFDMvE08Lhbt0RwlRnFRqhIYU6ckBAa95+B+L4f88bhnWZP2i/jE/i32ahHlUFkHfmkm+3T6f76kUJckaA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-05-07T11:20:39', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/46a5b74d-db99-4cbe-820e-d3f584fef527.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:48,211 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '5BDBD974-1D1F-40FF-AEE4-23C38080E4A4', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ECUH', 'number_leaf': '5356850', 'dates': '2025-05-04T02:48:16', 'stamp': 'QzK07QzH2nxLzSCFpUMexBYg3x+auHVsw/vYKHlye0gtzmHocZ17Jt2+BMxIDGf8Pgqsysv0zls83Aonr4JJ5HyCYx/xVRK7qQy8x3GYJId92KEEQSi2Us9DbJrWGn2DCokV64gcDsxvea25vs+Ri ... (46 characters truncated) ... 5tfzMrbh9aLwlHAojoo21zy3StX4MUxkNVrJjmipNsGKidj5iEwJjzp55207qdmwtXCBV+cRKfT1Ydj55OCYTG8rmzcMSVze9EtuIHDZLkeOIucHZXPIwUb6cYeXZI+RwTAdIfkxcJETMpmfmzg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "Servicio", "descripcion":  ... (42 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-04T02:54:27', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5bdbd974-1d1f-40ff-aee4-23c38080e4a4.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:48,434 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '48d10eb1-0a95-41c0-942f-edef6d7ae487', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-05-22T13:22:20', 'stamp': 'EdIKXkgQzUk9Ep8g6TJIopNexzG0J3WXvecdheOz5bwmtAbWJZUylTibHHC+IRzACWJltKlCkLSSrZfpZUR4PLI+k7X7nK+R9xCLkTmAMEKv3AiwegNUVD7v6Ecq7qFMhv4L75KYiwikoOKO/BgfX ... (46 characters truncated) ... bRkZRggyoZcKDjMIYDxbEU3yavR26L6pE9RNnfAh+r5kq5q1QBtWiN+dqlsK25GOClGLwHktLISpO7uES/WfbLRdPuyv9lv5WCUFHDduyBaL4pL8x2pFVkQFDFBPUTdS6Qe1G/PhiIdmtLfONYw==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '2111.47', 'discount': '10.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '2101.46', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (31 characters truncated) ... 11.47", "importe": "2111.47", "descuento": "10.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-22T14:27:16', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/48d10eb1-0a95-41c0-942f-edef6d7ae487.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:48,658 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'a7fa07ae-40da-43bb-9546-edef6d7ab2a9', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-05-21T09:16:28', 'stamp': 'QQU7Ov4WRUvBA4DtDPMFsvmn6NJ+wlkE4kT4bKLt6q15PT5hYU2mV3z9nIq0u8ncv+EPKlFh0fYaBpTPwIz7qhege7Q/AgbgCcpJoA+W2KUKhiEe8sY4TTHKe/rU5lLnpN4BSAfadPCs46D1CxTi7 ... (46 characters truncated) ... iTGy3xpoCGiIXTkMzfJff9FPRxZwQA6IqGcE1jkpaZGF26A/3StR0ivH4EuAZQAjzedKaJ+yVbKnVtL+J+TELYVG/IR5LtXvD4IiwJSHx0Ea1jG+GbFKrwagmTQ5Vlg3xI5m0Gk2yCK2BcyF5uA==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '25111.75', 'discount': '7831.56', 'currency': 'MXN', 'exchange_rate': '1', 'total': '17280.19', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "25111.75", "descuento": "7831.56", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-21T09:45:16', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a7fa07ae-40da-43bb-9546-edef6d7ab2a9.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:48,890 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '8F226EC3-D095-4886-B970-AEEFD2657E5E', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-05-24T07:15:20', 'stamp': 'Yc+4Y0JTRlFIcZIzXfo8BeU9ARqvTUY8BkHZo6Pq55gpNtnrK6xKpOJRPjGGLB6OYWDz8j4XF/gcRW5FZ+8+WaZekjXvA2c0Nbn2I6ML6ZQmJgwgy0G4T9UqbQkeS3I2wrQsUi6W98pc26iD2ITsz ... (46 characters truncated) ... s9w9FXwdZdAtaaMY3wmmVR2cHuiOYowvJLsGptIg5uCsSSN0Cn2GSeoQNLCJ+nkLnNtbjUw2FMF5Q8eTCBB+x9FPvCATctiB/H8EeT2MmnJgNKRTHv5ljZtUrfmf8/L489KnuZAGMKSD1PMRj3A==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-24T11:41:39', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/8f226ec3-d095-4886-b970-aeefd2657e5e.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:49,117 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'a5190dd0-a8d3-4c3f-9f07-28543b621e5f', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '973', 'dates': '2025-05-10T09:32:13', 'stamp': 'IGrsWkoj9zjBt4DioapyP2NuyaAIdu5G5k/CKwy5OGbvIIsqgO4RSgEqV80P4Pn7CoIPG5wFN5feZ+5g0QWpMPzeBcuwddDDIRzEXlZmCqaxif57jOEvLPgJrgX1L/w70YsA6B68o36dEj5PT2deL ... (46 characters truncated) ... EMhVpQh0Z2veR0gSnrFekZo1NTOf/nDFYFvS3i77sms+50wwenP6GrUbGJX3SS9I7Q9G4DJaNoBnmVKViRYDEHlTDXGUEijI0RT1hcjOgjIU6rBQFVQ/Dkv0rTMp0i/Bv9hpM7UCP4qvupDXC3w==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '1600.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '1600.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (45 characters truncated) ... : "1600.00", "importe": "1600.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-10T09:32:13', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a5190dd0-a8d3-4c3f-9f07-28543b621e5f.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:49,340 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'db30d851-8509-4f83-840d-c8b2a6a324e1', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '994', 'dates': '2025-05-31T16:19:48', 'stamp': 'U69NbbHSFTI1b2gMAeGUaaepx/wtZCDLmM6LA+GqKt1LWrmpz05ZuVrD3Szr/gO6N6KxWiFRPyfd6ut2np1hYJrHq+/OE31CBHVO9KV4o+sU8rOFQ8aqML45ufPOITutuyUbQosyeAR6DcJX1VZ8S ... (46 characters truncated) ... VQZ7E6aITLZr9NnED7D7r/5GODmIZsw3b/dTlK0HLa647ToaPxCUTnJcLJx56q5bx3M+UTKkdm4nDDCEkOJ3sqnyrXe25WCs5sE6Lyn/L2EPGs0610Oa0ONgRVA/ifH1mroz9TEfHByqozlK+mQ==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-31T16:19:48', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/db30d851-8509-4f83-840d-c8b2a6a324e1.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:49,564 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '221cc71f-9ff4-4f3d-99e4-84dd0fe4a3df', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ABR76927', 'number_leaf': '50066858288', 'dates': '2025-05-02T15:52:56', 'stamp': 'D+J5rIeToe0QFv7pmnv8Uq96Xka++3Xxrb6JSs51NsTSIl6FmrbUHGYLDzNPuaCwVp9DBwW7QkpRVvnCco7HnX8YKAOJsJ+bby1MpFniHBUMzPuYdOXNmu4jg0LcT/NVcS2DqO7c1x1aeJGT2V5pb ... (46 characters truncated) ... C1Uo94yRS9WHaNXfrWJAD0Gg9byNDM7ksAPejjGJpIQGNWt1doXxwni3/jrdVmDh3aTNZejJs1s9Alo/zLl8dGK7qhbolFSmMhF27WyAnHUIK1Vhp9/SIWeCdkun6QvcTJk/S1W9hx3eIL4QV6A==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-02T18:20:47', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/221cc71f-9ff4-4f3d-99e4-84dd0fe4a3df.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:49,787 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '6E64C893-E595-40B7-9040-7AE139822970', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-05-02T08:02:23', 'stamp': 'SUboNfLH4uc4ZzPni2wMMJe6hVQz3LeQrJ5AiXPthWbN8k4LWglk9+e6CEBD8xF3M4JcP7bmXiRO2I6ZGHFRitxA0XyL1+J4TjD7gxV+XjsUKLKB60Ruw0ozge94Rd5fG/ODKIbCmZ9ZKzCo2ByuK ... (46 characters truncated) ... JsRpaqWyonWdhxKBsWNRt1bPeIGPWkBkrCkFpn0ppB3JvXsIyfRy2tisINVV84o3D97wxd48EzLK+XNA414OcWDFi6lOO7fWFRengO5+GPjfyRG2gsbnaEC+ldWTdhNV+gQYst5PL+VeE2nyjOA==', 'certificate_number': '00001000000518762142', 'certificate': 'MIIGATCCA+mgAwIBAgIUMDAwMDEwMDAwMDA1MTg3NjIxNDIwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1758 characters truncated) ... hcSuXfQFGX1hNs8k5LY6URRWb9yqf9YKt0jahJEKZcMZTd77cP2ez46akOobzQwOisFy+99GWwF/KFrXxI3CQ83u1YCOoJTuVTPpaDly6BmzKNYiePmPh6nM1zN/tVWGTHpXAwmhLToM4pkpPJIw=', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '4728.45', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '5485.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '72830', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'CXH230209QV4', 'name_of_the_issuer': 'CHOIZ XCALE HEALTH', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122201", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Unidad de servicio", "d ... (157 characters truncated) ...  "4728.45", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "756.55"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '756.55', 'stamp_date': '2025-05-02T08:02:48', 'certif_provider_rfc': 'SAT970701NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/6e64c893-e595-40b7-9040-7ae139822970.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:50,012 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '509977a7-ab40-49f2-9004-edef6d7ad0b8', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-05-06T17:08:06', 'stamp': 'UfRb49QIelpVlSCu9G3lYXaFm/z6hgk7g37UTpjVtKbBojvlh9Q7O+C+YTYf87vjgXNAyHrhY3pMMVd7vxnXSNIgh/DujixMpP9M+ONi4IF3eiunzFEGNfFiI2DHJxh30dol4IMAJlWfml69CeZYc ... (46 characters truncated) ... 6dMdl1/yXdTVlxnGwQ0aXGPBNxSIT4Gzm9Ft3cKDdT0wb6QzTUEIZ9pAfEvrbYv3tY0+y8rhHbiCrX8ITJWHo/XsxxGLtx80PCtvbGjqKVMGRhtV9hzastnGHv397/ie8urD6WeRgkvWOx+TmKw==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '42688.75', 'discount': '13542.23', 'currency': 'MXN', 'exchange_rate': '1', 'total': '29146.52', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (36 characters truncated) ... 5", "importe": "42688.75", "descuento": "13542.23", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-06T17:41:18', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/509977a7-ab40-49f2-9004-edef6d7ad0b8.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:50,232 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '232E7F96-6F73-4D3A-BB48-75907DCD5387', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-05-09T08:25:38', 'stamp': 'i2NXIbO6wrOoo3XbNxMOJojDJQsDgT1DrTBM6x/qfjmB56/lUBwMUFKkB3o0ReBqBRWrB9Qq5h6KLaq22zm9xCtZdETvX3xH/FTuJ3Mbqgyr/deULk7x4ubkSth6/NTCNzY7Ht9QH9DeSOeyREOke ... (46 characters truncated) ... 642VXi/gBdXRZSCT15Hv0iojZQkbNaTw0+tyjeKIJKywwXVoMuPc41H2kclAq3oe4+ojd1E+8J4JGjBWHrdRZbKM5v6yRvD83gz7x+9t/3+jr02T/XFcmN9tzaHiyEo1KFRoMkYFRCJRIV9SUgQ==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-09T15:27:35', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/232e7f96-6f73-4d3a-bb48-75907dcd5387.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:53,064 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '7412CCE8-1545-4C46-B656-C610A4BDD052', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190203', 'dates': '2025-04-01T23:20:35', 'stamp': 'noLUb7vDA0A9smcKPZgC/YYQd6sGnyFGlg4yIpAtVgPsw0aLyXF7RpfYlF3X2Iv8XhQwaJy5dhNa/dTfTkzBSvtZrokdpy+tTiGOCZ95oN3zn+kHw0TuqcNbEX0ozuqGrMpTiolAW141Rxb+5CTr3 ... (46 characters truncated) ... Xwd2kDQ1J/brYgZfQxSC6dX1LNpFw2B1gkjbU3WWsnWajzcr1KmWB3EcG0f3oltpuD/jTa7GxxsEY0Bmq/9AP3uVAbRtcNjjm7IhRwAC8tmR3nOGYK/V8N/Yz7GMn1myrHeC0plPoFuBy2cnJqg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-04-02T23:19:00', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/7412cce8-1545-4c46-b656-c610a4bdd052.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:53,284 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '661e2037-32ac-4369-9d62-a57e5ca51f08', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'MAR76708', 'number_leaf': '50066858288', 'dates': '2025-04-02T17:39:31', 'stamp': 'f4Kpop/WK9jDemMSo3bMzkn286TH0uHk36mVfoAFiUXcwrtRodlNEGSnyQP2ZYN9hduKvu56SqMLQQBIs/R71MWNHw1oidiZG/DRV3VRbfid3oQ1gNsUtP0hcE2kDbX0KqvgwclxH+JY9yUrLodUG ... (46 characters truncated) ... q4PSEbThc3Baj06QKmQBZghkBXCiG4xrTO/GsDqOFZxMPJTv+W2RTKuq6/z3LMlnakagk7z79h5rik+SEc//EW0MRc6JGk3aKAmRkeO4I0jVq8lU3PKUKC3maorodU93FRw2zyu6PP3DBsaAy/A==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-04-03T01:35:51', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/661e2037-32ac-4369-9d62-a57e5ca51f08.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:53,515 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'D4A735D6-5656-408D-BAB2-9904252A3BFC', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ECUH', 'number_leaf': '5144137', 'dates': '2025-04-04T20:01:00', 'stamp': 'ckRj6OUXaLiRWhosARkfAoWhGjZyz0KA9th95vcRCoIfwTrApNr+ugrZ4AHvDc1UZQMXxC/IT07nvIJH852v4CVdwAbLL9IOq4UOVlbvgI5Ns5ZjD8WzV8eDnLaOyLw87kQ8Pw07kBM8S6nBhsuCF ... (46 characters truncated) ... Bra1he0tX2sE7g6Moa+pPADivxP0WVoH84v69lWA3nnAtzi6p5/7YCI0qq8bw/FMR9pPkoCvuXmBVVhyPwx25zewddHNWT4Wwgx1wCF2+4o/g3rvjjMSZIiaDN97GLtr0rjcSAf/CBS9342Afpw==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "Servicio", "descripcion":  ... (42 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-04-04T20:06:50', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/d4a735d6-5656-408d-bab2-9904252a3bfc.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:53,804 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '560ff8a5-8834-4915-8490-edef6d7aa80b', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-04-07T12:29:45', 'stamp': 'PZiEcGyV9Ywa6QgAdK+vJ5IorLWrQCucVziuZG/4ZSfzaMzCKICkQjMiiZmPCi45ULs0WdgdrzwTnDoJqEgP0oXc0nCb7BhCsh12jfHDd7y1Rhoxm4HjagaysLXGDJu4ZBxWN/eTe3EnbRDh7X0yJ ... (46 characters truncated) ... O2jXB+QRvIMOGLhleV+wsGz9kAj5wKfGy0S3BsBL/nqgKIJPHgWdho2jmP0yL2pDTg87rit1cxxD6umgm4RB4igtaSWB/CZ3TLM4gv+TbH7oddr3xDfUIsjI2cIsjvq5/m16+ovhHLW/J+UMniw==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8447.34', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13225.41', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8447.34", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-04-07T12:45:13', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/560ff8a5-8834-4915-8490-edef6d7aa80b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:54,032 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '23E46B0A-55BC-470D-BE7C-7907E279045B', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190103', 'dates': '2025-04-01T23:20:35', 'stamp': 'log2rz113uZ7sdYdaAgogGWFo+EAJHuUm16DWb2ndRCkR/Ha4q+8h4YT0G88aIYwO2G3yzDVM0A1t8dw1/4do9g/cg9d39iLcIRD4IKGFLl4G29Yt+67wqJEGYwqwzmES7tnBMyIVp/ij2VLfYMT2 ... (46 characters truncated) ... nCJN+BELKudRIGp91ku49/8yID7YocRO1lnWlk6b55HmYtj8HEz0Bdhir0Rmi3eP45JpvPdiDW8Js5d9sHc2RGMhLhQkzGcsbV5w46KMZmIF4K+Bybs6RjffJT4XxnsNWhCfUsyeBsi/C2M/8nQ==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-04-02T23:18:39', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/23e46b0a-55bc-470d-be7c-7907e279045b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:54,294 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '7187F809-CAFF-4201-B044-55418E0AFD0A', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-04-24T04:49:35', 'stamp': 'g7hXbSBsVffBU6y74MA1fQ7K8s3N0EFvmojP6sYNXrIFaafkhBymhMSGuT18nKiwjgd+EySwzr+Y23PHRduoZe41ADjqCwWB6rCi3mw59QuC738bhssrDb+QEJrC3JIODJJUxga4QuTOZDKfXGrSj ... (46 characters truncated) ... SWSYC85OnRyiJBcjOV+FAr8nT9NwA6TVuBLTIixICkt5ZSEg7lksMC+5NZhhEALxj/WDonsBPb+kq8o6VCqaCtoT/LZS5Ls8+3LJd0pPwp2G0OsATUaRk6L0dD8ct5GElcSI+WqzMP5KkIXv2Ag==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-04-24T06:10:43', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/7187f809-caff-4201-b044-55418e0afd0a.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:54,534 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '0A169EB8-592A-4FC5-AB74-BAD39B5BE2C8', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1569919', 'dates': '2025-04-29T14:25:07', 'stamp': 'aoDTu67N7teT6CLVyhsGIS+KPkW2QE3cYKYiG5VQ5JKSqviufhlXEk+wvj/x4zI8prjcC0YWCI9nCFIJ2H4khqcBX7EA8C3VAJtmhFdNczsdjhhNY9euUUuoa46EzVsP3Bg2hB5daPSD0U50LdfNd ... (46 characters truncated) ... zMP72HphBqjbkbmLoAitvs/ovXfE8+xh7lHQaGzxKdKdFXjapP5PiJjiKr/5u8ew7STxpsPVvPyQOSnzXQRIosBMb9QKu33FzdbSr3Ha1NOkK/haeimoKJjktgm9HTnaAO1unIzX1ceM1tnbriA==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '232.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '269.12', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "MSI (1/ ... (146 characters truncated) ... ": "232.00", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "37.12"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '37.12', 'stamp_date': '2025-04-29T14:31:09', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/0a169eb8-592a-4fc5-ab74-bad39b5be2c8.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:54,775 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'D870015C-100D-4B49-9D04-AA1E9EC2D8A5', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-04-09T08:49:15', 'stamp': 'XHEcQXmU9AQgOqPiBD0suB8yYGzZqwyJ/d6SNxwPeMZD/Sg9C3zhGYFaKZoN6PZ0pvKsJRUUG2ND1G+q5iTvjhIGxssc30nZ6on4NO3mTPlCiiCa7iEL/nZV6FJ9Hv52X9munB3Xzxo7jqO+FaAZO ... (46 characters truncated) ... 8R3g7rVrfca/w8F7uzlQ5VVWocWAXbYv5ElKBEmJcQCWYF5mRzGFqElOIbya5TMG8PO+KDL3KKy3T7T4FSWUhYQZIEtirNSZJpf+k8C+wMBijYFCfss5zzQ7aV0v/vyBnXaYHP8d75MKasIYtGw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-04-09T19:20:50', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/d870015c-100d-4b49-9d04-aa1e9ec2d8a5.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:55,010 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '7be16617-28c8-4aa7-9c36-edef6d7ab2b6', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-04-22T12:45:33', 'stamp': 'Au5HV+WPDVABWIPgU4LOiwT9Vk+UMCBeYCbT9KZY6mb+8afh8KDpe8t0I4aeLFHhXC146YTcR6EraAQu2azBCo00es3hWgFLc4igQtRO3Aiw4Up+3g8CXIBFp1TSNE/ElbVkrWrV8JAoBmCQnaZK2 ... (46 characters truncated) ... IVWEHLBzRsoN4qRs2DePLuMv4lRD0GCl00Bi3XgP8oCbX/rJwEWMSffD7me/Kei8P345mFvckecQC4fweGgydJk9WkmPGuLNBCbxtmjqYEQGqtrOvuzSQ1xV+lKz2/1GdTLYqXz2+5ysg3q8fDg==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '25111.75', 'discount': '8416.51', 'currency': 'MXN', 'exchange_rate': '1', 'total': '16695.24', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "25111.75", "descuento": "8416.51", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-04-22T13:07:17', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/7be16617-28c8-4aa7-9c36-edef6d7ab2b6.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:57,911 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '623C2FB4-27FE-4263-87CF-FA983A82A653', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-03-22T09:24:26', 'stamp': 'Q3jX4dqAYAyWJttwT8/T8SpfFvtjR405pOQqUm6lByQ8jNfX4o05p9mk9O5be9THNX3dFKHNT7/Yc6/Cb8Zrx4o1zu9NabrUCVPZ8DAdSSN8LZ+paobLDRgXuc351wy3xsUkAC9W5ydRrdk7mewbf ... (46 characters truncated) ... tY2kPDv8RDfXJBzo93rbJc60CfOQWqW2OqXpZ0eYE078HO5qVTXoEbYWY6s3Qg7WT4ShsruIOImEErBA112Ef6n+WR8vcD/8802st95yGsrKXomM7IvZyHwRcy7+z1tQltRzOgo2n19q946/yyg==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-22T17:04:16', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/623c2fb4-27fe-4263-87cf-fa983a82a653.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:58,132 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'F693F17F-DEC4-4BF1-B794-740BEB0E48B0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ECUH', 'number_leaf': '4943269', 'dates': '2025-03-04T11:33:29', 'stamp': 'HpxHZOJAc/NgU7+gH/+wovn27wt1brwJYZODWeSiv9quM4DdCOsePJk7SERvIJeCeRbuTvffaiiXn2SGX26L0xbJPOCi79Hv6tQreavXlaXLGAFJo2aMLy1ULiqpl/KHQUWpn4mmWMws/LDLtMcKP ... (46 characters truncated) ... 1ISj7NBLWI5b5dGbbgopMPc9L7UyTnndY7yw8+GflY0YcDn47d1KQ/hTgMn3pN2SLeClSSLiVZV5ECkZvqMh98y+lhOjZ6WThxQepcmyTi0btYAFKJR1lSf7r4fCTQdkCO5+tQ7h5aIiJvKSYlg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "Servicio", "descripcion":  ... (42 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-04T11:40:56', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f693f17f-dec4-4bf1-b794-740beb0e48b0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:58,351 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '11C8ACE6-FDD5-11EF-A46F-018E2E04B81B', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CSale', 'number_leaf': '153125196', 'dates': '2025-03-10T11:28:24', 'stamp': 'YH5jP2gZEIBDFM301E60bE7YkKuxgpPnZIqVjpcUe9iJPVY5dfrqUQ8uuq6qVELnQKU4szhEb6q8DlHO3zjhtC252IbPvA/PL7+UB1Lr9AcuzkoOZtUfU8F0mrYufbwMHZlKsv9F628H3HM6VY9w3 ... (46 characters truncated) ... b97fl6UJioqbrwK2NlO8fYmoBXpc/ImTf96xamD9TA0uOcWLmH2/Xbnnk8x3t8fwwinuogCD2L8hrhxT54bx9HZLOwOwQi94nmPcV1Z2PN9OmObCdLn13QTzjHO5lGg4ifgxXlyDW3s13Owk+ww==', 'certificate_number': '00001000000518142818', 'certificate': 'MIIGPzCCBCegAwIBAgIUMDAwMDEwMDAwMDA1MTgxNDI4MTgwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1842 characters truncated) ... OUgofznPaNWKlbbKsyKjOKY9xz98k60myRzTUoJ8ynB8ezOF+MSwD9meYp93hgZMaoNT8XOaEYAhqvCUPPklJkzCf0UM9OopvaLGt7tazqTWhB9JbZzl3BIVYl8GBB28F+eEuJq8chQYEsBo64w==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '625.29', 'discount': '22.70', 'currency': 'MXN', 'exchange_rate': '1', 'total': '699.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '11510', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'ANE140618P37', 'name_of_the_issuer': 'SERVICIOS COMERCIALES AMAZON MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "01010101", "no_identificacion": "1_B0CQMLYFQT_395546628426301", "cantidad": "1", "clave_unidad": "H87", "unidad": ... (284 characters truncated) ... ": "602.59", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "96.41"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '96.41', 'stamp_date': '2025-03-10T11:28:38', 'certif_provider_rfc': 'EME000602QR9', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/11c8ace6-fdd5-11ef-a46f-018e2e04b81b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:58,571 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '61df4bd6-d098-48b2-90de-edef6d7aa875', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-03-20T14:04:49', 'stamp': 'KlWQ3GG8YuIu8P0QpR3BMRuewuFeW9/9PGIVwhNDaFN789PDBOiwToX9txB69Ydk4vmYvq3okFCYclxUx/UOxO1Bl6XqH2WUi62fQSzzBnmFy/6tQJkP5Z1yKrKS8zKL8XXGeCdyUZ7RvEno6IZdL ... (46 characters truncated) ... Z0/mYLWBYwQYNmOloHr7jBuFpyrePPsF7L6v6gtpz2vo1IOPqKRctFOBtmF4NIaSnBssMG7TEtkRi8AuvdXIVaM4WL0nMS2yb9ADJ69mmg1gE0sgfqX6g50APw4XpREBvEh9npGLO+nVYUZz65A==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '25111.75', 'discount': '8485.09', 'currency': 'MXN', 'exchange_rate': '1', 'total': '16626.66', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "25111.75", "descuento": "8485.09", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-20T14:28:14', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/61df4bd6-d098-48b2-90de-edef6d7aa875.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:58,800 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '7de259ff-c20e-4bf7-972b-736228755e1f', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-03-06T09:14:32', 'stamp': 'dHj991+hRzlLa7s4xborXhBbF3D5bZnM5BnqeFlI1TBrLzzinVyDdZc2K39vn7zF5n4C2TwgEOQ6cLWRyed84si3X/6uAp3/gLtBcQRG7yOH3BaY6CBP0X6wtHNFRSOiflHGHo7C18WicJo1L9kjq ... (46 characters truncated) ... hvful3HJrENiEsmV9m0dgUKtgRXRMFoCpcCkAGuO/wunEHpplw4044/CGqPhlx0WkB9e8+VEgK9zTLsNFGRttBSVjhSfr6zvJ9CpXL0L6L+FTqvpKP0+U2LmahaF9N9qL6nRqQoDXMYSwS9Izsw==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8447.34', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13225.41', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8447.34", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-06T10:40:15', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/7de259ff-c20e-4bf7-972b-736228755e1f.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:59,024 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'a686229d-71df-4c52-99f3-8a9cd4c8f8e9', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'FEB76422', 'number_leaf': '50066858288', 'dates': '2025-03-02T15:47:07', 'stamp': 'SPD7tl5yWVUMzIZwadK/T+dgNriy6wwKrOcpJSfP1gEUpYsR6lfZoFIpKzExRh1/M3lKWrBsFh2cGGtM9P2PwMn3HlQZrRDWLT++Qpc7EGdEKIiLqiDLBJJHM/HpIWw8uD0Or7mkCtDwrHP2p04y4 ... (46 characters truncated) ... xbKcP4bmxoBlkIfL1DmtVPRpLF7NsGBcRNb3l+gRVrVMBd/M0hA21wgDDQpyT2QjFBvhs4NXss/StT2SwrTp+9/kGpZi8y4Ty+jP/0oQMI8uwJSppZ/wz+Y+4TAAl61JJzxVcUXwC0urfQJMIng==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-02T21:37:33', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a686229d-71df-4c52-99f3-8a9cd4c8f8e9.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:59,240 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '9465FF77-BB95-429B-BB47-EBE8780D229B', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-03-08T12:18:42', 'stamp': 'Y/eNZsN+2VcfPqSMQ0fv61vL+x4iQpvx5lmZ/swzeYvFvcW1rae4SkaQkLmYiuULAE6BU9klBkPkcM6KQkWmG5YvBicystPiUxkzW+m12DXl1RKkcfaLm+qFVBUXwzwMNohEyFf4h/qR4zpy3ld/i ... (46 characters truncated) ... +hBgtAvOec0Peu0drUo/1Gkm5JpsJ6+M2dNd5MNKpQ+9Dm5lq/I8oYcpTQnmfrhAuOmUD3dcWZbH3OOFGqq5jVX2VjntlLvPMJ0CbPacSTTNeakN0XvGx1SDXNwu4bePAdRpxn0N3UMmrKAy7dQ==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-09T00:32:02', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/9465ff77-bb95-429b-bb47-ebe8780d229b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:59,461 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '6927b00c-efee-47cd-8921-14760711d187', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '933', 'dates': '2025-03-28T13:29:47', 'stamp': 'aeeYBYBD4RQO6ejhaymz2fgxMvWSGbCIEwLPxgJsN+ogeuzAwwdurxF23cyfVo3tr56ud+G6q0Q8Y18jYFDcuku7OgYr90QgJqFNpdh8PZZp1DZnRyYeBcUUwiYdhF0rLWgNP8BcK48rwLM01TVlx ... (46 characters truncated) ... ZuesJSbpAgbUUZjiR6hcU1bTzxrA6+hemHEzlV7AVSatoQSIblonlHWI4b6J4PBeq8gAz92tncGUYzxB3PJo+BJ+06dg2esuv1lZDVfus8R7CY568GI79ySpEhpXqopzBMaCitt+tYD7zPIyogQ==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-28T13:29:47', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/6927b00c-efee-47cd-8921-14760711d187.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:59,699 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '5AC7F222-E782-4095-8848-96B43D9DAAA9', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190202', 'dates': '2025-03-04T21:12:14', 'stamp': 'CNMn+/0BWbg/SG8s2Lmb/xgAFD5GYIbUZmV20zSi+hZgtwPXRQToP1eqwTFMfw3ZEYPrBjXCR46UiYUr+wsSyLIGX2hqENCDbarFG/RQ+3l+usBQtBpPGW+Jb4PuT23/Vw6ssJPAR2VDFWnj7YoY6 ... (46 characters truncated) ... dDqMvYufymtsbfYJ8kWTPJUdzBVEcWhPtdfXTJA+EgfkYDOX+jUSd+lD2/+WULfL/JtGYDl17QRviYzeC5WodS/IoNCeE5FjmO5HBJviLtB7MGg/EHVPbJRjmxDF1jU/QHwVhNA7vPVqI0Y1uDQ==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-03-05T05:00:43', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5ac7f222-e782-4095-8848-96b43d9daaa9.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:43:59,921 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'B793D98D-2037-4DFC-83F2-08A395E9FD0C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190102', 'dates': '2025-03-04T21:12:14', 'stamp': 'HxyckweoFcHeT/k2vz52+Amf5SvkWPITYeedOSmuY7y/k7sgR1YEzaeybz3Ms0/tNOy/ezhf21lDpINLObFR4oKF1yrW7lUPZfvJ0jwNxYGSzZyBaRLsO2BZ9Q6kPi2cWK4+GtF+yPk9PeGPwGEhV ... (46 characters truncated) ... cJokS4ovDBaadfd7NRHMVWCQETihaACHZho6nrUwkYEu+CGxFPA+4gd1I21kPx4EW84kyAcRpD7Efdw9wUBUUmLJYcXeUzQwVp8/DFsj4bV7TMRbZKSyZvohpXiPeTLxA/oHAxCwFjRB7vE4mTA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-03-05T05:00:34', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/b793d98d-2037-4dfc-83f2-08a395e9fd0c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:02,711 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '9C54DBFE-27F8-4F3E-9829-82FE431FA439', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190201', 'dates': '2025-02-05T15:51:45', 'stamp': 'c8Pslp2nnbDDsUF1kfzDCyYP7evbQdqv+W4c6q33b9oJ1gC5iyA8givAcA9VYpJDfA9ZZK4GQda4LQpm5r4A/jdZYtCpV3wyzOiArr0h98PXcK3bRt/bLIBGBQF/JqGVezqSG5zy9v6xboDNFkLrT ... (46 characters truncated) ... oIbJYbcnkdtoQ4lRlnciwMA/BmFLWS6vKaYhuVaCcOjTyMxoEh/AnuB7JnayLQVqVcMBg/8TmUVxyYaXAhtMNwAxopdCs40o1gbYKjJUp+3zmGFXDwVneqDvnphx0c5iBdmL92FVzR8aNe+CPhA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-02-05T23:52:27', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/9c54dbfe-27f8-4f3e-9829-82fe431fa439.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:02,940 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '54d86d57-ea62-487c-9c66-8e3a09e1046e', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '918', 'dates': '2025-02-25T09:43:55', 'stamp': 'WFsTxZbZQtZuyR3AqKymqgTOZS/ucl3333OjAhLFlzRsvoj6bGDbKy5Ya6CQdW0lJTodSVdCS2gm2p+mL7h+g++cAp5SOudKBF+7/eoYZt+57oXLMGnl2gYbh0uby1oljKud/q+v4OH3I3PwAEj76 ... (46 characters truncated) ... w+QYJz+Y59LupYTo5X8dxDziyLUc1iCsm3G6vIgkVsvUgFE/C0wLRttnGvV+VXaoF4uwISv4m5/MoNhZstt2bS55lfcgN3qZZ+wDBv/+H9veOBvcvQOA3M+MUF3EDz0u/CBkxz8R/C+usGOqLoQ==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-25T09:43:55', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/54d86d57-ea62-487c-9c66-8e3a09e1046e.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:03,161 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '3783a3c3-aac6-4c22-9970-edef6d7a0677', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-02-05T13:54:30', 'stamp': '3HiStkCZhEeHjRbRlG08V4W2kPaDLXKv3sKlMg2RmtFkuHx2wzktNvPg0U8fImhcetI/dRjCwBsDvmm5M1gjXlpZ218SRJKOkRtkRtVmvQDFUK7P0cfPPmb9e2IVZ0szg9IXj426O/hu2DqPQKbyK ... (46 characters truncated) ... aFrRA7CaI78kq+eS3wP5mkr2A0dKALpOJgkjNZTbqTPVVUBx/Hms3GxUaJQ4aRkPyWQId37g2Jl9Ll+gPuN3VLz/NZRbmr6TWlaOO4n+K1Aqg5/EdIrS+LuGnNsLr/utqCsM67rcOpc9EiXW5XA==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '79991.17', 'discount': '21759.23', 'currency': 'MXN', 'exchange_rate': '1', 'total': '58231.94', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (36 characters truncated) ... 7", "importe": "79991.17", "descuento": "21759.23", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-05T13:58:09', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/3783a3c3-aac6-4c22-9970-edef6d7a0677.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:03,394 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'e94becb5-d4ea-4e52-bf37-dfdaf308a2b2', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ENE76226', 'number_leaf': '50066858288', 'dates': '2025-02-02T18:52:49', 'stamp': 'LC+2CKgyqWeYLWLRLVNGxzFxxzCLVr6erFFZyQhOlDqq8g4yoibMWLp2P2EOmMOG/Soewu17WAuE1kevlSDOeqxSf0FPo29GyqAnxCOjTkMddPO/MjbI0ooGnz9Fmr/8DZY+cTf2Zf/VoLMmdNLNl ... (46 characters truncated) ... rds+AqOAbjWC5XaRBTjfSx7HiJAshEbZbiLjthF8RkgKO/EZ3eR4D2xpoAC3yM07L1YiJUqzI/D0IdEK5EXetwzIeNsQSNs0aduRLcxE+rTAL1WinVG1ROw/TqTh2CXmmsVDHoAUW/iiu8Qt9vg==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-03T05:07:26', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/e94becb5-d4ea-4e52-bf37-dfdaf308a2b2.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:03,618 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'C1B8BC2F-78CD-4FF5-934F-97DCA858B380', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-02-08T10:53:55', 'stamp': 'kHnGjfPuuhbEBurpQsbw0I4+KbWOrT/r0oKb9ybB+iZzBs6Ska9Jvulhox5yY3McLjjQUimtLdEapQuEN+EBq2pLekJ5SeML2L3HhxbHvZfbfYbnmZHqjYbsox+KXUC6avyH1GTp3CT+ZHlFnniNj ... (46 characters truncated) ... i2f6uVpkSJr1s5hijov4zanCIb1lGtnmjRVQyWm5nJpdaTDhI/bUiWMVgtnr4PjfL8qXyW0ie1+cICuiNRVIAcsPHjMBWSaZcQS0Ieh6WI/6I4tBRZOt/OcHIOB8yairCc0MsW1v/b5xLN9zGdQ==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-08T19:48:56', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/c1b8bc2f-78cd-4ff5-934f-97dca858b380.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:03,845 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'BEBDBEED-2E5F-45CC-B6A1-AF2F82933744', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1457016', 'dates': '2025-02-27T20:44:26', 'stamp': 'DfSjGZYGp0L+Fudrab3w4ypBuEyGJipp1vKunxy471Yq+T1vlNH5VwjzUpYBgFpRT5tpNNR38PYrjkVYB0Bcd2BYA7RazHuLXikE/R05GT8nBtMbKv1PoBMkR+X7ZwmXXPGmm16WByfas5H6eRR71 ... (46 characters truncated) ... zOeaWFR7biXZngWUHMnuT6d/XEAoxoC7KEZEO6p0pgIzbkbeceQahv82/37Iu6UGzU6ayyplYgPFOYz3aGXdpfg0z/wgOx85LcXYhOhEeH207nLk1lqKBX91tCNqpeYqMEp3Ph2Q5LbE4VLWkwQ==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '205.80', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '238.73', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "INT. DE ... (945 characters truncated) ... e": "67.51", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "10.80"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '32.93', 'stamp_date': '2025-02-27T20:54:44', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/bebdbeed-2e5f-45cc-b6a1-af2f82933744.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:04,069 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '38545538-1905-4066-BB37-F62734BA212E', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190101', 'dates': '2025-02-05T15:51:45', 'stamp': 'IZehUWvH9hDLpHZik+5xrbQniXpPzZ90FBQCr4PpqQA8pVetSrW0D7HhTYoYLUz6adHpj/37OJAMKo+LDEcfFUzQ3BDZMPshKQAI0WTZ7Hc3VxFlEaYwlJ8mKysC+Zw5gaPbrQofaT31wD4qjozSf ... (46 characters truncated) ... CoWOiG8MCr2U+P0eqFBzO16u2fOjNF2HwYAynR4nUDYkm6DwNTfQJf1URRZqV7QwGltTjuAk+zijmL8xr1MVQCqTWeA7VInB0t1TIlugOuaFgkHARRd5hFeU6gXEM04nkU0Zsy1Ss6q1H2YIonA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-02-05T23:52:18', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/38545538-1905-4066-bb37-f62734ba212e.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:04,293 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '05D46C5F-DE44-40FB-9392-A8DDF87FD6A8', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-02-22T08:30:09', 'stamp': 'YKNzsTxB0aU/lFME/OZ1v7do70g2wpMXl/EendKlu9ktYKoaUr8xb1TqNF1LeQ7vQnwnYKhuNSUJ62f+VMZGMmpCzUCcf5J8FDG/Ny73vct1NtERLyCq2qG9WMe+3lX/m9/kWmfo7c1RiIoH9Y1tG ... (46 characters truncated) ... G1tf2aImjLvw6jwmRJ+LmwnWk9zG5g2gh7gXSyjaWVE97/fZ+oi0ofre7Ts2gAnu299uSosJIv6LoHNDDQ423m81YNWaH1puTpNfcot7ih1ZL/lrFD8vLTzNiAkHqkWFhK/1aZdTt2pFlRLp6BA==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-22T15:01:25', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/05d46c5f-de44-40fb-9392-a8ddf87fd6a8.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:04,525 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'f417abad-2b06-47f4-95da-edef6d7af3fd', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-02-20T13:11:29', 'stamp': 'gqyRvYwV7EJEop9RBWMtW08CRLXRvSVia4xYk/tytwdEnkYFncPbPgh3tED0Vkj8hcvQ+ocqtwmiD8O9wWF1kLdgvWWj39Os4amVzmesF77y0MdwQR9e/K+xSkhZEXQumzGRVV71PRRGvyNzW8a+p ... (46 characters truncated) ... f/iliDXANCycczi53zafFjjj2HfDko6iTa2AXQKITkSkDXnPdScD0d8YdGImy2LID7QzLJBRzhyFsf2wYc2TbtYQPq57JVMU5kH8Ofn8G/FkCvT3shAt7S/aoiGXQ8odHixqPFy3GbfZ4Jyn4pg==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '25111.75', 'discount': '7928.71', 'currency': 'MXN', 'exchange_rate': '1', 'total': '17183.04', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "25111.75", "descuento": "7928.71", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-20T13:34:12', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f417abad-2b06-47f4-95da-edef6d7af3fd.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:07,295 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '78f14f40-fe1d-4830-b383-edef6d7a86e0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-06T19:53:52', 'stamp': 'HYNM2Ed841WndlL/7c7mrYZlvsKtmUzszZ/CXhqy81QelkQZNChZu8a63FK9Y6K7XC4I+p9iwnddk9poT1OKkvEs192qtZe4a5dlM1rTQvQciIBc6BpWb9SsF4kPG0lVgNPzOdAKReFXDS19+qSFM ... (46 characters truncated) ... iQuyPx6VF6TFWpVh0pfdrnhUCBgJfCNDbpr2KFzhi67ruJaZ2kXyZr3grhnHT01yyfpoicm5AuG9PLZswty7KjfPlk4YIZ8ROIv0p5/xlrXEZna9ZNHPJPaJIcY5H34XNHHx/e40MeIi3nTm3fQ==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8042.42', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13630.33', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8042.42", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-06T20:15:10', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/78f14f40-fe1d-4830-b383-edef6d7a86e0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:07,527 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '38C1CE7A-2F70-4688-A2DD-5C0838129C9C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1385483', 'dates': '2025-01-27T18:15:22', 'stamp': 'Dd65iwSniizBB0NYEYrbvUvARVypImtvSZTwdVJJYZ3jXDX/twXK4/EX6eqJn7CSj7S7ixyjA8oc2reDR0rxV2+NUnbUrOQ+JpFzEqRKac51zV7pflYGJCStOfq1dh6fkiY3K6H0uXgDtcut4YfeL ... (46 characters truncated) ... J33OIVodClrLT6wLwK7caTsabcmmRXd8a2mrDOm07YgbkDS3G7AIHsAdNUVHCvpIziSG03NFoOWIzr8ZfKPozfFWGwKFtnlyMhHlt7Xh+vRC1B/cQgXg8VC1J8ZltyfPnReyBp9ibSRkboUS6Fg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '405.57', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '470.45', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "INT. DE ... (954 characters truncated) ... ": "127.08", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "20.33"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '64.88', 'stamp_date': '2025-01-27T18:21:18', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/38c1ce7a-2f70-4688-a2dd-5c0838129c9c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:07,748 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'f61751e1-4c08-473e-8f32-b715544dcf20', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'DIC76005', 'number_leaf': '50066858288', 'dates': '2025-01-03T13:10:40', 'stamp': 'adeG9BSrUyM3SwZci1kls1wjj+TpEpFA8lsE5i/pL+8Xjury/MNnLjPZhnAA01dswQ3VL1BhlofJ5KelaNmIW20EM1KRzZ0eE3Irgpwm/pS+1Bqy812lU+5y2Nlfn6iP3Rmk+2667crb1Iccdbas9 ... (46 characters truncated) ... vsj0QWMGoVJDv11cM6sGSDCtr+oyvEIeExE6OO7iVlpudkZBK0OdDHqoQHeT1TkjES0wQg0j00Rr/SP6YIqdD4sA0QdnuQkZpawD+Ly0gDobrKi2l0sVnlwrusd0SG/qkpKB+JZyHEmVNdTsNzg==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-03T19:12:04', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f61751e1-4c08-473e-8f32-b715544dcf20.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:07,973 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '4cbae294-fac7-4e71-a59c-edef6d7a2da0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-22T15:04:31', 'stamp': 'IS/xHVuDRJNRxVdGo8jH7YmFHkcWTQJ19n2TDvBXgDZOfiOPq6azB2TEl2MlQAv0NW2F+KzrlwpKEErd5HH86SxU8x5BMO7ehfz+rR2Gc2djqzsEo3mrvqbgqIzB8/mL3h+SO4qMoin232ZKe9/QM ... (46 characters truncated) ... z7/3u/XCarqTFk/Wp1hoRxywAEm+1IRtXTkIc3Z2mjPeuUM3ETEQhBUQd0wR8+gpY0OcdUxQGapf1fcDg0kJzJmLQOApg6K7OdGy3oFo5klQTL1CumWePqvguwrhILuR6yWSfL18/ESloacPosw==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '24973.75', 'discount': '8053.20', 'currency': 'MXN', 'exchange_rate': '1', 'total': '16920.55', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "24973.75", "descuento": "8053.20", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-22T15:38:09', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/4cbae294-fac7-4e71-a59c-edef6d7a2da0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:08,192 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '5851A769-058A-4F53-AB9B-FF7130B0818C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-01-09T09:58:02', 'stamp': 'Q2giEiTWYd+l/a1aHNxNLJMtXZcJJ8vHiF0b0qht8O73atpInOLow4sWd7xybiuwIjsRbXIpws1QwsdhW3SmcrIMjXbF7Qeux1z3o/ueglbwYwhnyMZPlMW3vcKRtEh9FaHdGujsRlcxqo3oFuojA ... (46 characters truncated) ... EmwNBNTMClPNF4wM0Q1VbqllV8gpRVGx1OQX7uJefL7kxHaoB9a8wFa7ht4Rl8JUuyDZEQ0Vhd9etpnNJrVAUNdHRt7LSA2AyPIRRrMcBsDG1BttPTI3dHXRdg9BVc9JMD0ejjETd7F/ThXOGGw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-09T17:31:47', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5851a769-058a-4f53-ab9b-ff7130b0818c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:08,414 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'DF9D88D7-A26D-4C02-A877-F385A12F4499', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-01-24T04:29:53', 'stamp': 'TsK50wat0ZN74tstYiDQbFV5jnpWZSa99pUq65RvgsbaowLzgajRv94DvKzG4kXAqrTien4qlzmnpthnZBBzv7YnyG0YuEKl6CsXt8EaGlvS57llJ2AvG6JEHbG1elTlP3iLJVXaHSYrGmLSTv71M ... (46 characters truncated) ... MR+DzH8rRJbXDyb+qcBDhlLNDhwdPRH+UKekYStEzHBwRxpg6g49cYIrlrWFQB22uSaTB8vf9sWfX0fHqnTgFvQzwzY3LDJP5IN7124quR2tFSB9tXy4xeDc8Xp8cVP0Smz5WSCT0HJszvKXFYw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-24T06:00:15', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/df9d88d7-a26d-4c02-a877-f385a12f4499.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:08,635 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '71426F59-063F-4AFF-88E3-D21BDF84F1C4', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190212', 'dates': '2025-01-03T17:26:58', 'stamp': 'IJ1YYTtcrGk8Q/macfwKmpEChBPvZgvcZlL0btRXkYmQbhfU4ROT/wxyAmIW3AoD8/SD9Q3MTn1Dfcv5SPDLJhEnMwrdt4VcJ9qyDmiRqJ+/iV5kw6418wOTcA5xMrlkWWkFxh6xgCSg5VC3Vo38F ... (46 characters truncated) ... vHZX/ohx1nyi6cwQNS/hSAEpml8qz8MASlP/idCeNr6jmMUsPax/sthg+ZiYy2MEOwrJX3BXGX9chkaaNjPjvNwlwBRKSjkJI/OUEKU/9tQCeALUoawirnqkcsxzQ1Q7iU9uBL4jeFIM+RmHHMg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:32', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/71426f59-063f-4aff-88e3-d21bdf84f1c4.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:08,859 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'A3E5D3D7-1FCF-4F57-8916-3A4427B3D793', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190112', 'dates': '2025-01-03T17:26:58', 'stamp': 'eB1NQXQBF5nMInJi/MqqyNXituuejRvk+d9WZR8DddnHy2FWDW7l2P7FoHJMvoSZgoUMBSzj/nB8oXU96wnNp+AJgqP7XjNnFOVkPJUtqAAUJbchopg2i+DoXuL9iJFnlIl/YxCKWgvzHwPS5nAp0 ... (46 characters truncated) ... cdDTt4qkh67Dal/JZ9G4ULf2uI/fNvtCOfFX/UDUyKZS4SiUStjbVeFaAh6Zn9BhRgwqTmbs+ruzZRZ2jr+bCmrXc5qxNCpJKPhUYcKmYLlS9bq1adPs/D6ocDD54GAhveelVVw0FqsY1bomSkg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:25', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a3e5d3d7-1fcf-4f57-8916-3a4427b3d793.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:09,107 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'b815ce6a-ff29-44e8-acfd-9076b697bb57', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '897', 'dates': '2025-01-11T18:25:29', 'stamp': 'U75knfUsAo97T0dxgvD0sVMQE25jTW+VIV2eNM96PdK6JZiFK8L3l9x5CRxImTco0wmeNKqKrT/g76TN9WKhEFjvtS53+JfbJPcKN30AZrt6JK3hAfQLsFP5lxAUXkeEqnW90bkUA5VoD6s3i6B6r ... (46 characters truncated) ... HDX6Nfeh327exYZYtsQGwnbH/Z3YHMm0e1YrPeeQqN6jq3mnRnnq3QmcE5XoE53AnuLEVR7rMVNCWKV5W9Vp39VxSIv0WYsCa5t0wRACc7luPO6yLwGTi26fDK9PTn6+IXNOkxKPQx0tvpLxLlA==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-11T18:25:29', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/b815ce6a-ff29-44e8-acfd-9076b697bb57.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:11,870 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '623C2FB4-27FE-4263-87CF-FA983A82A653', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-03-22T09:24:26', 'stamp': 'Q3jX4dqAYAyWJttwT8/T8SpfFvtjR405pOQqUm6lByQ8jNfX4o05p9mk9O5be9THNX3dFKHNT7/Yc6/Cb8Zrx4o1zu9NabrUCVPZ8DAdSSN8LZ+paobLDRgXuc351wy3xsUkAC9W5ydRrdk7mewbf ... (46 characters truncated) ... tY2kPDv8RDfXJBzo93rbJc60CfOQWqW2OqXpZ0eYE078HO5qVTXoEbYWY6s3Qg7WT4ShsruIOImEErBA112Ef6n+WR8vcD/8802st95yGsrKXomM7IvZyHwRcy7+z1tQltRzOgo2n19q946/yyg==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-22T17:04:16', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/623c2fb4-27fe-4263-87cf-fa983a82a653.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:12,096 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'F693F17F-DEC4-4BF1-B794-740BEB0E48B0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ECUH', 'number_leaf': '4943269', 'dates': '2025-03-04T11:33:29', 'stamp': 'HpxHZOJAc/NgU7+gH/+wovn27wt1brwJYZODWeSiv9quM4DdCOsePJk7SERvIJeCeRbuTvffaiiXn2SGX26L0xbJPOCi79Hv6tQreavXlaXLGAFJo2aMLy1ULiqpl/KHQUWpn4mmWMws/LDLtMcKP ... (46 characters truncated) ... 1ISj7NBLWI5b5dGbbgopMPc9L7UyTnndY7yw8+GflY0YcDn47d1KQ/hTgMn3pN2SLeClSSLiVZV5ECkZvqMh98y+lhOjZ6WThxQepcmyTi0btYAFKJR1lSf7r4fCTQdkCO5+tQ7h5aIiJvKSYlg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "Servicio", "descripcion":  ... (42 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-04T11:40:56', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f693f17f-dec4-4bf1-b794-740beb0e48b0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:12,327 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '11C8ACE6-FDD5-11EF-A46F-018E2E04B81B', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CSale', 'number_leaf': '153125196', 'dates': '2025-03-10T11:28:24', 'stamp': 'YH5jP2gZEIBDFM301E60bE7YkKuxgpPnZIqVjpcUe9iJPVY5dfrqUQ8uuq6qVELnQKU4szhEb6q8DlHO3zjhtC252IbPvA/PL7+UB1Lr9AcuzkoOZtUfU8F0mrYufbwMHZlKsv9F628H3HM6VY9w3 ... (46 characters truncated) ... b97fl6UJioqbrwK2NlO8fYmoBXpc/ImTf96xamD9TA0uOcWLmH2/Xbnnk8x3t8fwwinuogCD2L8hrhxT54bx9HZLOwOwQi94nmPcV1Z2PN9OmObCdLn13QTzjHO5lGg4ifgxXlyDW3s13Owk+ww==', 'certificate_number': '00001000000518142818', 'certificate': 'MIIGPzCCBCegAwIBAgIUMDAwMDEwMDAwMDA1MTgxNDI4MTgwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1842 characters truncated) ... OUgofznPaNWKlbbKsyKjOKY9xz98k60myRzTUoJ8ynB8ezOF+MSwD9meYp93hgZMaoNT8XOaEYAhqvCUPPklJkzCf0UM9OopvaLGt7tazqTWhB9JbZzl3BIVYl8GBB28F+eEuJq8chQYEsBo64w==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '625.29', 'discount': '22.70', 'currency': 'MXN', 'exchange_rate': '1', 'total': '699.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '11510', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'ANE140618P37', 'name_of_the_issuer': 'SERVICIOS COMERCIALES AMAZON MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "01010101", "no_identificacion": "1_B0CQMLYFQT_395546628426301", "cantidad": "1", "clave_unidad": "H87", "unidad": ... (284 characters truncated) ... ": "602.59", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "96.41"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '96.41', 'stamp_date': '2025-03-10T11:28:38', 'certif_provider_rfc': 'EME000602QR9', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/11c8ace6-fdd5-11ef-a46f-018e2e04b81b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:12,560 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '61df4bd6-d098-48b2-90de-edef6d7aa875', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-03-20T14:04:49', 'stamp': 'KlWQ3GG8YuIu8P0QpR3BMRuewuFeW9/9PGIVwhNDaFN789PDBOiwToX9txB69Ydk4vmYvq3okFCYclxUx/UOxO1Bl6XqH2WUi62fQSzzBnmFy/6tQJkP5Z1yKrKS8zKL8XXGeCdyUZ7RvEno6IZdL ... (46 characters truncated) ... Z0/mYLWBYwQYNmOloHr7jBuFpyrePPsF7L6v6gtpz2vo1IOPqKRctFOBtmF4NIaSnBssMG7TEtkRi8AuvdXIVaM4WL0nMS2yb9ADJ69mmg1gE0sgfqX6g50APw4XpREBvEh9npGLO+nVYUZz65A==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '25111.75', 'discount': '8485.09', 'currency': 'MXN', 'exchange_rate': '1', 'total': '16626.66', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "25111.75", "descuento": "8485.09", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-20T14:28:14', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/61df4bd6-d098-48b2-90de-edef6d7aa875.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:12,786 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '7de259ff-c20e-4bf7-972b-736228755e1f', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-03-06T09:14:32', 'stamp': 'dHj991+hRzlLa7s4xborXhBbF3D5bZnM5BnqeFlI1TBrLzzinVyDdZc2K39vn7zF5n4C2TwgEOQ6cLWRyed84si3X/6uAp3/gLtBcQRG7yOH3BaY6CBP0X6wtHNFRSOiflHGHo7C18WicJo1L9kjq ... (46 characters truncated) ... hvful3HJrENiEsmV9m0dgUKtgRXRMFoCpcCkAGuO/wunEHpplw4044/CGqPhlx0WkB9e8+VEgK9zTLsNFGRttBSVjhSfr6zvJ9CpXL0L6L+FTqvpKP0+U2LmahaF9N9qL6nRqQoDXMYSwS9Izsw==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8447.34', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13225.41', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8447.34", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-06T10:40:15', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/7de259ff-c20e-4bf7-972b-736228755e1f.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:13,005 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'a686229d-71df-4c52-99f3-8a9cd4c8f8e9', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'FEB76422', 'number_leaf': '50066858288', 'dates': '2025-03-02T15:47:07', 'stamp': 'SPD7tl5yWVUMzIZwadK/T+dgNriy6wwKrOcpJSfP1gEUpYsR6lfZoFIpKzExRh1/M3lKWrBsFh2cGGtM9P2PwMn3HlQZrRDWLT++Qpc7EGdEKIiLqiDLBJJHM/HpIWw8uD0Or7mkCtDwrHP2p04y4 ... (46 characters truncated) ... xbKcP4bmxoBlkIfL1DmtVPRpLF7NsGBcRNb3l+gRVrVMBd/M0hA21wgDDQpyT2QjFBvhs4NXss/StT2SwrTp+9/kGpZi8y4Ty+jP/0oQMI8uwJSppZ/wz+Y+4TAAl61JJzxVcUXwC0urfQJMIng==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-02T21:37:33', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a686229d-71df-4c52-99f3-8a9cd4c8f8e9.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:13,224 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '9465FF77-BB95-429B-BB47-EBE8780D229B', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-03-08T12:18:42', 'stamp': 'Y/eNZsN+2VcfPqSMQ0fv61vL+x4iQpvx5lmZ/swzeYvFvcW1rae4SkaQkLmYiuULAE6BU9klBkPkcM6KQkWmG5YvBicystPiUxkzW+m12DXl1RKkcfaLm+qFVBUXwzwMNohEyFf4h/qR4zpy3ld/i ... (46 characters truncated) ... +hBgtAvOec0Peu0drUo/1Gkm5JpsJ6+M2dNd5MNKpQ+9Dm5lq/I8oYcpTQnmfrhAuOmUD3dcWZbH3OOFGqq5jVX2VjntlLvPMJ0CbPacSTTNeakN0XvGx1SDXNwu4bePAdRpxn0N3UMmrKAy7dQ==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-09T00:32:02', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/9465ff77-bb95-429b-bb47-ebe8780d229b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:13,444 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '6927b00c-efee-47cd-8921-14760711d187', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '933', 'dates': '2025-03-28T13:29:47', 'stamp': 'aeeYBYBD4RQO6ejhaymz2fgxMvWSGbCIEwLPxgJsN+ogeuzAwwdurxF23cyfVo3tr56ud+G6q0Q8Y18jYFDcuku7OgYr90QgJqFNpdh8PZZp1DZnRyYeBcUUwiYdhF0rLWgNP8BcK48rwLM01TVlx ... (46 characters truncated) ... ZuesJSbpAgbUUZjiR6hcU1bTzxrA6+hemHEzlV7AVSatoQSIblonlHWI4b6J4PBeq8gAz92tncGUYzxB3PJo+BJ+06dg2esuv1lZDVfus8R7CY568GI79ySpEhpXqopzBMaCitt+tYD7zPIyogQ==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-28T13:29:47', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/6927b00c-efee-47cd-8921-14760711d187.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:13,661 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '5AC7F222-E782-4095-8848-96B43D9DAAA9', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190202', 'dates': '2025-03-04T21:12:14', 'stamp': 'CNMn+/0BWbg/SG8s2Lmb/xgAFD5GYIbUZmV20zSi+hZgtwPXRQToP1eqwTFMfw3ZEYPrBjXCR46UiYUr+wsSyLIGX2hqENCDbarFG/RQ+3l+usBQtBpPGW+Jb4PuT23/Vw6ssJPAR2VDFWnj7YoY6 ... (46 characters truncated) ... dDqMvYufymtsbfYJ8kWTPJUdzBVEcWhPtdfXTJA+EgfkYDOX+jUSd+lD2/+WULfL/JtGYDl17QRviYzeC5WodS/IoNCeE5FjmO5HBJviLtB7MGg/EHVPbJRjmxDF1jU/QHwVhNA7vPVqI0Y1uDQ==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-03-05T05:00:43', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5ac7f222-e782-4095-8848-96b43d9daaa9.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:13,878 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'B793D98D-2037-4DFC-83F2-08A395E9FD0C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190102', 'dates': '2025-03-04T21:12:14', 'stamp': 'HxyckweoFcHeT/k2vz52+Amf5SvkWPITYeedOSmuY7y/k7sgR1YEzaeybz3Ms0/tNOy/ezhf21lDpINLObFR4oKF1yrW7lUPZfvJ0jwNxYGSzZyBaRLsO2BZ9Q6kPi2cWK4+GtF+yPk9PeGPwGEhV ... (46 characters truncated) ... cJokS4ovDBaadfd7NRHMVWCQETihaACHZho6nrUwkYEu+CGxFPA+4gd1I21kPx4EW84kyAcRpD7Efdw9wUBUUmLJYcXeUzQwVp8/DFsj4bV7TMRbZKSyZvohpXiPeTLxA/oHAxCwFjRB7vE4mTA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-03-05T05:00:34', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/b793d98d-2037-4dfc-83f2-08a395e9fd0c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:16,661 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '9C54DBFE-27F8-4F3E-9829-82FE431FA439', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190201', 'dates': '2025-02-05T15:51:45', 'stamp': 'c8Pslp2nnbDDsUF1kfzDCyYP7evbQdqv+W4c6q33b9oJ1gC5iyA8givAcA9VYpJDfA9ZZK4GQda4LQpm5r4A/jdZYtCpV3wyzOiArr0h98PXcK3bRt/bLIBGBQF/JqGVezqSG5zy9v6xboDNFkLrT ... (46 characters truncated) ... oIbJYbcnkdtoQ4lRlnciwMA/BmFLWS6vKaYhuVaCcOjTyMxoEh/AnuB7JnayLQVqVcMBg/8TmUVxyYaXAhtMNwAxopdCs40o1gbYKjJUp+3zmGFXDwVneqDvnphx0c5iBdmL92FVzR8aNe+CPhA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-02-05T23:52:27', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/9c54dbfe-27f8-4f3e-9829-82fe431fa439.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:16,900 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '54d86d57-ea62-487c-9c66-8e3a09e1046e', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '918', 'dates': '2025-02-25T09:43:55', 'stamp': 'WFsTxZbZQtZuyR3AqKymqgTOZS/ucl3333OjAhLFlzRsvoj6bGDbKy5Ya6CQdW0lJTodSVdCS2gm2p+mL7h+g++cAp5SOudKBF+7/eoYZt+57oXLMGnl2gYbh0uby1oljKud/q+v4OH3I3PwAEj76 ... (46 characters truncated) ... w+QYJz+Y59LupYTo5X8dxDziyLUc1iCsm3G6vIgkVsvUgFE/C0wLRttnGvV+VXaoF4uwISv4m5/MoNhZstt2bS55lfcgN3qZZ+wDBv/+H9veOBvcvQOA3M+MUF3EDz0u/CBkxz8R/C+usGOqLoQ==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-25T09:43:55', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/54d86d57-ea62-487c-9c66-8e3a09e1046e.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:17,125 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '3783a3c3-aac6-4c22-9970-edef6d7a0677', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-02-05T13:54:30', 'stamp': '3HiStkCZhEeHjRbRlG08V4W2kPaDLXKv3sKlMg2RmtFkuHx2wzktNvPg0U8fImhcetI/dRjCwBsDvmm5M1gjXlpZ218SRJKOkRtkRtVmvQDFUK7P0cfPPmb9e2IVZ0szg9IXj426O/hu2DqPQKbyK ... (46 characters truncated) ... aFrRA7CaI78kq+eS3wP5mkr2A0dKALpOJgkjNZTbqTPVVUBx/Hms3GxUaJQ4aRkPyWQId37g2Jl9Ll+gPuN3VLz/NZRbmr6TWlaOO4n+K1Aqg5/EdIrS+LuGnNsLr/utqCsM67rcOpc9EiXW5XA==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '79991.17', 'discount': '21759.23', 'currency': 'MXN', 'exchange_rate': '1', 'total': '58231.94', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (36 characters truncated) ... 7", "importe": "79991.17", "descuento": "21759.23", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-05T13:58:09', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/3783a3c3-aac6-4c22-9970-edef6d7a0677.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:17,350 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'e94becb5-d4ea-4e52-bf37-dfdaf308a2b2', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ENE76226', 'number_leaf': '50066858288', 'dates': '2025-02-02T18:52:49', 'stamp': 'LC+2CKgyqWeYLWLRLVNGxzFxxzCLVr6erFFZyQhOlDqq8g4yoibMWLp2P2EOmMOG/Soewu17WAuE1kevlSDOeqxSf0FPo29GyqAnxCOjTkMddPO/MjbI0ooGnz9Fmr/8DZY+cTf2Zf/VoLMmdNLNl ... (46 characters truncated) ... rds+AqOAbjWC5XaRBTjfSx7HiJAshEbZbiLjthF8RkgKO/EZ3eR4D2xpoAC3yM07L1YiJUqzI/D0IdEK5EXetwzIeNsQSNs0aduRLcxE+rTAL1WinVG1ROw/TqTh2CXmmsVDHoAUW/iiu8Qt9vg==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-03T05:07:26', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/e94becb5-d4ea-4e52-bf37-dfdaf308a2b2.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:17,577 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'C1B8BC2F-78CD-4FF5-934F-97DCA858B380', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-02-08T10:53:55', 'stamp': 'kHnGjfPuuhbEBurpQsbw0I4+KbWOrT/r0oKb9ybB+iZzBs6Ska9Jvulhox5yY3McLjjQUimtLdEapQuEN+EBq2pLekJ5SeML2L3HhxbHvZfbfYbnmZHqjYbsox+KXUC6avyH1GTp3CT+ZHlFnniNj ... (46 characters truncated) ... i2f6uVpkSJr1s5hijov4zanCIb1lGtnmjRVQyWm5nJpdaTDhI/bUiWMVgtnr4PjfL8qXyW0ie1+cICuiNRVIAcsPHjMBWSaZcQS0Ieh6WI/6I4tBRZOt/OcHIOB8yairCc0MsW1v/b5xLN9zGdQ==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-08T19:48:56', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/c1b8bc2f-78cd-4ff5-934f-97dca858b380.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:17,798 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'BEBDBEED-2E5F-45CC-B6A1-AF2F82933744', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1457016', 'dates': '2025-02-27T20:44:26', 'stamp': 'DfSjGZYGp0L+Fudrab3w4ypBuEyGJipp1vKunxy471Yq+T1vlNH5VwjzUpYBgFpRT5tpNNR38PYrjkVYB0Bcd2BYA7RazHuLXikE/R05GT8nBtMbKv1PoBMkR+X7ZwmXXPGmm16WByfas5H6eRR71 ... (46 characters truncated) ... zOeaWFR7biXZngWUHMnuT6d/XEAoxoC7KEZEO6p0pgIzbkbeceQahv82/37Iu6UGzU6ayyplYgPFOYz3aGXdpfg0z/wgOx85LcXYhOhEeH207nLk1lqKBX91tCNqpeYqMEp3Ph2Q5LbE4VLWkwQ==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '205.80', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '238.73', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "INT. DE ... (945 characters truncated) ... e": "67.51", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "10.80"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '32.93', 'stamp_date': '2025-02-27T20:54:44', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/bebdbeed-2e5f-45cc-b6a1-af2f82933744.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:18,016 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '38545538-1905-4066-BB37-F62734BA212E', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190101', 'dates': '2025-02-05T15:51:45', 'stamp': 'IZehUWvH9hDLpHZik+5xrbQniXpPzZ90FBQCr4PpqQA8pVetSrW0D7HhTYoYLUz6adHpj/37OJAMKo+LDEcfFUzQ3BDZMPshKQAI0WTZ7Hc3VxFlEaYwlJ8mKysC+Zw5gaPbrQofaT31wD4qjozSf ... (46 characters truncated) ... CoWOiG8MCr2U+P0eqFBzO16u2fOjNF2HwYAynR4nUDYkm6DwNTfQJf1URRZqV7QwGltTjuAk+zijmL8xr1MVQCqTWeA7VInB0t1TIlugOuaFgkHARRd5hFeU6gXEM04nkU0Zsy1Ss6q1H2YIonA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-02-05T23:52:18', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/38545538-1905-4066-bb37-f62734ba212e.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:18,248 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '05D46C5F-DE44-40FB-9392-A8DDF87FD6A8', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-02-22T08:30:09', 'stamp': 'YKNzsTxB0aU/lFME/OZ1v7do70g2wpMXl/EendKlu9ktYKoaUr8xb1TqNF1LeQ7vQnwnYKhuNSUJ62f+VMZGMmpCzUCcf5J8FDG/Ny73vct1NtERLyCq2qG9WMe+3lX/m9/kWmfo7c1RiIoH9Y1tG ... (46 characters truncated) ... G1tf2aImjLvw6jwmRJ+LmwnWk9zG5g2gh7gXSyjaWVE97/fZ+oi0ofre7Ts2gAnu299uSosJIv6LoHNDDQ423m81YNWaH1puTpNfcot7ih1ZL/lrFD8vLTzNiAkHqkWFhK/1aZdTt2pFlRLp6BA==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-22T15:01:25', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/05d46c5f-de44-40fb-9392-a8ddf87fd6a8.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:18,467 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'f417abad-2b06-47f4-95da-edef6d7af3fd', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-02-20T13:11:29', 'stamp': 'gqyRvYwV7EJEop9RBWMtW08CRLXRvSVia4xYk/tytwdEnkYFncPbPgh3tED0Vkj8hcvQ+ocqtwmiD8O9wWF1kLdgvWWj39Os4amVzmesF77y0MdwQR9e/K+xSkhZEXQumzGRVV71PRRGvyNzW8a+p ... (46 characters truncated) ... f/iliDXANCycczi53zafFjjj2HfDko6iTa2AXQKITkSkDXnPdScD0d8YdGImy2LID7QzLJBRzhyFsf2wYc2TbtYQPq57JVMU5kH8Ofn8G/FkCvT3shAt7S/aoiGXQ8odHixqPFy3GbfZ4Jyn4pg==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '25111.75', 'discount': '7928.71', 'currency': 'MXN', 'exchange_rate': '1', 'total': '17183.04', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "25111.75", "descuento": "7928.71", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-20T13:34:12', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f417abad-2b06-47f4-95da-edef6d7af3fd.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:21,278 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '78f14f40-fe1d-4830-b383-edef6d7a86e0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-06T19:53:52', 'stamp': 'HYNM2Ed841WndlL/7c7mrYZlvsKtmUzszZ/CXhqy81QelkQZNChZu8a63FK9Y6K7XC4I+p9iwnddk9poT1OKkvEs192qtZe4a5dlM1rTQvQciIBc6BpWb9SsF4kPG0lVgNPzOdAKReFXDS19+qSFM ... (46 characters truncated) ... iQuyPx6VF6TFWpVh0pfdrnhUCBgJfCNDbpr2KFzhi67ruJaZ2kXyZr3grhnHT01yyfpoicm5AuG9PLZswty7KjfPlk4YIZ8ROIv0p5/xlrXEZna9ZNHPJPaJIcY5H34XNHHx/e40MeIi3nTm3fQ==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8042.42', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13630.33', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8042.42", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-06T20:15:10', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/78f14f40-fe1d-4830-b383-edef6d7a86e0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:21,502 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '38C1CE7A-2F70-4688-A2DD-5C0838129C9C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1385483', 'dates': '2025-01-27T18:15:22', 'stamp': 'Dd65iwSniizBB0NYEYrbvUvARVypImtvSZTwdVJJYZ3jXDX/twXK4/EX6eqJn7CSj7S7ixyjA8oc2reDR0rxV2+NUnbUrOQ+JpFzEqRKac51zV7pflYGJCStOfq1dh6fkiY3K6H0uXgDtcut4YfeL ... (46 characters truncated) ... J33OIVodClrLT6wLwK7caTsabcmmRXd8a2mrDOm07YgbkDS3G7AIHsAdNUVHCvpIziSG03NFoOWIzr8ZfKPozfFWGwKFtnlyMhHlt7Xh+vRC1B/cQgXg8VC1J8ZltyfPnReyBp9ibSRkboUS6Fg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '405.57', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '470.45', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "INT. DE ... (954 characters truncated) ... ": "127.08", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "20.33"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '64.88', 'stamp_date': '2025-01-27T18:21:18', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/38c1ce7a-2f70-4688-a2dd-5c0838129c9c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:21,734 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'f61751e1-4c08-473e-8f32-b715544dcf20', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'DIC76005', 'number_leaf': '50066858288', 'dates': '2025-01-03T13:10:40', 'stamp': 'adeG9BSrUyM3SwZci1kls1wjj+TpEpFA8lsE5i/pL+8Xjury/MNnLjPZhnAA01dswQ3VL1BhlofJ5KelaNmIW20EM1KRzZ0eE3Irgpwm/pS+1Bqy812lU+5y2Nlfn6iP3Rmk+2667crb1Iccdbas9 ... (46 characters truncated) ... vsj0QWMGoVJDv11cM6sGSDCtr+oyvEIeExE6OO7iVlpudkZBK0OdDHqoQHeT1TkjES0wQg0j00Rr/SP6YIqdD4sA0QdnuQkZpawD+Ly0gDobrKi2l0sVnlwrusd0SG/qkpKB+JZyHEmVNdTsNzg==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-03T19:12:04', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f61751e1-4c08-473e-8f32-b715544dcf20.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:21,956 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '4cbae294-fac7-4e71-a59c-edef6d7a2da0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-22T15:04:31', 'stamp': 'IS/xHVuDRJNRxVdGo8jH7YmFHkcWTQJ19n2TDvBXgDZOfiOPq6azB2TEl2MlQAv0NW2F+KzrlwpKEErd5HH86SxU8x5BMO7ehfz+rR2Gc2djqzsEo3mrvqbgqIzB8/mL3h+SO4qMoin232ZKe9/QM ... (46 characters truncated) ... z7/3u/XCarqTFk/Wp1hoRxywAEm+1IRtXTkIc3Z2mjPeuUM3ETEQhBUQd0wR8+gpY0OcdUxQGapf1fcDg0kJzJmLQOApg6K7OdGy3oFo5klQTL1CumWePqvguwrhILuR6yWSfL18/ESloacPosw==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '24973.75', 'discount': '8053.20', 'currency': 'MXN', 'exchange_rate': '1', 'total': '16920.55', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "24973.75", "descuento": "8053.20", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-22T15:38:09', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/4cbae294-fac7-4e71-a59c-edef6d7a2da0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:22,177 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '5851A769-058A-4F53-AB9B-FF7130B0818C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-01-09T09:58:02', 'stamp': 'Q2giEiTWYd+l/a1aHNxNLJMtXZcJJ8vHiF0b0qht8O73atpInOLow4sWd7xybiuwIjsRbXIpws1QwsdhW3SmcrIMjXbF7Qeux1z3o/ueglbwYwhnyMZPlMW3vcKRtEh9FaHdGujsRlcxqo3oFuojA ... (46 characters truncated) ... EmwNBNTMClPNF4wM0Q1VbqllV8gpRVGx1OQX7uJefL7kxHaoB9a8wFa7ht4Rl8JUuyDZEQ0Vhd9etpnNJrVAUNdHRt7LSA2AyPIRRrMcBsDG1BttPTI3dHXRdg9BVc9JMD0ejjETd7F/ThXOGGw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-09T17:31:47', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5851a769-058a-4f53-ab9b-ff7130b0818c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:22,399 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'DF9D88D7-A26D-4C02-A877-F385A12F4499', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-01-24T04:29:53', 'stamp': 'TsK50wat0ZN74tstYiDQbFV5jnpWZSa99pUq65RvgsbaowLzgajRv94DvKzG4kXAqrTien4qlzmnpthnZBBzv7YnyG0YuEKl6CsXt8EaGlvS57llJ2AvG6JEHbG1elTlP3iLJVXaHSYrGmLSTv71M ... (46 characters truncated) ... MR+DzH8rRJbXDyb+qcBDhlLNDhwdPRH+UKekYStEzHBwRxpg6g49cYIrlrWFQB22uSaTB8vf9sWfX0fHqnTgFvQzwzY3LDJP5IN7124quR2tFSB9tXy4xeDc8Xp8cVP0Smz5WSCT0HJszvKXFYw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-24T06:00:15', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/df9d88d7-a26d-4c02-a877-f385a12f4499.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:22,624 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '71426F59-063F-4AFF-88E3-D21BDF84F1C4', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190212', 'dates': '2025-01-03T17:26:58', 'stamp': 'IJ1YYTtcrGk8Q/macfwKmpEChBPvZgvcZlL0btRXkYmQbhfU4ROT/wxyAmIW3AoD8/SD9Q3MTn1Dfcv5SPDLJhEnMwrdt4VcJ9qyDmiRqJ+/iV5kw6418wOTcA5xMrlkWWkFxh6xgCSg5VC3Vo38F ... (46 characters truncated) ... vHZX/ohx1nyi6cwQNS/hSAEpml8qz8MASlP/idCeNr6jmMUsPax/sthg+ZiYy2MEOwrJX3BXGX9chkaaNjPjvNwlwBRKSjkJI/OUEKU/9tQCeALUoawirnqkcsxzQ1Q7iU9uBL4jeFIM+RmHHMg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:32', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/71426f59-063f-4aff-88e3-d21bdf84f1c4.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:22,843 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'A3E5D3D7-1FCF-4F57-8916-3A4427B3D793', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190112', 'dates': '2025-01-03T17:26:58', 'stamp': 'eB1NQXQBF5nMInJi/MqqyNXituuejRvk+d9WZR8DddnHy2FWDW7l2P7FoHJMvoSZgoUMBSzj/nB8oXU96wnNp+AJgqP7XjNnFOVkPJUtqAAUJbchopg2i+DoXuL9iJFnlIl/YxCKWgvzHwPS5nAp0 ... (46 characters truncated) ... cdDTt4qkh67Dal/JZ9G4ULf2uI/fNvtCOfFX/UDUyKZS4SiUStjbVeFaAh6Zn9BhRgwqTmbs+ruzZRZ2jr+bCmrXc5qxNCpJKPhUYcKmYLlS9bq1adPs/D6ocDD54GAhveelVVw0FqsY1bomSkg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:25', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a3e5d3d7-1fcf-4f57-8916-3a4427b3d793.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:23,064 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'b815ce6a-ff29-44e8-acfd-9076b697bb57', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '897', 'dates': '2025-01-11T18:25:29', 'stamp': 'U75knfUsAo97T0dxgvD0sVMQE25jTW+VIV2eNM96PdK6JZiFK8L3l9x5CRxImTco0wmeNKqKrT/g76TN9WKhEFjvtS53+JfbJPcKN30AZrt6JK3hAfQLsFP5lxAUXkeEqnW90bkUA5VoD6s3i6B6r ... (46 characters truncated) ... HDX6Nfeh327exYZYtsQGwnbH/Z3YHMm0e1YrPeeQqN6jq3mnRnnq3QmcE5XoE53AnuLEVR7rMVNCWKV5W9Vp39VxSIv0WYsCa5t0wRACc7luPO6yLwGTi26fDK9PTn6+IXNOkxKPQx0tvpLxLlA==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-11T18:25:29', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/b815ce6a-ff29-44e8-acfd-9076b697bb57.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:25,980 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '78f14f40-fe1d-4830-b383-edef6d7a86e0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-06T19:53:52', 'stamp': 'HYNM2Ed841WndlL/7c7mrYZlvsKtmUzszZ/CXhqy81QelkQZNChZu8a63FK9Y6K7XC4I+p9iwnddk9poT1OKkvEs192qtZe4a5dlM1rTQvQciIBc6BpWb9SsF4kPG0lVgNPzOdAKReFXDS19+qSFM ... (46 characters truncated) ... iQuyPx6VF6TFWpVh0pfdrnhUCBgJfCNDbpr2KFzhi67ruJaZ2kXyZr3grhnHT01yyfpoicm5AuG9PLZswty7KjfPlk4YIZ8ROIv0p5/xlrXEZna9ZNHPJPaJIcY5H34XNHHx/e40MeIi3nTm3fQ==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8042.42', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13630.33', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8042.42", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-06T20:15:10', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/78f14f40-fe1d-4830-b383-edef6d7a86e0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:26,201 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '38C1CE7A-2F70-4688-A2DD-5C0838129C9C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1385483', 'dates': '2025-01-27T18:15:22', 'stamp': 'Dd65iwSniizBB0NYEYrbvUvARVypImtvSZTwdVJJYZ3jXDX/twXK4/EX6eqJn7CSj7S7ixyjA8oc2reDR0rxV2+NUnbUrOQ+JpFzEqRKac51zV7pflYGJCStOfq1dh6fkiY3K6H0uXgDtcut4YfeL ... (46 characters truncated) ... J33OIVodClrLT6wLwK7caTsabcmmRXd8a2mrDOm07YgbkDS3G7AIHsAdNUVHCvpIziSG03NFoOWIzr8ZfKPozfFWGwKFtnlyMhHlt7Xh+vRC1B/cQgXg8VC1J8ZltyfPnReyBp9ibSRkboUS6Fg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '405.57', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '470.45', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "INT. DE ... (954 characters truncated) ... ": "127.08", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "20.33"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '64.88', 'stamp_date': '2025-01-27T18:21:18', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/38c1ce7a-2f70-4688-a2dd-5c0838129c9c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:26,419 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'f61751e1-4c08-473e-8f32-b715544dcf20', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'DIC76005', 'number_leaf': '50066858288', 'dates': '2025-01-03T13:10:40', 'stamp': 'adeG9BSrUyM3SwZci1kls1wjj+TpEpFA8lsE5i/pL+8Xjury/MNnLjPZhnAA01dswQ3VL1BhlofJ5KelaNmIW20EM1KRzZ0eE3Irgpwm/pS+1Bqy812lU+5y2Nlfn6iP3Rmk+2667crb1Iccdbas9 ... (46 characters truncated) ... vsj0QWMGoVJDv11cM6sGSDCtr+oyvEIeExE6OO7iVlpudkZBK0OdDHqoQHeT1TkjES0wQg0j00Rr/SP6YIqdD4sA0QdnuQkZpawD+Ly0gDobrKi2l0sVnlwrusd0SG/qkpKB+JZyHEmVNdTsNzg==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-03T19:12:04', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f61751e1-4c08-473e-8f32-b715544dcf20.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:26,639 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '4cbae294-fac7-4e71-a59c-edef6d7a2da0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-22T15:04:31', 'stamp': 'IS/xHVuDRJNRxVdGo8jH7YmFHkcWTQJ19n2TDvBXgDZOfiOPq6azB2TEl2MlQAv0NW2F+KzrlwpKEErd5HH86SxU8x5BMO7ehfz+rR2Gc2djqzsEo3mrvqbgqIzB8/mL3h+SO4qMoin232ZKe9/QM ... (46 characters truncated) ... z7/3u/XCarqTFk/Wp1hoRxywAEm+1IRtXTkIc3Z2mjPeuUM3ETEQhBUQd0wR8+gpY0OcdUxQGapf1fcDg0kJzJmLQOApg6K7OdGy3oFo5klQTL1CumWePqvguwrhILuR6yWSfL18/ESloacPosw==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '24973.75', 'discount': '8053.20', 'currency': 'MXN', 'exchange_rate': '1', 'total': '16920.55', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "24973.75", "descuento": "8053.20", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-22T15:38:09', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/4cbae294-fac7-4e71-a59c-edef6d7a2da0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:26,858 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '5851A769-058A-4F53-AB9B-FF7130B0818C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-01-09T09:58:02', 'stamp': 'Q2giEiTWYd+l/a1aHNxNLJMtXZcJJ8vHiF0b0qht8O73atpInOLow4sWd7xybiuwIjsRbXIpws1QwsdhW3SmcrIMjXbF7Qeux1z3o/ueglbwYwhnyMZPlMW3vcKRtEh9FaHdGujsRlcxqo3oFuojA ... (46 characters truncated) ... EmwNBNTMClPNF4wM0Q1VbqllV8gpRVGx1OQX7uJefL7kxHaoB9a8wFa7ht4Rl8JUuyDZEQ0Vhd9etpnNJrVAUNdHRt7LSA2AyPIRRrMcBsDG1BttPTI3dHXRdg9BVc9JMD0ejjETd7F/ThXOGGw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-09T17:31:47', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5851a769-058a-4f53-ab9b-ff7130b0818c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:27,078 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'DF9D88D7-A26D-4C02-A877-F385A12F4499', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-01-24T04:29:53', 'stamp': 'TsK50wat0ZN74tstYiDQbFV5jnpWZSa99pUq65RvgsbaowLzgajRv94DvKzG4kXAqrTien4qlzmnpthnZBBzv7YnyG0YuEKl6CsXt8EaGlvS57llJ2AvG6JEHbG1elTlP3iLJVXaHSYrGmLSTv71M ... (46 characters truncated) ... MR+DzH8rRJbXDyb+qcBDhlLNDhwdPRH+UKekYStEzHBwRxpg6g49cYIrlrWFQB22uSaTB8vf9sWfX0fHqnTgFvQzwzY3LDJP5IN7124quR2tFSB9tXy4xeDc8Xp8cVP0Smz5WSCT0HJszvKXFYw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-24T06:00:15', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/df9d88d7-a26d-4c02-a877-f385a12f4499.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:27,297 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '71426F59-063F-4AFF-88E3-D21BDF84F1C4', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190212', 'dates': '2025-01-03T17:26:58', 'stamp': 'IJ1YYTtcrGk8Q/macfwKmpEChBPvZgvcZlL0btRXkYmQbhfU4ROT/wxyAmIW3AoD8/SD9Q3MTn1Dfcv5SPDLJhEnMwrdt4VcJ9qyDmiRqJ+/iV5kw6418wOTcA5xMrlkWWkFxh6xgCSg5VC3Vo38F ... (46 characters truncated) ... vHZX/ohx1nyi6cwQNS/hSAEpml8qz8MASlP/idCeNr6jmMUsPax/sthg+ZiYy2MEOwrJX3BXGX9chkaaNjPjvNwlwBRKSjkJI/OUEKU/9tQCeALUoawirnqkcsxzQ1Q7iU9uBL4jeFIM+RmHHMg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:32', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/71426f59-063f-4aff-88e3-d21bdf84f1c4.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:27,510 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'A3E5D3D7-1FCF-4F57-8916-3A4427B3D793', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190112', 'dates': '2025-01-03T17:26:58', 'stamp': 'eB1NQXQBF5nMInJi/MqqyNXituuejRvk+d9WZR8DddnHy2FWDW7l2P7FoHJMvoSZgoUMBSzj/nB8oXU96wnNp+AJgqP7XjNnFOVkPJUtqAAUJbchopg2i+DoXuL9iJFnlIl/YxCKWgvzHwPS5nAp0 ... (46 characters truncated) ... cdDTt4qkh67Dal/JZ9G4ULf2uI/fNvtCOfFX/UDUyKZS4SiUStjbVeFaAh6Zn9BhRgwqTmbs+ruzZRZ2jr+bCmrXc5qxNCpJKPhUYcKmYLlS9bq1adPs/D6ocDD54GAhveelVVw0FqsY1bomSkg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:25', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a3e5d3d7-1fcf-4f57-8916-3a4427b3d793.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:27,730 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'b815ce6a-ff29-44e8-acfd-9076b697bb57', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '897', 'dates': '2025-01-11T18:25:29', 'stamp': 'U75knfUsAo97T0dxgvD0sVMQE25jTW+VIV2eNM96PdK6JZiFK8L3l9x5CRxImTco0wmeNKqKrT/g76TN9WKhEFjvtS53+JfbJPcKN30AZrt6JK3hAfQLsFP5lxAUXkeEqnW90bkUA5VoD6s3i6B6r ... (46 characters truncated) ... HDX6Nfeh327exYZYtsQGwnbH/Z3YHMm0e1YrPeeQqN6jq3mnRnnq3QmcE5XoE53AnuLEVR7rMVNCWKV5W9Vp39VxSIv0WYsCa5t0wRACc7luPO6yLwGTi26fDK9PTn6+IXNOkxKPQx0tvpLxLlA==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-11T18:25:29', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/b815ce6a-ff29-44e8-acfd-9076b697bb57.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:30,485 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '78f14f40-fe1d-4830-b383-edef6d7a86e0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-06T19:53:52', 'stamp': 'HYNM2Ed841WndlL/7c7mrYZlvsKtmUzszZ/CXhqy81QelkQZNChZu8a63FK9Y6K7XC4I+p9iwnddk9poT1OKkvEs192qtZe4a5dlM1rTQvQciIBc6BpWb9SsF4kPG0lVgNPzOdAKReFXDS19+qSFM ... (46 characters truncated) ... iQuyPx6VF6TFWpVh0pfdrnhUCBgJfCNDbpr2KFzhi67ruJaZ2kXyZr3grhnHT01yyfpoicm5AuG9PLZswty7KjfPlk4YIZ8ROIv0p5/xlrXEZna9ZNHPJPaJIcY5H34XNHHx/e40MeIi3nTm3fQ==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8042.42', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13630.33', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8042.42", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-06T20:15:10', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/78f14f40-fe1d-4830-b383-edef6d7a86e0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:30,699 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '38C1CE7A-2F70-4688-A2DD-5C0838129C9C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1385483', 'dates': '2025-01-27T18:15:22', 'stamp': 'Dd65iwSniizBB0NYEYrbvUvARVypImtvSZTwdVJJYZ3jXDX/twXK4/EX6eqJn7CSj7S7ixyjA8oc2reDR0rxV2+NUnbUrOQ+JpFzEqRKac51zV7pflYGJCStOfq1dh6fkiY3K6H0uXgDtcut4YfeL ... (46 characters truncated) ... J33OIVodClrLT6wLwK7caTsabcmmRXd8a2mrDOm07YgbkDS3G7AIHsAdNUVHCvpIziSG03NFoOWIzr8ZfKPozfFWGwKFtnlyMhHlt7Xh+vRC1B/cQgXg8VC1J8ZltyfPnReyBp9ibSRkboUS6Fg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '405.57', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '470.45', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "INT. DE ... (954 characters truncated) ... ": "127.08", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "20.33"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '64.88', 'stamp_date': '2025-01-27T18:21:18', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/38c1ce7a-2f70-4688-a2dd-5c0838129c9c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:30,919 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'f61751e1-4c08-473e-8f32-b715544dcf20', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'DIC76005', 'number_leaf': '50066858288', 'dates': '2025-01-03T13:10:40', 'stamp': 'adeG9BSrUyM3SwZci1kls1wjj+TpEpFA8lsE5i/pL+8Xjury/MNnLjPZhnAA01dswQ3VL1BhlofJ5KelaNmIW20EM1KRzZ0eE3Irgpwm/pS+1Bqy812lU+5y2Nlfn6iP3Rmk+2667crb1Iccdbas9 ... (46 characters truncated) ... vsj0QWMGoVJDv11cM6sGSDCtr+oyvEIeExE6OO7iVlpudkZBK0OdDHqoQHeT1TkjES0wQg0j00Rr/SP6YIqdD4sA0QdnuQkZpawD+Ly0gDobrKi2l0sVnlwrusd0SG/qkpKB+JZyHEmVNdTsNzg==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-03T19:12:04', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f61751e1-4c08-473e-8f32-b715544dcf20.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:31,138 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '4cbae294-fac7-4e71-a59c-edef6d7a2da0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-22T15:04:31', 'stamp': 'IS/xHVuDRJNRxVdGo8jH7YmFHkcWTQJ19n2TDvBXgDZOfiOPq6azB2TEl2MlQAv0NW2F+KzrlwpKEErd5HH86SxU8x5BMO7ehfz+rR2Gc2djqzsEo3mrvqbgqIzB8/mL3h+SO4qMoin232ZKe9/QM ... (46 characters truncated) ... z7/3u/XCarqTFk/Wp1hoRxywAEm+1IRtXTkIc3Z2mjPeuUM3ETEQhBUQd0wR8+gpY0OcdUxQGapf1fcDg0kJzJmLQOApg6K7OdGy3oFo5klQTL1CumWePqvguwrhILuR6yWSfL18/ESloacPosw==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '24973.75', 'discount': '8053.20', 'currency': 'MXN', 'exchange_rate': '1', 'total': '16920.55', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "24973.75", "descuento": "8053.20", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-22T15:38:09', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/4cbae294-fac7-4e71-a59c-edef6d7a2da0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:31,357 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '5851A769-058A-4F53-AB9B-FF7130B0818C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-01-09T09:58:02', 'stamp': 'Q2giEiTWYd+l/a1aHNxNLJMtXZcJJ8vHiF0b0qht8O73atpInOLow4sWd7xybiuwIjsRbXIpws1QwsdhW3SmcrIMjXbF7Qeux1z3o/ueglbwYwhnyMZPlMW3vcKRtEh9FaHdGujsRlcxqo3oFuojA ... (46 characters truncated) ... EmwNBNTMClPNF4wM0Q1VbqllV8gpRVGx1OQX7uJefL7kxHaoB9a8wFa7ht4Rl8JUuyDZEQ0Vhd9etpnNJrVAUNdHRt7LSA2AyPIRRrMcBsDG1BttPTI3dHXRdg9BVc9JMD0ejjETd7F/ThXOGGw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-09T17:31:47', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5851a769-058a-4f53-ab9b-ff7130b0818c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:31,577 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'DF9D88D7-A26D-4C02-A877-F385A12F4499', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-01-24T04:29:53', 'stamp': 'TsK50wat0ZN74tstYiDQbFV5jnpWZSa99pUq65RvgsbaowLzgajRv94DvKzG4kXAqrTien4qlzmnpthnZBBzv7YnyG0YuEKl6CsXt8EaGlvS57llJ2AvG6JEHbG1elTlP3iLJVXaHSYrGmLSTv71M ... (46 characters truncated) ... MR+DzH8rRJbXDyb+qcBDhlLNDhwdPRH+UKekYStEzHBwRxpg6g49cYIrlrWFQB22uSaTB8vf9sWfX0fHqnTgFvQzwzY3LDJP5IN7124quR2tFSB9tXy4xeDc8Xp8cVP0Smz5WSCT0HJszvKXFYw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-24T06:00:15', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/df9d88d7-a26d-4c02-a877-f385a12f4499.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:31,797 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': '71426F59-063F-4AFF-88E3-D21BDF84F1C4', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190212', 'dates': '2025-01-03T17:26:58', 'stamp': 'IJ1YYTtcrGk8Q/macfwKmpEChBPvZgvcZlL0btRXkYmQbhfU4ROT/wxyAmIW3AoD8/SD9Q3MTn1Dfcv5SPDLJhEnMwrdt4VcJ9qyDmiRqJ+/iV5kw6418wOTcA5xMrlkWWkFxh6xgCSg5VC3Vo38F ... (46 characters truncated) ... vHZX/ohx1nyi6cwQNS/hSAEpml8qz8MASlP/idCeNr6jmMUsPax/sthg+ZiYy2MEOwrJX3BXGX9chkaaNjPjvNwlwBRKSjkJI/OUEKU/9tQCeALUoawirnqkcsxzQ1Q7iU9uBL4jeFIM+RmHHMg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:32', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/71426f59-063f-4aff-88e3-d21bdf84f1c4.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:32,022 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'A3E5D3D7-1FCF-4F57-8916-3A4427B3D793', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190112', 'dates': '2025-01-03T17:26:58', 'stamp': 'eB1NQXQBF5nMInJi/MqqyNXituuejRvk+d9WZR8DddnHy2FWDW7l2P7FoHJMvoSZgoUMBSzj/nB8oXU96wnNp+AJgqP7XjNnFOVkPJUtqAAUJbchopg2i+DoXuL9iJFnlIl/YxCKWgvzHwPS5nAp0 ... (46 characters truncated) ... cdDTt4qkh67Dal/JZ9G4ULf2uI/fNvtCOfFX/UDUyKZS4SiUStjbVeFaAh6Zn9BhRgwqTmbs+ruzZRZ2jr+bCmrXc5qxNCpJKPhUYcKmYLlS9bq1adPs/D6ocDD54GAhveelVVw0FqsY1bomSkg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:25', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a3e5d3d7-1fcf-4f57-8916-3a4427b3d793.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:44:32,240 - api_logger - ERROR - Error creating record: (psycopg2.errors.CheckViolation) no partition of relation "cfdi_documents_recibidos" found for row
DETAIL:  Partition key of the failing row contains (rfc_hash_usr_ownr) = (test_virg900207rr3).

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'test_virg900207rr3', 'uuid': 'b815ce6a-ff29-44e8-acfd-9076b697bb57', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '897', 'dates': '2025-01-11T18:25:29', 'stamp': 'U75knfUsAo97T0dxgvD0sVMQE25jTW+VIV2eNM96PdK6JZiFK8L3l9x5CRxImTco0wmeNKqKrT/g76TN9WKhEFjvtS53+JfbJPcKN30AZrt6JK3hAfQLsFP5lxAUXkeEqnW90bkUA5VoD6s3i6B6r ... (46 characters truncated) ... HDX6Nfeh327exYZYtsQGwnbH/Z3YHMm0e1YrPeeQqN6jq3mnRnnq3QmcE5XoE53AnuLEVR7rMVNCWKV5W9Vp39VxSIv0WYsCa5t0wRACc7luPO6yLwGTi26fDK9PTn6+IXNOkxKPQx0tvpLxLlA==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-11T18:25:29', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/b815ce6a-ff29-44e8-acfd-9076b697bb57.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:34,447 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '5624da67-fd16-4187-a174-039aae8d99b0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'NOV78231', 'number_leaf': '50066858288', 'dates': '2025-12-02T14:28:48', 'stamp': 'WAhyGoqnPrZYXqweeyY3ghySidKeTlrnZS2UPW/41KXEHb+mx2H5wMh7g8Fe0l1ZAyqTwdEogRQaNkZ51BA6CXwG7tl3IJ+rqlB0+skqLi7arSmTQUwDtoWCfsUlU/NRPBUq7RsAGnjoDzz3ayeRN ... (46 characters truncated) ... 5ybVfHBb6GPgxRpB4YY4x4+HSJ/TrAA4EZnCrAryOETc2wPQy89+cDugeNrpfiig1NvIe6dsYUUL9z8F7atOffAnIW+271TQLG0O6HJsFeZXi3G0QizODQOpJ1CpTjEAy4ZKzpaWcik4cPOmMUA==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-12-02T20:57:18', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5624da67-fd16-4187-a174-039aae8d99b0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:34,690 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'ACB31C73-95E9-403F-A302-58BBFF4155A1', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190111', 'dates': '2025-12-02T03:11:09', 'stamp': 'H0oLHNIIyDGxQR7WJ6XlUmjGezIl9K1pQGDFCVbGT+q4HSjf7ob//WBt4S2QUvtjxeAv+6avtG0JuIPb1q8aBJ6wPtSE/bnlPFmtEkZ5/iu5EsjC6fcq9Ya/JAJIfQro1ium1U6oE/UWe+8S6Kl5r ... (46 characters truncated) ... Zmvxr3vRxN30fkCKIJvwe3bE5sQzVeMbYli+Px5nHfKsXAKzp7M8Eb1bNA18MkOMmQ/mqWEiFlHYjbHG/DXqEfsZkYpltnCOTV9dbsPq5LQf3jKD0p0stSjn+3HciYceLNLgRB3fCgPMiqn2pUg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '01376', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-12-02T21:50:24', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/acb31c73-95e9-403f-a302-58bbff4155a1.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:34,917 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '1A6F69B7-D7CE-41A4-B11B-5D8193639538', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-12-09T20:58:03', 'stamp': 'JDNzklOH7jgq1h6GuG+lOGChFfZkk0MvGR85ApfFimkJ+qa35RvbEee6krl50Hfa2pg3puD3mDPDWbvJ5y85fM7/AVRvhvuEpaVApsOV+NHpAV6HAc83GS1/SCNZcFOyBw2CwaYkssP/RRyfZLJRD ... (46 characters truncated) ... VGHccEcEPZcgLwVZYX4XtEauc9ohbRg5e5W07szHP0JMoZ1eiLpQI8MydeqUoByRAQ9mT/PTmtIM3ontoxuFwG5Ke4P4ps7M4mzO4VSlaIuvyE48lB9PT2eIonThCIe6C7p2l5V2ehFQcpGCLZQ==', 'certificate_number': '00001000000719019167', 'certificate': 'MIIGwzCCBKugAwIBAgIUMDAwMDEwMDAwMDA3MTkwMTkxNjcwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (2018 characters truncated) ... nsw1t6vyde9q51O4AnQ4tMwg91lALUtO5dhzWmGv4bibfpJsnQVAQL9EgsZqRIn3xHRPm7BpkY+7T2yTPbZJFncGzl1TBpbIM06PHnOLoeD5gQdD+5Msf+x+BB6mgfQ2mS3pbi5TD7fr5opZMPQ==', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-12-10T04:03:11', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/1a6f69b7-d7ce-41a4-b11b-5d8193639538.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:35,142 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'C0C2B478-1C94-462D-B675-C610DD2AD12A', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-12-24T09:03:51', 'stamp': 'Bm2ZRqvHLQgpjGj8O+h+k6JPy4sfUjz0xKSqCp2E2XOuDCUI4XgXSQ3blEbjUWHaiQlNwrZ3LbDl359bkDMW3QdzlJTEDm6oTfswTCxtTx039eumVAVtus6i6PxO4mHtqfmmmpNokPANMCJBzgBo4 ... (46 characters truncated) ... zyi/VuH8eeOIhmhci9orJyPzqwCYWtqqN1vjpLzynR/IiI8mFEZJFJnLA4vQXC/B77ETrTMXxM1bu8a03JFhTSIj4WS1AwH6fhDINJL+RhjrD+piXaIgS7exiUUA20IBFygM1kextC4tSKoBOpQ==', 'certificate_number': '00001000000719019167', 'certificate': 'MIIGwzCCBKugAwIBAgIUMDAwMDEwMDAwMDA3MTkwMTkxNjcwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (2018 characters truncated) ... nsw1t6vyde9q51O4AnQ4tMwg91lALUtO5dhzWmGv4bibfpJsnQVAQL9EgsZqRIn3xHRPm7BpkY+7T2yTPbZJFncGzl1TBpbIM06PHnOLoeD5gQdD+5Msf+x+BB6mgfQ2mS3pbi5TD7fr5opZMPQ==', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-12-24T10:32:06', 'certif_provider_rfc': 'SFE0807172W8', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/c0c2b478-1c94-462d-b675-c610dd2ad12a.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:35,365 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'DD45992B-8EBE-4242-84AC-1B525E6CD008', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '2012226', 'dates': '2025-12-26T19:00:45', 'stamp': 'Vuv9+/taXlbSEsJz7+42qR+vMIZuHTRFTc89qQaesHWTm5eAXGpvLmtt2VLp6+huIQpX7JoAQ7XKbnop1IhjerQBRATk0qTu5JZqyD9tpDIRbeK7hZxonHqnhTyiq7sZtlBTG2xI3a0r1dbd2RDje ... (46 characters truncated) ... GnreDAx/HjLKFjcdiMwcuoLaSplf8Qo6chWJy7B7NkvAttCb1WdEIhtub1jOIg0RnMpdej+c5PGP9qmDav//42AjAfv1DQSPW+AfPVquIW35guj12bpXrX66MXc7M+ZBw9vAp/PKeGuOYI+ua2g==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "SERVICI ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-12-26T19:09:09', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/dd45992b-8ebe-4242-84ac-1b525e6cd008.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:35,595 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '22c50670-c784-424f-a33e-508357af91c9', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '1122', 'dates': '2025-12-29T14:27:32', 'stamp': 'frJtF+UEL9dZrBoZ7TfjXQKdXV3OJGGHUapw+mNEr841JxHynLDTw8ZxySNvvF0b5/0rQeyI7ba+vO0Jqr7+UfsuboydKVQrf9EkSDs0qTFQ2oSlAkgPR0jaBIGhxgh3v5cPRgMDw66dw5fPAJCDV ... (46 characters truncated) ... BuZEHlyNp175qxanCd60Y/WeaLuE1dTvkhTDENAZUrdgT7qLsK2ddyl7BV+1Mx1B0n78oe60/xx1J+7IaoYQc6O9U/MZrbJcQw/Viy0hrBQZMdHvv/l26O5WU/NZKGiQfm84tmUDBR3LRiiv96g==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (138 characters truncated) ... s": [{"base": "800.00", "impuesto": "002", "tipo_factor": "Exento", "tasa_cuota": "", "importe": ""}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-12-29T14:27:32', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/22c50670-c784-424f-a33e-508357af91c9.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:35,823 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'DAE2C379-68FE-4DFA-82CB-255699D3FCB7', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190211', 'dates': '2025-12-02T03:11:09', 'stamp': 'NrGLn3/Zvk9I04lwfinZl04n+1tLItthIWqYbVjCZLdWpEe+U4jIjO2OEGiTKv9d6Bf5DQHpTIJ+K3W/fJIu7BFbij4SAceXCvXQ40SIcv9BLOACTxIZhnaBIkx6JESxF4JZzpY3VxSeSkhc262Fh ... (46 characters truncated) ... DKLnstm2giYnGh2B0sn6V0lywUvZF3ojga139KepG+6BYBIL4Eoy5gly5SETRoQqZjNpAPvpaqrCsqRFIozGyN4PKelNJujd/95Jtu6lEoU9d2GJG3G7RSyoT48EL+aREfX4GgsK/Tke5Ov/1dg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '01376', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-12-02T21:50:36', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/dae2c379-68fe-4dfa-82cb-255699d3fcb7.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:36,045 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'd1179d01-9af0-4632-ac2b-edef6d7a0c2e', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-12-04T19:10:28', 'stamp': 'FO4KNvSc78Fy8xJ0O3irRkJhjut+XJ50G8AxlAYCg16HsKqxbNwxSRIufT0vhUcXQ5bSc53ij4U7btQra6wdgOoxrzioEeP/MKWHJpnQfM/bJYbeB+vdNGS9mOLTC2us2cQBjPu37c+qsYzeXBVD5 ... (46 characters truncated) ... OxZZIZNSMKaXiPE06uzJYmjQaJX9HHgk5BpPwC+xK0G8+vu3lmVirZu/A2d7OvgB7JXSE1xA1838cVOyWc+UmjzjXEOnGmAOsn2D0NFOzSL/733R8LqFO3Y+u5bjdsEjCR+F5nc1dpgFa/2cqqw==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '22639.16', 'discount': '8455.68', 'currency': 'MXN', 'exchange_rate': '1', 'total': '14183.48', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 16", "importe": "22639.16", "descuento": "8455.68", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-12-05T09:28:29', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/d1179d01-9af0-4632-ac2b-edef6d7a0c2e.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:36,274 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '74429678-3624-49b4-ac30-edef6d7ac8cf', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-12-20T10:53:19', 'stamp': 'UyUBhvlWoVri0GI3voOZdgIpZ9UDh5mF71AAF1GWRAOVBEMO0flT9JA4scpmKS4Ltq/M0p09aviohWNuPso9jIq0wmyKVKlRGHMwPtPsPja2jWy54l2cY/+PBKGzUSyMDGpvMQUhrdtSgerhKb2LB ... (46 characters truncated) ... ZHpjOHjZ99eDkwcZQeNNCJiIu8iZwySNGBvXEJFvmHE8uU9EmIwHo941MS0p6uxG3DqoqAoUc0hK3tqLPLuoXUAaYYPXhn3DAT2GD4nYlCcLkPNUz01FVn4TO3gSMhuEzOsoF1aGF25V27aDghA==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '26078.16', 'discount': '10675.57', 'currency': 'MXN', 'exchange_rate': '1', 'total': '15402.59', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (36 characters truncated) ... 6", "importe": "26078.16", "descuento": "10675.57", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-12-20T11:24:29', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/74429678-3624-49b4-ac30-edef6d7ac8cf.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:36,500 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '36ae62be-d82d-4f1a-b209-edef6d7a8915', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-12-09T13:38:24', 'stamp': 'HG9OGJ8euQN+Qv2yNLJqHyyg/qI1Eub3YEpRd4Pb/w1L8UpSLWcwfRo04B0km48WPINw06JXyGsTjJfmZlt4AVYA3kE0xm9O9rC79kXWaYFt6EMXc95hKAegCTyQYTLZVrRtTDY6BGOETwxMuZEaR ... (46 characters truncated) ... kv9znvz1mjGmojkcvtCMIbJt9qhHNmyI4resRi70XSmS42weHbGnosnNU6A+I6fFxwErKYCsTNu5Uwa6yIKtxXMQD52EFXLDEebpeMxtL2yBYvH8DeAqlqG5AWUUJscfy/4K60+0PCvFgTLb+3A==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '41162.10', 'discount': '8600.32', 'currency': 'MXN', 'exchange_rate': '1', 'total': '32561.78', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 10", "importe": "41162.10", "descuento": "8600.32", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-12-09T14:02:29', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/36ae62be-d82d-4f1a-b209-edef6d7a8915.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:36,718 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '6ACA4653-73A3-4369-AF3C-384B4772E2A9', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ECUH', 'number_leaf': '6768524', 'dates': '2025-12-02T23:02:44', 'stamp': 'bvFrfaH3zp+dnN3utiPXl7czK1XcFYBS3KvrBzoGslFufbNz9Xa+98LbisszbkNpkxU2fgRnjGiHx5WjlD0vl8p2BCPbKSR7JVOKmqCIjjFnYQ5b/E+5k5v8sVSn5NqnM24j4+5+rCI42mFuVINUL ... (46 characters truncated) ... J6iyPHjqJ6/nSbiKAAwXIooNG+xEmvnmGyJcIyR0QEMvh3NzDZgMcxr+8FbtDL7Yaw1AkKa3Iot0uexKNgbFPdvnp1aMHVLPo4gPxtsuXlNSVFg4Aoi5XMDeoern2GS5eSfrtrJe5FufNAqTFxg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "Servicio", "descripcion":  ... (42 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-12-02T23:10:37', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/6aca4653-73a3-4369-af3c-384b4772e2a9.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:39,028 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'C7FB6E10-5DED-469C-845E-CFC6048DEDC7', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-11-22T09:16:36', 'stamp': 'aGYIrouqbvBA06qSjGmc4mQAaT16NA9FDXRg6Afe4JWB0rDRSxF6O5iRMcYSChsof8PqSxgm1ZsUQSKce2dvEJTOkJi6iWyVkCOgAPcCr7aMH9Gpp+Rvhjad4N4Py4+rXupBz5/j2opSh8HZ5stri ... (46 characters truncated) ... wE5gAvj8Qu02I+yWuXWO4KSiVXCjbzATWjsrKN5KhiXAVrM8zm/psIK/UtKoK7mKHu2M87uwxf1Z6AwK8/2hPME540ivxG1YQZcF+E2sxiQGUa/Dh6bhCK41LOpPtEFHBSQae7CtmcBc70uZcpQ==', 'certificate_number': '00001000000719019167', 'certificate': 'MIIGwzCCBKugAwIBAgIUMDAwMDEwMDAwMDA3MTkwMTkxNjcwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (2018 characters truncated) ... nsw1t6vyde9q51O4AnQ4tMwg91lALUtO5dhzWmGv4bibfpJsnQVAQL9EgsZqRIn3xHRPm7BpkY+7T2yTPbZJFncGzl1TBpbIM06PHnOLoeD5gQdD+5Msf+x+BB6mgfQ2mS3pbi5TD7fr5opZMPQ==', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '748.00', 'discount': '0.00', 'currency': 'MXN', 'exchange_rate': '1', 'total': '867.68', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (142 characters truncated) ... : "748.00", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "119.68"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '119.68', 'stamp_date': '2025-11-22T13:53:46', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/c7fb6e10-5ded-469c-845e-cfc6048dedc7.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:39,261 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '5a1c2d24-e005-4526-9cb4-fecb44bedaa3', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '1099', 'dates': '2025-11-28T13:11:36', 'stamp': 'al9ZvWz7VnxIZYwjX/C0Z33a/szhU0mxWkTFnWU3dWPEujYRtnoRe/RmoVMKQUPwgIG+5DH4B5FVScaZi90MDDi5+7cEHH3aTww4ZqVyPbkDA4Eu4wS64jR7I2ee6gisora9Qzg9eb9l04ZmksSMJ ... (46 characters truncated) ... CtS8ZqLZIimvmXuz7FNutLtJ1RjKHDbWFU7uz842sOvJCGN7HLRh5UCkz0jSNhig3l37kvlmPpife9n+7GGVbVy6Kp3ii+/yqRFoknrElDi1LW1J9hvQja0by2oTfBhvu3I9q6S8nh9DMh4rjxw==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "01", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Honor ... (131 characters truncated) ... s": [{"base": "800.00", "impuesto": "002", "tipo_factor": "Exento", "tasa_cuota": "", "importe": ""}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-11-28T13:11:36', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5a1c2d24-e005-4526-9cb4-fecb44bedaa3.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:39,480 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'd0285fe1-8b38-4214-8fff-ceb44911c49d', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'OCT77982', 'number_leaf': '50066858288', 'dates': '2025-11-03T20:56:37', 'stamp': 'NR1ISSYOPbFa7zeJyyauCohgJGJdzMTnLXGN/+QiUAYOx/71xh8jaVrU7V2TWsjeEEgMSx6Cv9wlSeBdQijQ5uZH+osTZVvA+JJZkM+Gxwys/xFwjK1Kbdm387VBYKRYHn91c//JIfhz0Q1gCJ+hR ... (46 characters truncated) ... 4Uy4l4Gk4/TU7xj9yd7h/SBM4B7/LT6gzY/3MnTniGEzSQYlRt3yI1Q4a3iEJZ/Ie/X5pC6YzmYlOL97ACWiX0Ehjy+btXUuh/QC2ky/IwQatjJS5mB+mXexoVxzfhY7dRCDBhuDfXM01QPA5kA==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-11-04T04:23:57', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/d0285fe1-8b38-4214-8fff-ceb44911c49d.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:39,700 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'BC77F738-4FA9-4570-A6CA-1DDAF6F09F85', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-11-08T19:29:44', 'stamp': 'UVITK1FgPejiy0tpkkdRxLcmCl/JDnmZAnmOkpXYprGgUTrC/TOH90xLNOhZO89SGAyQEkJ4O3CPoHqvImk0BxsEPgU5l2imJ9Vd7LjxakUqar8M4c7S79pOysteOjFkznbA6gxxXlV+F4NbkEvuM ... (46 characters truncated) ... AG0Pt6712FGr55blu4ULfSg9N4RyE4VBSBQw7wro+ira3x995vl+JCgp7LPqJiUZQddm9Uv2xOqncedu4vDrovSHFrLlrbs0btnHnuo/yTpfMud8YG/J1vGBaLolairfItqbYAimEaqT0+Y1Mpg==', 'certificate_number': '00001000000719019167', 'certificate': 'MIIGwzCCBKugAwIBAgIUMDAwMDEwMDAwMDA3MTkwMTkxNjcwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (2018 characters truncated) ... nsw1t6vyde9q51O4AnQ4tMwg91lALUtO5dhzWmGv4bibfpJsnQVAQL9EgsZqRIn3xHRPm7BpkY+7T2yTPbZJFncGzl1TBpbIM06PHnOLoeD5gQdD+5Msf+x+BB6mgfQ2mS3pbi5TD7fr5opZMPQ==', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-11-09T03:25:50', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/bc77f738-4fa9-4570-a6ca-1ddaf6f09f85.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:39,920 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'd5b975f2-a693-4aec-bced-edef6d7a3b0c', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-11-04T16:32:53', 'stamp': 'fCgj6P3JymF+QOS6zgAjPX6zTJ6PPxWx+B1JL18MNYsIwqRSrSxNLAeUXEOM0IRCI353u6rQ8PjsxGoXBUQVqZegFSd0nN3sfEDkGuXeaxYZImXn/akLlxpqgH3+g+j0WK9aSwSmRVcRWzv6eZeKq ... (46 characters truncated) ... puEtOaQqnntp5SsreU/R4WdeNYff738lv1YAIR32BgrvA1BeAyBJ8jmqOlXs8TZgJTX/fK3U0Q/Kl+bwiqQd03WYmcKxqMW6cA6GAwudZgw4A7JAfMSpop0Fio6rhZgiQB3ZtjC9hn1TG3GQhvg==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '22639.16', 'discount': '8455.68', 'currency': 'MXN', 'exchange_rate': '1', 'total': '14183.48', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 16", "importe": "22639.16", "descuento": "8455.68", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-11-04T19:07:29', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/d5b975f2-a693-4aec-bced-edef6d7a3b0c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:40,139 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '1CA24076-89AD-4A6F-BB95-6DFEF3A4558E', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190210', 'dates': '2025-11-04T15:00:50', 'stamp': 'ggoIRwvR8ZCvjt68sqKFgOH+MgAtl1RHlfjvNYVyKhOivDsb08+UMFn7rNLTEg9sTUOG4FASTK8+AQ8zsdjjZ634xru9c0ZiREvb44edMjuz5XhEEK+JxR10yzpzZDZyHZUEYLjUt6v589UHc2qxU ... (46 characters truncated) ... yiP8h91HdO8unvyQyT4rLwtaKgUGezJluT15zLQytMjguHfS0kbw1AUPOzqJBeEfI3B3+XTpWk96Q7gGyDEXy8LMJZ+ztd2Et5GGKV6g5etDzUQVjlOTX2of9WCZsI/9hm8qcYB0QIbt+EkrRDw==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '01376', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-11-05T05:11:26', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/1ca24076-89ad-4a6f-bb95-6dfef3a4558e.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:40,357 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '288053be-0614-4175-aed5-edef6d7a6ab2', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-11-20T09:42:25', 'stamp': 'R/tf8612HeCS5nsySk3PN27H8uy9+5Ux4oOw/bDeM1WMZpVVOWrvkNFGHNri9llKL2jsfhC5tOfU83QT/6si5rI/4fgo1kV4wJE71ThIOHSNQe/a+uqYsFi/KBcxouic/bg0oW4TsVUqDwc04waVp ... (46 characters truncated) ... 0ZuJ+74l76vAx89z6fL3N0xJFuBpHA1XsoPnmbAzDItXoMDYt8JQmbHmzbiF78VQz3tFrKce/abxCMUy6rT9x3W1zjAxk8NO/ZW231WyL9PFm0paOErpGdmMEmOngPw5Hg0Pm5nkEg1vhgxlNXA==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '26078.16', 'discount': '8424.86', 'currency': 'MXN', 'exchange_rate': '1', 'total': '17653.30', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 16", "importe": "26078.16", "descuento": "8424.86", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-11-20T10:12:29', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/288053be-0614-4175-aed5-edef6d7a6ab2.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:40,577 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '9DB75D68-C647-4242-833A-25DF6D17346B', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ECUH', 'number_leaf': '6573987', 'dates': '2025-11-03T22:50:55', 'stamp': 'RDPvk7lrdj388Ka/snwcRqmO/00UwrVHxnmBfBnj3oWOKeY5sT1599VBxVYFb2GjD7HALeAZNWJHqhS0DVAMOrOrs6LuPdVSH4T/kNh9A7jC0DmYxA7zcZWuDGOFa5LBVDG6pRBc9rk8deIyXABh8 ... (46 characters truncated) ... TMpNZThxThuWaf3aH2h4jPL+luOt822bXNVF86NytWYhumdvBquEMyJZ+4aow3eOOLCjbhWKIPnq99ti5W7r3BBn0qQX+E3oY7WBQxmt74chPFCdq04mJnz4OYvk5zrxeKu5AUc5qVtLuJSxvbw==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "Servicio", "descripcion":  ... (42 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-11-03T22:57:21', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/9db75d68-c647-4242-833a-25df6d17346b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:40,803 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'BB17C31E-4795-45D2-93A6-1F7BF3211EB9', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1957606', 'dates': '2025-11-26T18:29:47', 'stamp': 'GBMmnFBkqILbDP79+jccOtMNrU/Z+Od/48ka8rYnu6xQd3B+gJ/yj2UliIN5gjCVIXtIAN7JsZhctA9RwLLEKckhVMrBEneNCQsRSJKw/9gBuhua7AXZ7nCTWBpd+sDoTywwOPOjthrbCev7Hhhju ... (46 characters truncated) ... hIJmp47Fi89zkoZ1ixAlnE7sHxM3xWtqQYIvO+P+smuJWKd4fSgeJ8kRbXfJa07mN/ZwFo41Nk40AXqMDLwYXiIpu2Z2f9JQO+AsouAp8xZXNH/X4jZADGU7Ou9KFTYQXAz2kXIslWaWm6QF2Zg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "SERVICI ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-11-26T18:37:42', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/bb17c31e-4795-45d2-93a6-1f7bf3211eb9.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:41,022 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '12A47D00-8BDB-4F59-9EF9-F6B88252F77E', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190110', 'dates': '2025-11-04T15:00:50', 'stamp': 'C6R04T+Q0y8SDWoXc5j99bVV05ZKGLcDPi97+o39p+Ktq27nFtXVVO68H+TPWqIO6SQKvDOQxz7GvUPOp7idyxhS2wdCO8rE6U07oBIyGJbjf7rsG3Q6niQcwaaPXlL6pg2ZBYoUVbQqtyJ9RfZDl ... (46 characters truncated) ... Kznjp34UdIZwObtlFvsS4TBdIMzU/6LB/zW4T0e6tY3vm+Su2VrWR/Qa/gprWjTfGSLNjqHmnC8zT09i0SlgZPWSxXA2Z6gw7BeeUebsYJxXEcUylpK8w9/ptcfRv6RgvbVM42nt47aieiAanUg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '01376', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-11-05T05:11:17', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/12a47d00-8bdb-4f59-9ef9-f6b88252f77e.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:43,379 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '36a25ab2-a7d4-4c49-bd12-90095be1c7b2', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '1081', 'dates': '2025-10-30T18:22:48', 'stamp': 'cGEQ6XhZ9fLTqY/9lqFMOJpE8yFQynRLsGOmoie96v22tPq6RDMBdy0lYF8/898NR8QPqBcKrgtsk4aZznzsmZg09uqoSvS1WgoW+UwOpqcpK7pM/XXc9xwZRJcjQMN9vK6Hg1ki4yvcX39uOs+Rl ... (46 characters truncated) ... bIvtp69FPWyHUwj/iKqLFLeT6Quob3I7D5xy/yfAm7CVk1l09Kwg5CVsYySscJjxeIWD+OjMr3geo0Ev1E4l4sU1dxgdVJe7m4TqxnFsu1Tdc1sQXCnP/Zce1cNAE0rwBHvnPFVx47qRuz/UkUg==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '5800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '5800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (141 characters truncated) ... ": [{"base": "5800.00", "impuesto": "002", "tipo_factor": "Exento", "tasa_cuota": "", "importe": ""}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-10-30T18:22:48', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/36a25ab2-a7d4-4c49-bd12-90095be1c7b2.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:43,610 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '969CF3EB-C411-493D-A21E-8110E609BC03', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-10-24T05:04:08', 'stamp': 'IrnR54ky/piKol2xMnqSwo/t/dhpeJS0d1yd22yd4p2vSJCMCMWSbqLgpH3qsw2ExIp5LWyir4ArbQE7S1SGgYttJUd3W2VTTkEhpsCRGfH974bP5wg5vrdWmOwg9O/S+M+fVVWf9/7ffdfMN4FQf ... (46 characters truncated) ... yHuWzClpMSxEzObQyGSaufallhXpb9U73QTMCXw4xTzGVbp4iCS8jzZjV5jjsDP6IznX84mN34ozDu0GCsT1OwHoqaB5JDrs3EYbFGJ3Lm3MQ49+iH/KZQH6fPccNECUuSPbo48VggQOMpPd9yA==', 'certificate_number': '00001000000719019167', 'certificate': 'MIIGwzCCBKugAwIBAgIUMDAwMDEwMDAwMDA3MTkwMTkxNjcwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (2018 characters truncated) ... nsw1t6vyde9q51O4AnQ4tMwg91lALUtO5dhzWmGv4bibfpJsnQVAQL9EgsZqRIn3xHRPm7BpkY+7T2yTPbZJFncGzl1TBpbIM06PHnOLoeD5gQdD+5Msf+x+BB6mgfQ2mS3pbi5TD7fr5opZMPQ==', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-10-24T06:34:01', 'certif_provider_rfc': 'SFE0807172W8', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/969cf3eb-c411-493d-a21e-8110e609bc03.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:43,829 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '61af1481-8902-41da-8a2a-edef6d7ac5a8', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-10-21T19:01:37', 'stamp': 'FjEkjeHLCz+Gr6jRYWYPOsaJ7GVUB04nwH1VHptCk/Gi6cvkIXtcMIpxzikoHYj/uBc/oHSw++0W8poA17W2hp+F0WhC2DpT8Nk7VCW16TveW6NXybENujRK3eYuSifziwvkYRm73o43k0JMHceNy ... (46 characters truncated) ... KHA1xf3gJZx8EOEJnoBG6PM6NbySf5JbQkTgtHPQN/YgdDOIjwP6t6twTemH5tShOBYor6t7SlFipW5lj3xz/uVoltWpx7YV4bako1TxqX/3J/Y+nsQZk0Waeo/gkwmrLpDj2PvSm9uQoyMT0yA==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '26078.16', 'discount': '8932.72', 'currency': 'MXN', 'exchange_rate': '1', 'total': '17145.44', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 16", "importe": "26078.16", "descuento": "8932.72", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-10-22T09:42:27', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/61af1481-8902-41da-8a2a-edef6d7ac5a8.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:44,049 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '3DB3842F-7C22-47BD-91DF-5189B4E271D2', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190209', 'dates': '2025-10-02T00:07:49', 'stamp': 'o94BavRq0DSg9sD7B8JaVGds5NvX04BPzaDKEzsVKgtmtN+a5yp5ljrWrz/sskuQLlNJhbv1N5vNrf24R1xC1NSKHDBM7dQKpioSJO6sEOZWn/ZgpEZK1iiAMUAGPNeq71uuTwAGojOA3owSFodHY ... (46 characters truncated) ... kA7vSbJtETgHjuWiqxpZ6IjfA+fhPcsog0WXAqcj4wx63Av/Ril52b8m1JGrtf/bcthHoO1O7vRDjA/PDC78AGTF4tZ/TDpzcoXX6MsdnX88goG1I3/nFLJNcUnolJTIVVWJRZ55SG02KDXWCSw==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '01376', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-10-02T20:52:30', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/3db3842f-7c22-47bd-91df-5189b4e271d2.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:44,260 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'F13D2445-38E0-4C5C-B34D-0A6AC52D073D', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1908817', 'dates': '2025-10-28T12:58:14', 'stamp': 'AiMt6bQUtgZAYPVIaU4JnPPECbyK4lW9cH63a6hMQAhxh5B2tBEfzBO4h31WZhMbvK96UBGRyHP/cqwJLmakfn60iWyCVHffHN35ym3lpQ9QBBHVIAT0N8MHaN8wCF8Ot7HDWTVjNjPEiUGiLMSFS ... (46 characters truncated) ... bFrE9VRP80bsaeKo3C8J3ALQHubaV/n4EKMToZucS05mzVgLwfXaUiwC3rbaonLXIBWF5YCL/+GAM2sHrXEPfnutGWvn+2A/y4ShQbg3S7ROwfr9FiczuCfcD4oL7GdPQCZTylj+7bb5sSh7SnQ==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "SERVICI ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-10-28T13:17:29', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f13d2445-38e0-4c5c-b34d-0a6ac52d073d.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:44,489 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '23A9982D-2C68-429B-AF4D-45ED300E5CEA', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190109', 'dates': '2025-10-02T00:07:49', 'stamp': 'f3rYghAoItyLtu+4atid/Oq2Y7l4KFjabhwRSLQj9WVIahCHzpDaz+cUD00Uo4wNITc8yR38vxe+km37vyQcpHGuwwNUiiGTt7WaxKIzocLYWP55SQqRa6h/xj97cuxYGcy8pBJtQaunePDoC+19c ... (46 characters truncated) ... 6qqJeNL2d/fX6IUJu+8sXg0M85Bu0B+D97j/7S8N4dK5ReUj7KFG2iZE19GbdZ0XkHGeew8+SW2dqO9/Zg1wkZ54qZY78+kIfAUetSTOKTF/hmvamOExauJhE8IMciKaEPLLG8RhcsXZ21tUmeQ==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '01376', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-10-02T20:52:19', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/23a9982d-2c68-429b-af4d-45ed300e5cea.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:44,710 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '6c69b6dd-fe1a-452a-bcde-1cae0a940554', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'SEP77814', 'number_leaf': '50066858288', 'dates': '2025-10-03T00:37:50', 'stamp': 'Rigmj0fztXwrkmPiun3NzgBpKmym8aLylQTu5l42Sv4lrZ7XhKbNAji+LA/GmZWl3Yla4pn49rgzLilVcVwqBcF8fKC0lN7P1VYxduuT5wmPWUDhg1tv+y+6V4tgp23/kJfcjDtzZEfP6cFn2OGRC ... (46 characters truncated) ... DSP2z+FL+fQrdDfbx7x0sAaWyETKWtTatADc72OLozZD3HLskqmYqV94wcpNNivYIl2Im1ZJoFCOqqdrCZ2syVI8HH6a6zRu5418g6z+N7bjUf1RffLF4uqC98tGBUOnfmXFa/AZkC4wH2gapow==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-10-03T08:56:54', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/6c69b6dd-fe1a-452a-bcde-1cae0a940554.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:44,925 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '918ED518-0EE1-4F89-B883-B9307E494DFF', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ECUH', 'number_leaf': '6360330', 'dates': '2025-10-04T19:26:25', 'stamp': 'JYOi83DaDse11EotbMZOyjylhhB73Zks43FXCJycooKKk4skP6iLLuY1BWog/sSsNw5kqHdzHTeGXqG0ATAiIBa22bUwoVvnNHxpc83ScGsRU6v5NL3KOjavbsANDwgdkVVK2FjVL1XWN9wsplS1w ... (46 characters truncated) ... cbg1mhNx6mE1QT3pQP8VKcowT0qP+vkFZ0oBa61TO0C/b4Kc4CRsnn4NqruOCnksR1INHFBy78374un5TY8/VoEFnx1FQSM/grM+2YjbwDeTcZcYWNjStBlNUnbbeaqX+zBmExjnkuFH/SbmDZA==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "Servicio", "descripcion":  ... (42 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-10-04T19:32:40', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/918ed518-0ee1-4f89-b883-b9307e494dff.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:45,146 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'F482A290-4F2B-4752-A626-103D18355BD1', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-10-10T00:36:16', 'stamp': 'AmKsQ2IbmbIF1UsetEF8hieH2E6EB5PDIUw4Gn7lpL32pCE7/6P2Owg9pTET0aZAl2Kc/HIAWEbx/26h6OGDF088jsf2mtm2i51fGPHZQuVh3OXWdiuIz/Mjv/DGGZtf4fW1m7hPIDse2vxN/Fdpy ... (46 characters truncated) ... YIsfa+p+1s1GkdFC5fBDOrkUpq4QevNKBjw5wzHBJYFqFHUdo57l7q0sN2CV2Ma2V5otszzrGFJ6PTuC5BB9Ip4IpSQSewR/iifRzbSBHohcooKSXB12bk87Vs4m+30RLXVqvf0NJb72L394QJA==', 'certificate_number': '00001000000719019167', 'certificate': 'MIIGwzCCBKugAwIBAgIUMDAwMDEwMDAwMDA3MTkwMTkxNjcwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (2018 characters truncated) ... nsw1t6vyde9q51O4AnQ4tMwg91lALUtO5dhzWmGv4bibfpJsnQVAQL9EgsZqRIn3xHRPm7BpkY+7T2yTPbZJFncGzl1TBpbIM06PHnOLoeD5gQdD+5Msf+x+BB6mgfQ2mS3pbi5TD7fr5opZMPQ==', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-10-10T07:53:38', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f482a290-4f2b-4752-a626-103d18355bd1.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:45,366 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '602B82CE-0FD2-42A2-A38A-E9A841FF510C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'G', 'number_leaf': '59', 'dates': '2025-10-16T09:36:43', 'stamp': 'eTG9DOH55wjB+bzJWeuA8TJNbt160jBqUy7X/YKRfQoCBI7JnbsNEhTAg5/egZubyeE/yZQZdd3A5wS5x0wHOJdLSwtyOmwQC+2978pLMkSLWk9/eEo5V1V1SddVTnCCgVzJzg2tMmx0UZybxyWtM ... (46 characters truncated) ... Otv4iNDVnvyhek3RVVd4XQ6lv67HnTlDFbZPmeNipVtOyB4fzPF6uOnCf+DZwRM9eBfI4P/IxTntElKtv4Ne4L0qac0Nk18bpA6/FWZ06VHFUCOJTpN4UAjy1R+dA3pjWKeEHz76gAVebVlJvEQ==', 'certificate_number': '00001000000518762142', 'certificate': 'MIIGATCCA+mgAwIBAgIUMDAwMDEwMDAwMDA1MTg3NjIxNDIwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1758 characters truncated) ... hcSuXfQFGX1hNs8k5LY6URRWb9yqf9YKt0jahJEKZcMZTd77cP2ez46akOobzQwOisFy+99GWwF/KFrXxI3CQ83u1YCOoJTuVTPpaDly6BmzKNYiePmPh6nM1zN/tVWGTHpXAwmhLToM4pkpPJIw=', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '3229.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '3229.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '01900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'CXH230209QV4', 'name_of_the_issuer': 'CHOIZ XCALE HEALTH', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122201", "no_identificacion": "price_1SIsVUGUmdYp5tCoy4N7A1T3", "cantidad": "1", "clave_unidad": "E48", "unidad ... (254 characters truncated) ... : "3229.000000", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.000000", "importe": "0"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-10-16T09:38:17', 'certif_provider_rfc': 'PPD101129EA3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/602b82ce-0fd2-42a2-a38a-e9a841ff510c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:45,592 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'a5e2b28b-7c55-40ec-ab07-edef6d7a6e67', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-10-06T19:24:49', 'stamp': 'UOI4934oHE9d/t+Y7/nBkpjtOT0ukiT+6yUXW1r5NklUHcB0/1qNCTsVLuj2hZNYGGiaqlA2tJyVulyRL9tNuArmqa3NDop6+46XNaOOBIXbKp9/I9uCgo3dxVKobrtTW/7sQa/rTYcrSxXm8LZfa ... (46 characters truncated) ... P4AdGoA0UjjNNIBJYX8MnBToKOD3fIA8Qs8KLUHs6D8aIDsatd+ETvTu1OuAXUvufSBWlQJXqcHEGCtikf1kGv9FPPbbWO5BexKCe2ZQ5c/lcbtsw42DT86uA5bnsUQezv273WgwKxZ/e0ai5jg==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '22639.16', 'discount': '8890.88', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13748.28', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 16", "importe": "22639.16", "descuento": "8890.88", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-10-07T09:17:25', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a5e2b28b-7c55-40ec-ab07-edef6d7a6e67.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:47,917 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '099b6d0b-fda7-4fd1-b9d5-edef6d7a28e4', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-09-04T18:11:35', 'stamp': 'a4LOL4bx1Mc7xjaqtg09IFTJwOJO0ra7X+nBhPpoWhZJoFAu+k5WcrhaOAJRho/UOaXeGynqbGJlPxRbK2AcipNb7F76KM+ahy4sTEjfZt7esTCLo63eHrST8uES1R5ni1dme2/N5RgM1tfFnvcF4 ... (46 characters truncated) ... +fMRl9D8QbGoTINBJTNHB7wQqVLDhS/0wyBmx+yzzTI+G/vt4k+R2DNNcjn+lOZjSzTp/uTYfAvKVTSvACJbjCV+hBwY3TfGwLNpvkDKzQ0Ox1v4bfSFKiadAY8L+KYZQWLjDhcRrgY6GOkys/Q==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '22639.16', 'discount': '8890.88', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13748.28', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 16", "importe": "22639.16", "descuento": "8890.88", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-09-04T18:47:33', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/099b6d0b-fda7-4fd1-b9d5-edef6d7a28e4.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:48,149 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '4a619a7a-f13f-48cb-8d9d-edef6d7a3270', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-09-19T17:47:07', 'stamp': 'Uwnn1AW6AGEWPOYlw5eE2qwhWLsnO5fabwkvgVpHxhKTAVDdxF2ZXYS2xh1wfbJ+6tG0Tx6rw0IbKFD7aB5WNJd0IfBhAGyiNXDkVqkwlT9YgYaIu3MtbpvqnoErzdK/H9HXASkNk05L945VAEnUs ... (46 characters truncated) ... Y0n2Uh45QZIdughHXWF9QXdMnS3dB7jEpY6BTPA9DdMdSIqiFbPWOJOnrY65Wf5IwACXB9pGprHMBeCdnuzeGYbNr+MEe+FHCwZ7gOmN4+1PWI5AlYY9YgxS52V2xDHKlpj/vwZXfQs0L6biiDg==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '26078.16', 'discount': '8860.06', 'currency': 'MXN', 'exchange_rate': '1', 'total': '17218.10', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 16", "importe": "26078.16", "descuento": "8860.06", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-09-19T18:16:33', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/4a619a7a-f13f-48cb-8d9d-edef6d7a3270.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:48,374 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '0e78a28d-2ba2-46d7-8c99-ed6574f927f0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '1063', 'dates': '2025-09-28T19:24:30', 'stamp': 'QYuErSmyZZSd96jSAcsJUdQpKdJ5zVSTvowSbQC0XmYNaq0TlWd/Lg+Igr6FaVMPB4/69+ngBfue9nBDBaHA2xvdi51NWiBG6Dw/yXI2QMRHbgfn9Pl7fw95eI2niswn1PoytEPUQX8P1q/k2b7Pm ... (46 characters truncated) ... YRncpFsAVet7ijzsN0VDiVKShpryAKU+ZHh8mDXDXfoQ4/Va3iMR912fKTmQO4wpzudBk5t0UvSRoF59KuR0W11kFokCl1WnK89rKKywX//WextROjLg4OUZF0As4jOSQYnQ8YwAmw1ug54vjbA==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (138 characters truncated) ... s": [{"base": "800.00", "impuesto": "002", "tipo_factor": "Exento", "tasa_cuota": "", "importe": ""}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-09-28T19:24:30', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/0e78a28d-2ba2-46d7-8c99-ed6574f927f0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:48,605 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '67CC749E-6EDB-4EA5-B65D-02E9429FAD6A', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-09-24T05:11:23', 'stamp': 'Ypi4Ng33JudPtSbJA/q0PXjG3kp8UUiSAd5vngfyuBrJrV6msHLp18CCmoP34miHSSQVDwtnPDhX1AKz+2pV0UY+qSM2aFmgcKV5uUV4DnNmdEOyFUfd6tuDscsKOhRXKHq6RWhNJvlQFjO0ieocZ ... (46 characters truncated) ... OsbKUcvBt/GAqJ11k5ApcsujUJ40EttrJOpI8aneotZ29ba/5jXYvQpN2Gnex5KHDxAhJxvtnv9NeMNGsvYFsitooa1wXX7/cccPFlNp7JzlN8pte+866fzp4JqFeVVVwNZvMJH60XNCBhrXYHA==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-09-24T06:51:51', 'certif_provider_rfc': 'SFE0807172W8', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/67cc749e-6edb-4ea5-b65d-02e9429fad6a.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:48,832 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'E1D028BA-B227-483B-9333-25C7462DD8F7', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190208', 'dates': '2025-09-01T22:54:22', 'stamp': 'nPoOCF3dmB+hdZVsPE/p0hMNWPvWJQ7CPbRveK0AEFg3/8NlVm27Wvq0GxNB+NO/Xm2YoXGQrOQsnqZ/9J04XJ3HjYH81Wewqn1mELx8ghmJ1UiaAd21vYLECpRCg3jzPrUa9elOvSq1FHq6chH7W ... (46 characters truncated) ... 4RMod3/b3oEz48mV2aRU++Td3peya7XgVmX3lSdsL91ZAobOg4P1AmpshQgX64tpEaemOa/iaiyDOObAAK9PiUxFM18LbkpQRRZQZ70H0Dap7DbMCiLFR1G7sCWaz6z7gNHBWW1+5dzNYkc6lkg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '01376', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-09-03T01:02:32', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/e1d028ba-b227-483b-9333-25c7462dd8f7.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:49,056 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '856035FF-360D-4838-BC26-F71A02BAEAC3', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190108', 'dates': '2025-09-01T22:54:22', 'stamp': 'GmkLpoGkSCeuTRoKTVxCfWodbAlkFl5iOdMaHR3qmcOUXmCgKqLlp7fXNBIpppJ3wlxj4iM5gWzpldEzqi/glP6B/RXEdv9tyVR+kgo+Y3dnu8OYclE8YzRTS6YjZqlynhVgaezhEGeoalh7l0sTS ... (46 characters truncated) ... rMQwNIXT+IUpFBt8Jd7pQdZBuLECTR3E4POT+t3Y3Y2VO7rXOPoJ6knUcLw1dQA1a8BPg568ErSonmsewSBa8oMADwMT/d0P0BUxXk0gMG2IwEkbPH9XLz5rflRm/5RQIiKqr7qbavNpfPINtAQ==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '01376', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-09-03T01:02:23', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/856035ff-360d-4838-bc26-f71a02baeac3.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:49,279 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'FB6A6E85-43B6-468F-BFF9-5D36FEAF24A1', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-09-10T10:19:03', 'stamp': 'G3qBhC1sewL3p8czsSYfSQGFaC73/v5osPEPytphe7blJjCYYUFbJBnwnoCv6V4jnv6a3T9f76qi0gT9gav/Z99aBp0WPELqlpOnwZC++dvtqO6ZvS1vFVAe68hwNxTHmDRt61fyDMT8J5R4YfhQs ... (46 characters truncated) ... D1gx0FdtsxfZa+nbPchKfOx/2snhqedRbgpFFQq/+5GSsFsyBx2dF2nH1JxtZDd/cNBiBtW2Dywd51cmP21T3b/A7Z6zrYw6ZS6ObuolEymDcdtXE7pcn5SJutRnFYYCOIeOZiatbNutbkiVPVw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-09-10T17:55:28', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/fb6a6e85-43b6-468f-bff9-5d36feaf24a1.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:49,510 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '9712B2EE-3282-4E4C-8C70-AF8682BAFA39', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ECUH', 'number_leaf': '6142572', 'dates': '2025-09-03T15:38:27', 'stamp': 'I1FUWtdB34Ojh63LYm+gfm43ed9jAazsLM4ZlTOUjuzdEjrJAy9csA+RlMfcBEsFVLdfJtgykUWBzJ+dZftPmXAQeqFQwSrk5KfrQ8iY0pljgCVyF845/neyuTtyHVArnYFnW8C+vhEwfWuEBsEwN ... (46 characters truncated) ... +isDay0ufH2o5K4SwykKyTHkIXZYBMeSqrv0abSvfriQgLCghC7j7kCN42D1aYhcgy3c0DSxGqlzbIVXnNFqMf7rMV32/JP/EjEc79tZNCK9LseDUW5lbrzAm6rk4SmtwPdyyRcPvX6ZVgwJCrA==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "Servicio", "descripcion":  ... (42 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-09-03T15:41:27', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/9712b2ee-3282-4e4c-8c70-af8682bafa39.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:49,739 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'AB118AA5-718C-44C4-A794-3960E704EA6B', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1851798', 'dates': '2025-09-26T17:56:15', 'stamp': 'b9serqsjhVZ/sJ6FabdbTRmtfQ9U8CMZJzhZEUhBkCpEZ58uLcLVnbQC6ZjZ3a1mwZ/A8JgV97++9w1/K13De1HrkKMmHa8yddku/VlHJMqq+LVQJwiAEELGuTeHd091LidHvAQvZO7SOzr0oPnZk ... (46 characters truncated) ... DJaBephB8Cbng/E10ICg+WJtizICkLCI4I2XBrOHk3ABcmOD60kZWWKkWD4KJqPbwm1I9XnomGHWVvM8f9wzWYIK/QxRuRJ0/I/SC3G2p4OeCJhKNgCBeb6zOgHyViGaUtp0UDdlhUh8kznlXpw==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "SERVICI ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-09-26T18:02:44', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/ab118aa5-718c-44c4-a794-3960e704ea6b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:49,963 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'a30226d1-06d1-4cd9-a43e-909c7cb981b8', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'AGO77553', 'number_leaf': '50066858288', 'dates': '2025-09-04T13:41:16', 'stamp': 'bS0I+AyHBMSSriPw0gd1xLSJT/kSojKeTGZ/qNW0xeiTyztWRZFxvJgKvRsne7PEKAzDLvM6uT5ZQoqn1cSfkysypOItsvClI/F/d3VEH7s9mVHYk/pp241vwF8wrPEBippRag+UKIuPevTKKymaq ... (46 characters truncated) ... 0dQjoscmiYnF5SpZzzTTqWEueVvnckyG5BzOlp3yKsvfLdN4K91S7jWtHi6dLWPNRtNTxraBmj0l8boQLG9S5byyhAzLlm5pnGsc0NtxBZu1OfkQTXmlJsfoDmnJMAGLh0nvNLmcuXFd3FK7thQ==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-09-04T16:24:05', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a30226d1-06d1-4cd9-a43e-909c7cb981b8.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:52,292 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'f7e38851-2f3a-4c50-8df9-edef6d7a4788', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-08-20T14:16:45', 'stamp': 'RlAxke68gDbSbZZhlga+buhMxvMQwBSp6dGOat+4R6YBxVLpsZy5gF6+8eegK/N8x3bMCBwK3B6New8KHmDk7RZ+ioS/L2yQhFaLxSUDH8WhsnUaq/d86EaWaQ7vU0Ob4foUXO/VdRVll5L7BewmR ... (46 characters truncated) ... 4w926EFh9ogcfqeXcwtaVtnNT7ebqS60M5K9LgEw4df93RV3jctsxl5xsNKTP7I92oJwPaxTcOdGjjVeuICn5WBcXpXnN1C099pAW71Bu/HIwguXtht0xb6tzWVTFfOEE1ol5xmZatcDmF8GEtw==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '30910.18', 'discount': '9605.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '21305.17', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 18", "importe": "30910.18", "descuento": "9605.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-08-20T16:09:34', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f7e38851-2f3a-4c50-8df9-edef6d7a4788.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:52,513 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'c6622795-8a85-404e-881a-edef6d7a8ee1', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-08-06T18:00:18', 'stamp': 'fU0fK32Uieo4p8la28LsEcdVYmz6KCZKo/V/g1PVzKjwf4Fpt54zgpoZ1F5OPZiDKIYjJ7zguY9FxDtcJpqw9lE5lIThgrCC7tbDyfPlUFiCsruRXys2m3sCfhLYlniI9CrSNnGxi195o14jlmmHP ... (46 characters truncated) ... dKeYBQhLhjdDjGf+vIFjKHl4xrTOYu4H9SAlvQQuPXpl4GzBBl2DHyK/8S7fr/80StkND+6Ff7bSUaeQP7ywvxb+DDKphKJaGj0tL9OX8yEh3SBi+w8O45eovNRUdIgB9XcEuwRbpLN2xJiXFTA==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '79571.27', 'discount': '21663.50', 'currency': 'MXN', 'exchange_rate': '1', 'total': '57907.77', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (36 characters truncated) ... 7", "importe": "79571.27", "descuento": "21663.50", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-08-06T18:21:24', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/c6622795-8a85-404e-881a-edef6d7a8ee1.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:52,737 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '1c07a9a3-9a89-4f07-9f02-7f65858e9e2f', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'JUL77390', 'number_leaf': '50066858288', 'dates': '2025-08-02T16:24:45', 'stamp': 'Sed/Fg+E+lNwy7RXKsXoECc+lqpJ6m8ja/LcqJbb/EmoyS7fyq1ww5dTEXgHZXjrDvQ2KTkfFNkEBzq8SEnFtEwCU/j9wVQTyszgTazfG+/Cw+8wLhGx1THagVu6c/S4G/5oMVfCO3YzU5G4UROkQ ... (46 characters truncated) ... ofi4FYTGmSLrL4PclDUNEojEkKdnaJRUlXvdp3b2c9H1JdOpFvl/ATCuEy1CgHwN/8n5QSroeok1c2D+wxA7RbCgxOZRuTow+PHxZn1qTGmO/02lybeLWACmBPLi5OG3avaeM6C01sGAOHA3ZoA==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-08-02T22:45:29', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/1c07a9a3-9a89-4f07-9f02-7f65858e9e2f.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:52,956 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '603303DB-4413-49B3-9E59-8636AAEA3A99', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ECUH', 'number_leaf': '5896041', 'dates': '2025-08-06T11:32:39', 'stamp': 'CCx3joLswOviGngsmWNgIJrrmCW3GdbWT7rB2hGi8YUDItK60DhO+8JRWmAAhSG8+JVcOMpzN40V+lFfWZ2FtfDoc2KTX53BGDHWb/hxahWGJF8LkvXX/3+7+rcuKhZMyU14KH4p6oN6HcCiAaiQJ ... (46 characters truncated) ... RpiG0mSC0DVyPFkVJAzaD3tHvbisgNh75QwnUVuvIJgm0wp18MuAjx8eQ3iCTFcwFCjIumu8HOLfEEUq7E8z3feDycZMR7LCuMb91uAg3Gq6OfqqP3sm5UmO0vcigZsA6HOgpKrMWDGuqeOYAxA==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "Servicio", "descripcion":  ... (42 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-08-06T11:41:16', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/603303db-4413-49b3-9e59-8636aaea3a99.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:53,184 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '4800B35F-5816-4B90-B10F-DF42FE054130', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-08-23T10:10:00', 'stamp': 'cs/2vSSw8jmr+OyWA14mS0SiZzueWj0YOLa8kU9n3Ne0FLsxqHpM6DgocRzs8/ziizUXRh5LTK+aa6umt5QXPBzP1UIv4FEueo+e7+Jkmt0BGa1K7yBaVQFqEgzQy7YfHl8anZqdZMXRa8nBJqnlU ... (46 characters truncated) ... nfniLVXc9xFrdL3XSBVzu2Vys43c+s7+X4HdYIWhL4gYQticSVAo+CvpQuAeGWbS6J+Q3mEYoTTjTusVD638DJLcOcQdF3NN5FA38y+jlV48RrJfq0EobzqEdKIRkbkFAYQLFWk1yfgTLmDszSA==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-08-23T17:33:51', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/4800b35f-5816-4b90-b10f-df42fe054130.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:53,427 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '0740EB41-2DEC-48D1-8458-97029C94F6C6', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190107', 'dates': '2025-08-03T18:23:19', 'stamp': 'qQIobM8p97d0xa+hFMIkyLvJL3K9DcqSzBz6rnbA2d2u2dHkKK1Mu1W/VasJUMDBDor1kvSjS7i+ZA8I74gPN10cuVh01ejINW6CzJYEnNFUIl4SB+LVpxEe3kU2Jxn+7SfVllEldtA04JfjyAQKs ... (46 characters truncated) ... a6AOU171aYya9i9IGS8/9Y8PXKYGI58PAwAYUysL83v5KH8bVR2+caaj1Ki74QmH0gTJ5+ouOk9/uxjvI34A6N0V25WP+GQjIy7+5bOVvwg9MppsBGtn0nALL3StquAMiPYFblZRraiyONoJtcQ==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '01376', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-08-04T22:53:20', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/0740eb41-2dec-48d1-8458-97029c94f6c6.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:53,650 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'C4D8E01F-C79F-4271-8A98-D3812FF4606C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190207', 'dates': '2025-08-03T18:23:19', 'stamp': 'ej8Zw2ZZdp7RIN0vUtX3JxAXnvQNXf3i3kiNpXFAztR6wMYOFVgFBpbRmMnltZjgPDqkAit0m/LnNsEWLJ0uiF0E/N//ASeCQpX7oh7lMqbRODXTgVbigmWbn4vlYPmr1vhWeRoH8OE6CZRbH3cY5 ... (46 characters truncated) ... hXPz0UVoS5ejlap7VGcSPeVaCDNPANVayf42ETJfPgPP4kHozRFm48Z9mryTvzC0YQluBE+vIqnd5bbaGKD1yKvJs9NN9cK5+kpMpE0ovINIKrcXzNdPJZfCsIDzvmXvzQ+LqHnwPWbgdxTQAGQ==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '01376', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-08-04T22:53:28', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/c4d8e01f-c79f-4271-8a98-d3812ff4606c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:53,893 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '383D4AD4-CDF0-4636-A10B-2B760D15208D', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-08-09T18:05:28', 'stamp': 'BvECEPFaB1JqDSj1SgS2KKn5TpHfUCXAmDEFMdmFe/+FTziXp2iC1GGH4CTZ/ys1ix+nj59Euxk4Yr5jU7nG3TTzg/rQanQtgA8ec20A/B50qI6DOgkZMR1Hkup/4IcrzC/9umFi44c/2uevu3S2V ... (46 characters truncated) ... eNgwvQzS4yXRO/x+6OPcyGDT07z9gkVxNmbbcCjy3K6oIgTZCutyBFZUPwR/vYwpdrUDaP6DxQCewlXgCSJR78VaxwbQpPBDeFJgIjhICA9fKFf9/hLltMeVamq0WV2bhmW1im4piN7JXoasqRg==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-08-10T08:01:01', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/383d4ad4-cdf0-4636-a10b-2b760d15208d.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:54,139 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '14C12FA7-4CE7-47D3-837E-AA2249241E00', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1787331', 'dates': '2025-08-29T10:18:47', 'stamp': 'cdqex1aOCmsm3xz4hO0reMAEHg8ySKiyoZLirOe9AjCMtnXtDlagG+oadVE3plEqe9dOg/LKW7MAKqbcm1KBlimrjF0qw1Y0v0r3j0BDIsaZCoNpqmIzjd2M6NGopHGuDaTf7gGLP6LauJWFa3di6 ... (46 characters truncated) ... zGMmI6DTA/tRrzbqAiWJChqdGXXLHa4M+Bqg8dgoRdi1o18YEmDKSEIEzMRvmIKsltBhpJDgvsojviZVkdtEb8IiZBaeIB6HYogERdDrwtxPB5nFgAsDflFW1Qqh8mZ6i3+qh1bQR+KvVD8qQlQ==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "SERVICI ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-08-29T10:24:18', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/14c12fa7-4ce7-47d3-837e-aa2249241e00.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:54,382 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '4328cae6-67df-419a-ae68-03a03f36b447', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '1050', 'dates': '2025-08-30T23:28:33', 'stamp': 'EgqZTW7ngro6JT/O4wd8x5/KVukDl6t94UAPhjQYl+T3vkpTIguT1Qu3TXQ2/Bl71iuWTysoW6aeGjkRSVHXFNHFFX1rygV6nxX+qyTWN4WYc3WLeXgzLOGVwQQE84Dxzl4nCXtowZIfMyAMd6AZX ... (46 characters truncated) ... 1Cirqgdff09Tdcf0tXTpD0+SEFrWE0n8uPuneov44kv7Wh47prbi//aVWqJ96cUL7Mb6PgRYvk4E9DZD18W/ppQpELcx4BuEBG6saRoTXl9Uth/pI/riU8zGsF1m1GknIal+SOrUjVEj/k47Sdg==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (138 characters truncated) ... s": [{"base": "800.00", "impuesto": "002", "tipo_factor": "Exento", "tasa_cuota": "", "importe": ""}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-08-30T23:28:33', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/4328cae6-67df-419a-ae68-03a03f36b447.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:56,714 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '48D9C0C0-5E2D-414C-9296-9B2819D56E56', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190106', 'dates': '2025-07-01T21:29:59', 'stamp': 'Z4Jky3pn8gGKLnGjGBTJ771UKiq3XRJqvb55y9Wemlg4wCgSPdOfnNEyhaJdGC+quwlqimmKo5xlWh+DK3ztCJSoc83V9cF9i/9a9pQaRuth1MRh0Olthc5grssWcR7C+tsztIHdle/VsDfNcmCtU ... (46 characters truncated) ... cPqwoj3NVjjWN/YeUAbVBhgrainOALVxlSVqGCwzxh8rzTpJKK38ntaxE1c0mcnby/PEKTJw0yHuo1qjLlvNUHLQuMXLEewCZp0/EwJpCz77xrj2MZVcnYZryik4BcrUZPp9HvqjTsHGnBtiAPA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '01376', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-07-02T22:33:59', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/48d9c0c0-5e2d-414c-9296-9b2819d56e56.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:56,946 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '17592B64-CEEC-4EA6-B3C3-70B3F4C18989', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-07-24T05:22:31', 'stamp': 'hJ7gOtdP8JX80y//h6wdtb2bpJKzhtUyEJEuYaxEV7BVvLal4MR+0uB4H+1efFhkGghMN4TRSK/GsjJArqUvmqaR5ClPec37zKg9SGNAw7CnG4bOK+64UHT0j7OBWY5jQ4hltwnvxHa5HK7iftglB ... (46 characters truncated) ... zlAA0G6IQVGchxhtLfrU+ifOMLmwWTXsOu4K+RjDAbkl799swBB1ZJ7jHXNSV422dznJrg264SePrXoAJ9zn78XC87dDdA5LvwpGfI2VYDIOFCmJv4jyOi/NZYoK93Qycpm/uxzM5IUTtJdlwDg==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-07-24T07:41:51', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/17592b64-ceec-4ea6-b3c3-70b3f4c18989.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:57,184 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'FC206068-66FE-4AF7-A8E2-1A6B3E612AFC', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1744189', 'dates': '2025-07-31T18:12:29', 'stamp': 'FdVfyrMkNSJL+E6kBTSiMIYBj1GkaB2OtVnGECVdvrGTIL8MHclspG8t6kBE3z/JvckWOou8jZncz6B1ujl0/RykVvuioGMUCWA5DItK+XljsIo65fh3vDe8oR7H1/0iDbZB0nJXTE5ZkE4LzqL4h ... (46 characters truncated) ... /s8rExrYqfdr2WpMTqAjPFswZMafKhFCF65MfTyFdJ4tHNsl072kQjc0wATuOtcp2YDB6hwY8RNnx+VZwXHwGeyl38u9T6ZKQrMdEr0w680L1ZUnoFVJnYmPZC5AlWDN/+ixwwGTZMAStmPz1jg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "SERVICI ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-07-31T18:32:21', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/fc206068-66fe-4af7-a8e2-1a6b3e612afc.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:57,422 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '8D9D7A74-487E-4FE8-AB8B-CAA0E481357D', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ECUH', 'number_leaf': '5806000', 'dates': '2025-07-04T22:44:38', 'stamp': 'Vlf60e8qryt/Ng9rmMLOQK4WW++DrCLmWkzbWYQsM49JTwYr1rYdrcyxSgc5XElBrxnp/x7chX2FZRr3KAV2uJq+GR1awn+UG+gwwmLUlhO9jsR4NSc6zpC1wdO3qR/SKyq9t1Apds5XTGsGxFkSZ ... (46 characters truncated) ... 6XknYLMyWsxBg7GJhUqikFuttryMy1E2dsoIChXIQmxn036SBgaPuuBAo0d6YWOnlHCMyjhyCMhDiIjDYY41x8yZfobJyzMHXil/8E7U3IH7iKeIAVfncLPwqK7nEjD5Md4fwz+FQVHU0v+sXAQ==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "Servicio", "descripcion":  ... (42 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-07-04T22:51:01', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/8d9d7a74-487e-4fe8-ab8b-caa0e481357d.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:57,647 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '830D960A-74E1-4AB6-867F-229E73EA2093', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190206', 'dates': '2025-07-01T21:29:59', 'stamp': 'Hq6QmKPlXBDxHDjkj2NfgBUkhOjskliwbX8kZMKYM9TVI7dbaG2/XymLq2QqR3e/ceO+da/ddVJucWTnDQmvNDI4QGzzPkg5/vXPUL4T4m3oiHy1LIfwm1nL94PJF2Qznct7TrWHi18c754t1CUj3 ... (46 characters truncated) ... oS8avEisafgl7e8+1vHnXW5rBaJqTF5DZEM5nwXjCGb39Lnix2WR9l/rp+7yao72Ms7WY5S1SEZK6tCUdy4c/X3NpDAjRLu/dldp0cBPPyk58Zc0m2fBPHdxKo/DktYuaCSeAuUk1J3xfMuTXVA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '01376', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-07-02T22:34:06', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/830d960a-74e1-4ab6-867f-229e73ea2093.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:57,874 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '4b771f48-8899-4a69-b626-79a9a10052b0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'JUN77252', 'number_leaf': '50066858288', 'dates': '2025-07-02T18:56:54', 'stamp': 'VI2usTRkc/LaXHIgwCVepOrtLip7pWyD1xAdo08bLEA2yA+UdvrOeemYOPSIgg2udCwuSKUAZf2Ycr8upYxgcqOTZ9ijibxDVqcx5aNZb2Bkj7vwgvyviXRZ2sgGiPqCSRwC5c0BGjYdS9sfG6WLU ... (46 characters truncated) ... 4tjlQGvR61h3A1o9h1u78F+zE5+qRMWRc+mb6EK7I3VfVKs7x/qh1kYcN+M9Q+iSVS0lvBf7dgTBd2w27agzhFRJUH2SvqLa6T70fi3RJA1Kl7aG8BcN+3/Ii3LXL3JkLUnK0w3eKDgP+8nFykQ==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-07-03T03:03:56', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/4b771f48-8899-4a69-b626-79a9a10052b0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:58,107 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '722657d0-d923-4de8-bf33-736228753cb3', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-07-07T09:33:24', 'stamp': 'IbXO4FnE/p9wW7lR2DYnRdQ6ggjzLCnds2b+8gsFip9Tc4n0M/SkXyezycuvRSTQjypoHRVZTwRyj9tvMHfAPi7Aq7z4luu2l7oW+pZGw35/I/pLbF6cCzz2x9WKFxwj9gQtiRMQ/1QcADfxTPKkq ... (46 characters truncated) ... NaIfrv1YtoJKeJxUtfznMWZzw5tjvzdq+Cze7FmZXwkyk6CUmii02K0bjfa15pP+ri7tyn8PCDq6fiwihlSpdVo4S3kexIS/HJb1Xv3ms5iA5eG1schaeg68rnSG3Tk+Ndh/EZOU4LuaPrzrXMQ==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8045.75', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13627.00', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8045.75", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-07-07T10:01:17', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/722657d0-d923-4de8-bf33-736228753cb3.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:58,328 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '6cd1fcfa-6bab-4d87-a191-edef6d7a64a6', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-07-21T18:13:40', 'stamp': 'Zo4bpWMXJSaTrThEzFUZrIf6fgrxyhLk5JBbRUS0lIAgm758z7KvqCezkQU7Tzco381WAT3lMIVNhinfFanhJcWZZX0JXVkEwpUoz1nvX5MBPyOjRfGBhI5ryqWLl/uBskJ5ti1fqchYdMjoYrTVT ... (46 characters truncated) ... cd59axH48MRUQhWylU6YcmiaqSDpFgUhoWB96VGuLmI9kLniK6wx6FifJYB+NrfRf2c8dE5MI1Wko8AyLAhEvP180xE8uYp3t0EULjIqC938uf5EcqxWJdnbOJSNMrSaAWfDyq9l6nTw6X8/WIg==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '25111.75', 'discount': '8056.73', 'currency': 'MXN', 'exchange_rate': '1', 'total': '17055.02', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "25111.75", "descuento": "8056.73", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-07-21T18:42:33', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/6cd1fcfa-6bab-4d87-a191-edef6d7a64a6.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:58,547 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '335bdf59-3651-4245-a868-fa4414043e97', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '1031', 'dates': '2025-07-30T20:13:11', 'stamp': 'V/afn5AfHHwby5GT1XlNkUw5/Vbx61dv2k+0cF3PhdCbfi0VFa5eMeXRodhGXnyMXyrhIh1BjxnMpfIA2DqN866rdPNbtAKFXIFmU6YkuyxRKsF9IYQ3+ysRrcLK+6edm3jYhDb03UEPmC73WgC4O ... (46 characters truncated) ... HoFZelheZjR/iYk6FLY6moyy8EpS82JB3iUZDbxoZZEFVKGjnRujXakEizsRJfsMfVg251XA1itUfEKohm7pozt7xY5y6qhEc2h99ctt0tNTR2YW2Vx9LtpHzy7EoP6xvbrK2wQ4a91tqP93u2A==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-07-30T20:13:11', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/335bdf59-3651-4245-a868-fa4414043e97.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:52:58,763 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '221C6D4B-8B50-4A8F-858B-6039968B8C0C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-07-09T13:38:33', 'stamp': 'CKWKydYpQMaSBTDGIiuqUT56lyz0gdWD53qpzsPX4OFIyjR5OgFcRBcdHEEatjlsKZ8DTA/1tYqt2v28omLbxrV+oij7sAxBDFpWr5VCFVk6Lu/zoEOEDx81JQ8zK/LEYVutO+zwQ4BnBFHPnGMsy ... (46 characters truncated) ... 0759tvziLutj88voDA1ZpGEG/H7mVd9RTHWVDV1E0LPvrB/78ul+pXLm4T+rsHdwjT6fUdfOmheHA5w5SspgDlTx8emXCXUnAQEIkIHc6M2AGBXD7tjsUaAkYuI5KyFYXZSyz6RqLfQ9iWujOtA==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-07-09T20:25:51', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/221c6d4b-8b50-4a8f-858b-6039968b8c0c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:01,129 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'EA97430C-F1A5-48C6-9313-1636796C29D3', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-06-24T05:31:00', 'stamp': 'YAXT+OmM+gos73la/DtOYeP5egl9jc3suRgqfOiRE2TcKimSrzVM2JCECw3dOXSVJpetBDbjn2dPyXiH0fZTGZ08GgHISPwKpYEiEjKomD+WkV0u+3t5i+LDisa2y0P7M3AHNLJaJ6im8DFYJqOY7 ... (46 characters truncated) ... Q8nK9+r3QgA1HpTWi1HEY61Yin5jYOH6oNT8Ge/UVn/QqnGA3PrmbkuRdJjWQmV7iopUKikJ0PD4WeNI+5n7ROc2J29DGvHNDBXCoqKC1Kz5wkme/TF1ZayGOKTzXzMzHncq6Afdi574joquA0A==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-06-24T07:00:30', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/ea97430c-f1a5-48c6-9313-1636796c29d3.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:01,348 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'C1A82DB9-ACD5-4340-9DCD-7B0582E7057A', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190205', 'dates': '2025-06-03T00:29:04', 'stamp': 's52gHPD8GwJHnkQ1GTaY+9ZgtqDGIDU2w+WlBd9Vnjl6O4Q57rKmIuFBgsKFBubNwiaZTgSiCHDvkWa31eDE0Jg9ms/w+4VkIdeXJvD2WQEHgr7/TlX/QU0MwbCPgRZSoUbZfwkqFjNTj0mc8ua9x ... (46 characters truncated) ... wn0qe+PcE5YpYQhx0Hne+BackyBqRimlPM1/OSbJkJ2At5gh805rUSCfbZhok2xE1ZBQOgGLf6w18ikubfKxG4BMqXLJX5O76nULT8GVw9dWiBlDHqNm88Mew/f0tYk2IqKcs+kfLbrkaCwldAQ==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '01376', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-06-04T00:44:10', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/c1a82db9-acd5-4340-9dcd-7b0582e7057a.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:01,569 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'cd500d49-0a16-4584-9ac5-736228750d76', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-06-04T17:40:46', 'stamp': 'Lx920qPC1fyiklj0V/INGB2X3kgGzGqbK0Le3WzjXCvAMHSjXhrk2lGFTURfBdfDSibIpuUwABpUOZ19jYWpqg1xRlHKQQmaqXA1hv6NgV7vrF/sdEh+Hw88gAjf83JpQAyfu4ov5CjD9/AqHwge5 ... (46 characters truncated) ... K+YDalZQ+gUUoRXrX0bYrvakRjfrfInv/6XtEJlU6XEX7M+S+27qnosZyI9qrPMltohCRLEjlne7rj4MtXBnZh94KyfBcfMgR3BG+YADQ4hLFEDVrOiUgPEJgJ/6WNH6/k2vfPfzqJCrMOffXEw==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8045.75', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13627.00', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8045.75", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-06-04T18:00:26', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/cd500d49-0a16-4584-9ac5-736228750d76.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:01,794 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'EE4B98F8-F1CA-4745-B7E9-0889F5CE240E', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ECUH', 'number_leaf': '5545263', 'dates': '2025-06-04T13:58:43', 'stamp': 'OxuLg2/H/7YolwKN9oEJ+B+rXy/UkwfZ6V7vyw29jKTsJ1I1iUvNlKSk516U0JbXOz8ePlVYkneh1XfMhnCojOn1NnvZO1fdmRWHJ4hIFBvuILpDtYOXzOHilLTwnsZjKqqMBijUjyWjVxu5shW1v ... (46 characters truncated) ... T3ErYA/L7Gp2VUuKV8X/NGco+dbZiX3ZM67BQyO+XCRhCjOTTW8om8slWZfW6JlMCHCCs0ou8Gems4L8osp+fNLQ6HaudIieZ0hhhF5HMF+Bd+N4cKCMgAeAAjPLfu+vHaqAv6Z4zieO0ueg97A==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "Servicio", "descripcion":  ... (42 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-06-04T14:04:27', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/ee4b98f8-f1ca-4745-b7e9-0889f5ce240e.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:02,015 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '74721d01-783c-4169-9e08-edef6d7a3e72', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-06-19T18:01:36', 'stamp': 'crCCEOA85BQlsod5X56VZ1j5Pu6MRlM+y1oFlOQEmd5cAozoGludOSZcvIxGFqcsm8HRfbVW2qtfBSLiBJFg8LjSf7yELfqadFJrsh00F/wAJdnBFPS2IihVyzE4G7sWn0pZAwHJezrrw6PE6kLWt ... (46 characters truncated) ... 1ku89Jc1mqCJNXtM7wUqNAII1h0oX1B7QkGXZtcwsGMRs+ohIAPYj0IdyqMR02tCZr+fd2r4ZJjRv9UJA50GFbI3i2HWH8Vua6PIQiMJYltdNMcZ6PloJKafWjEC6/rqhD2CRYKyaaRLwA7IYDA==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '25111.75', 'discount': '8014.92', 'currency': 'MXN', 'exchange_rate': '1', 'total': '17096.83', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "25111.75", "descuento": "8014.92", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-06-19T18:32:19', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/74721d01-783c-4169-9e08-edef6d7a3e72.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:02,234 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '020857DF-C9B7-44EF-9CA8-17FB03908B21', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190105', 'dates': '2025-06-03T00:29:04', 'stamp': 'kperYMmbp8BsZjmlJtF3/aFw8QP10YVjEqPqfxwnD2ZHFk0QDySkOdSJuVAomF+HUExEeDoh4EIdKwnaJ9UfAmczq0+FK6fAlk+LVkY/FjZcr8mgoQNt8Wmk5xODS4cPTfzjZRgwG4kmxojdB0X0E ... (46 characters truncated) ... VCR4H/cMhQW7ABojndO5IvVZTZ2hx01z1VVeJLkuY4U7HmDBhG5GfXYOhqZr652mapKPI5bjGk/0ahcRqf/EOFHCN0RgP6lKgxikCYOHvfI4LmQ1wmYYbGg3Z3zC7iDIM6XrtCncB2EL6rCEAzA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '01376', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-06-04T00:44:01', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/020857df-c9b7-44ef-9ca8-17fb03908b21.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:02,459 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '3BD519D7-3D82-46FE-A1A2-AC7D5FEA316E', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-06-07T15:46:32', 'stamp': 'F2TwrZoD4rSfJzgBFdCJC6QtZ7xWnKZY+uZcB68eY+UJRj7gbsst7XPcH8zHVsL0qbHzY+O3OHx5B0+POiCI+IxrpeWkhjwWzq14ERQxgkuA0ijCJIFFzDmOgEVQyjCyKPpF5UJv3fvLSn1YxfuvN ... (46 characters truncated) ... TJbI9ySYy3Tuz8mY3uM1esakGFRd/EXRQq0uDqHW3/Gs3nMrnb9HeTIFzylCttRadglNxwi5YJbhp/TgINqGtEEtYPoy1ou87TTWxn+L3YHcy0kA2CeDz1q6xpezjmpW2Ea6pt88YVLOl8xyXHg==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-06-08T05:24:12', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/3bd519d7-3d82-46fe-a1a2-ac7d5fea316e.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:02,678 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '743efb29-53fb-46c3-b9dc-29605fcbd707', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'MAY77090', 'number_leaf': '50066858288', 'dates': '2025-06-04T14:44:55', 'stamp': 'E9fwfyIJDGG93ZJybogaFP2792xDM3sZ84UTclItK0XMLAAncCS9VR45IHtb6k0DR5+qgt9M3hR+9gdv/8ND36VTQINwCFiOZRaognSf4xvhhVW1Td+8skUY98pchIucAUar8Uq+/I4drX4Wggney ... (46 characters truncated) ... 3wZI755jGMGoMTFsuKKhaScxmy1EmVhYRvURAS3MEA4Ej82hLMs4AC/PjU4TIHn0dsgqY3UoUSPZ/xvgGxA55XhTkomIIdebx33HG/LF6QQkPt0q3t8q9w5I0BtNgjkcxHHfRRWQmLRqKsbLTcA==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-06-04T20:35:26', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/743efb29-53fb-46c3-b9dc-29605fcbd707.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:02,897 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'A3064C28-F525-43DE-9D60-F45F1E855BEB', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1685452', 'dates': '2025-06-26T20:00:38', 'stamp': 'MCIurzOtQDTCGiix/8m+Yg2kPRTHXoB+842fOpkAccGLwRo9iE1Vrqxd3I5Zc4N2e6mkBuPL4qK2wudlHTwRuC/E5zKSZHBDrs1AEwuLQsTj7J7iq7KaIYb0IukYKP0BQSFbWsH6nPjqaxluebPJJ ... (46 characters truncated) ... HwUaKh4P5RYHsP1eC+2RuFvwA/YV1AzUaGKqx/kAxag3kGPnkyk4qSUcWSb8P+jsx3pWSZJ4ydoRICQ1lp6B9L1hrhh7TOpstFR0bisumFRBvqT6ZIiouGhB4aKLECKbx51X/Sa+fE56mv0OSuQ==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '232.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '269.12', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "MSI (3/ ... (146 characters truncated) ... ": "232.00", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "37.12"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '37.12', 'stamp_date': '2025-06-26T20:05:57', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a3064c28-f525-43de-9d60-f45f1e855beb.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:03,129 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'eaed7ceb-f829-49ab-828c-8c5cfa01d09d', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '1009', 'dates': '2025-06-30T21:38:56', 'stamp': 'f76y95TyUsKJxQhhsgXnXSj/SM6Eq5wCqv061cTXW4q3PjV3W8eECCCYn6WwtOZ2Aei2rCezkcqtyOHvmAXteO6TWQ7hJ7Z7JZ+AOhoBmMcAaUfmb1tGXKY4KM/NPDSsLUrGls4YvU7Vngms71bo3 ... (46 characters truncated) ... KiPwhInY8+rDUnArlOfOGHuWXz6QqFnjPS38V4+dqQHLwMsEE+MGZvwF9B9H4wqI8VZsx81DObOnaK9+hBCd80bE9/NmVfnKyHs/u6k2K8x7hpRAAdgrpJlqf09cxzR500v5Ey6D6+6iq25Eslg==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-06-30T21:38:56', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/eaed7ceb-f829-49ab-828c-8c5cfa01d09d.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:05,482 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '5584BCB0-8DE7-4CED-A94E-E1A53343287E', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1617034', 'dates': '2025-05-30T19:39:02', 'stamp': 'ctHleSkHbZYXycmZhuvYt32U+LiLvNXGmAwrI7SZxi5i7mYw8QOFtegQlay5+NnRgxvy8sdeRFBUG6N4BSShPSEMtNnhNZpNxa3DUbI53yfw+3KQaFMcSFPCCVZaDC3uOGfuEx4VFRGUEVY6hkQ/k ... (46 characters truncated) ... sUkRM/3tGY/ONnT/igYcfZuavr9ah6UE5TK/yY6mbbppMCTkzQYD0JAMylVAyQFuipiFKHze3OKdyStY6+JeqsJ6SDx0Gkmvj58FuG3nEgqAZU0+bsPE0jrPtyeVdpf/NvTJV4CmKnUqBR8Qv5w==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '232.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '269.12', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "MSI (2/ ... (146 characters truncated) ... ": "232.00", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "37.12"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '37.12', 'stamp_date': '2025-05-30T19:43:54', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5584bcb0-8de7-4ced-a94e-e1a53343287e.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:05,702 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '2A42A262-4EBC-4165-85F7-BC2E103FC19B', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190204', 'dates': '2025-05-07T09:36:07', 'stamp': 'a6hY+WHq5dqwUWMJu3qEqCbw1Q8oNpfZRCG7SZN0PVWVw8Kq5QQEu64QRRTTH9zrkp4HioeNDC3FifV8Ixe9t+CpJHTvcyPwr+roDVryYtKlDwp2yghcHmIz9HOkyBVjVRZsN3bLvWTrNs6R08/f+ ... (46 characters truncated) ... FReQ6EKZ+zPEIQCfAvwZznfKeohwqGemel0dFfmzGsOy1IFBkWYzzoAcbfoLy6usaIeyrs5Gx2oBmQLmajgptrL5rixwI28TyH7mLUfDJCWgVWDzbGC9sCQhjfsH/thUL+WvKLWlsh0W8zbdRQA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-05-07T11:20:45', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/2a42a262-4ebc-4165-85f7-bc2e103fc19b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:05,921 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '46A5B74D-DB99-4CBE-820E-D3F584FEF527', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190104', 'dates': '2025-05-07T09:36:07', 'stamp': 'nkrqZsG5T+ml1CJ9aJVxnR/vDJTFHHES+Y5AbxKM3ZM7KEtPsBrKfWmhULqTD+7emCYK9tZKqvlarGjs7+26KeZplvmCUbsJkav+TdzVN1YFuLrnyMr6ZdqWU1jQ7WoAvaO30KkUq5+lQVrH4zjvG ... (46 characters truncated) ... 6QAK59r0kS4BMU74i5huocYLNU6H4RYzy6sZjtEfIlT20KQZsVyeuKf5GYk5bxLTozFDMvE08Lhbt0RwlRnFRqhIYU6ckBAa95+B+L4f88bhnWZP2i/jE/i32ahHlUFkHfmkm+3T6f76kUJckaA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-05-07T11:20:39', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/46a5b74d-db99-4cbe-820e-d3f584fef527.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:06,141 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '5BDBD974-1D1F-40FF-AEE4-23C38080E4A4', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ECUH', 'number_leaf': '5356850', 'dates': '2025-05-04T02:48:16', 'stamp': 'QzK07QzH2nxLzSCFpUMexBYg3x+auHVsw/vYKHlye0gtzmHocZ17Jt2+BMxIDGf8Pgqsysv0zls83Aonr4JJ5HyCYx/xVRK7qQy8x3GYJId92KEEQSi2Us9DbJrWGn2DCokV64gcDsxvea25vs+Ri ... (46 characters truncated) ... 5tfzMrbh9aLwlHAojoo21zy3StX4MUxkNVrJjmipNsGKidj5iEwJjzp55207qdmwtXCBV+cRKfT1Ydj55OCYTG8rmzcMSVze9EtuIHDZLkeOIucHZXPIwUb6cYeXZI+RwTAdIfkxcJETMpmfmzg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "Servicio", "descripcion":  ... (42 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-04T02:54:27', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5bdbd974-1d1f-40ff-aee4-23c38080e4a4.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:06,371 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'a7fa07ae-40da-43bb-9546-edef6d7ab2a9', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-05-21T09:16:28', 'stamp': 'QQU7Ov4WRUvBA4DtDPMFsvmn6NJ+wlkE4kT4bKLt6q15PT5hYU2mV3z9nIq0u8ncv+EPKlFh0fYaBpTPwIz7qhege7Q/AgbgCcpJoA+W2KUKhiEe8sY4TTHKe/rU5lLnpN4BSAfadPCs46D1CxTi7 ... (46 characters truncated) ... iTGy3xpoCGiIXTkMzfJff9FPRxZwQA6IqGcE1jkpaZGF26A/3StR0ivH4EuAZQAjzedKaJ+yVbKnVtL+J+TELYVG/IR5LtXvD4IiwJSHx0Ea1jG+GbFKrwagmTQ5Vlg3xI5m0Gk2yCK2BcyF5uA==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '25111.75', 'discount': '7831.56', 'currency': 'MXN', 'exchange_rate': '1', 'total': '17280.19', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "25111.75", "descuento": "7831.56", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-21T09:45:16', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a7fa07ae-40da-43bb-9546-edef6d7ab2a9.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:06,592 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '48d10eb1-0a95-41c0-942f-edef6d7ae487', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-05-22T13:22:20', 'stamp': 'EdIKXkgQzUk9Ep8g6TJIopNexzG0J3WXvecdheOz5bwmtAbWJZUylTibHHC+IRzACWJltKlCkLSSrZfpZUR4PLI+k7X7nK+R9xCLkTmAMEKv3AiwegNUVD7v6Ecq7qFMhv4L75KYiwikoOKO/BgfX ... (46 characters truncated) ... bRkZRggyoZcKDjMIYDxbEU3yavR26L6pE9RNnfAh+r5kq5q1QBtWiN+dqlsK25GOClGLwHktLISpO7uES/WfbLRdPuyv9lv5WCUFHDduyBaL4pL8x2pFVkQFDFBPUTdS6Qe1G/PhiIdmtLfONYw==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '2111.47', 'discount': '10.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '2101.46', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (31 characters truncated) ... 11.47", "importe": "2111.47", "descuento": "10.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-22T14:27:16', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/48d10eb1-0a95-41c0-942f-edef6d7ae487.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:06,818 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '8F226EC3-D095-4886-B970-AEEFD2657E5E', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-05-24T07:15:20', 'stamp': 'Yc+4Y0JTRlFIcZIzXfo8BeU9ARqvTUY8BkHZo6Pq55gpNtnrK6xKpOJRPjGGLB6OYWDz8j4XF/gcRW5FZ+8+WaZekjXvA2c0Nbn2I6ML6ZQmJgwgy0G4T9UqbQkeS3I2wrQsUi6W98pc26iD2ITsz ... (46 characters truncated) ... s9w9FXwdZdAtaaMY3wmmVR2cHuiOYowvJLsGptIg5uCsSSN0Cn2GSeoQNLCJ+nkLnNtbjUw2FMF5Q8eTCBB+x9FPvCATctiB/H8EeT2MmnJgNKRTHv5ljZtUrfmf8/L489KnuZAGMKSD1PMRj3A==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-24T11:41:39', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/8f226ec3-d095-4886-b970-aeefd2657e5e.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:07,042 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'a5190dd0-a8d3-4c3f-9f07-28543b621e5f', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '973', 'dates': '2025-05-10T09:32:13', 'stamp': 'IGrsWkoj9zjBt4DioapyP2NuyaAIdu5G5k/CKwy5OGbvIIsqgO4RSgEqV80P4Pn7CoIPG5wFN5feZ+5g0QWpMPzeBcuwddDDIRzEXlZmCqaxif57jOEvLPgJrgX1L/w70YsA6B68o36dEj5PT2deL ... (46 characters truncated) ... EMhVpQh0Z2veR0gSnrFekZo1NTOf/nDFYFvS3i77sms+50wwenP6GrUbGJX3SS9I7Q9G4DJaNoBnmVKViRYDEHlTDXGUEijI0RT1hcjOgjIU6rBQFVQ/Dkv0rTMp0i/Bv9hpM7UCP4qvupDXC3w==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '1600.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '1600.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (45 characters truncated) ... : "1600.00", "importe": "1600.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-10T09:32:13', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a5190dd0-a8d3-4c3f-9f07-28543b621e5f.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:07,262 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'db30d851-8509-4f83-840d-c8b2a6a324e1', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '994', 'dates': '2025-05-31T16:19:48', 'stamp': 'U69NbbHSFTI1b2gMAeGUaaepx/wtZCDLmM6LA+GqKt1LWrmpz05ZuVrD3Szr/gO6N6KxWiFRPyfd6ut2np1hYJrHq+/OE31CBHVO9KV4o+sU8rOFQ8aqML45ufPOITutuyUbQosyeAR6DcJX1VZ8S ... (46 characters truncated) ... VQZ7E6aITLZr9NnED7D7r/5GODmIZsw3b/dTlK0HLa647ToaPxCUTnJcLJx56q5bx3M+UTKkdm4nDDCEkOJ3sqnyrXe25WCs5sE6Lyn/L2EPGs0610Oa0ONgRVA/ifH1mroz9TEfHByqozlK+mQ==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-31T16:19:48', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/db30d851-8509-4f83-840d-c8b2a6a324e1.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:07,497 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '221cc71f-9ff4-4f3d-99e4-84dd0fe4a3df', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ABR76927', 'number_leaf': '50066858288', 'dates': '2025-05-02T15:52:56', 'stamp': 'D+J5rIeToe0QFv7pmnv8Uq96Xka++3Xxrb6JSs51NsTSIl6FmrbUHGYLDzNPuaCwVp9DBwW7QkpRVvnCco7HnX8YKAOJsJ+bby1MpFniHBUMzPuYdOXNmu4jg0LcT/NVcS2DqO7c1x1aeJGT2V5pb ... (46 characters truncated) ... C1Uo94yRS9WHaNXfrWJAD0Gg9byNDM7ksAPejjGJpIQGNWt1doXxwni3/jrdVmDh3aTNZejJs1s9Alo/zLl8dGK7qhbolFSmMhF27WyAnHUIK1Vhp9/SIWeCdkun6QvcTJk/S1W9hx3eIL4QV6A==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-02T18:20:47', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/221cc71f-9ff4-4f3d-99e4-84dd0fe4a3df.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:07,720 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '6E64C893-E595-40B7-9040-7AE139822970', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-05-02T08:02:23', 'stamp': 'SUboNfLH4uc4ZzPni2wMMJe6hVQz3LeQrJ5AiXPthWbN8k4LWglk9+e6CEBD8xF3M4JcP7bmXiRO2I6ZGHFRitxA0XyL1+J4TjD7gxV+XjsUKLKB60Ruw0ozge94Rd5fG/ODKIbCmZ9ZKzCo2ByuK ... (46 characters truncated) ... JsRpaqWyonWdhxKBsWNRt1bPeIGPWkBkrCkFpn0ppB3JvXsIyfRy2tisINVV84o3D97wxd48EzLK+XNA414OcWDFi6lOO7fWFRengO5+GPjfyRG2gsbnaEC+ldWTdhNV+gQYst5PL+VeE2nyjOA==', 'certificate_number': '00001000000518762142', 'certificate': 'MIIGATCCA+mgAwIBAgIUMDAwMDEwMDAwMDA1MTg3NjIxNDIwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1758 characters truncated) ... hcSuXfQFGX1hNs8k5LY6URRWb9yqf9YKt0jahJEKZcMZTd77cP2ez46akOobzQwOisFy+99GWwF/KFrXxI3CQ83u1YCOoJTuVTPpaDly6BmzKNYiePmPh6nM1zN/tVWGTHpXAwmhLToM4pkpPJIw=', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '4728.45', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '5485.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '72830', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'CXH230209QV4', 'name_of_the_issuer': 'CHOIZ XCALE HEALTH', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122201", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Unidad de servicio", "d ... (157 characters truncated) ...  "4728.45", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "756.55"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '756.55', 'stamp_date': '2025-05-02T08:02:48', 'certif_provider_rfc': 'SAT970701NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/6e64c893-e595-40b7-9040-7ae139822970.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:07,939 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '232E7F96-6F73-4D3A-BB48-75907DCD5387', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-05-09T08:25:38', 'stamp': 'i2NXIbO6wrOoo3XbNxMOJojDJQsDgT1DrTBM6x/qfjmB56/lUBwMUFKkB3o0ReBqBRWrB9Qq5h6KLaq22zm9xCtZdETvX3xH/FTuJ3Mbqgyr/deULk7x4ubkSth6/NTCNzY7Ht9QH9DeSOeyREOke ... (46 characters truncated) ... 642VXi/gBdXRZSCT15Hv0iojZQkbNaTw0+tyjeKIJKywwXVoMuPc41H2kclAq3oe4+ojd1E+8J4JGjBWHrdRZbKM5v6yRvD83gz7x+9t/3+jr02T/XFcmN9tzaHiyEo1KFRoMkYFRCJRIV9SUgQ==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-09T15:27:35', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/232e7f96-6f73-4d3a-bb48-75907dcd5387.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:08,158 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '509977a7-ab40-49f2-9004-edef6d7ad0b8', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-05-06T17:08:06', 'stamp': 'UfRb49QIelpVlSCu9G3lYXaFm/z6hgk7g37UTpjVtKbBojvlh9Q7O+C+YTYf87vjgXNAyHrhY3pMMVd7vxnXSNIgh/DujixMpP9M+ONi4IF3eiunzFEGNfFiI2DHJxh30dol4IMAJlWfml69CeZYc ... (46 characters truncated) ... 6dMdl1/yXdTVlxnGwQ0aXGPBNxSIT4Gzm9Ft3cKDdT0wb6QzTUEIZ9pAfEvrbYv3tY0+y8rhHbiCrX8ITJWHo/XsxxGLtx80PCtvbGjqKVMGRhtV9hzastnGHv397/ie8urD6WeRgkvWOx+TmKw==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '42688.75', 'discount': '13542.23', 'currency': 'MXN', 'exchange_rate': '1', 'total': '29146.52', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (36 characters truncated) ... 5", "importe": "42688.75", "descuento": "13542.23", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-06T17:41:18', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/509977a7-ab40-49f2-9004-edef6d7ad0b8.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:10,493 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '7412CCE8-1545-4C46-B656-C610A4BDD052', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190203', 'dates': '2025-04-01T23:20:35', 'stamp': 'noLUb7vDA0A9smcKPZgC/YYQd6sGnyFGlg4yIpAtVgPsw0aLyXF7RpfYlF3X2Iv8XhQwaJy5dhNa/dTfTkzBSvtZrokdpy+tTiGOCZ95oN3zn+kHw0TuqcNbEX0ozuqGrMpTiolAW141Rxb+5CTr3 ... (46 characters truncated) ... Xwd2kDQ1J/brYgZfQxSC6dX1LNpFw2B1gkjbU3WWsnWajzcr1KmWB3EcG0f3oltpuD/jTa7GxxsEY0Bmq/9AP3uVAbRtcNjjm7IhRwAC8tmR3nOGYK/V8N/Yz7GMn1myrHeC0plPoFuBy2cnJqg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-04-02T23:19:00', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/7412cce8-1545-4c46-b656-c610a4bdd052.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:10,718 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '661e2037-32ac-4369-9d62-a57e5ca51f08', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'MAR76708', 'number_leaf': '50066858288', 'dates': '2025-04-02T17:39:31', 'stamp': 'f4Kpop/WK9jDemMSo3bMzkn286TH0uHk36mVfoAFiUXcwrtRodlNEGSnyQP2ZYN9hduKvu56SqMLQQBIs/R71MWNHw1oidiZG/DRV3VRbfid3oQ1gNsUtP0hcE2kDbX0KqvgwclxH+JY9yUrLodUG ... (46 characters truncated) ... q4PSEbThc3Baj06QKmQBZghkBXCiG4xrTO/GsDqOFZxMPJTv+W2RTKuq6/z3LMlnakagk7z79h5rik+SEc//EW0MRc6JGk3aKAmRkeO4I0jVq8lU3PKUKC3maorodU93FRw2zyu6PP3DBsaAy/A==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-04-03T01:35:51', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/661e2037-32ac-4369-9d62-a57e5ca51f08.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:10,937 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'D4A735D6-5656-408D-BAB2-9904252A3BFC', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ECUH', 'number_leaf': '5144137', 'dates': '2025-04-04T20:01:00', 'stamp': 'ckRj6OUXaLiRWhosARkfAoWhGjZyz0KA9th95vcRCoIfwTrApNr+ugrZ4AHvDc1UZQMXxC/IT07nvIJH852v4CVdwAbLL9IOq4UOVlbvgI5Ns5ZjD8WzV8eDnLaOyLw87kQ8Pw07kBM8S6nBhsuCF ... (46 characters truncated) ... Bra1he0tX2sE7g6Moa+pPADivxP0WVoH84v69lWA3nnAtzi6p5/7YCI0qq8bw/FMR9pPkoCvuXmBVVhyPwx25zewddHNWT4Wwgx1wCF2+4o/g3rvjjMSZIiaDN97GLtr0rjcSAf/CBS9342Afpw==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "Servicio", "descripcion":  ... (42 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-04-04T20:06:50', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/d4a735d6-5656-408d-bab2-9904252a3bfc.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:11,164 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '560ff8a5-8834-4915-8490-edef6d7aa80b', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-04-07T12:29:45', 'stamp': 'PZiEcGyV9Ywa6QgAdK+vJ5IorLWrQCucVziuZG/4ZSfzaMzCKICkQjMiiZmPCi45ULs0WdgdrzwTnDoJqEgP0oXc0nCb7BhCsh12jfHDd7y1Rhoxm4HjagaysLXGDJu4ZBxWN/eTe3EnbRDh7X0yJ ... (46 characters truncated) ... O2jXB+QRvIMOGLhleV+wsGz9kAj5wKfGy0S3BsBL/nqgKIJPHgWdho2jmP0yL2pDTg87rit1cxxD6umgm4RB4igtaSWB/CZ3TLM4gv+TbH7oddr3xDfUIsjI2cIsjvq5/m16+ovhHLW/J+UMniw==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8447.34', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13225.41', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8447.34", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-04-07T12:45:13', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/560ff8a5-8834-4915-8490-edef6d7aa80b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:11,383 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '23E46B0A-55BC-470D-BE7C-7907E279045B', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190103', 'dates': '2025-04-01T23:20:35', 'stamp': 'log2rz113uZ7sdYdaAgogGWFo+EAJHuUm16DWb2ndRCkR/Ha4q+8h4YT0G88aIYwO2G3yzDVM0A1t8dw1/4do9g/cg9d39iLcIRD4IKGFLl4G29Yt+67wqJEGYwqwzmES7tnBMyIVp/ij2VLfYMT2 ... (46 characters truncated) ... nCJN+BELKudRIGp91ku49/8yID7YocRO1lnWlk6b55HmYtj8HEz0Bdhir0Rmi3eP45JpvPdiDW8Js5d9sHc2RGMhLhQkzGcsbV5w46KMZmIF4K+Bybs6RjffJT4XxnsNWhCfUsyeBsi/C2M/8nQ==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-04-02T23:18:39', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/23e46b0a-55bc-470d-be7c-7907e279045b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:11,634 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '7187F809-CAFF-4201-B044-55418E0AFD0A', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-04-24T04:49:35', 'stamp': 'g7hXbSBsVffBU6y74MA1fQ7K8s3N0EFvmojP6sYNXrIFaafkhBymhMSGuT18nKiwjgd+EySwzr+Y23PHRduoZe41ADjqCwWB6rCi3mw59QuC738bhssrDb+QEJrC3JIODJJUxga4QuTOZDKfXGrSj ... (46 characters truncated) ... SWSYC85OnRyiJBcjOV+FAr8nT9NwA6TVuBLTIixICkt5ZSEg7lksMC+5NZhhEALxj/WDonsBPb+kq8o6VCqaCtoT/LZS5Ls8+3LJd0pPwp2G0OsATUaRk6L0dD8ct5GElcSI+WqzMP5KkIXv2Ag==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-04-24T06:10:43', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/7187f809-caff-4201-b044-55418e0afd0a.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:11,876 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '0A169EB8-592A-4FC5-AB74-BAD39B5BE2C8', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1569919', 'dates': '2025-04-29T14:25:07', 'stamp': 'aoDTu67N7teT6CLVyhsGIS+KPkW2QE3cYKYiG5VQ5JKSqviufhlXEk+wvj/x4zI8prjcC0YWCI9nCFIJ2H4khqcBX7EA8C3VAJtmhFdNczsdjhhNY9euUUuoa46EzVsP3Bg2hB5daPSD0U50LdfNd ... (46 characters truncated) ... zMP72HphBqjbkbmLoAitvs/ovXfE8+xh7lHQaGzxKdKdFXjapP5PiJjiKr/5u8ew7STxpsPVvPyQOSnzXQRIosBMb9QKu33FzdbSr3Ha1NOkK/haeimoKJjktgm9HTnaAO1unIzX1ceM1tnbriA==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '232.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '269.12', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "MSI (1/ ... (146 characters truncated) ... ": "232.00", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "37.12"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '37.12', 'stamp_date': '2025-04-29T14:31:09', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/0a169eb8-592a-4fc5-ab74-bad39b5be2c8.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:12,103 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'D870015C-100D-4B49-9D04-AA1E9EC2D8A5', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-04-09T08:49:15', 'stamp': 'XHEcQXmU9AQgOqPiBD0suB8yYGzZqwyJ/d6SNxwPeMZD/Sg9C3zhGYFaKZoN6PZ0pvKsJRUUG2ND1G+q5iTvjhIGxssc30nZ6on4NO3mTPlCiiCa7iEL/nZV6FJ9Hv52X9munB3Xzxo7jqO+FaAZO ... (46 characters truncated) ... 8R3g7rVrfca/w8F7uzlQ5VVWocWAXbYv5ElKBEmJcQCWYF5mRzGFqElOIbya5TMG8PO+KDL3KKy3T7T4FSWUhYQZIEtirNSZJpf+k8C+wMBijYFCfss5zzQ7aV0v/vyBnXaYHP8d75MKasIYtGw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-04-09T19:20:50', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/d870015c-100d-4b49-9d04-aa1e9ec2d8a5.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:12,327 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '7be16617-28c8-4aa7-9c36-edef6d7ab2b6', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-04-22T12:45:33', 'stamp': 'Au5HV+WPDVABWIPgU4LOiwT9Vk+UMCBeYCbT9KZY6mb+8afh8KDpe8t0I4aeLFHhXC146YTcR6EraAQu2azBCo00es3hWgFLc4igQtRO3Aiw4Up+3g8CXIBFp1TSNE/ElbVkrWrV8JAoBmCQnaZK2 ... (46 characters truncated) ... IVWEHLBzRsoN4qRs2DePLuMv4lRD0GCl00Bi3XgP8oCbX/rJwEWMSffD7me/Kei8P345mFvckecQC4fweGgydJk9WkmPGuLNBCbxtmjqYEQGqtrOvuzSQ1xV+lKz2/1GdTLYqXz2+5ysg3q8fDg==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '25111.75', 'discount': '8416.51', 'currency': 'MXN', 'exchange_rate': '1', 'total': '16695.24', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "25111.75", "descuento": "8416.51", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-04-22T13:07:17', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/7be16617-28c8-4aa7-9c36-edef6d7ab2b6.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:14,649 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '623C2FB4-27FE-4263-87CF-FA983A82A653', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-03-22T09:24:26', 'stamp': 'Q3jX4dqAYAyWJttwT8/T8SpfFvtjR405pOQqUm6lByQ8jNfX4o05p9mk9O5be9THNX3dFKHNT7/Yc6/Cb8Zrx4o1zu9NabrUCVPZ8DAdSSN8LZ+paobLDRgXuc351wy3xsUkAC9W5ydRrdk7mewbf ... (46 characters truncated) ... tY2kPDv8RDfXJBzo93rbJc60CfOQWqW2OqXpZ0eYE078HO5qVTXoEbYWY6s3Qg7WT4ShsruIOImEErBA112Ef6n+WR8vcD/8802st95yGsrKXomM7IvZyHwRcy7+z1tQltRzOgo2n19q946/yyg==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-22T17:04:16', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/623c2fb4-27fe-4263-87cf-fa983a82a653.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:14,888 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'F693F17F-DEC4-4BF1-B794-740BEB0E48B0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ECUH', 'number_leaf': '4943269', 'dates': '2025-03-04T11:33:29', 'stamp': 'HpxHZOJAc/NgU7+gH/+wovn27wt1brwJYZODWeSiv9quM4DdCOsePJk7SERvIJeCeRbuTvffaiiXn2SGX26L0xbJPOCi79Hv6tQreavXlaXLGAFJo2aMLy1ULiqpl/KHQUWpn4mmWMws/LDLtMcKP ... (46 characters truncated) ... 1ISj7NBLWI5b5dGbbgopMPc9L7UyTnndY7yw8+GflY0YcDn47d1KQ/hTgMn3pN2SLeClSSLiVZV5ECkZvqMh98y+lhOjZ6WThxQepcmyTi0btYAFKJR1lSf7r4fCTQdkCO5+tQ7h5aIiJvKSYlg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "Servicio", "descripcion":  ... (42 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-04T11:40:56', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f693f17f-dec4-4bf1-b794-740beb0e48b0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:15,108 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '11C8ACE6-FDD5-11EF-A46F-018E2E04B81B', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CSale', 'number_leaf': '153125196', 'dates': '2025-03-10T11:28:24', 'stamp': 'YH5jP2gZEIBDFM301E60bE7YkKuxgpPnZIqVjpcUe9iJPVY5dfrqUQ8uuq6qVELnQKU4szhEb6q8DlHO3zjhtC252IbPvA/PL7+UB1Lr9AcuzkoOZtUfU8F0mrYufbwMHZlKsv9F628H3HM6VY9w3 ... (46 characters truncated) ... b97fl6UJioqbrwK2NlO8fYmoBXpc/ImTf96xamD9TA0uOcWLmH2/Xbnnk8x3t8fwwinuogCD2L8hrhxT54bx9HZLOwOwQi94nmPcV1Z2PN9OmObCdLn13QTzjHO5lGg4ifgxXlyDW3s13Owk+ww==', 'certificate_number': '00001000000518142818', 'certificate': 'MIIGPzCCBCegAwIBAgIUMDAwMDEwMDAwMDA1MTgxNDI4MTgwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1842 characters truncated) ... OUgofznPaNWKlbbKsyKjOKY9xz98k60myRzTUoJ8ynB8ezOF+MSwD9meYp93hgZMaoNT8XOaEYAhqvCUPPklJkzCf0UM9OopvaLGt7tazqTWhB9JbZzl3BIVYl8GBB28F+eEuJq8chQYEsBo64w==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '625.29', 'discount': '22.70', 'currency': 'MXN', 'exchange_rate': '1', 'total': '699.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '11510', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'ANE140618P37', 'name_of_the_issuer': 'SERVICIOS COMERCIALES AMAZON MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "01010101", "no_identificacion": "1_B0CQMLYFQT_395546628426301", "cantidad": "1", "clave_unidad": "H87", "unidad": ... (284 characters truncated) ... ": "602.59", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "96.41"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '96.41', 'stamp_date': '2025-03-10T11:28:38', 'certif_provider_rfc': 'EME000602QR9', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/11c8ace6-fdd5-11ef-a46f-018e2e04b81b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:15,326 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '61df4bd6-d098-48b2-90de-edef6d7aa875', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-03-20T14:04:49', 'stamp': 'KlWQ3GG8YuIu8P0QpR3BMRuewuFeW9/9PGIVwhNDaFN789PDBOiwToX9txB69Ydk4vmYvq3okFCYclxUx/UOxO1Bl6XqH2WUi62fQSzzBnmFy/6tQJkP5Z1yKrKS8zKL8XXGeCdyUZ7RvEno6IZdL ... (46 characters truncated) ... Z0/mYLWBYwQYNmOloHr7jBuFpyrePPsF7L6v6gtpz2vo1IOPqKRctFOBtmF4NIaSnBssMG7TEtkRi8AuvdXIVaM4WL0nMS2yb9ADJ69mmg1gE0sgfqX6g50APw4XpREBvEh9npGLO+nVYUZz65A==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '25111.75', 'discount': '8485.09', 'currency': 'MXN', 'exchange_rate': '1', 'total': '16626.66', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "25111.75", "descuento": "8485.09", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-20T14:28:14', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/61df4bd6-d098-48b2-90de-edef6d7aa875.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:15,551 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '7de259ff-c20e-4bf7-972b-736228755e1f', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-03-06T09:14:32', 'stamp': 'dHj991+hRzlLa7s4xborXhBbF3D5bZnM5BnqeFlI1TBrLzzinVyDdZc2K39vn7zF5n4C2TwgEOQ6cLWRyed84si3X/6uAp3/gLtBcQRG7yOH3BaY6CBP0X6wtHNFRSOiflHGHo7C18WicJo1L9kjq ... (46 characters truncated) ... hvful3HJrENiEsmV9m0dgUKtgRXRMFoCpcCkAGuO/wunEHpplw4044/CGqPhlx0WkB9e8+VEgK9zTLsNFGRttBSVjhSfr6zvJ9CpXL0L6L+FTqvpKP0+U2LmahaF9N9qL6nRqQoDXMYSwS9Izsw==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8447.34', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13225.41', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8447.34", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-06T10:40:15', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/7de259ff-c20e-4bf7-972b-736228755e1f.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:15,777 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'a686229d-71df-4c52-99f3-8a9cd4c8f8e9', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'FEB76422', 'number_leaf': '50066858288', 'dates': '2025-03-02T15:47:07', 'stamp': 'SPD7tl5yWVUMzIZwadK/T+dgNriy6wwKrOcpJSfP1gEUpYsR6lfZoFIpKzExRh1/M3lKWrBsFh2cGGtM9P2PwMn3HlQZrRDWLT++Qpc7EGdEKIiLqiDLBJJHM/HpIWw8uD0Or7mkCtDwrHP2p04y4 ... (46 characters truncated) ... xbKcP4bmxoBlkIfL1DmtVPRpLF7NsGBcRNb3l+gRVrVMBd/M0hA21wgDDQpyT2QjFBvhs4NXss/StT2SwrTp+9/kGpZi8y4Ty+jP/0oQMI8uwJSppZ/wz+Y+4TAAl61JJzxVcUXwC0urfQJMIng==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-02T21:37:33', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a686229d-71df-4c52-99f3-8a9cd4c8f8e9.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:16,001 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '9465FF77-BB95-429B-BB47-EBE8780D229B', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-03-08T12:18:42', 'stamp': 'Y/eNZsN+2VcfPqSMQ0fv61vL+x4iQpvx5lmZ/swzeYvFvcW1rae4SkaQkLmYiuULAE6BU9klBkPkcM6KQkWmG5YvBicystPiUxkzW+m12DXl1RKkcfaLm+qFVBUXwzwMNohEyFf4h/qR4zpy3ld/i ... (46 characters truncated) ... +hBgtAvOec0Peu0drUo/1Gkm5JpsJ6+M2dNd5MNKpQ+9Dm5lq/I8oYcpTQnmfrhAuOmUD3dcWZbH3OOFGqq5jVX2VjntlLvPMJ0CbPacSTTNeakN0XvGx1SDXNwu4bePAdRpxn0N3UMmrKAy7dQ==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-09T00:32:02', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/9465ff77-bb95-429b-bb47-ebe8780d229b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:16,221 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '6927b00c-efee-47cd-8921-14760711d187', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '933', 'dates': '2025-03-28T13:29:47', 'stamp': 'aeeYBYBD4RQO6ejhaymz2fgxMvWSGbCIEwLPxgJsN+ogeuzAwwdurxF23cyfVo3tr56ud+G6q0Q8Y18jYFDcuku7OgYr90QgJqFNpdh8PZZp1DZnRyYeBcUUwiYdhF0rLWgNP8BcK48rwLM01TVlx ... (46 characters truncated) ... ZuesJSbpAgbUUZjiR6hcU1bTzxrA6+hemHEzlV7AVSatoQSIblonlHWI4b6J4PBeq8gAz92tncGUYzxB3PJo+BJ+06dg2esuv1lZDVfus8R7CY568GI79ySpEhpXqopzBMaCitt+tYD7zPIyogQ==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-28T13:29:47', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/6927b00c-efee-47cd-8921-14760711d187.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:16,441 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '5AC7F222-E782-4095-8848-96B43D9DAAA9', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190202', 'dates': '2025-03-04T21:12:14', 'stamp': 'CNMn+/0BWbg/SG8s2Lmb/xgAFD5GYIbUZmV20zSi+hZgtwPXRQToP1eqwTFMfw3ZEYPrBjXCR46UiYUr+wsSyLIGX2hqENCDbarFG/RQ+3l+usBQtBpPGW+Jb4PuT23/Vw6ssJPAR2VDFWnj7YoY6 ... (46 characters truncated) ... dDqMvYufymtsbfYJ8kWTPJUdzBVEcWhPtdfXTJA+EgfkYDOX+jUSd+lD2/+WULfL/JtGYDl17QRviYzeC5WodS/IoNCeE5FjmO5HBJviLtB7MGg/EHVPbJRjmxDF1jU/QHwVhNA7vPVqI0Y1uDQ==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-03-05T05:00:43', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5ac7f222-e782-4095-8848-96b43d9daaa9.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:16,666 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'B793D98D-2037-4DFC-83F2-08A395E9FD0C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190102', 'dates': '2025-03-04T21:12:14', 'stamp': 'HxyckweoFcHeT/k2vz52+Amf5SvkWPITYeedOSmuY7y/k7sgR1YEzaeybz3Ms0/tNOy/ezhf21lDpINLObFR4oKF1yrW7lUPZfvJ0jwNxYGSzZyBaRLsO2BZ9Q6kPi2cWK4+GtF+yPk9PeGPwGEhV ... (46 characters truncated) ... cJokS4ovDBaadfd7NRHMVWCQETihaACHZho6nrUwkYEu+CGxFPA+4gd1I21kPx4EW84kyAcRpD7Efdw9wUBUUmLJYcXeUzQwVp8/DFsj4bV7TMRbZKSyZvohpXiPeTLxA/oHAxCwFjRB7vE4mTA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-03-05T05:00:34', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/b793d98d-2037-4dfc-83f2-08a395e9fd0c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:18,963 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '9C54DBFE-27F8-4F3E-9829-82FE431FA439', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190201', 'dates': '2025-02-05T15:51:45', 'stamp': 'c8Pslp2nnbDDsUF1kfzDCyYP7evbQdqv+W4c6q33b9oJ1gC5iyA8givAcA9VYpJDfA9ZZK4GQda4LQpm5r4A/jdZYtCpV3wyzOiArr0h98PXcK3bRt/bLIBGBQF/JqGVezqSG5zy9v6xboDNFkLrT ... (46 characters truncated) ... oIbJYbcnkdtoQ4lRlnciwMA/BmFLWS6vKaYhuVaCcOjTyMxoEh/AnuB7JnayLQVqVcMBg/8TmUVxyYaXAhtMNwAxopdCs40o1gbYKjJUp+3zmGFXDwVneqDvnphx0c5iBdmL92FVzR8aNe+CPhA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-02-05T23:52:27', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/9c54dbfe-27f8-4f3e-9829-82fe431fa439.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:19,184 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '54d86d57-ea62-487c-9c66-8e3a09e1046e', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '918', 'dates': '2025-02-25T09:43:55', 'stamp': 'WFsTxZbZQtZuyR3AqKymqgTOZS/ucl3333OjAhLFlzRsvoj6bGDbKy5Ya6CQdW0lJTodSVdCS2gm2p+mL7h+g++cAp5SOudKBF+7/eoYZt+57oXLMGnl2gYbh0uby1oljKud/q+v4OH3I3PwAEj76 ... (46 characters truncated) ... w+QYJz+Y59LupYTo5X8dxDziyLUc1iCsm3G6vIgkVsvUgFE/C0wLRttnGvV+VXaoF4uwISv4m5/MoNhZstt2bS55lfcgN3qZZ+wDBv/+H9veOBvcvQOA3M+MUF3EDz0u/CBkxz8R/C+usGOqLoQ==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-25T09:43:55', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/54d86d57-ea62-487c-9c66-8e3a09e1046e.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:19,410 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '3783a3c3-aac6-4c22-9970-edef6d7a0677', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-02-05T13:54:30', 'stamp': '3HiStkCZhEeHjRbRlG08V4W2kPaDLXKv3sKlMg2RmtFkuHx2wzktNvPg0U8fImhcetI/dRjCwBsDvmm5M1gjXlpZ218SRJKOkRtkRtVmvQDFUK7P0cfPPmb9e2IVZ0szg9IXj426O/hu2DqPQKbyK ... (46 characters truncated) ... aFrRA7CaI78kq+eS3wP5mkr2A0dKALpOJgkjNZTbqTPVVUBx/Hms3GxUaJQ4aRkPyWQId37g2Jl9Ll+gPuN3VLz/NZRbmr6TWlaOO4n+K1Aqg5/EdIrS+LuGnNsLr/utqCsM67rcOpc9EiXW5XA==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '79991.17', 'discount': '21759.23', 'currency': 'MXN', 'exchange_rate': '1', 'total': '58231.94', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (36 characters truncated) ... 7", "importe": "79991.17", "descuento": "21759.23", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-05T13:58:09', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/3783a3c3-aac6-4c22-9970-edef6d7a0677.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:19,631 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'e94becb5-d4ea-4e52-bf37-dfdaf308a2b2', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ENE76226', 'number_leaf': '50066858288', 'dates': '2025-02-02T18:52:49', 'stamp': 'LC+2CKgyqWeYLWLRLVNGxzFxxzCLVr6erFFZyQhOlDqq8g4yoibMWLp2P2EOmMOG/Soewu17WAuE1kevlSDOeqxSf0FPo29GyqAnxCOjTkMddPO/MjbI0ooGnz9Fmr/8DZY+cTf2Zf/VoLMmdNLNl ... (46 characters truncated) ... rds+AqOAbjWC5XaRBTjfSx7HiJAshEbZbiLjthF8RkgKO/EZ3eR4D2xpoAC3yM07L1YiJUqzI/D0IdEK5EXetwzIeNsQSNs0aduRLcxE+rTAL1WinVG1ROw/TqTh2CXmmsVDHoAUW/iiu8Qt9vg==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-03T05:07:26', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/e94becb5-d4ea-4e52-bf37-dfdaf308a2b2.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:19,861 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'C1B8BC2F-78CD-4FF5-934F-97DCA858B380', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-02-08T10:53:55', 'stamp': 'kHnGjfPuuhbEBurpQsbw0I4+KbWOrT/r0oKb9ybB+iZzBs6Ska9Jvulhox5yY3McLjjQUimtLdEapQuEN+EBq2pLekJ5SeML2L3HhxbHvZfbfYbnmZHqjYbsox+KXUC6avyH1GTp3CT+ZHlFnniNj ... (46 characters truncated) ... i2f6uVpkSJr1s5hijov4zanCIb1lGtnmjRVQyWm5nJpdaTDhI/bUiWMVgtnr4PjfL8qXyW0ie1+cICuiNRVIAcsPHjMBWSaZcQS0Ieh6WI/6I4tBRZOt/OcHIOB8yairCc0MsW1v/b5xLN9zGdQ==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-08T19:48:56', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/c1b8bc2f-78cd-4ff5-934f-97dca858b380.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:20,093 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'BEBDBEED-2E5F-45CC-B6A1-AF2F82933744', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1457016', 'dates': '2025-02-27T20:44:26', 'stamp': 'DfSjGZYGp0L+Fudrab3w4ypBuEyGJipp1vKunxy471Yq+T1vlNH5VwjzUpYBgFpRT5tpNNR38PYrjkVYB0Bcd2BYA7RazHuLXikE/R05GT8nBtMbKv1PoBMkR+X7ZwmXXPGmm16WByfas5H6eRR71 ... (46 characters truncated) ... zOeaWFR7biXZngWUHMnuT6d/XEAoxoC7KEZEO6p0pgIzbkbeceQahv82/37Iu6UGzU6ayyplYgPFOYz3aGXdpfg0z/wgOx85LcXYhOhEeH207nLk1lqKBX91tCNqpeYqMEp3Ph2Q5LbE4VLWkwQ==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '205.80', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '238.73', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "INT. DE ... (945 characters truncated) ... e": "67.51", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "10.80"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '32.93', 'stamp_date': '2025-02-27T20:54:44', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/bebdbeed-2e5f-45cc-b6a1-af2f82933744.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:20,311 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '38545538-1905-4066-BB37-F62734BA212E', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190101', 'dates': '2025-02-05T15:51:45', 'stamp': 'IZehUWvH9hDLpHZik+5xrbQniXpPzZ90FBQCr4PpqQA8pVetSrW0D7HhTYoYLUz6adHpj/37OJAMKo+LDEcfFUzQ3BDZMPshKQAI0WTZ7Hc3VxFlEaYwlJ8mKysC+Zw5gaPbrQofaT31wD4qjozSf ... (46 characters truncated) ... CoWOiG8MCr2U+P0eqFBzO16u2fOjNF2HwYAynR4nUDYkm6DwNTfQJf1URRZqV7QwGltTjuAk+zijmL8xr1MVQCqTWeA7VInB0t1TIlugOuaFgkHARRd5hFeU6gXEM04nkU0Zsy1Ss6q1H2YIonA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-02-05T23:52:18', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/38545538-1905-4066-bb37-f62734ba212e.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:20,530 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '05D46C5F-DE44-40FB-9392-A8DDF87FD6A8', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-02-22T08:30:09', 'stamp': 'YKNzsTxB0aU/lFME/OZ1v7do70g2wpMXl/EendKlu9ktYKoaUr8xb1TqNF1LeQ7vQnwnYKhuNSUJ62f+VMZGMmpCzUCcf5J8FDG/Ny73vct1NtERLyCq2qG9WMe+3lX/m9/kWmfo7c1RiIoH9Y1tG ... (46 characters truncated) ... G1tf2aImjLvw6jwmRJ+LmwnWk9zG5g2gh7gXSyjaWVE97/fZ+oi0ofre7Ts2gAnu299uSosJIv6LoHNDDQ423m81YNWaH1puTpNfcot7ih1ZL/lrFD8vLTzNiAkHqkWFhK/1aZdTt2pFlRLp6BA==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-22T15:01:25', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/05d46c5f-de44-40fb-9392-a8ddf87fd6a8.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:20,750 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'f417abad-2b06-47f4-95da-edef6d7af3fd', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-02-20T13:11:29', 'stamp': 'gqyRvYwV7EJEop9RBWMtW08CRLXRvSVia4xYk/tytwdEnkYFncPbPgh3tED0Vkj8hcvQ+ocqtwmiD8O9wWF1kLdgvWWj39Os4amVzmesF77y0MdwQR9e/K+xSkhZEXQumzGRVV71PRRGvyNzW8a+p ... (46 characters truncated) ... f/iliDXANCycczi53zafFjjj2HfDko6iTa2AXQKITkSkDXnPdScD0d8YdGImy2LID7QzLJBRzhyFsf2wYc2TbtYQPq57JVMU5kH8Ofn8G/FkCvT3shAt7S/aoiGXQ8odHixqPFy3GbfZ4Jyn4pg==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '25111.75', 'discount': '7928.71', 'currency': 'MXN', 'exchange_rate': '1', 'total': '17183.04', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "25111.75", "descuento": "7928.71", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-20T13:34:12', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f417abad-2b06-47f4-95da-edef6d7af3fd.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:23,055 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '78f14f40-fe1d-4830-b383-edef6d7a86e0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-06T19:53:52', 'stamp': 'HYNM2Ed841WndlL/7c7mrYZlvsKtmUzszZ/CXhqy81QelkQZNChZu8a63FK9Y6K7XC4I+p9iwnddk9poT1OKkvEs192qtZe4a5dlM1rTQvQciIBc6BpWb9SsF4kPG0lVgNPzOdAKReFXDS19+qSFM ... (46 characters truncated) ... iQuyPx6VF6TFWpVh0pfdrnhUCBgJfCNDbpr2KFzhi67ruJaZ2kXyZr3grhnHT01yyfpoicm5AuG9PLZswty7KjfPlk4YIZ8ROIv0p5/xlrXEZna9ZNHPJPaJIcY5H34XNHHx/e40MeIi3nTm3fQ==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8042.42', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13630.33', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8042.42", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-06T20:15:10', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/78f14f40-fe1d-4830-b383-edef6d7a86e0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:23,275 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '38C1CE7A-2F70-4688-A2DD-5C0838129C9C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1385483', 'dates': '2025-01-27T18:15:22', 'stamp': 'Dd65iwSniizBB0NYEYrbvUvARVypImtvSZTwdVJJYZ3jXDX/twXK4/EX6eqJn7CSj7S7ixyjA8oc2reDR0rxV2+NUnbUrOQ+JpFzEqRKac51zV7pflYGJCStOfq1dh6fkiY3K6H0uXgDtcut4YfeL ... (46 characters truncated) ... J33OIVodClrLT6wLwK7caTsabcmmRXd8a2mrDOm07YgbkDS3G7AIHsAdNUVHCvpIziSG03NFoOWIzr8ZfKPozfFWGwKFtnlyMhHlt7Xh+vRC1B/cQgXg8VC1J8ZltyfPnReyBp9ibSRkboUS6Fg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '405.57', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '470.45', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "INT. DE ... (954 characters truncated) ... ": "127.08", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "20.33"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '64.88', 'stamp_date': '2025-01-27T18:21:18', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/38c1ce7a-2f70-4688-a2dd-5c0838129c9c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:23,496 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'f61751e1-4c08-473e-8f32-b715544dcf20', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'DIC76005', 'number_leaf': '50066858288', 'dates': '2025-01-03T13:10:40', 'stamp': 'adeG9BSrUyM3SwZci1kls1wjj+TpEpFA8lsE5i/pL+8Xjury/MNnLjPZhnAA01dswQ3VL1BhlofJ5KelaNmIW20EM1KRzZ0eE3Irgpwm/pS+1Bqy812lU+5y2Nlfn6iP3Rmk+2667crb1Iccdbas9 ... (46 characters truncated) ... vsj0QWMGoVJDv11cM6sGSDCtr+oyvEIeExE6OO7iVlpudkZBK0OdDHqoQHeT1TkjES0wQg0j00Rr/SP6YIqdD4sA0QdnuQkZpawD+Ly0gDobrKi2l0sVnlwrusd0SG/qkpKB+JZyHEmVNdTsNzg==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-03T19:12:04', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f61751e1-4c08-473e-8f32-b715544dcf20.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:23,724 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '4cbae294-fac7-4e71-a59c-edef6d7a2da0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-22T15:04:31', 'stamp': 'IS/xHVuDRJNRxVdGo8jH7YmFHkcWTQJ19n2TDvBXgDZOfiOPq6azB2TEl2MlQAv0NW2F+KzrlwpKEErd5HH86SxU8x5BMO7ehfz+rR2Gc2djqzsEo3mrvqbgqIzB8/mL3h+SO4qMoin232ZKe9/QM ... (46 characters truncated) ... z7/3u/XCarqTFk/Wp1hoRxywAEm+1IRtXTkIc3Z2mjPeuUM3ETEQhBUQd0wR8+gpY0OcdUxQGapf1fcDg0kJzJmLQOApg6K7OdGy3oFo5klQTL1CumWePqvguwrhILuR6yWSfL18/ESloacPosw==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '24973.75', 'discount': '8053.20', 'currency': 'MXN', 'exchange_rate': '1', 'total': '16920.55', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "24973.75", "descuento": "8053.20", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-22T15:38:09', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/4cbae294-fac7-4e71-a59c-edef6d7a2da0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:23,945 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '5851A769-058A-4F53-AB9B-FF7130B0818C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-01-09T09:58:02', 'stamp': 'Q2giEiTWYd+l/a1aHNxNLJMtXZcJJ8vHiF0b0qht8O73atpInOLow4sWd7xybiuwIjsRbXIpws1QwsdhW3SmcrIMjXbF7Qeux1z3o/ueglbwYwhnyMZPlMW3vcKRtEh9FaHdGujsRlcxqo3oFuojA ... (46 characters truncated) ... EmwNBNTMClPNF4wM0Q1VbqllV8gpRVGx1OQX7uJefL7kxHaoB9a8wFa7ht4Rl8JUuyDZEQ0Vhd9etpnNJrVAUNdHRt7LSA2AyPIRRrMcBsDG1BttPTI3dHXRdg9BVc9JMD0ejjETd7F/ThXOGGw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-09T17:31:47', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5851a769-058a-4f53-ab9b-ff7130b0818c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:24,170 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'DF9D88D7-A26D-4C02-A877-F385A12F4499', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-01-24T04:29:53', 'stamp': 'TsK50wat0ZN74tstYiDQbFV5jnpWZSa99pUq65RvgsbaowLzgajRv94DvKzG4kXAqrTien4qlzmnpthnZBBzv7YnyG0YuEKl6CsXt8EaGlvS57llJ2AvG6JEHbG1elTlP3iLJVXaHSYrGmLSTv71M ... (46 characters truncated) ... MR+DzH8rRJbXDyb+qcBDhlLNDhwdPRH+UKekYStEzHBwRxpg6g49cYIrlrWFQB22uSaTB8vf9sWfX0fHqnTgFvQzwzY3LDJP5IN7124quR2tFSB9tXy4xeDc8Xp8cVP0Smz5WSCT0HJszvKXFYw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-24T06:00:15', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/df9d88d7-a26d-4c02-a877-f385a12f4499.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:24,389 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '71426F59-063F-4AFF-88E3-D21BDF84F1C4', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190212', 'dates': '2025-01-03T17:26:58', 'stamp': 'IJ1YYTtcrGk8Q/macfwKmpEChBPvZgvcZlL0btRXkYmQbhfU4ROT/wxyAmIW3AoD8/SD9Q3MTn1Dfcv5SPDLJhEnMwrdt4VcJ9qyDmiRqJ+/iV5kw6418wOTcA5xMrlkWWkFxh6xgCSg5VC3Vo38F ... (46 characters truncated) ... vHZX/ohx1nyi6cwQNS/hSAEpml8qz8MASlP/idCeNr6jmMUsPax/sthg+ZiYy2MEOwrJX3BXGX9chkaaNjPjvNwlwBRKSjkJI/OUEKU/9tQCeALUoawirnqkcsxzQ1Q7iU9uBL4jeFIM+RmHHMg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:32', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/71426f59-063f-4aff-88e3-d21bdf84f1c4.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:24,608 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'A3E5D3D7-1FCF-4F57-8916-3A4427B3D793', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190112', 'dates': '2025-01-03T17:26:58', 'stamp': 'eB1NQXQBF5nMInJi/MqqyNXituuejRvk+d9WZR8DddnHy2FWDW7l2P7FoHJMvoSZgoUMBSzj/nB8oXU96wnNp+AJgqP7XjNnFOVkPJUtqAAUJbchopg2i+DoXuL9iJFnlIl/YxCKWgvzHwPS5nAp0 ... (46 characters truncated) ... cdDTt4qkh67Dal/JZ9G4ULf2uI/fNvtCOfFX/UDUyKZS4SiUStjbVeFaAh6Zn9BhRgwqTmbs+ruzZRZ2jr+bCmrXc5qxNCpJKPhUYcKmYLlS9bq1adPs/D6ocDD54GAhveelVVw0FqsY1bomSkg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:25', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a3e5d3d7-1fcf-4f57-8916-3a4427b3d793.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:24,828 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'b815ce6a-ff29-44e8-acfd-9076b697bb57', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '897', 'dates': '2025-01-11T18:25:29', 'stamp': 'U75knfUsAo97T0dxgvD0sVMQE25jTW+VIV2eNM96PdK6JZiFK8L3l9x5CRxImTco0wmeNKqKrT/g76TN9WKhEFjvtS53+JfbJPcKN30AZrt6JK3hAfQLsFP5lxAUXkeEqnW90bkUA5VoD6s3i6B6r ... (46 characters truncated) ... HDX6Nfeh327exYZYtsQGwnbH/Z3YHMm0e1YrPeeQqN6jq3mnRnnq3QmcE5XoE53AnuLEVR7rMVNCWKV5W9Vp39VxSIv0WYsCa5t0wRACc7luPO6yLwGTi26fDK9PTn6+IXNOkxKPQx0tvpLxLlA==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-11T18:25:29', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/b815ce6a-ff29-44e8-acfd-9076b697bb57.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:27,194 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '78f14f40-fe1d-4830-b383-edef6d7a86e0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-06T19:53:52', 'stamp': 'HYNM2Ed841WndlL/7c7mrYZlvsKtmUzszZ/CXhqy81QelkQZNChZu8a63FK9Y6K7XC4I+p9iwnddk9poT1OKkvEs192qtZe4a5dlM1rTQvQciIBc6BpWb9SsF4kPG0lVgNPzOdAKReFXDS19+qSFM ... (46 characters truncated) ... iQuyPx6VF6TFWpVh0pfdrnhUCBgJfCNDbpr2KFzhi67ruJaZ2kXyZr3grhnHT01yyfpoicm5AuG9PLZswty7KjfPlk4YIZ8ROIv0p5/xlrXEZna9ZNHPJPaJIcY5H34XNHHx/e40MeIi3nTm3fQ==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8042.42', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13630.33', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8042.42", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-06T20:15:10', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/78f14f40-fe1d-4830-b383-edef6d7a86e0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:27,419 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '38C1CE7A-2F70-4688-A2DD-5C0838129C9C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1385483', 'dates': '2025-01-27T18:15:22', 'stamp': 'Dd65iwSniizBB0NYEYrbvUvARVypImtvSZTwdVJJYZ3jXDX/twXK4/EX6eqJn7CSj7S7ixyjA8oc2reDR0rxV2+NUnbUrOQ+JpFzEqRKac51zV7pflYGJCStOfq1dh6fkiY3K6H0uXgDtcut4YfeL ... (46 characters truncated) ... J33OIVodClrLT6wLwK7caTsabcmmRXd8a2mrDOm07YgbkDS3G7AIHsAdNUVHCvpIziSG03NFoOWIzr8ZfKPozfFWGwKFtnlyMhHlt7Xh+vRC1B/cQgXg8VC1J8ZltyfPnReyBp9ibSRkboUS6Fg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '405.57', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '470.45', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "INT. DE ... (954 characters truncated) ... ": "127.08", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "20.33"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '64.88', 'stamp_date': '2025-01-27T18:21:18', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/38c1ce7a-2f70-4688-a2dd-5c0838129c9c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:27,639 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'f61751e1-4c08-473e-8f32-b715544dcf20', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'DIC76005', 'number_leaf': '50066858288', 'dates': '2025-01-03T13:10:40', 'stamp': 'adeG9BSrUyM3SwZci1kls1wjj+TpEpFA8lsE5i/pL+8Xjury/MNnLjPZhnAA01dswQ3VL1BhlofJ5KelaNmIW20EM1KRzZ0eE3Irgpwm/pS+1Bqy812lU+5y2Nlfn6iP3Rmk+2667crb1Iccdbas9 ... (46 characters truncated) ... vsj0QWMGoVJDv11cM6sGSDCtr+oyvEIeExE6OO7iVlpudkZBK0OdDHqoQHeT1TkjES0wQg0j00Rr/SP6YIqdD4sA0QdnuQkZpawD+Ly0gDobrKi2l0sVnlwrusd0SG/qkpKB+JZyHEmVNdTsNzg==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-03T19:12:04', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f61751e1-4c08-473e-8f32-b715544dcf20.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:27,858 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '4cbae294-fac7-4e71-a59c-edef6d7a2da0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-22T15:04:31', 'stamp': 'IS/xHVuDRJNRxVdGo8jH7YmFHkcWTQJ19n2TDvBXgDZOfiOPq6azB2TEl2MlQAv0NW2F+KzrlwpKEErd5HH86SxU8x5BMO7ehfz+rR2Gc2djqzsEo3mrvqbgqIzB8/mL3h+SO4qMoin232ZKe9/QM ... (46 characters truncated) ... z7/3u/XCarqTFk/Wp1hoRxywAEm+1IRtXTkIc3Z2mjPeuUM3ETEQhBUQd0wR8+gpY0OcdUxQGapf1fcDg0kJzJmLQOApg6K7OdGy3oFo5klQTL1CumWePqvguwrhILuR6yWSfL18/ESloacPosw==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '24973.75', 'discount': '8053.20', 'currency': 'MXN', 'exchange_rate': '1', 'total': '16920.55', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "24973.75", "descuento": "8053.20", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-22T15:38:09', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/4cbae294-fac7-4e71-a59c-edef6d7a2da0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:28,078 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '5851A769-058A-4F53-AB9B-FF7130B0818C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-01-09T09:58:02', 'stamp': 'Q2giEiTWYd+l/a1aHNxNLJMtXZcJJ8vHiF0b0qht8O73atpInOLow4sWd7xybiuwIjsRbXIpws1QwsdhW3SmcrIMjXbF7Qeux1z3o/ueglbwYwhnyMZPlMW3vcKRtEh9FaHdGujsRlcxqo3oFuojA ... (46 characters truncated) ... EmwNBNTMClPNF4wM0Q1VbqllV8gpRVGx1OQX7uJefL7kxHaoB9a8wFa7ht4Rl8JUuyDZEQ0Vhd9etpnNJrVAUNdHRt7LSA2AyPIRRrMcBsDG1BttPTI3dHXRdg9BVc9JMD0ejjETd7F/ThXOGGw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-09T17:31:47', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5851a769-058a-4f53-ab9b-ff7130b0818c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:28,309 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'DF9D88D7-A26D-4C02-A877-F385A12F4499', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-01-24T04:29:53', 'stamp': 'TsK50wat0ZN74tstYiDQbFV5jnpWZSa99pUq65RvgsbaowLzgajRv94DvKzG4kXAqrTien4qlzmnpthnZBBzv7YnyG0YuEKl6CsXt8EaGlvS57llJ2AvG6JEHbG1elTlP3iLJVXaHSYrGmLSTv71M ... (46 characters truncated) ... MR+DzH8rRJbXDyb+qcBDhlLNDhwdPRH+UKekYStEzHBwRxpg6g49cYIrlrWFQB22uSaTB8vf9sWfX0fHqnTgFvQzwzY3LDJP5IN7124quR2tFSB9tXy4xeDc8Xp8cVP0Smz5WSCT0HJszvKXFYw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-24T06:00:15', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/df9d88d7-a26d-4c02-a877-f385a12f4499.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:28,530 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '71426F59-063F-4AFF-88E3-D21BDF84F1C4', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190212', 'dates': '2025-01-03T17:26:58', 'stamp': 'IJ1YYTtcrGk8Q/macfwKmpEChBPvZgvcZlL0btRXkYmQbhfU4ROT/wxyAmIW3AoD8/SD9Q3MTn1Dfcv5SPDLJhEnMwrdt4VcJ9qyDmiRqJ+/iV5kw6418wOTcA5xMrlkWWkFxh6xgCSg5VC3Vo38F ... (46 characters truncated) ... vHZX/ohx1nyi6cwQNS/hSAEpml8qz8MASlP/idCeNr6jmMUsPax/sthg+ZiYy2MEOwrJX3BXGX9chkaaNjPjvNwlwBRKSjkJI/OUEKU/9tQCeALUoawirnqkcsxzQ1Q7iU9uBL4jeFIM+RmHHMg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:32', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/71426f59-063f-4aff-88e3-d21bdf84f1c4.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:28,748 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'A3E5D3D7-1FCF-4F57-8916-3A4427B3D793', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190112', 'dates': '2025-01-03T17:26:58', 'stamp': 'eB1NQXQBF5nMInJi/MqqyNXituuejRvk+d9WZR8DddnHy2FWDW7l2P7FoHJMvoSZgoUMBSzj/nB8oXU96wnNp+AJgqP7XjNnFOVkPJUtqAAUJbchopg2i+DoXuL9iJFnlIl/YxCKWgvzHwPS5nAp0 ... (46 characters truncated) ... cdDTt4qkh67Dal/JZ9G4ULf2uI/fNvtCOfFX/UDUyKZS4SiUStjbVeFaAh6Zn9BhRgwqTmbs+ruzZRZ2jr+bCmrXc5qxNCpJKPhUYcKmYLlS9bq1adPs/D6ocDD54GAhveelVVw0FqsY1bomSkg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:25', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a3e5d3d7-1fcf-4f57-8916-3a4427b3d793.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:28,995 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'b815ce6a-ff29-44e8-acfd-9076b697bb57', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '897', 'dates': '2025-01-11T18:25:29', 'stamp': 'U75knfUsAo97T0dxgvD0sVMQE25jTW+VIV2eNM96PdK6JZiFK8L3l9x5CRxImTco0wmeNKqKrT/g76TN9WKhEFjvtS53+JfbJPcKN30AZrt6JK3hAfQLsFP5lxAUXkeEqnW90bkUA5VoD6s3i6B6r ... (46 characters truncated) ... HDX6Nfeh327exYZYtsQGwnbH/Z3YHMm0e1YrPeeQqN6jq3mnRnnq3QmcE5XoE53AnuLEVR7rMVNCWKV5W9Vp39VxSIv0WYsCa5t0wRACc7luPO6yLwGTi26fDK9PTn6+IXNOkxKPQx0tvpLxLlA==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-11T18:25:29', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/b815ce6a-ff29-44e8-acfd-9076b697bb57.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:31,307 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '78f14f40-fe1d-4830-b383-edef6d7a86e0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-06T19:53:52', 'stamp': 'HYNM2Ed841WndlL/7c7mrYZlvsKtmUzszZ/CXhqy81QelkQZNChZu8a63FK9Y6K7XC4I+p9iwnddk9poT1OKkvEs192qtZe4a5dlM1rTQvQciIBc6BpWb9SsF4kPG0lVgNPzOdAKReFXDS19+qSFM ... (46 characters truncated) ... iQuyPx6VF6TFWpVh0pfdrnhUCBgJfCNDbpr2KFzhi67ruJaZ2kXyZr3grhnHT01yyfpoicm5AuG9PLZswty7KjfPlk4YIZ8ROIv0p5/xlrXEZna9ZNHPJPaJIcY5H34XNHHx/e40MeIi3nTm3fQ==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8042.42', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13630.33', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8042.42", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-06T20:15:10', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/78f14f40-fe1d-4830-b383-edef6d7a86e0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:31,528 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '38C1CE7A-2F70-4688-A2DD-5C0838129C9C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1385483', 'dates': '2025-01-27T18:15:22', 'stamp': 'Dd65iwSniizBB0NYEYrbvUvARVypImtvSZTwdVJJYZ3jXDX/twXK4/EX6eqJn7CSj7S7ixyjA8oc2reDR0rxV2+NUnbUrOQ+JpFzEqRKac51zV7pflYGJCStOfq1dh6fkiY3K6H0uXgDtcut4YfeL ... (46 characters truncated) ... J33OIVodClrLT6wLwK7caTsabcmmRXd8a2mrDOm07YgbkDS3G7AIHsAdNUVHCvpIziSG03NFoOWIzr8ZfKPozfFWGwKFtnlyMhHlt7Xh+vRC1B/cQgXg8VC1J8ZltyfPnReyBp9ibSRkboUS6Fg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '405.57', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '470.45', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "INT. DE ... (954 characters truncated) ... ": "127.08", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "20.33"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '64.88', 'stamp_date': '2025-01-27T18:21:18', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/38c1ce7a-2f70-4688-a2dd-5c0838129c9c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:31,751 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'f61751e1-4c08-473e-8f32-b715544dcf20', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'DIC76005', 'number_leaf': '50066858288', 'dates': '2025-01-03T13:10:40', 'stamp': 'adeG9BSrUyM3SwZci1kls1wjj+TpEpFA8lsE5i/pL+8Xjury/MNnLjPZhnAA01dswQ3VL1BhlofJ5KelaNmIW20EM1KRzZ0eE3Irgpwm/pS+1Bqy812lU+5y2Nlfn6iP3Rmk+2667crb1Iccdbas9 ... (46 characters truncated) ... vsj0QWMGoVJDv11cM6sGSDCtr+oyvEIeExE6OO7iVlpudkZBK0OdDHqoQHeT1TkjES0wQg0j00Rr/SP6YIqdD4sA0QdnuQkZpawD+Ly0gDobrKi2l0sVnlwrusd0SG/qkpKB+JZyHEmVNdTsNzg==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-03T19:12:04', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f61751e1-4c08-473e-8f32-b715544dcf20.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:31,977 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '4cbae294-fac7-4e71-a59c-edef6d7a2da0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-22T15:04:31', 'stamp': 'IS/xHVuDRJNRxVdGo8jH7YmFHkcWTQJ19n2TDvBXgDZOfiOPq6azB2TEl2MlQAv0NW2F+KzrlwpKEErd5HH86SxU8x5BMO7ehfz+rR2Gc2djqzsEo3mrvqbgqIzB8/mL3h+SO4qMoin232ZKe9/QM ... (46 characters truncated) ... z7/3u/XCarqTFk/Wp1hoRxywAEm+1IRtXTkIc3Z2mjPeuUM3ETEQhBUQd0wR8+gpY0OcdUxQGapf1fcDg0kJzJmLQOApg6K7OdGy3oFo5klQTL1CumWePqvguwrhILuR6yWSfL18/ESloacPosw==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '24973.75', 'discount': '8053.20', 'currency': 'MXN', 'exchange_rate': '1', 'total': '16920.55', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "24973.75", "descuento": "8053.20", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-22T15:38:09', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/4cbae294-fac7-4e71-a59c-edef6d7a2da0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:32,199 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '5851A769-058A-4F53-AB9B-FF7130B0818C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-01-09T09:58:02', 'stamp': 'Q2giEiTWYd+l/a1aHNxNLJMtXZcJJ8vHiF0b0qht8O73atpInOLow4sWd7xybiuwIjsRbXIpws1QwsdhW3SmcrIMjXbF7Qeux1z3o/ueglbwYwhnyMZPlMW3vcKRtEh9FaHdGujsRlcxqo3oFuojA ... (46 characters truncated) ... EmwNBNTMClPNF4wM0Q1VbqllV8gpRVGx1OQX7uJefL7kxHaoB9a8wFa7ht4Rl8JUuyDZEQ0Vhd9etpnNJrVAUNdHRt7LSA2AyPIRRrMcBsDG1BttPTI3dHXRdg9BVc9JMD0ejjETd7F/ThXOGGw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-09T17:31:47', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5851a769-058a-4f53-ab9b-ff7130b0818c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:32,423 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'DF9D88D7-A26D-4C02-A877-F385A12F4499', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-01-24T04:29:53', 'stamp': 'TsK50wat0ZN74tstYiDQbFV5jnpWZSa99pUq65RvgsbaowLzgajRv94DvKzG4kXAqrTien4qlzmnpthnZBBzv7YnyG0YuEKl6CsXt8EaGlvS57llJ2AvG6JEHbG1elTlP3iLJVXaHSYrGmLSTv71M ... (46 characters truncated) ... MR+DzH8rRJbXDyb+qcBDhlLNDhwdPRH+UKekYStEzHBwRxpg6g49cYIrlrWFQB22uSaTB8vf9sWfX0fHqnTgFvQzwzY3LDJP5IN7124quR2tFSB9tXy4xeDc8Xp8cVP0Smz5WSCT0HJszvKXFYw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-24T06:00:15', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/df9d88d7-a26d-4c02-a877-f385a12f4499.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:32,642 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '71426F59-063F-4AFF-88E3-D21BDF84F1C4', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190212', 'dates': '2025-01-03T17:26:58', 'stamp': 'IJ1YYTtcrGk8Q/macfwKmpEChBPvZgvcZlL0btRXkYmQbhfU4ROT/wxyAmIW3AoD8/SD9Q3MTn1Dfcv5SPDLJhEnMwrdt4VcJ9qyDmiRqJ+/iV5kw6418wOTcA5xMrlkWWkFxh6xgCSg5VC3Vo38F ... (46 characters truncated) ... vHZX/ohx1nyi6cwQNS/hSAEpml8qz8MASlP/idCeNr6jmMUsPax/sthg+ZiYy2MEOwrJX3BXGX9chkaaNjPjvNwlwBRKSjkJI/OUEKU/9tQCeALUoawirnqkcsxzQ1Q7iU9uBL4jeFIM+RmHHMg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:32', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/71426f59-063f-4aff-88e3-d21bdf84f1c4.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:32,861 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'A3E5D3D7-1FCF-4F57-8916-3A4427B3D793', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190112', 'dates': '2025-01-03T17:26:58', 'stamp': 'eB1NQXQBF5nMInJi/MqqyNXituuejRvk+d9WZR8DddnHy2FWDW7l2P7FoHJMvoSZgoUMBSzj/nB8oXU96wnNp+AJgqP7XjNnFOVkPJUtqAAUJbchopg2i+DoXuL9iJFnlIl/YxCKWgvzHwPS5nAp0 ... (46 characters truncated) ... cdDTt4qkh67Dal/JZ9G4ULf2uI/fNvtCOfFX/UDUyKZS4SiUStjbVeFaAh6Zn9BhRgwqTmbs+ruzZRZ2jr+bCmrXc5qxNCpJKPhUYcKmYLlS9bq1adPs/D6ocDD54GAhveelVVw0FqsY1bomSkg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:25', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a3e5d3d7-1fcf-4f57-8916-3a4427b3d793.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:33,087 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'b815ce6a-ff29-44e8-acfd-9076b697bb57', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '897', 'dates': '2025-01-11T18:25:29', 'stamp': 'U75knfUsAo97T0dxgvD0sVMQE25jTW+VIV2eNM96PdK6JZiFK8L3l9x5CRxImTco0wmeNKqKrT/g76TN9WKhEFjvtS53+JfbJPcKN30AZrt6JK3hAfQLsFP5lxAUXkeEqnW90bkUA5VoD6s3i6B6r ... (46 characters truncated) ... HDX6Nfeh327exYZYtsQGwnbH/Z3YHMm0e1YrPeeQqN6jq3mnRnnq3QmcE5XoE53AnuLEVR7rMVNCWKV5W9Vp39VxSIv0WYsCa5t0wRACc7luPO6yLwGTi26fDK9PTn6+IXNOkxKPQx0tvpLxLlA==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-11T18:25:29', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/b815ce6a-ff29-44e8-acfd-9076b697bb57.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:35,554 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '5584BCB0-8DE7-4CED-A94E-E1A53343287E', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1617034', 'dates': '2025-05-30T19:39:02', 'stamp': 'ctHleSkHbZYXycmZhuvYt32U+LiLvNXGmAwrI7SZxi5i7mYw8QOFtegQlay5+NnRgxvy8sdeRFBUG6N4BSShPSEMtNnhNZpNxa3DUbI53yfw+3KQaFMcSFPCCVZaDC3uOGfuEx4VFRGUEVY6hkQ/k ... (46 characters truncated) ... sUkRM/3tGY/ONnT/igYcfZuavr9ah6UE5TK/yY6mbbppMCTkzQYD0JAMylVAyQFuipiFKHze3OKdyStY6+JeqsJ6SDx0Gkmvj58FuG3nEgqAZU0+bsPE0jrPtyeVdpf/NvTJV4CmKnUqBR8Qv5w==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '232.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '269.12', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "MSI (2/ ... (146 characters truncated) ... ": "232.00", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "37.12"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '37.12', 'stamp_date': '2025-05-30T19:43:54', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5584bcb0-8de7-4ced-a94e-e1a53343287e.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:35,774 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '2A42A262-4EBC-4165-85F7-BC2E103FC19B', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190204', 'dates': '2025-05-07T09:36:07', 'stamp': 'a6hY+WHq5dqwUWMJu3qEqCbw1Q8oNpfZRCG7SZN0PVWVw8Kq5QQEu64QRRTTH9zrkp4HioeNDC3FifV8Ixe9t+CpJHTvcyPwr+roDVryYtKlDwp2yghcHmIz9HOkyBVjVRZsN3bLvWTrNs6R08/f+ ... (46 characters truncated) ... FReQ6EKZ+zPEIQCfAvwZznfKeohwqGemel0dFfmzGsOy1IFBkWYzzoAcbfoLy6usaIeyrs5Gx2oBmQLmajgptrL5rixwI28TyH7mLUfDJCWgVWDzbGC9sCQhjfsH/thUL+WvKLWlsh0W8zbdRQA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-05-07T11:20:45', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/2a42a262-4ebc-4165-85f7-bc2e103fc19b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:35,994 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '46A5B74D-DB99-4CBE-820E-D3F584FEF527', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190104', 'dates': '2025-05-07T09:36:07', 'stamp': 'nkrqZsG5T+ml1CJ9aJVxnR/vDJTFHHES+Y5AbxKM3ZM7KEtPsBrKfWmhULqTD+7emCYK9tZKqvlarGjs7+26KeZplvmCUbsJkav+TdzVN1YFuLrnyMr6ZdqWU1jQ7WoAvaO30KkUq5+lQVrH4zjvG ... (46 characters truncated) ... 6QAK59r0kS4BMU74i5huocYLNU6H4RYzy6sZjtEfIlT20KQZsVyeuKf5GYk5bxLTozFDMvE08Lhbt0RwlRnFRqhIYU6ckBAa95+B+L4f88bhnWZP2i/jE/i32ahHlUFkHfmkm+3T6f76kUJckaA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-05-07T11:20:39', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/46a5b74d-db99-4cbe-820e-d3f584fef527.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:36,213 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '5BDBD974-1D1F-40FF-AEE4-23C38080E4A4', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ECUH', 'number_leaf': '5356850', 'dates': '2025-05-04T02:48:16', 'stamp': 'QzK07QzH2nxLzSCFpUMexBYg3x+auHVsw/vYKHlye0gtzmHocZ17Jt2+BMxIDGf8Pgqsysv0zls83Aonr4JJ5HyCYx/xVRK7qQy8x3GYJId92KEEQSi2Us9DbJrWGn2DCokV64gcDsxvea25vs+Ri ... (46 characters truncated) ... 5tfzMrbh9aLwlHAojoo21zy3StX4MUxkNVrJjmipNsGKidj5iEwJjzp55207qdmwtXCBV+cRKfT1Ydj55OCYTG8rmzcMSVze9EtuIHDZLkeOIucHZXPIwUb6cYeXZI+RwTAdIfkxcJETMpmfmzg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "Servicio", "descripcion":  ... (42 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-04T02:54:27', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5bdbd974-1d1f-40ff-aee4-23c38080e4a4.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:36,432 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '48d10eb1-0a95-41c0-942f-edef6d7ae487', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-05-22T13:22:20', 'stamp': 'EdIKXkgQzUk9Ep8g6TJIopNexzG0J3WXvecdheOz5bwmtAbWJZUylTibHHC+IRzACWJltKlCkLSSrZfpZUR4PLI+k7X7nK+R9xCLkTmAMEKv3AiwegNUVD7v6Ecq7qFMhv4L75KYiwikoOKO/BgfX ... (46 characters truncated) ... bRkZRggyoZcKDjMIYDxbEU3yavR26L6pE9RNnfAh+r5kq5q1QBtWiN+dqlsK25GOClGLwHktLISpO7uES/WfbLRdPuyv9lv5WCUFHDduyBaL4pL8x2pFVkQFDFBPUTdS6Qe1G/PhiIdmtLfONYw==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '2111.47', 'discount': '10.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '2101.46', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (31 characters truncated) ... 11.47", "importe": "2111.47", "descuento": "10.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-22T14:27:16', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/48d10eb1-0a95-41c0-942f-edef6d7ae487.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:36,652 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'a7fa07ae-40da-43bb-9546-edef6d7ab2a9', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-05-21T09:16:28', 'stamp': 'QQU7Ov4WRUvBA4DtDPMFsvmn6NJ+wlkE4kT4bKLt6q15PT5hYU2mV3z9nIq0u8ncv+EPKlFh0fYaBpTPwIz7qhege7Q/AgbgCcpJoA+W2KUKhiEe8sY4TTHKe/rU5lLnpN4BSAfadPCs46D1CxTi7 ... (46 characters truncated) ... iTGy3xpoCGiIXTkMzfJff9FPRxZwQA6IqGcE1jkpaZGF26A/3StR0ivH4EuAZQAjzedKaJ+yVbKnVtL+J+TELYVG/IR5LtXvD4IiwJSHx0Ea1jG+GbFKrwagmTQ5Vlg3xI5m0Gk2yCK2BcyF5uA==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '25111.75', 'discount': '7831.56', 'currency': 'MXN', 'exchange_rate': '1', 'total': '17280.19', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "25111.75", "descuento": "7831.56", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-21T09:45:16', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a7fa07ae-40da-43bb-9546-edef6d7ab2a9.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:36,871 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '8F226EC3-D095-4886-B970-AEEFD2657E5E', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-05-24T07:15:20', 'stamp': 'Yc+4Y0JTRlFIcZIzXfo8BeU9ARqvTUY8BkHZo6Pq55gpNtnrK6xKpOJRPjGGLB6OYWDz8j4XF/gcRW5FZ+8+WaZekjXvA2c0Nbn2I6ML6ZQmJgwgy0G4T9UqbQkeS3I2wrQsUi6W98pc26iD2ITsz ... (46 characters truncated) ... s9w9FXwdZdAtaaMY3wmmVR2cHuiOYowvJLsGptIg5uCsSSN0Cn2GSeoQNLCJ+nkLnNtbjUw2FMF5Q8eTCBB+x9FPvCATctiB/H8EeT2MmnJgNKRTHv5ljZtUrfmf8/L489KnuZAGMKSD1PMRj3A==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-24T11:41:39', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/8f226ec3-d095-4886-b970-aeefd2657e5e.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:37,090 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'a5190dd0-a8d3-4c3f-9f07-28543b621e5f', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '973', 'dates': '2025-05-10T09:32:13', 'stamp': 'IGrsWkoj9zjBt4DioapyP2NuyaAIdu5G5k/CKwy5OGbvIIsqgO4RSgEqV80P4Pn7CoIPG5wFN5feZ+5g0QWpMPzeBcuwddDDIRzEXlZmCqaxif57jOEvLPgJrgX1L/w70YsA6B68o36dEj5PT2deL ... (46 characters truncated) ... EMhVpQh0Z2veR0gSnrFekZo1NTOf/nDFYFvS3i77sms+50wwenP6GrUbGJX3SS9I7Q9G4DJaNoBnmVKViRYDEHlTDXGUEijI0RT1hcjOgjIU6rBQFVQ/Dkv0rTMp0i/Bv9hpM7UCP4qvupDXC3w==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '1600.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '1600.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (45 characters truncated) ... : "1600.00", "importe": "1600.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-10T09:32:13', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a5190dd0-a8d3-4c3f-9f07-28543b621e5f.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:37,312 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'db30d851-8509-4f83-840d-c8b2a6a324e1', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '994', 'dates': '2025-05-31T16:19:48', 'stamp': 'U69NbbHSFTI1b2gMAeGUaaepx/wtZCDLmM6LA+GqKt1LWrmpz05ZuVrD3Szr/gO6N6KxWiFRPyfd6ut2np1hYJrHq+/OE31CBHVO9KV4o+sU8rOFQ8aqML45ufPOITutuyUbQosyeAR6DcJX1VZ8S ... (46 characters truncated) ... VQZ7E6aITLZr9NnED7D7r/5GODmIZsw3b/dTlK0HLa647ToaPxCUTnJcLJx56q5bx3M+UTKkdm4nDDCEkOJ3sqnyrXe25WCs5sE6Lyn/L2EPGs0610Oa0ONgRVA/ifH1mroz9TEfHByqozlK+mQ==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-31T16:19:48', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/db30d851-8509-4f83-840d-c8b2a6a324e1.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:37,529 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '221cc71f-9ff4-4f3d-99e4-84dd0fe4a3df', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ABR76927', 'number_leaf': '50066858288', 'dates': '2025-05-02T15:52:56', 'stamp': 'D+J5rIeToe0QFv7pmnv8Uq96Xka++3Xxrb6JSs51NsTSIl6FmrbUHGYLDzNPuaCwVp9DBwW7QkpRVvnCco7HnX8YKAOJsJ+bby1MpFniHBUMzPuYdOXNmu4jg0LcT/NVcS2DqO7c1x1aeJGT2V5pb ... (46 characters truncated) ... C1Uo94yRS9WHaNXfrWJAD0Gg9byNDM7ksAPejjGJpIQGNWt1doXxwni3/jrdVmDh3aTNZejJs1s9Alo/zLl8dGK7qhbolFSmMhF27WyAnHUIK1Vhp9/SIWeCdkun6QvcTJk/S1W9hx3eIL4QV6A==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-02T18:20:47', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/221cc71f-9ff4-4f3d-99e4-84dd0fe4a3df.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:37,749 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '6E64C893-E595-40B7-9040-7AE139822970', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-05-02T08:02:23', 'stamp': 'SUboNfLH4uc4ZzPni2wMMJe6hVQz3LeQrJ5AiXPthWbN8k4LWglk9+e6CEBD8xF3M4JcP7bmXiRO2I6ZGHFRitxA0XyL1+J4TjD7gxV+XjsUKLKB60Ruw0ozge94Rd5fG/ODKIbCmZ9ZKzCo2ByuK ... (46 characters truncated) ... JsRpaqWyonWdhxKBsWNRt1bPeIGPWkBkrCkFpn0ppB3JvXsIyfRy2tisINVV84o3D97wxd48EzLK+XNA414OcWDFi6lOO7fWFRengO5+GPjfyRG2gsbnaEC+ldWTdhNV+gQYst5PL+VeE2nyjOA==', 'certificate_number': '00001000000518762142', 'certificate': 'MIIGATCCA+mgAwIBAgIUMDAwMDEwMDAwMDA1MTg3NjIxNDIwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1758 characters truncated) ... hcSuXfQFGX1hNs8k5LY6URRWb9yqf9YKt0jahJEKZcMZTd77cP2ez46akOobzQwOisFy+99GWwF/KFrXxI3CQ83u1YCOoJTuVTPpaDly6BmzKNYiePmPh6nM1zN/tVWGTHpXAwmhLToM4pkpPJIw=', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '4728.45', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '5485.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '72830', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'CXH230209QV4', 'name_of_the_issuer': 'CHOIZ XCALE HEALTH', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122201", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Unidad de servicio", "d ... (157 characters truncated) ...  "4728.45", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "756.55"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '756.55', 'stamp_date': '2025-05-02T08:02:48', 'certif_provider_rfc': 'SAT970701NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/6e64c893-e595-40b7-9040-7ae139822970.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:37,968 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '509977a7-ab40-49f2-9004-edef6d7ad0b8', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-05-06T17:08:06', 'stamp': 'UfRb49QIelpVlSCu9G3lYXaFm/z6hgk7g37UTpjVtKbBojvlh9Q7O+C+YTYf87vjgXNAyHrhY3pMMVd7vxnXSNIgh/DujixMpP9M+ONi4IF3eiunzFEGNfFiI2DHJxh30dol4IMAJlWfml69CeZYc ... (46 characters truncated) ... 6dMdl1/yXdTVlxnGwQ0aXGPBNxSIT4Gzm9Ft3cKDdT0wb6QzTUEIZ9pAfEvrbYv3tY0+y8rhHbiCrX8ITJWHo/XsxxGLtx80PCtvbGjqKVMGRhtV9hzastnGHv397/ie8urD6WeRgkvWOx+TmKw==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '42688.75', 'discount': '13542.23', 'currency': 'MXN', 'exchange_rate': '1', 'total': '29146.52', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (36 characters truncated) ... 5", "importe": "42688.75", "descuento": "13542.23", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-06T17:41:18', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/509977a7-ab40-49f2-9004-edef6d7ad0b8.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:38,205 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '232E7F96-6F73-4D3A-BB48-75907DCD5387', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-05-09T08:25:38', 'stamp': 'i2NXIbO6wrOoo3XbNxMOJojDJQsDgT1DrTBM6x/qfjmB56/lUBwMUFKkB3o0ReBqBRWrB9Qq5h6KLaq22zm9xCtZdETvX3xH/FTuJ3Mbqgyr/deULk7x4ubkSth6/NTCNzY7Ht9QH9DeSOeyREOke ... (46 characters truncated) ... 642VXi/gBdXRZSCT15Hv0iojZQkbNaTw0+tyjeKIJKywwXVoMuPc41H2kclAq3oe4+ojd1E+8J4JGjBWHrdRZbKM5v6yRvD83gz7x+9t/3+jr02T/XFcmN9tzaHiyEo1KFRoMkYFRCJRIV9SUgQ==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-09T15:27:35', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/232e7f96-6f73-4d3a-bb48-75907dcd5387.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:40,682 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '7412CCE8-1545-4C46-B656-C610A4BDD052', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190203', 'dates': '2025-04-01T23:20:35', 'stamp': 'noLUb7vDA0A9smcKPZgC/YYQd6sGnyFGlg4yIpAtVgPsw0aLyXF7RpfYlF3X2Iv8XhQwaJy5dhNa/dTfTkzBSvtZrokdpy+tTiGOCZ95oN3zn+kHw0TuqcNbEX0ozuqGrMpTiolAW141Rxb+5CTr3 ... (46 characters truncated) ... Xwd2kDQ1J/brYgZfQxSC6dX1LNpFw2B1gkjbU3WWsnWajzcr1KmWB3EcG0f3oltpuD/jTa7GxxsEY0Bmq/9AP3uVAbRtcNjjm7IhRwAC8tmR3nOGYK/V8N/Yz7GMn1myrHeC0plPoFuBy2cnJqg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-04-02T23:19:00', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/7412cce8-1545-4c46-b656-c610a4bdd052.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:40,901 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '661e2037-32ac-4369-9d62-a57e5ca51f08', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'MAR76708', 'number_leaf': '50066858288', 'dates': '2025-04-02T17:39:31', 'stamp': 'f4Kpop/WK9jDemMSo3bMzkn286TH0uHk36mVfoAFiUXcwrtRodlNEGSnyQP2ZYN9hduKvu56SqMLQQBIs/R71MWNHw1oidiZG/DRV3VRbfid3oQ1gNsUtP0hcE2kDbX0KqvgwclxH+JY9yUrLodUG ... (46 characters truncated) ... q4PSEbThc3Baj06QKmQBZghkBXCiG4xrTO/GsDqOFZxMPJTv+W2RTKuq6/z3LMlnakagk7z79h5rik+SEc//EW0MRc6JGk3aKAmRkeO4I0jVq8lU3PKUKC3maorodU93FRw2zyu6PP3DBsaAy/A==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-04-03T01:35:51', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/661e2037-32ac-4369-9d62-a57e5ca51f08.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:41,126 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'D4A735D6-5656-408D-BAB2-9904252A3BFC', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ECUH', 'number_leaf': '5144137', 'dates': '2025-04-04T20:01:00', 'stamp': 'ckRj6OUXaLiRWhosARkfAoWhGjZyz0KA9th95vcRCoIfwTrApNr+ugrZ4AHvDc1UZQMXxC/IT07nvIJH852v4CVdwAbLL9IOq4UOVlbvgI5Ns5ZjD8WzV8eDnLaOyLw87kQ8Pw07kBM8S6nBhsuCF ... (46 characters truncated) ... Bra1he0tX2sE7g6Moa+pPADivxP0WVoH84v69lWA3nnAtzi6p5/7YCI0qq8bw/FMR9pPkoCvuXmBVVhyPwx25zewddHNWT4Wwgx1wCF2+4o/g3rvjjMSZIiaDN97GLtr0rjcSAf/CBS9342Afpw==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "Servicio", "descripcion":  ... (42 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-04-04T20:06:50', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/d4a735d6-5656-408d-bab2-9904252a3bfc.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:41,347 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '560ff8a5-8834-4915-8490-edef6d7aa80b', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-04-07T12:29:45', 'stamp': 'PZiEcGyV9Ywa6QgAdK+vJ5IorLWrQCucVziuZG/4ZSfzaMzCKICkQjMiiZmPCi45ULs0WdgdrzwTnDoJqEgP0oXc0nCb7BhCsh12jfHDd7y1Rhoxm4HjagaysLXGDJu4ZBxWN/eTe3EnbRDh7X0yJ ... (46 characters truncated) ... O2jXB+QRvIMOGLhleV+wsGz9kAj5wKfGy0S3BsBL/nqgKIJPHgWdho2jmP0yL2pDTg87rit1cxxD6umgm4RB4igtaSWB/CZ3TLM4gv+TbH7oddr3xDfUIsjI2cIsjvq5/m16+ovhHLW/J+UMniw==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8447.34', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13225.41', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8447.34", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-04-07T12:45:13', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/560ff8a5-8834-4915-8490-edef6d7aa80b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:41,572 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '23E46B0A-55BC-470D-BE7C-7907E279045B', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190103', 'dates': '2025-04-01T23:20:35', 'stamp': 'log2rz113uZ7sdYdaAgogGWFo+EAJHuUm16DWb2ndRCkR/Ha4q+8h4YT0G88aIYwO2G3yzDVM0A1t8dw1/4do9g/cg9d39iLcIRD4IKGFLl4G29Yt+67wqJEGYwqwzmES7tnBMyIVp/ij2VLfYMT2 ... (46 characters truncated) ... nCJN+BELKudRIGp91ku49/8yID7YocRO1lnWlk6b55HmYtj8HEz0Bdhir0Rmi3eP45JpvPdiDW8Js5d9sHc2RGMhLhQkzGcsbV5w46KMZmIF4K+Bybs6RjffJT4XxnsNWhCfUsyeBsi/C2M/8nQ==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-04-02T23:18:39', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/23e46b0a-55bc-470d-be7c-7907e279045b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:41,803 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '7187F809-CAFF-4201-B044-55418E0AFD0A', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-04-24T04:49:35', 'stamp': 'g7hXbSBsVffBU6y74MA1fQ7K8s3N0EFvmojP6sYNXrIFaafkhBymhMSGuT18nKiwjgd+EySwzr+Y23PHRduoZe41ADjqCwWB6rCi3mw59QuC738bhssrDb+QEJrC3JIODJJUxga4QuTOZDKfXGrSj ... (46 characters truncated) ... SWSYC85OnRyiJBcjOV+FAr8nT9NwA6TVuBLTIixICkt5ZSEg7lksMC+5NZhhEALxj/WDonsBPb+kq8o6VCqaCtoT/LZS5Ls8+3LJd0pPwp2G0OsATUaRk6L0dD8ct5GElcSI+WqzMP5KkIXv2Ag==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-04-24T06:10:43', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/7187f809-caff-4201-b044-55418e0afd0a.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:42,029 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '0A169EB8-592A-4FC5-AB74-BAD39B5BE2C8', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1569919', 'dates': '2025-04-29T14:25:07', 'stamp': 'aoDTu67N7teT6CLVyhsGIS+KPkW2QE3cYKYiG5VQ5JKSqviufhlXEk+wvj/x4zI8prjcC0YWCI9nCFIJ2H4khqcBX7EA8C3VAJtmhFdNczsdjhhNY9euUUuoa46EzVsP3Bg2hB5daPSD0U50LdfNd ... (46 characters truncated) ... zMP72HphBqjbkbmLoAitvs/ovXfE8+xh7lHQaGzxKdKdFXjapP5PiJjiKr/5u8ew7STxpsPVvPyQOSnzXQRIosBMb9QKu33FzdbSr3Ha1NOkK/haeimoKJjktgm9HTnaAO1unIzX1ceM1tnbriA==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '232.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '269.12', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "MSI (1/ ... (146 characters truncated) ... ": "232.00", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "37.12"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '37.12', 'stamp_date': '2025-04-29T14:31:09', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/0a169eb8-592a-4fc5-ab74-bad39b5be2c8.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:42,266 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'D870015C-100D-4B49-9D04-AA1E9EC2D8A5', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-04-09T08:49:15', 'stamp': 'XHEcQXmU9AQgOqPiBD0suB8yYGzZqwyJ/d6SNxwPeMZD/Sg9C3zhGYFaKZoN6PZ0pvKsJRUUG2ND1G+q5iTvjhIGxssc30nZ6on4NO3mTPlCiiCa7iEL/nZV6FJ9Hv52X9munB3Xzxo7jqO+FaAZO ... (46 characters truncated) ... 8R3g7rVrfca/w8F7uzlQ5VVWocWAXbYv5ElKBEmJcQCWYF5mRzGFqElOIbya5TMG8PO+KDL3KKy3T7T4FSWUhYQZIEtirNSZJpf+k8C+wMBijYFCfss5zzQ7aV0v/vyBnXaYHP8d75MKasIYtGw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-04-09T19:20:50', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/d870015c-100d-4b49-9d04-aa1e9ec2d8a5.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:42,492 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '7be16617-28c8-4aa7-9c36-edef6d7ab2b6', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-04-22T12:45:33', 'stamp': 'Au5HV+WPDVABWIPgU4LOiwT9Vk+UMCBeYCbT9KZY6mb+8afh8KDpe8t0I4aeLFHhXC146YTcR6EraAQu2azBCo00es3hWgFLc4igQtRO3Aiw4Up+3g8CXIBFp1TSNE/ElbVkrWrV8JAoBmCQnaZK2 ... (46 characters truncated) ... IVWEHLBzRsoN4qRs2DePLuMv4lRD0GCl00Bi3XgP8oCbX/rJwEWMSffD7me/Kei8P345mFvckecQC4fweGgydJk9WkmPGuLNBCbxtmjqYEQGqtrOvuzSQ1xV+lKz2/1GdTLYqXz2+5ysg3q8fDg==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '25111.75', 'discount': '8416.51', 'currency': 'MXN', 'exchange_rate': '1', 'total': '16695.24', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "25111.75", "descuento": "8416.51", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-04-22T13:07:17', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/7be16617-28c8-4aa7-9c36-edef6d7ab2b6.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:44,784 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '623C2FB4-27FE-4263-87CF-FA983A82A653', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-03-22T09:24:26', 'stamp': 'Q3jX4dqAYAyWJttwT8/T8SpfFvtjR405pOQqUm6lByQ8jNfX4o05p9mk9O5be9THNX3dFKHNT7/Yc6/Cb8Zrx4o1zu9NabrUCVPZ8DAdSSN8LZ+paobLDRgXuc351wy3xsUkAC9W5ydRrdk7mewbf ... (46 characters truncated) ... tY2kPDv8RDfXJBzo93rbJc60CfOQWqW2OqXpZ0eYE078HO5qVTXoEbYWY6s3Qg7WT4ShsruIOImEErBA112Ef6n+WR8vcD/8802st95yGsrKXomM7IvZyHwRcy7+z1tQltRzOgo2n19q946/yyg==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-22T17:04:16', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/623c2fb4-27fe-4263-87cf-fa983a82a653.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:44,998 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'F693F17F-DEC4-4BF1-B794-740BEB0E48B0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ECUH', 'number_leaf': '4943269', 'dates': '2025-03-04T11:33:29', 'stamp': 'HpxHZOJAc/NgU7+gH/+wovn27wt1brwJYZODWeSiv9quM4DdCOsePJk7SERvIJeCeRbuTvffaiiXn2SGX26L0xbJPOCi79Hv6tQreavXlaXLGAFJo2aMLy1ULiqpl/KHQUWpn4mmWMws/LDLtMcKP ... (46 characters truncated) ... 1ISj7NBLWI5b5dGbbgopMPc9L7UyTnndY7yw8+GflY0YcDn47d1KQ/hTgMn3pN2SLeClSSLiVZV5ECkZvqMh98y+lhOjZ6WThxQepcmyTi0btYAFKJR1lSf7r4fCTQdkCO5+tQ7h5aIiJvKSYlg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "Servicio", "descripcion":  ... (42 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-04T11:40:56', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f693f17f-dec4-4bf1-b794-740beb0e48b0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:45,216 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '11C8ACE6-FDD5-11EF-A46F-018E2E04B81B', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CSale', 'number_leaf': '153125196', 'dates': '2025-03-10T11:28:24', 'stamp': 'YH5jP2gZEIBDFM301E60bE7YkKuxgpPnZIqVjpcUe9iJPVY5dfrqUQ8uuq6qVELnQKU4szhEb6q8DlHO3zjhtC252IbPvA/PL7+UB1Lr9AcuzkoOZtUfU8F0mrYufbwMHZlKsv9F628H3HM6VY9w3 ... (46 characters truncated) ... b97fl6UJioqbrwK2NlO8fYmoBXpc/ImTf96xamD9TA0uOcWLmH2/Xbnnk8x3t8fwwinuogCD2L8hrhxT54bx9HZLOwOwQi94nmPcV1Z2PN9OmObCdLn13QTzjHO5lGg4ifgxXlyDW3s13Owk+ww==', 'certificate_number': '00001000000518142818', 'certificate': 'MIIGPzCCBCegAwIBAgIUMDAwMDEwMDAwMDA1MTgxNDI4MTgwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1842 characters truncated) ... OUgofznPaNWKlbbKsyKjOKY9xz98k60myRzTUoJ8ynB8ezOF+MSwD9meYp93hgZMaoNT8XOaEYAhqvCUPPklJkzCf0UM9OopvaLGt7tazqTWhB9JbZzl3BIVYl8GBB28F+eEuJq8chQYEsBo64w==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '625.29', 'discount': '22.70', 'currency': 'MXN', 'exchange_rate': '1', 'total': '699.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '11510', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'ANE140618P37', 'name_of_the_issuer': 'SERVICIOS COMERCIALES AMAZON MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "01010101", "no_identificacion": "1_B0CQMLYFQT_395546628426301", "cantidad": "1", "clave_unidad": "H87", "unidad": ... (284 characters truncated) ... ": "602.59", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "96.41"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '96.41', 'stamp_date': '2025-03-10T11:28:38', 'certif_provider_rfc': 'EME000602QR9', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/11c8ace6-fdd5-11ef-a46f-018e2e04b81b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:45,427 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '61df4bd6-d098-48b2-90de-edef6d7aa875', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-03-20T14:04:49', 'stamp': 'KlWQ3GG8YuIu8P0QpR3BMRuewuFeW9/9PGIVwhNDaFN789PDBOiwToX9txB69Ydk4vmYvq3okFCYclxUx/UOxO1Bl6XqH2WUi62fQSzzBnmFy/6tQJkP5Z1yKrKS8zKL8XXGeCdyUZ7RvEno6IZdL ... (46 characters truncated) ... Z0/mYLWBYwQYNmOloHr7jBuFpyrePPsF7L6v6gtpz2vo1IOPqKRctFOBtmF4NIaSnBssMG7TEtkRi8AuvdXIVaM4WL0nMS2yb9ADJ69mmg1gE0sgfqX6g50APw4XpREBvEh9npGLO+nVYUZz65A==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '25111.75', 'discount': '8485.09', 'currency': 'MXN', 'exchange_rate': '1', 'total': '16626.66', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "25111.75", "descuento": "8485.09", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-20T14:28:14', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/61df4bd6-d098-48b2-90de-edef6d7aa875.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:45,639 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '7de259ff-c20e-4bf7-972b-736228755e1f', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-03-06T09:14:32', 'stamp': 'dHj991+hRzlLa7s4xborXhBbF3D5bZnM5BnqeFlI1TBrLzzinVyDdZc2K39vn7zF5n4C2TwgEOQ6cLWRyed84si3X/6uAp3/gLtBcQRG7yOH3BaY6CBP0X6wtHNFRSOiflHGHo7C18WicJo1L9kjq ... (46 characters truncated) ... hvful3HJrENiEsmV9m0dgUKtgRXRMFoCpcCkAGuO/wunEHpplw4044/CGqPhlx0WkB9e8+VEgK9zTLsNFGRttBSVjhSfr6zvJ9CpXL0L6L+FTqvpKP0+U2LmahaF9N9qL6nRqQoDXMYSwS9Izsw==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8447.34', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13225.41', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8447.34", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-06T10:40:15', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/7de259ff-c20e-4bf7-972b-736228755e1f.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:45,863 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'a686229d-71df-4c52-99f3-8a9cd4c8f8e9', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'FEB76422', 'number_leaf': '50066858288', 'dates': '2025-03-02T15:47:07', 'stamp': 'SPD7tl5yWVUMzIZwadK/T+dgNriy6wwKrOcpJSfP1gEUpYsR6lfZoFIpKzExRh1/M3lKWrBsFh2cGGtM9P2PwMn3HlQZrRDWLT++Qpc7EGdEKIiLqiDLBJJHM/HpIWw8uD0Or7mkCtDwrHP2p04y4 ... (46 characters truncated) ... xbKcP4bmxoBlkIfL1DmtVPRpLF7NsGBcRNb3l+gRVrVMBd/M0hA21wgDDQpyT2QjFBvhs4NXss/StT2SwrTp+9/kGpZi8y4Ty+jP/0oQMI8uwJSppZ/wz+Y+4TAAl61JJzxVcUXwC0urfQJMIng==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-02T21:37:33', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a686229d-71df-4c52-99f3-8a9cd4c8f8e9.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:46,077 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '9465FF77-BB95-429B-BB47-EBE8780D229B', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-03-08T12:18:42', 'stamp': 'Y/eNZsN+2VcfPqSMQ0fv61vL+x4iQpvx5lmZ/swzeYvFvcW1rae4SkaQkLmYiuULAE6BU9klBkPkcM6KQkWmG5YvBicystPiUxkzW+m12DXl1RKkcfaLm+qFVBUXwzwMNohEyFf4h/qR4zpy3ld/i ... (46 characters truncated) ... +hBgtAvOec0Peu0drUo/1Gkm5JpsJ6+M2dNd5MNKpQ+9Dm5lq/I8oYcpTQnmfrhAuOmUD3dcWZbH3OOFGqq5jVX2VjntlLvPMJ0CbPacSTTNeakN0XvGx1SDXNwu4bePAdRpxn0N3UMmrKAy7dQ==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-09T00:32:02', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/9465ff77-bb95-429b-bb47-ebe8780d229b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:46,301 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '6927b00c-efee-47cd-8921-14760711d187', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '933', 'dates': '2025-03-28T13:29:47', 'stamp': 'aeeYBYBD4RQO6ejhaymz2fgxMvWSGbCIEwLPxgJsN+ogeuzAwwdurxF23cyfVo3tr56ud+G6q0Q8Y18jYFDcuku7OgYr90QgJqFNpdh8PZZp1DZnRyYeBcUUwiYdhF0rLWgNP8BcK48rwLM01TVlx ... (46 characters truncated) ... ZuesJSbpAgbUUZjiR6hcU1bTzxrA6+hemHEzlV7AVSatoQSIblonlHWI4b6J4PBeq8gAz92tncGUYzxB3PJo+BJ+06dg2esuv1lZDVfus8R7CY568GI79ySpEhpXqopzBMaCitt+tYD7zPIyogQ==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-28T13:29:47', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/6927b00c-efee-47cd-8921-14760711d187.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:46,521 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '5AC7F222-E782-4095-8848-96B43D9DAAA9', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190202', 'dates': '2025-03-04T21:12:14', 'stamp': 'CNMn+/0BWbg/SG8s2Lmb/xgAFD5GYIbUZmV20zSi+hZgtwPXRQToP1eqwTFMfw3ZEYPrBjXCR46UiYUr+wsSyLIGX2hqENCDbarFG/RQ+3l+usBQtBpPGW+Jb4PuT23/Vw6ssJPAR2VDFWnj7YoY6 ... (46 characters truncated) ... dDqMvYufymtsbfYJ8kWTPJUdzBVEcWhPtdfXTJA+EgfkYDOX+jUSd+lD2/+WULfL/JtGYDl17QRviYzeC5WodS/IoNCeE5FjmO5HBJviLtB7MGg/EHVPbJRjmxDF1jU/QHwVhNA7vPVqI0Y1uDQ==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-03-05T05:00:43', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5ac7f222-e782-4095-8848-96b43d9daaa9.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:46,741 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'B793D98D-2037-4DFC-83F2-08A395E9FD0C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190102', 'dates': '2025-03-04T21:12:14', 'stamp': 'HxyckweoFcHeT/k2vz52+Amf5SvkWPITYeedOSmuY7y/k7sgR1YEzaeybz3Ms0/tNOy/ezhf21lDpINLObFR4oKF1yrW7lUPZfvJ0jwNxYGSzZyBaRLsO2BZ9Q6kPi2cWK4+GtF+yPk9PeGPwGEhV ... (46 characters truncated) ... cJokS4ovDBaadfd7NRHMVWCQETihaACHZho6nrUwkYEu+CGxFPA+4gd1I21kPx4EW84kyAcRpD7Efdw9wUBUUmLJYcXeUzQwVp8/DFsj4bV7TMRbZKSyZvohpXiPeTLxA/oHAxCwFjRB7vE4mTA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-03-05T05:00:34', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/b793d98d-2037-4dfc-83f2-08a395e9fd0c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:49,076 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '9C54DBFE-27F8-4F3E-9829-82FE431FA439', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190201', 'dates': '2025-02-05T15:51:45', 'stamp': 'c8Pslp2nnbDDsUF1kfzDCyYP7evbQdqv+W4c6q33b9oJ1gC5iyA8givAcA9VYpJDfA9ZZK4GQda4LQpm5r4A/jdZYtCpV3wyzOiArr0h98PXcK3bRt/bLIBGBQF/JqGVezqSG5zy9v6xboDNFkLrT ... (46 characters truncated) ... oIbJYbcnkdtoQ4lRlnciwMA/BmFLWS6vKaYhuVaCcOjTyMxoEh/AnuB7JnayLQVqVcMBg/8TmUVxyYaXAhtMNwAxopdCs40o1gbYKjJUp+3zmGFXDwVneqDvnphx0c5iBdmL92FVzR8aNe+CPhA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-02-05T23:52:27', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/9c54dbfe-27f8-4f3e-9829-82fe431fa439.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:49,300 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '54d86d57-ea62-487c-9c66-8e3a09e1046e', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '918', 'dates': '2025-02-25T09:43:55', 'stamp': 'WFsTxZbZQtZuyR3AqKymqgTOZS/ucl3333OjAhLFlzRsvoj6bGDbKy5Ya6CQdW0lJTodSVdCS2gm2p+mL7h+g++cAp5SOudKBF+7/eoYZt+57oXLMGnl2gYbh0uby1oljKud/q+v4OH3I3PwAEj76 ... (46 characters truncated) ... w+QYJz+Y59LupYTo5X8dxDziyLUc1iCsm3G6vIgkVsvUgFE/C0wLRttnGvV+VXaoF4uwISv4m5/MoNhZstt2bS55lfcgN3qZZ+wDBv/+H9veOBvcvQOA3M+MUF3EDz0u/CBkxz8R/C+usGOqLoQ==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-25T09:43:55', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/54d86d57-ea62-487c-9c66-8e3a09e1046e.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:49,521 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '3783a3c3-aac6-4c22-9970-edef6d7a0677', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-02-05T13:54:30', 'stamp': '3HiStkCZhEeHjRbRlG08V4W2kPaDLXKv3sKlMg2RmtFkuHx2wzktNvPg0U8fImhcetI/dRjCwBsDvmm5M1gjXlpZ218SRJKOkRtkRtVmvQDFUK7P0cfPPmb9e2IVZ0szg9IXj426O/hu2DqPQKbyK ... (46 characters truncated) ... aFrRA7CaI78kq+eS3wP5mkr2A0dKALpOJgkjNZTbqTPVVUBx/Hms3GxUaJQ4aRkPyWQId37g2Jl9Ll+gPuN3VLz/NZRbmr6TWlaOO4n+K1Aqg5/EdIrS+LuGnNsLr/utqCsM67rcOpc9EiXW5XA==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '79991.17', 'discount': '21759.23', 'currency': 'MXN', 'exchange_rate': '1', 'total': '58231.94', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (36 characters truncated) ... 7", "importe": "79991.17", "descuento": "21759.23", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-05T13:58:09', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/3783a3c3-aac6-4c22-9970-edef6d7a0677.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:49,738 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'e94becb5-d4ea-4e52-bf37-dfdaf308a2b2', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ENE76226', 'number_leaf': '50066858288', 'dates': '2025-02-02T18:52:49', 'stamp': 'LC+2CKgyqWeYLWLRLVNGxzFxxzCLVr6erFFZyQhOlDqq8g4yoibMWLp2P2EOmMOG/Soewu17WAuE1kevlSDOeqxSf0FPo29GyqAnxCOjTkMddPO/MjbI0ooGnz9Fmr/8DZY+cTf2Zf/VoLMmdNLNl ... (46 characters truncated) ... rds+AqOAbjWC5XaRBTjfSx7HiJAshEbZbiLjthF8RkgKO/EZ3eR4D2xpoAC3yM07L1YiJUqzI/D0IdEK5EXetwzIeNsQSNs0aduRLcxE+rTAL1WinVG1ROw/TqTh2CXmmsVDHoAUW/iiu8Qt9vg==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-03T05:07:26', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/e94becb5-d4ea-4e52-bf37-dfdaf308a2b2.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:49,964 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'C1B8BC2F-78CD-4FF5-934F-97DCA858B380', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-02-08T10:53:55', 'stamp': 'kHnGjfPuuhbEBurpQsbw0I4+KbWOrT/r0oKb9ybB+iZzBs6Ska9Jvulhox5yY3McLjjQUimtLdEapQuEN+EBq2pLekJ5SeML2L3HhxbHvZfbfYbnmZHqjYbsox+KXUC6avyH1GTp3CT+ZHlFnniNj ... (46 characters truncated) ... i2f6uVpkSJr1s5hijov4zanCIb1lGtnmjRVQyWm5nJpdaTDhI/bUiWMVgtnr4PjfL8qXyW0ie1+cICuiNRVIAcsPHjMBWSaZcQS0Ieh6WI/6I4tBRZOt/OcHIOB8yairCc0MsW1v/b5xLN9zGdQ==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-08T19:48:56', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/c1b8bc2f-78cd-4ff5-934f-97dca858b380.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:50,184 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'BEBDBEED-2E5F-45CC-B6A1-AF2F82933744', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1457016', 'dates': '2025-02-27T20:44:26', 'stamp': 'DfSjGZYGp0L+Fudrab3w4ypBuEyGJipp1vKunxy471Yq+T1vlNH5VwjzUpYBgFpRT5tpNNR38PYrjkVYB0Bcd2BYA7RazHuLXikE/R05GT8nBtMbKv1PoBMkR+X7ZwmXXPGmm16WByfas5H6eRR71 ... (46 characters truncated) ... zOeaWFR7biXZngWUHMnuT6d/XEAoxoC7KEZEO6p0pgIzbkbeceQahv82/37Iu6UGzU6ayyplYgPFOYz3aGXdpfg0z/wgOx85LcXYhOhEeH207nLk1lqKBX91tCNqpeYqMEp3Ph2Q5LbE4VLWkwQ==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '205.80', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '238.73', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "INT. DE ... (945 characters truncated) ... e": "67.51", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "10.80"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '32.93', 'stamp_date': '2025-02-27T20:54:44', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/bebdbeed-2e5f-45cc-b6a1-af2f82933744.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:50,410 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '38545538-1905-4066-BB37-F62734BA212E', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190101', 'dates': '2025-02-05T15:51:45', 'stamp': 'IZehUWvH9hDLpHZik+5xrbQniXpPzZ90FBQCr4PpqQA8pVetSrW0D7HhTYoYLUz6adHpj/37OJAMKo+LDEcfFUzQ3BDZMPshKQAI0WTZ7Hc3VxFlEaYwlJ8mKysC+Zw5gaPbrQofaT31wD4qjozSf ... (46 characters truncated) ... CoWOiG8MCr2U+P0eqFBzO16u2fOjNF2HwYAynR4nUDYkm6DwNTfQJf1URRZqV7QwGltTjuAk+zijmL8xr1MVQCqTWeA7VInB0t1TIlugOuaFgkHARRd5hFeU6gXEM04nkU0Zsy1Ss6q1H2YIonA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-02-05T23:52:18', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/38545538-1905-4066-bb37-f62734ba212e.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:50,630 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '05D46C5F-DE44-40FB-9392-A8DDF87FD6A8', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-02-22T08:30:09', 'stamp': 'YKNzsTxB0aU/lFME/OZ1v7do70g2wpMXl/EendKlu9ktYKoaUr8xb1TqNF1LeQ7vQnwnYKhuNSUJ62f+VMZGMmpCzUCcf5J8FDG/Ny73vct1NtERLyCq2qG9WMe+3lX/m9/kWmfo7c1RiIoH9Y1tG ... (46 characters truncated) ... G1tf2aImjLvw6jwmRJ+LmwnWk9zG5g2gh7gXSyjaWVE97/fZ+oi0ofre7Ts2gAnu299uSosJIv6LoHNDDQ423m81YNWaH1puTpNfcot7ih1ZL/lrFD8vLTzNiAkHqkWFhK/1aZdTt2pFlRLp6BA==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-22T15:01:25', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/05d46c5f-de44-40fb-9392-a8ddf87fd6a8.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:50,855 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'f417abad-2b06-47f4-95da-edef6d7af3fd', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-02-20T13:11:29', 'stamp': 'gqyRvYwV7EJEop9RBWMtW08CRLXRvSVia4xYk/tytwdEnkYFncPbPgh3tED0Vkj8hcvQ+ocqtwmiD8O9wWF1kLdgvWWj39Os4amVzmesF77y0MdwQR9e/K+xSkhZEXQumzGRVV71PRRGvyNzW8a+p ... (46 characters truncated) ... f/iliDXANCycczi53zafFjjj2HfDko6iTa2AXQKITkSkDXnPdScD0d8YdGImy2LID7QzLJBRzhyFsf2wYc2TbtYQPq57JVMU5kH8Ofn8G/FkCvT3shAt7S/aoiGXQ8odHixqPFy3GbfZ4Jyn4pg==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '25111.75', 'discount': '7928.71', 'currency': 'MXN', 'exchange_rate': '1', 'total': '17183.04', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "25111.75", "descuento": "7928.71", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-20T13:34:12', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f417abad-2b06-47f4-95da-edef6d7af3fd.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:53,210 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '78f14f40-fe1d-4830-b383-edef6d7a86e0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-06T19:53:52', 'stamp': 'HYNM2Ed841WndlL/7c7mrYZlvsKtmUzszZ/CXhqy81QelkQZNChZu8a63FK9Y6K7XC4I+p9iwnddk9poT1OKkvEs192qtZe4a5dlM1rTQvQciIBc6BpWb9SsF4kPG0lVgNPzOdAKReFXDS19+qSFM ... (46 characters truncated) ... iQuyPx6VF6TFWpVh0pfdrnhUCBgJfCNDbpr2KFzhi67ruJaZ2kXyZr3grhnHT01yyfpoicm5AuG9PLZswty7KjfPlk4YIZ8ROIv0p5/xlrXEZna9ZNHPJPaJIcY5H34XNHHx/e40MeIi3nTm3fQ==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8042.42', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13630.33', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8042.42", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-06T20:15:10', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/78f14f40-fe1d-4830-b383-edef6d7a86e0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:53,433 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '38C1CE7A-2F70-4688-A2DD-5C0838129C9C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1385483', 'dates': '2025-01-27T18:15:22', 'stamp': 'Dd65iwSniizBB0NYEYrbvUvARVypImtvSZTwdVJJYZ3jXDX/twXK4/EX6eqJn7CSj7S7ixyjA8oc2reDR0rxV2+NUnbUrOQ+JpFzEqRKac51zV7pflYGJCStOfq1dh6fkiY3K6H0uXgDtcut4YfeL ... (46 characters truncated) ... J33OIVodClrLT6wLwK7caTsabcmmRXd8a2mrDOm07YgbkDS3G7AIHsAdNUVHCvpIziSG03NFoOWIzr8ZfKPozfFWGwKFtnlyMhHlt7Xh+vRC1B/cQgXg8VC1J8ZltyfPnReyBp9ibSRkboUS6Fg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '405.57', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '470.45', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "INT. DE ... (954 characters truncated) ... ": "127.08", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "20.33"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '64.88', 'stamp_date': '2025-01-27T18:21:18', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/38c1ce7a-2f70-4688-a2dd-5c0838129c9c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:53,657 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'f61751e1-4c08-473e-8f32-b715544dcf20', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'DIC76005', 'number_leaf': '50066858288', 'dates': '2025-01-03T13:10:40', 'stamp': 'adeG9BSrUyM3SwZci1kls1wjj+TpEpFA8lsE5i/pL+8Xjury/MNnLjPZhnAA01dswQ3VL1BhlofJ5KelaNmIW20EM1KRzZ0eE3Irgpwm/pS+1Bqy812lU+5y2Nlfn6iP3Rmk+2667crb1Iccdbas9 ... (46 characters truncated) ... vsj0QWMGoVJDv11cM6sGSDCtr+oyvEIeExE6OO7iVlpudkZBK0OdDHqoQHeT1TkjES0wQg0j00Rr/SP6YIqdD4sA0QdnuQkZpawD+Ly0gDobrKi2l0sVnlwrusd0SG/qkpKB+JZyHEmVNdTsNzg==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-03T19:12:04', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f61751e1-4c08-473e-8f32-b715544dcf20.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:53,881 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '4cbae294-fac7-4e71-a59c-edef6d7a2da0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-22T15:04:31', 'stamp': 'IS/xHVuDRJNRxVdGo8jH7YmFHkcWTQJ19n2TDvBXgDZOfiOPq6azB2TEl2MlQAv0NW2F+KzrlwpKEErd5HH86SxU8x5BMO7ehfz+rR2Gc2djqzsEo3mrvqbgqIzB8/mL3h+SO4qMoin232ZKe9/QM ... (46 characters truncated) ... z7/3u/XCarqTFk/Wp1hoRxywAEm+1IRtXTkIc3Z2mjPeuUM3ETEQhBUQd0wR8+gpY0OcdUxQGapf1fcDg0kJzJmLQOApg6K7OdGy3oFo5klQTL1CumWePqvguwrhILuR6yWSfL18/ESloacPosw==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '24973.75', 'discount': '8053.20', 'currency': 'MXN', 'exchange_rate': '1', 'total': '16920.55', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "24973.75", "descuento": "8053.20", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-22T15:38:09', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/4cbae294-fac7-4e71-a59c-edef6d7a2da0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:54,109 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '5851A769-058A-4F53-AB9B-FF7130B0818C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-01-09T09:58:02', 'stamp': 'Q2giEiTWYd+l/a1aHNxNLJMtXZcJJ8vHiF0b0qht8O73atpInOLow4sWd7xybiuwIjsRbXIpws1QwsdhW3SmcrIMjXbF7Qeux1z3o/ueglbwYwhnyMZPlMW3vcKRtEh9FaHdGujsRlcxqo3oFuojA ... (46 characters truncated) ... EmwNBNTMClPNF4wM0Q1VbqllV8gpRVGx1OQX7uJefL7kxHaoB9a8wFa7ht4Rl8JUuyDZEQ0Vhd9etpnNJrVAUNdHRt7LSA2AyPIRRrMcBsDG1BttPTI3dHXRdg9BVc9JMD0ejjETd7F/ThXOGGw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-09T17:31:47', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5851a769-058a-4f53-ab9b-ff7130b0818c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:54,328 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'DF9D88D7-A26D-4C02-A877-F385A12F4499', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-01-24T04:29:53', 'stamp': 'TsK50wat0ZN74tstYiDQbFV5jnpWZSa99pUq65RvgsbaowLzgajRv94DvKzG4kXAqrTien4qlzmnpthnZBBzv7YnyG0YuEKl6CsXt8EaGlvS57llJ2AvG6JEHbG1elTlP3iLJVXaHSYrGmLSTv71M ... (46 characters truncated) ... MR+DzH8rRJbXDyb+qcBDhlLNDhwdPRH+UKekYStEzHBwRxpg6g49cYIrlrWFQB22uSaTB8vf9sWfX0fHqnTgFvQzwzY3LDJP5IN7124quR2tFSB9tXy4xeDc8Xp8cVP0Smz5WSCT0HJszvKXFYw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-24T06:00:15', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/df9d88d7-a26d-4c02-a877-f385a12f4499.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:54,547 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '71426F59-063F-4AFF-88E3-D21BDF84F1C4', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190212', 'dates': '2025-01-03T17:26:58', 'stamp': 'IJ1YYTtcrGk8Q/macfwKmpEChBPvZgvcZlL0btRXkYmQbhfU4ROT/wxyAmIW3AoD8/SD9Q3MTn1Dfcv5SPDLJhEnMwrdt4VcJ9qyDmiRqJ+/iV5kw6418wOTcA5xMrlkWWkFxh6xgCSg5VC3Vo38F ... (46 characters truncated) ... vHZX/ohx1nyi6cwQNS/hSAEpml8qz8MASlP/idCeNr6jmMUsPax/sthg+ZiYy2MEOwrJX3BXGX9chkaaNjPjvNwlwBRKSjkJI/OUEKU/9tQCeALUoawirnqkcsxzQ1Q7iU9uBL4jeFIM+RmHHMg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:32', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/71426f59-063f-4aff-88e3-d21bdf84f1c4.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:54,767 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'A3E5D3D7-1FCF-4F57-8916-3A4427B3D793', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190112', 'dates': '2025-01-03T17:26:58', 'stamp': 'eB1NQXQBF5nMInJi/MqqyNXituuejRvk+d9WZR8DddnHy2FWDW7l2P7FoHJMvoSZgoUMBSzj/nB8oXU96wnNp+AJgqP7XjNnFOVkPJUtqAAUJbchopg2i+DoXuL9iJFnlIl/YxCKWgvzHwPS5nAp0 ... (46 characters truncated) ... cdDTt4qkh67Dal/JZ9G4ULf2uI/fNvtCOfFX/UDUyKZS4SiUStjbVeFaAh6Zn9BhRgwqTmbs+ruzZRZ2jr+bCmrXc5qxNCpJKPhUYcKmYLlS9bq1adPs/D6ocDD54GAhveelVVw0FqsY1bomSkg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:25', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a3e5d3d7-1fcf-4f57-8916-3a4427b3d793.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:54,992 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'b815ce6a-ff29-44e8-acfd-9076b697bb57', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '897', 'dates': '2025-01-11T18:25:29', 'stamp': 'U75knfUsAo97T0dxgvD0sVMQE25jTW+VIV2eNM96PdK6JZiFK8L3l9x5CRxImTco0wmeNKqKrT/g76TN9WKhEFjvtS53+JfbJPcKN30AZrt6JK3hAfQLsFP5lxAUXkeEqnW90bkUA5VoD6s3i6B6r ... (46 characters truncated) ... HDX6Nfeh327exYZYtsQGwnbH/Z3YHMm0e1YrPeeQqN6jq3mnRnnq3QmcE5XoE53AnuLEVR7rMVNCWKV5W9Vp39VxSIv0WYsCa5t0wRACc7luPO6yLwGTi26fDK9PTn6+IXNOkxKPQx0tvpLxLlA==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-11T18:25:29', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/b815ce6a-ff29-44e8-acfd-9076b697bb57.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:57,303 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '623C2FB4-27FE-4263-87CF-FA983A82A653', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-03-22T09:24:26', 'stamp': 'Q3jX4dqAYAyWJttwT8/T8SpfFvtjR405pOQqUm6lByQ8jNfX4o05p9mk9O5be9THNX3dFKHNT7/Yc6/Cb8Zrx4o1zu9NabrUCVPZ8DAdSSN8LZ+paobLDRgXuc351wy3xsUkAC9W5ydRrdk7mewbf ... (46 characters truncated) ... tY2kPDv8RDfXJBzo93rbJc60CfOQWqW2OqXpZ0eYE078HO5qVTXoEbYWY6s3Qg7WT4ShsruIOImEErBA112Ef6n+WR8vcD/8802st95yGsrKXomM7IvZyHwRcy7+z1tQltRzOgo2n19q946/yyg==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-22T17:04:16', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/623c2fb4-27fe-4263-87cf-fa983a82a653.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:57,523 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'F693F17F-DEC4-4BF1-B794-740BEB0E48B0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ECUH', 'number_leaf': '4943269', 'dates': '2025-03-04T11:33:29', 'stamp': 'HpxHZOJAc/NgU7+gH/+wovn27wt1brwJYZODWeSiv9quM4DdCOsePJk7SERvIJeCeRbuTvffaiiXn2SGX26L0xbJPOCi79Hv6tQreavXlaXLGAFJo2aMLy1ULiqpl/KHQUWpn4mmWMws/LDLtMcKP ... (46 characters truncated) ... 1ISj7NBLWI5b5dGbbgopMPc9L7UyTnndY7yw8+GflY0YcDn47d1KQ/hTgMn3pN2SLeClSSLiVZV5ECkZvqMh98y+lhOjZ6WThxQepcmyTi0btYAFKJR1lSf7r4fCTQdkCO5+tQ7h5aIiJvKSYlg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "Servicio", "descripcion":  ... (42 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-04T11:40:56', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f693f17f-dec4-4bf1-b794-740beb0e48b0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:57,740 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '11C8ACE6-FDD5-11EF-A46F-018E2E04B81B', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CSale', 'number_leaf': '153125196', 'dates': '2025-03-10T11:28:24', 'stamp': 'YH5jP2gZEIBDFM301E60bE7YkKuxgpPnZIqVjpcUe9iJPVY5dfrqUQ8uuq6qVELnQKU4szhEb6q8DlHO3zjhtC252IbPvA/PL7+UB1Lr9AcuzkoOZtUfU8F0mrYufbwMHZlKsv9F628H3HM6VY9w3 ... (46 characters truncated) ... b97fl6UJioqbrwK2NlO8fYmoBXpc/ImTf96xamD9TA0uOcWLmH2/Xbnnk8x3t8fwwinuogCD2L8hrhxT54bx9HZLOwOwQi94nmPcV1Z2PN9OmObCdLn13QTzjHO5lGg4ifgxXlyDW3s13Owk+ww==', 'certificate_number': '00001000000518142818', 'certificate': 'MIIGPzCCBCegAwIBAgIUMDAwMDEwMDAwMDA1MTgxNDI4MTgwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1842 characters truncated) ... OUgofznPaNWKlbbKsyKjOKY9xz98k60myRzTUoJ8ynB8ezOF+MSwD9meYp93hgZMaoNT8XOaEYAhqvCUPPklJkzCf0UM9OopvaLGt7tazqTWhB9JbZzl3BIVYl8GBB28F+eEuJq8chQYEsBo64w==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '625.29', 'discount': '22.70', 'currency': 'MXN', 'exchange_rate': '1', 'total': '699.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '11510', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'ANE140618P37', 'name_of_the_issuer': 'SERVICIOS COMERCIALES AMAZON MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "01010101", "no_identificacion": "1_B0CQMLYFQT_395546628426301", "cantidad": "1", "clave_unidad": "H87", "unidad": ... (284 characters truncated) ... ": "602.59", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "96.41"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '96.41', 'stamp_date': '2025-03-10T11:28:38', 'certif_provider_rfc': 'EME000602QR9', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/11c8ace6-fdd5-11ef-a46f-018e2e04b81b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:57,967 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '61df4bd6-d098-48b2-90de-edef6d7aa875', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-03-20T14:04:49', 'stamp': 'KlWQ3GG8YuIu8P0QpR3BMRuewuFeW9/9PGIVwhNDaFN789PDBOiwToX9txB69Ydk4vmYvq3okFCYclxUx/UOxO1Bl6XqH2WUi62fQSzzBnmFy/6tQJkP5Z1yKrKS8zKL8XXGeCdyUZ7RvEno6IZdL ... (46 characters truncated) ... Z0/mYLWBYwQYNmOloHr7jBuFpyrePPsF7L6v6gtpz2vo1IOPqKRctFOBtmF4NIaSnBssMG7TEtkRi8AuvdXIVaM4WL0nMS2yb9ADJ69mmg1gE0sgfqX6g50APw4XpREBvEh9npGLO+nVYUZz65A==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '25111.75', 'discount': '8485.09', 'currency': 'MXN', 'exchange_rate': '1', 'total': '16626.66', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "25111.75", "descuento": "8485.09", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-20T14:28:14', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/61df4bd6-d098-48b2-90de-edef6d7aa875.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:58,194 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '7de259ff-c20e-4bf7-972b-736228755e1f', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-03-06T09:14:32', 'stamp': 'dHj991+hRzlLa7s4xborXhBbF3D5bZnM5BnqeFlI1TBrLzzinVyDdZc2K39vn7zF5n4C2TwgEOQ6cLWRyed84si3X/6uAp3/gLtBcQRG7yOH3BaY6CBP0X6wtHNFRSOiflHGHo7C18WicJo1L9kjq ... (46 characters truncated) ... hvful3HJrENiEsmV9m0dgUKtgRXRMFoCpcCkAGuO/wunEHpplw4044/CGqPhlx0WkB9e8+VEgK9zTLsNFGRttBSVjhSfr6zvJ9CpXL0L6L+FTqvpKP0+U2LmahaF9N9qL6nRqQoDXMYSwS9Izsw==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8447.34', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13225.41', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8447.34", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-06T10:40:15', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/7de259ff-c20e-4bf7-972b-736228755e1f.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:58,415 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'a686229d-71df-4c52-99f3-8a9cd4c8f8e9', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'FEB76422', 'number_leaf': '50066858288', 'dates': '2025-03-02T15:47:07', 'stamp': 'SPD7tl5yWVUMzIZwadK/T+dgNriy6wwKrOcpJSfP1gEUpYsR6lfZoFIpKzExRh1/M3lKWrBsFh2cGGtM9P2PwMn3HlQZrRDWLT++Qpc7EGdEKIiLqiDLBJJHM/HpIWw8uD0Or7mkCtDwrHP2p04y4 ... (46 characters truncated) ... xbKcP4bmxoBlkIfL1DmtVPRpLF7NsGBcRNb3l+gRVrVMBd/M0hA21wgDDQpyT2QjFBvhs4NXss/StT2SwrTp+9/kGpZi8y4Ty+jP/0oQMI8uwJSppZ/wz+Y+4TAAl61JJzxVcUXwC0urfQJMIng==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-02T21:37:33', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a686229d-71df-4c52-99f3-8a9cd4c8f8e9.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:58,639 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '9465FF77-BB95-429B-BB47-EBE8780D229B', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-03-08T12:18:42', 'stamp': 'Y/eNZsN+2VcfPqSMQ0fv61vL+x4iQpvx5lmZ/swzeYvFvcW1rae4SkaQkLmYiuULAE6BU9klBkPkcM6KQkWmG5YvBicystPiUxkzW+m12DXl1RKkcfaLm+qFVBUXwzwMNohEyFf4h/qR4zpy3ld/i ... (46 characters truncated) ... +hBgtAvOec0Peu0drUo/1Gkm5JpsJ6+M2dNd5MNKpQ+9Dm5lq/I8oYcpTQnmfrhAuOmUD3dcWZbH3OOFGqq5jVX2VjntlLvPMJ0CbPacSTTNeakN0XvGx1SDXNwu4bePAdRpxn0N3UMmrKAy7dQ==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-09T00:32:02', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/9465ff77-bb95-429b-bb47-ebe8780d229b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:58,858 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '6927b00c-efee-47cd-8921-14760711d187', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '933', 'dates': '2025-03-28T13:29:47', 'stamp': 'aeeYBYBD4RQO6ejhaymz2fgxMvWSGbCIEwLPxgJsN+ogeuzAwwdurxF23cyfVo3tr56ud+G6q0Q8Y18jYFDcuku7OgYr90QgJqFNpdh8PZZp1DZnRyYeBcUUwiYdhF0rLWgNP8BcK48rwLM01TVlx ... (46 characters truncated) ... ZuesJSbpAgbUUZjiR6hcU1bTzxrA6+hemHEzlV7AVSatoQSIblonlHWI4b6J4PBeq8gAz92tncGUYzxB3PJo+BJ+06dg2esuv1lZDVfus8R7CY568GI79ySpEhpXqopzBMaCitt+tYD7zPIyogQ==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-28T13:29:47', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/6927b00c-efee-47cd-8921-14760711d187.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:59,074 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '5AC7F222-E782-4095-8848-96B43D9DAAA9', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190202', 'dates': '2025-03-04T21:12:14', 'stamp': 'CNMn+/0BWbg/SG8s2Lmb/xgAFD5GYIbUZmV20zSi+hZgtwPXRQToP1eqwTFMfw3ZEYPrBjXCR46UiYUr+wsSyLIGX2hqENCDbarFG/RQ+3l+usBQtBpPGW+Jb4PuT23/Vw6ssJPAR2VDFWnj7YoY6 ... (46 characters truncated) ... dDqMvYufymtsbfYJ8kWTPJUdzBVEcWhPtdfXTJA+EgfkYDOX+jUSd+lD2/+WULfL/JtGYDl17QRviYzeC5WodS/IoNCeE5FjmO5HBJviLtB7MGg/EHVPbJRjmxDF1jU/QHwVhNA7vPVqI0Y1uDQ==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-03-05T05:00:43', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5ac7f222-e782-4095-8848-96b43d9daaa9.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:53:59,296 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'B793D98D-2037-4DFC-83F2-08A395E9FD0C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190102', 'dates': '2025-03-04T21:12:14', 'stamp': 'HxyckweoFcHeT/k2vz52+Amf5SvkWPITYeedOSmuY7y/k7sgR1YEzaeybz3Ms0/tNOy/ezhf21lDpINLObFR4oKF1yrW7lUPZfvJ0jwNxYGSzZyBaRLsO2BZ9Q6kPi2cWK4+GtF+yPk9PeGPwGEhV ... (46 characters truncated) ... cJokS4ovDBaadfd7NRHMVWCQETihaACHZho6nrUwkYEu+CGxFPA+4gd1I21kPx4EW84kyAcRpD7Efdw9wUBUUmLJYcXeUzQwVp8/DFsj4bV7TMRbZKSyZvohpXiPeTLxA/oHAxCwFjRB7vE4mTA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-03-05T05:00:34', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/b793d98d-2037-4dfc-83f2-08a395e9fd0c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:54:01,628 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '9C54DBFE-27F8-4F3E-9829-82FE431FA439', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190201', 'dates': '2025-02-05T15:51:45', 'stamp': 'c8Pslp2nnbDDsUF1kfzDCyYP7evbQdqv+W4c6q33b9oJ1gC5iyA8givAcA9VYpJDfA9ZZK4GQda4LQpm5r4A/jdZYtCpV3wyzOiArr0h98PXcK3bRt/bLIBGBQF/JqGVezqSG5zy9v6xboDNFkLrT ... (46 characters truncated) ... oIbJYbcnkdtoQ4lRlnciwMA/BmFLWS6vKaYhuVaCcOjTyMxoEh/AnuB7JnayLQVqVcMBg/8TmUVxyYaXAhtMNwAxopdCs40o1gbYKjJUp+3zmGFXDwVneqDvnphx0c5iBdmL92FVzR8aNe+CPhA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-02-05T23:52:27', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/9c54dbfe-27f8-4f3e-9829-82fe431fa439.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:54:01,858 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '54d86d57-ea62-487c-9c66-8e3a09e1046e', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '918', 'dates': '2025-02-25T09:43:55', 'stamp': 'WFsTxZbZQtZuyR3AqKymqgTOZS/ucl3333OjAhLFlzRsvoj6bGDbKy5Ya6CQdW0lJTodSVdCS2gm2p+mL7h+g++cAp5SOudKBF+7/eoYZt+57oXLMGnl2gYbh0uby1oljKud/q+v4OH3I3PwAEj76 ... (46 characters truncated) ... w+QYJz+Y59LupYTo5X8dxDziyLUc1iCsm3G6vIgkVsvUgFE/C0wLRttnGvV+VXaoF4uwISv4m5/MoNhZstt2bS55lfcgN3qZZ+wDBv/+H9veOBvcvQOA3M+MUF3EDz0u/CBkxz8R/C+usGOqLoQ==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-25T09:43:55', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/54d86d57-ea62-487c-9c66-8e3a09e1046e.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:54:02,087 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '3783a3c3-aac6-4c22-9970-edef6d7a0677', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-02-05T13:54:30', 'stamp': '3HiStkCZhEeHjRbRlG08V4W2kPaDLXKv3sKlMg2RmtFkuHx2wzktNvPg0U8fImhcetI/dRjCwBsDvmm5M1gjXlpZ218SRJKOkRtkRtVmvQDFUK7P0cfPPmb9e2IVZ0szg9IXj426O/hu2DqPQKbyK ... (46 characters truncated) ... aFrRA7CaI78kq+eS3wP5mkr2A0dKALpOJgkjNZTbqTPVVUBx/Hms3GxUaJQ4aRkPyWQId37g2Jl9Ll+gPuN3VLz/NZRbmr6TWlaOO4n+K1Aqg5/EdIrS+LuGnNsLr/utqCsM67rcOpc9EiXW5XA==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '79991.17', 'discount': '21759.23', 'currency': 'MXN', 'exchange_rate': '1', 'total': '58231.94', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (36 characters truncated) ... 7", "importe": "79991.17", "descuento": "21759.23", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-05T13:58:09', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/3783a3c3-aac6-4c22-9970-edef6d7a0677.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:54:02,312 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'e94becb5-d4ea-4e52-bf37-dfdaf308a2b2', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'ENE76226', 'number_leaf': '50066858288', 'dates': '2025-02-02T18:52:49', 'stamp': 'LC+2CKgyqWeYLWLRLVNGxzFxxzCLVr6erFFZyQhOlDqq8g4yoibMWLp2P2EOmMOG/Soewu17WAuE1kevlSDOeqxSf0FPo29GyqAnxCOjTkMddPO/MjbI0ooGnz9Fmr/8DZY+cTf2Zf/VoLMmdNLNl ... (46 characters truncated) ... rds+AqOAbjWC5XaRBTjfSx7HiJAshEbZbiLjthF8RkgKO/EZ3eR4D2xpoAC3yM07L1YiJUqzI/D0IdEK5EXetwzIeNsQSNs0aduRLcxE+rTAL1WinVG1ROw/TqTh2CXmmsVDHoAUW/iiu8Qt9vg==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-03T05:07:26', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/e94becb5-d4ea-4e52-bf37-dfdaf308a2b2.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:54:02,533 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'C1B8BC2F-78CD-4FF5-934F-97DCA858B380', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-02-08T10:53:55', 'stamp': 'kHnGjfPuuhbEBurpQsbw0I4+KbWOrT/r0oKb9ybB+iZzBs6Ska9Jvulhox5yY3McLjjQUimtLdEapQuEN+EBq2pLekJ5SeML2L3HhxbHvZfbfYbnmZHqjYbsox+KXUC6avyH1GTp3CT+ZHlFnniNj ... (46 characters truncated) ... i2f6uVpkSJr1s5hijov4zanCIb1lGtnmjRVQyWm5nJpdaTDhI/bUiWMVgtnr4PjfL8qXyW0ie1+cICuiNRVIAcsPHjMBWSaZcQS0Ieh6WI/6I4tBRZOt/OcHIOB8yairCc0MsW1v/b5xLN9zGdQ==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-08T19:48:56', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/c1b8bc2f-78cd-4ff5-934f-97dca858b380.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:54:02,766 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'BEBDBEED-2E5F-45CC-B6A1-AF2F82933744', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1457016', 'dates': '2025-02-27T20:44:26', 'stamp': 'DfSjGZYGp0L+Fudrab3w4ypBuEyGJipp1vKunxy471Yq+T1vlNH5VwjzUpYBgFpRT5tpNNR38PYrjkVYB0Bcd2BYA7RazHuLXikE/R05GT8nBtMbKv1PoBMkR+X7ZwmXXPGmm16WByfas5H6eRR71 ... (46 characters truncated) ... zOeaWFR7biXZngWUHMnuT6d/XEAoxoC7KEZEO6p0pgIzbkbeceQahv82/37Iu6UGzU6ayyplYgPFOYz3aGXdpfg0z/wgOx85LcXYhOhEeH207nLk1lqKBX91tCNqpeYqMEp3Ph2Q5LbE4VLWkwQ==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '205.80', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '238.73', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "INT. DE ... (945 characters truncated) ... e": "67.51", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "10.80"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '32.93', 'stamp_date': '2025-02-27T20:54:44', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/bebdbeed-2e5f-45cc-b6a1-af2f82933744.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:54:03,018 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '38545538-1905-4066-BB37-F62734BA212E', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190101', 'dates': '2025-02-05T15:51:45', 'stamp': 'IZehUWvH9hDLpHZik+5xrbQniXpPzZ90FBQCr4PpqQA8pVetSrW0D7HhTYoYLUz6adHpj/37OJAMKo+LDEcfFUzQ3BDZMPshKQAI0WTZ7Hc3VxFlEaYwlJ8mKysC+Zw5gaPbrQofaT31wD4qjozSf ... (46 characters truncated) ... CoWOiG8MCr2U+P0eqFBzO16u2fOjNF2HwYAynR4nUDYkm6DwNTfQJf1URRZqV7QwGltTjuAk+zijmL8xr1MVQCqTWeA7VInB0t1TIlugOuaFgkHARRd5hFeU6gXEM04nkU0Zsy1Ss6q1H2YIonA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-02-05T23:52:18', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/38545538-1905-4066-bb37-f62734ba212e.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:54:03,250 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '05D46C5F-DE44-40FB-9392-A8DDF87FD6A8', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-02-22T08:30:09', 'stamp': 'YKNzsTxB0aU/lFME/OZ1v7do70g2wpMXl/EendKlu9ktYKoaUr8xb1TqNF1LeQ7vQnwnYKhuNSUJ62f+VMZGMmpCzUCcf5J8FDG/Ny73vct1NtERLyCq2qG9WMe+3lX/m9/kWmfo7c1RiIoH9Y1tG ... (46 characters truncated) ... G1tf2aImjLvw6jwmRJ+LmwnWk9zG5g2gh7gXSyjaWVE97/fZ+oi0ofre7Ts2gAnu299uSosJIv6LoHNDDQ423m81YNWaH1puTpNfcot7ih1ZL/lrFD8vLTzNiAkHqkWFhK/1aZdTt2pFlRLp6BA==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-22T15:01:25', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/05d46c5f-de44-40fb-9392-a8ddf87fd6a8.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:54:03,472 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'f417abad-2b06-47f4-95da-edef6d7af3fd', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-02-20T13:11:29', 'stamp': 'gqyRvYwV7EJEop9RBWMtW08CRLXRvSVia4xYk/tytwdEnkYFncPbPgh3tED0Vkj8hcvQ+ocqtwmiD8O9wWF1kLdgvWWj39Os4amVzmesF77y0MdwQR9e/K+xSkhZEXQumzGRVV71PRRGvyNzW8a+p ... (46 characters truncated) ... f/iliDXANCycczi53zafFjjj2HfDko6iTa2AXQKITkSkDXnPdScD0d8YdGImy2LID7QzLJBRzhyFsf2wYc2TbtYQPq57JVMU5kH8Ofn8G/FkCvT3shAt7S/aoiGXQ8odHixqPFy3GbfZ4Jyn4pg==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '25111.75', 'discount': '7928.71', 'currency': 'MXN', 'exchange_rate': '1', 'total': '17183.04', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "25111.75", "descuento": "7928.71", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-20T13:34:12', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f417abad-2b06-47f4-95da-edef6d7af3fd.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:54:05,764 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '78f14f40-fe1d-4830-b383-edef6d7a86e0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-06T19:53:52', 'stamp': 'HYNM2Ed841WndlL/7c7mrYZlvsKtmUzszZ/CXhqy81QelkQZNChZu8a63FK9Y6K7XC4I+p9iwnddk9poT1OKkvEs192qtZe4a5dlM1rTQvQciIBc6BpWb9SsF4kPG0lVgNPzOdAKReFXDS19+qSFM ... (46 characters truncated) ... iQuyPx6VF6TFWpVh0pfdrnhUCBgJfCNDbpr2KFzhi67ruJaZ2kXyZr3grhnHT01yyfpoicm5AuG9PLZswty7KjfPlk4YIZ8ROIv0p5/xlrXEZna9ZNHPJPaJIcY5H34XNHHx/e40MeIi3nTm3fQ==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8042.42', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13630.33', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8042.42", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-06T20:15:10', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/78f14f40-fe1d-4830-b383-edef6d7a86e0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:54:05,983 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '38C1CE7A-2F70-4688-A2DD-5C0838129C9C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1385483', 'dates': '2025-01-27T18:15:22', 'stamp': 'Dd65iwSniizBB0NYEYrbvUvARVypImtvSZTwdVJJYZ3jXDX/twXK4/EX6eqJn7CSj7S7ixyjA8oc2reDR0rxV2+NUnbUrOQ+JpFzEqRKac51zV7pflYGJCStOfq1dh6fkiY3K6H0uXgDtcut4YfeL ... (46 characters truncated) ... J33OIVodClrLT6wLwK7caTsabcmmRXd8a2mrDOm07YgbkDS3G7AIHsAdNUVHCvpIziSG03NFoOWIzr8ZfKPozfFWGwKFtnlyMhHlt7Xh+vRC1B/cQgXg8VC1J8ZltyfPnReyBp9ibSRkboUS6Fg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '405.57', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '470.45', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "INT. DE ... (954 characters truncated) ... ": "127.08", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "20.33"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '64.88', 'stamp_date': '2025-01-27T18:21:18', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/38c1ce7a-2f70-4688-a2dd-5c0838129c9c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:54:06,203 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'f61751e1-4c08-473e-8f32-b715544dcf20', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'DIC76005', 'number_leaf': '50066858288', 'dates': '2025-01-03T13:10:40', 'stamp': 'adeG9BSrUyM3SwZci1kls1wjj+TpEpFA8lsE5i/pL+8Xjury/MNnLjPZhnAA01dswQ3VL1BhlofJ5KelaNmIW20EM1KRzZ0eE3Irgpwm/pS+1Bqy812lU+5y2Nlfn6iP3Rmk+2667crb1Iccdbas9 ... (46 characters truncated) ... vsj0QWMGoVJDv11cM6sGSDCtr+oyvEIeExE6OO7iVlpudkZBK0OdDHqoQHeT1TkjES0wQg0j00Rr/SP6YIqdD4sA0QdnuQkZpawD+Ly0gDobrKi2l0sVnlwrusd0SG/qkpKB+JZyHEmVNdTsNzg==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-03T19:12:04', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f61751e1-4c08-473e-8f32-b715544dcf20.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:54:06,425 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '4cbae294-fac7-4e71-a59c-edef6d7a2da0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-22T15:04:31', 'stamp': 'IS/xHVuDRJNRxVdGo8jH7YmFHkcWTQJ19n2TDvBXgDZOfiOPq6azB2TEl2MlQAv0NW2F+KzrlwpKEErd5HH86SxU8x5BMO7ehfz+rR2Gc2djqzsEo3mrvqbgqIzB8/mL3h+SO4qMoin232ZKe9/QM ... (46 characters truncated) ... z7/3u/XCarqTFk/Wp1hoRxywAEm+1IRtXTkIc3Z2mjPeuUM3ETEQhBUQd0wR8+gpY0OcdUxQGapf1fcDg0kJzJmLQOApg6K7OdGy3oFo5klQTL1CumWePqvguwrhILuR6yWSfL18/ESloacPosw==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '24973.75', 'discount': '8053.20', 'currency': 'MXN', 'exchange_rate': '1', 'total': '16920.55', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "24973.75", "descuento": "8053.20", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-22T15:38:09', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/4cbae294-fac7-4e71-a59c-edef6d7a2da0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:54:06,643 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '5851A769-058A-4F53-AB9B-FF7130B0818C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-01-09T09:58:02', 'stamp': 'Q2giEiTWYd+l/a1aHNxNLJMtXZcJJ8vHiF0b0qht8O73atpInOLow4sWd7xybiuwIjsRbXIpws1QwsdhW3SmcrIMjXbF7Qeux1z3o/ueglbwYwhnyMZPlMW3vcKRtEh9FaHdGujsRlcxqo3oFuojA ... (46 characters truncated) ... EmwNBNTMClPNF4wM0Q1VbqllV8gpRVGx1OQX7uJefL7kxHaoB9a8wFa7ht4Rl8JUuyDZEQ0Vhd9etpnNJrVAUNdHRt7LSA2AyPIRRrMcBsDG1BttPTI3dHXRdg9BVc9JMD0ejjETd7F/ThXOGGw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-09T17:31:47', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5851a769-058a-4f53-ab9b-ff7130b0818c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:54:06,864 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'DF9D88D7-A26D-4C02-A877-F385A12F4499', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-01-24T04:29:53', 'stamp': 'TsK50wat0ZN74tstYiDQbFV5jnpWZSa99pUq65RvgsbaowLzgajRv94DvKzG4kXAqrTien4qlzmnpthnZBBzv7YnyG0YuEKl6CsXt8EaGlvS57llJ2AvG6JEHbG1elTlP3iLJVXaHSYrGmLSTv71M ... (46 characters truncated) ... MR+DzH8rRJbXDyb+qcBDhlLNDhwdPRH+UKekYStEzHBwRxpg6g49cYIrlrWFQB22uSaTB8vf9sWfX0fHqnTgFvQzwzY3LDJP5IN7124quR2tFSB9tXy4xeDc8Xp8cVP0Smz5WSCT0HJszvKXFYw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-24T06:00:15', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/df9d88d7-a26d-4c02-a877-f385a12f4499.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:54:07,081 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '71426F59-063F-4AFF-88E3-D21BDF84F1C4', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190212', 'dates': '2025-01-03T17:26:58', 'stamp': 'IJ1YYTtcrGk8Q/macfwKmpEChBPvZgvcZlL0btRXkYmQbhfU4ROT/wxyAmIW3AoD8/SD9Q3MTn1Dfcv5SPDLJhEnMwrdt4VcJ9qyDmiRqJ+/iV5kw6418wOTcA5xMrlkWWkFxh6xgCSg5VC3Vo38F ... (46 characters truncated) ... vHZX/ohx1nyi6cwQNS/hSAEpml8qz8MASlP/idCeNr6jmMUsPax/sthg+ZiYy2MEOwrJX3BXGX9chkaaNjPjvNwlwBRKSjkJI/OUEKU/9tQCeALUoawirnqkcsxzQ1Q7iU9uBL4jeFIM+RmHHMg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:32', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/71426f59-063f-4aff-88e3-d21bdf84f1c4.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:54:07,314 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'A3E5D3D7-1FCF-4F57-8916-3A4427B3D793', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190112', 'dates': '2025-01-03T17:26:58', 'stamp': 'eB1NQXQBF5nMInJi/MqqyNXituuejRvk+d9WZR8DddnHy2FWDW7l2P7FoHJMvoSZgoUMBSzj/nB8oXU96wnNp+AJgqP7XjNnFOVkPJUtqAAUJbchopg2i+DoXuL9iJFnlIl/YxCKWgvzHwPS5nAp0 ... (46 characters truncated) ... cdDTt4qkh67Dal/JZ9G4ULf2uI/fNvtCOfFX/UDUyKZS4SiUStjbVeFaAh6Zn9BhRgwqTmbs+ruzZRZ2jr+bCmrXc5qxNCpJKPhUYcKmYLlS9bq1adPs/D6ocDD54GAhveelVVw0FqsY1bomSkg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:25', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a3e5d3d7-1fcf-4f57-8916-3a4427b3d793.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:54:07,541 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'b815ce6a-ff29-44e8-acfd-9076b697bb57', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '897', 'dates': '2025-01-11T18:25:29', 'stamp': 'U75knfUsAo97T0dxgvD0sVMQE25jTW+VIV2eNM96PdK6JZiFK8L3l9x5CRxImTco0wmeNKqKrT/g76TN9WKhEFjvtS53+JfbJPcKN30AZrt6JK3hAfQLsFP5lxAUXkeEqnW90bkUA5VoD6s3i6B6r ... (46 characters truncated) ... HDX6Nfeh327exYZYtsQGwnbH/Z3YHMm0e1YrPeeQqN6jq3mnRnnq3QmcE5XoE53AnuLEVR7rMVNCWKV5W9Vp39VxSIv0WYsCa5t0wRACc7luPO6yLwGTi26fDK9PTn6+IXNOkxKPQx0tvpLxLlA==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-11T18:25:29', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/b815ce6a-ff29-44e8-acfd-9076b697bb57.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:54:09,879 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '78f14f40-fe1d-4830-b383-edef6d7a86e0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-06T19:53:52', 'stamp': 'HYNM2Ed841WndlL/7c7mrYZlvsKtmUzszZ/CXhqy81QelkQZNChZu8a63FK9Y6K7XC4I+p9iwnddk9poT1OKkvEs192qtZe4a5dlM1rTQvQciIBc6BpWb9SsF4kPG0lVgNPzOdAKReFXDS19+qSFM ... (46 characters truncated) ... iQuyPx6VF6TFWpVh0pfdrnhUCBgJfCNDbpr2KFzhi67ruJaZ2kXyZr3grhnHT01yyfpoicm5AuG9PLZswty7KjfPlk4YIZ8ROIv0p5/xlrXEZna9ZNHPJPaJIcY5H34XNHHx/e40MeIi3nTm3fQ==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8042.42', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13630.33', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8042.42", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-06T20:15:10', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/78f14f40-fe1d-4830-b383-edef6d7a86e0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:54:10,109 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '38C1CE7A-2F70-4688-A2DD-5C0838129C9C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1385483', 'dates': '2025-01-27T18:15:22', 'stamp': 'Dd65iwSniizBB0NYEYrbvUvARVypImtvSZTwdVJJYZ3jXDX/twXK4/EX6eqJn7CSj7S7ixyjA8oc2reDR0rxV2+NUnbUrOQ+JpFzEqRKac51zV7pflYGJCStOfq1dh6fkiY3K6H0uXgDtcut4YfeL ... (46 characters truncated) ... J33OIVodClrLT6wLwK7caTsabcmmRXd8a2mrDOm07YgbkDS3G7AIHsAdNUVHCvpIziSG03NFoOWIzr8ZfKPozfFWGwKFtnlyMhHlt7Xh+vRC1B/cQgXg8VC1J8ZltyfPnReyBp9ibSRkboUS6Fg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '405.57', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '470.45', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "INT. DE ... (954 characters truncated) ... ": "127.08", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "20.33"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '64.88', 'stamp_date': '2025-01-27T18:21:18', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/38c1ce7a-2f70-4688-a2dd-5c0838129c9c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:54:10,330 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'f61751e1-4c08-473e-8f32-b715544dcf20', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'DIC76005', 'number_leaf': '50066858288', 'dates': '2025-01-03T13:10:40', 'stamp': 'adeG9BSrUyM3SwZci1kls1wjj+TpEpFA8lsE5i/pL+8Xjury/MNnLjPZhnAA01dswQ3VL1BhlofJ5KelaNmIW20EM1KRzZ0eE3Irgpwm/pS+1Bqy812lU+5y2Nlfn6iP3Rmk+2667crb1Iccdbas9 ... (46 characters truncated) ... vsj0QWMGoVJDv11cM6sGSDCtr+oyvEIeExE6OO7iVlpudkZBK0OdDHqoQHeT1TkjES0wQg0j00Rr/SP6YIqdD4sA0QdnuQkZpawD+Ly0gDobrKi2l0sVnlwrusd0SG/qkpKB+JZyHEmVNdTsNzg==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-03T19:12:04', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f61751e1-4c08-473e-8f32-b715544dcf20.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:54:10,551 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '4cbae294-fac7-4e71-a59c-edef6d7a2da0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-22T15:04:31', 'stamp': 'IS/xHVuDRJNRxVdGo8jH7YmFHkcWTQJ19n2TDvBXgDZOfiOPq6azB2TEl2MlQAv0NW2F+KzrlwpKEErd5HH86SxU8x5BMO7ehfz+rR2Gc2djqzsEo3mrvqbgqIzB8/mL3h+SO4qMoin232ZKe9/QM ... (46 characters truncated) ... z7/3u/XCarqTFk/Wp1hoRxywAEm+1IRtXTkIc3Z2mjPeuUM3ETEQhBUQd0wR8+gpY0OcdUxQGapf1fcDg0kJzJmLQOApg6K7OdGy3oFo5klQTL1CumWePqvguwrhILuR6yWSfL18/ESloacPosw==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '24973.75', 'discount': '8053.20', 'currency': 'MXN', 'exchange_rate': '1', 'total': '16920.55', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "24973.75", "descuento": "8053.20", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-22T15:38:09', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/4cbae294-fac7-4e71-a59c-edef6d7a2da0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:54:10,770 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '5851A769-058A-4F53-AB9B-FF7130B0818C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-01-09T09:58:02', 'stamp': 'Q2giEiTWYd+l/a1aHNxNLJMtXZcJJ8vHiF0b0qht8O73atpInOLow4sWd7xybiuwIjsRbXIpws1QwsdhW3SmcrIMjXbF7Qeux1z3o/ueglbwYwhnyMZPlMW3vcKRtEh9FaHdGujsRlcxqo3oFuojA ... (46 characters truncated) ... EmwNBNTMClPNF4wM0Q1VbqllV8gpRVGx1OQX7uJefL7kxHaoB9a8wFa7ht4Rl8JUuyDZEQ0Vhd9etpnNJrVAUNdHRt7LSA2AyPIRRrMcBsDG1BttPTI3dHXRdg9BVc9JMD0ejjETd7F/ThXOGGw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-09T17:31:47', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5851a769-058a-4f53-ab9b-ff7130b0818c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:54:10,989 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'DF9D88D7-A26D-4C02-A877-F385A12F4499', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-01-24T04:29:53', 'stamp': 'TsK50wat0ZN74tstYiDQbFV5jnpWZSa99pUq65RvgsbaowLzgajRv94DvKzG4kXAqrTien4qlzmnpthnZBBzv7YnyG0YuEKl6CsXt8EaGlvS57llJ2AvG6JEHbG1elTlP3iLJVXaHSYrGmLSTv71M ... (46 characters truncated) ... MR+DzH8rRJbXDyb+qcBDhlLNDhwdPRH+UKekYStEzHBwRxpg6g49cYIrlrWFQB22uSaTB8vf9sWfX0fHqnTgFvQzwzY3LDJP5IN7124quR2tFSB9tXy4xeDc8Xp8cVP0Smz5WSCT0HJszvKXFYw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-24T06:00:15', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/df9d88d7-a26d-4c02-a877-f385a12f4499.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:54:11,215 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '71426F59-063F-4AFF-88E3-D21BDF84F1C4', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190212', 'dates': '2025-01-03T17:26:58', 'stamp': 'IJ1YYTtcrGk8Q/macfwKmpEChBPvZgvcZlL0btRXkYmQbhfU4ROT/wxyAmIW3AoD8/SD9Q3MTn1Dfcv5SPDLJhEnMwrdt4VcJ9qyDmiRqJ+/iV5kw6418wOTcA5xMrlkWWkFxh6xgCSg5VC3Vo38F ... (46 characters truncated) ... vHZX/ohx1nyi6cwQNS/hSAEpml8qz8MASlP/idCeNr6jmMUsPax/sthg+ZiYy2MEOwrJX3BXGX9chkaaNjPjvNwlwBRKSjkJI/OUEKU/9tQCeALUoawirnqkcsxzQ1Q7iU9uBL4jeFIM+RmHHMg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:32', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/71426f59-063f-4aff-88e3-d21bdf84f1c4.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:54:11,436 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'A3E5D3D7-1FCF-4F57-8916-3A4427B3D793', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190112', 'dates': '2025-01-03T17:26:58', 'stamp': 'eB1NQXQBF5nMInJi/MqqyNXituuejRvk+d9WZR8DddnHy2FWDW7l2P7FoHJMvoSZgoUMBSzj/nB8oXU96wnNp+AJgqP7XjNnFOVkPJUtqAAUJbchopg2i+DoXuL9iJFnlIl/YxCKWgvzHwPS5nAp0 ... (46 characters truncated) ... cdDTt4qkh67Dal/JZ9G4ULf2uI/fNvtCOfFX/UDUyKZS4SiUStjbVeFaAh6Zn9BhRgwqTmbs+ruzZRZ2jr+bCmrXc5qxNCpJKPhUYcKmYLlS9bq1adPs/D6ocDD54GAhveelVVw0FqsY1bomSkg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:25', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a3e5d3d7-1fcf-4f57-8916-3a4427b3d793.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:54:11,654 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'b815ce6a-ff29-44e8-acfd-9076b697bb57', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '897', 'dates': '2025-01-11T18:25:29', 'stamp': 'U75knfUsAo97T0dxgvD0sVMQE25jTW+VIV2eNM96PdK6JZiFK8L3l9x5CRxImTco0wmeNKqKrT/g76TN9WKhEFjvtS53+JfbJPcKN30AZrt6JK3hAfQLsFP5lxAUXkeEqnW90bkUA5VoD6s3i6B6r ... (46 characters truncated) ... HDX6Nfeh327exYZYtsQGwnbH/Z3YHMm0e1YrPeeQqN6jq3mnRnnq3QmcE5XoE53AnuLEVR7rMVNCWKV5W9Vp39VxSIv0WYsCa5t0wRACc7luPO6yLwGTi26fDK9PTn6+IXNOkxKPQx0tvpLxLlA==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-11T18:25:29', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/b815ce6a-ff29-44e8-acfd-9076b697bb57.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:54:13,959 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '78f14f40-fe1d-4830-b383-edef6d7a86e0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-06T19:53:52', 'stamp': 'HYNM2Ed841WndlL/7c7mrYZlvsKtmUzszZ/CXhqy81QelkQZNChZu8a63FK9Y6K7XC4I+p9iwnddk9poT1OKkvEs192qtZe4a5dlM1rTQvQciIBc6BpWb9SsF4kPG0lVgNPzOdAKReFXDS19+qSFM ... (46 characters truncated) ... iQuyPx6VF6TFWpVh0pfdrnhUCBgJfCNDbpr2KFzhi67ruJaZ2kXyZr3grhnHT01yyfpoicm5AuG9PLZswty7KjfPlk4YIZ8ROIv0p5/xlrXEZna9ZNHPJPaJIcY5H34XNHHx/e40MeIi3nTm3fQ==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8042.42', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13630.33', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8042.42", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-06T20:15:10', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/78f14f40-fe1d-4830-b383-edef6d7a86e0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:54:14,181 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '38C1CE7A-2F70-4688-A2DD-5C0838129C9C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1385483', 'dates': '2025-01-27T18:15:22', 'stamp': 'Dd65iwSniizBB0NYEYrbvUvARVypImtvSZTwdVJJYZ3jXDX/twXK4/EX6eqJn7CSj7S7ixyjA8oc2reDR0rxV2+NUnbUrOQ+JpFzEqRKac51zV7pflYGJCStOfq1dh6fkiY3K6H0uXgDtcut4YfeL ... (46 characters truncated) ... J33OIVodClrLT6wLwK7caTsabcmmRXd8a2mrDOm07YgbkDS3G7AIHsAdNUVHCvpIziSG03NFoOWIzr8ZfKPozfFWGwKFtnlyMhHlt7Xh+vRC1B/cQgXg8VC1J8ZltyfPnReyBp9ibSRkboUS6Fg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '405.57', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '470.45', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "INT. DE ... (954 characters truncated) ... ": "127.08", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "20.33"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '64.88', 'stamp_date': '2025-01-27T18:21:18', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/38c1ce7a-2f70-4688-a2dd-5c0838129c9c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:54:14,408 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'f61751e1-4c08-473e-8f32-b715544dcf20', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'DIC76005', 'number_leaf': '50066858288', 'dates': '2025-01-03T13:10:40', 'stamp': 'adeG9BSrUyM3SwZci1kls1wjj+TpEpFA8lsE5i/pL+8Xjury/MNnLjPZhnAA01dswQ3VL1BhlofJ5KelaNmIW20EM1KRzZ0eE3Irgpwm/pS+1Bqy812lU+5y2Nlfn6iP3Rmk+2667crb1Iccdbas9 ... (46 characters truncated) ... vsj0QWMGoVJDv11cM6sGSDCtr+oyvEIeExE6OO7iVlpudkZBK0OdDHqoQHeT1TkjES0wQg0j00Rr/SP6YIqdD4sA0QdnuQkZpawD+Ly0gDobrKi2l0sVnlwrusd0SG/qkpKB+JZyHEmVNdTsNzg==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-03T19:12:04', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f61751e1-4c08-473e-8f32-b715544dcf20.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:54:14,627 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '4cbae294-fac7-4e71-a59c-edef6d7a2da0', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-22T15:04:31', 'stamp': 'IS/xHVuDRJNRxVdGo8jH7YmFHkcWTQJ19n2TDvBXgDZOfiOPq6azB2TEl2MlQAv0NW2F+KzrlwpKEErd5HH86SxU8x5BMO7ehfz+rR2Gc2djqzsEo3mrvqbgqIzB8/mL3h+SO4qMoin232ZKe9/QM ... (46 characters truncated) ... z7/3u/XCarqTFk/Wp1hoRxywAEm+1IRtXTkIc3Z2mjPeuUM3ETEQhBUQd0wR8+gpY0OcdUxQGapf1fcDg0kJzJmLQOApg6K7OdGy3oFo5klQTL1CumWePqvguwrhILuR6yWSfL18/ESloacPosw==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '24973.75', 'discount': '8053.20', 'currency': 'MXN', 'exchange_rate': '1', 'total': '16920.55', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "24973.75", "descuento": "8053.20", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-22T15:38:09', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/4cbae294-fac7-4e71-a59c-edef6d7a2da0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:54:14,846 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '5851A769-058A-4F53-AB9B-FF7130B0818C', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-01-09T09:58:02', 'stamp': 'Q2giEiTWYd+l/a1aHNxNLJMtXZcJJ8vHiF0b0qht8O73atpInOLow4sWd7xybiuwIjsRbXIpws1QwsdhW3SmcrIMjXbF7Qeux1z3o/ueglbwYwhnyMZPlMW3vcKRtEh9FaHdGujsRlcxqo3oFuojA ... (46 characters truncated) ... EmwNBNTMClPNF4wM0Q1VbqllV8gpRVGx1OQX7uJefL7kxHaoB9a8wFa7ht4Rl8JUuyDZEQ0Vhd9etpnNJrVAUNdHRt7LSA2AyPIRRrMcBsDG1BttPTI3dHXRdg9BVc9JMD0ejjETd7F/ThXOGGw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-09T17:31:47', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5851a769-058a-4f53-ab9b-ff7130b0818c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:54:15,068 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'DF9D88D7-A26D-4C02-A877-F385A12F4499', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-01-24T04:29:53', 'stamp': 'TsK50wat0ZN74tstYiDQbFV5jnpWZSa99pUq65RvgsbaowLzgajRv94DvKzG4kXAqrTien4qlzmnpthnZBBzv7YnyG0YuEKl6CsXt8EaGlvS57llJ2AvG6JEHbG1elTlP3iLJVXaHSYrGmLSTv71M ... (46 characters truncated) ... MR+DzH8rRJbXDyb+qcBDhlLNDhwdPRH+UKekYStEzHBwRxpg6g49cYIrlrWFQB22uSaTB8vf9sWfX0fHqnTgFvQzwzY3LDJP5IN7124quR2tFSB9tXy4xeDc8Xp8cVP0Smz5WSCT0HJszvKXFYw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-24T06:00:15', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/df9d88d7-a26d-4c02-a877-f385a12f4499.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:54:15,286 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '71426F59-063F-4AFF-88E3-D21BDF84F1C4', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190212', 'dates': '2025-01-03T17:26:58', 'stamp': 'IJ1YYTtcrGk8Q/macfwKmpEChBPvZgvcZlL0btRXkYmQbhfU4ROT/wxyAmIW3AoD8/SD9Q3MTn1Dfcv5SPDLJhEnMwrdt4VcJ9qyDmiRqJ+/iV5kw6418wOTcA5xMrlkWWkFxh6xgCSg5VC3Vo38F ... (46 characters truncated) ... vHZX/ohx1nyi6cwQNS/hSAEpml8qz8MASlP/idCeNr6jmMUsPax/sthg+ZiYy2MEOwrJX3BXGX9chkaaNjPjvNwlwBRKSjkJI/OUEKU/9tQCeALUoawirnqkcsxzQ1Q7iU9uBL4jeFIM+RmHHMg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:32', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/71426f59-063f-4aff-88e3-d21bdf84f1c4.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:54:15,505 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'A3E5D3D7-1FCF-4F57-8916-3A4427B3D793', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190112', 'dates': '2025-01-03T17:26:58', 'stamp': 'eB1NQXQBF5nMInJi/MqqyNXituuejRvk+d9WZR8DddnHy2FWDW7l2P7FoHJMvoSZgoUMBSzj/nB8oXU96wnNp+AJgqP7XjNnFOVkPJUtqAAUJbchopg2i+DoXuL9iJFnlIl/YxCKWgvzHwPS5nAp0 ... (46 characters truncated) ... cdDTt4qkh67Dal/JZ9G4ULf2uI/fNvtCOfFX/UDUyKZS4SiUStjbVeFaAh6Zn9BhRgwqTmbs+ruzZRZ2jr+bCmrXc5qxNCpJKPhUYcKmYLlS9bq1adPs/D6ocDD54GAhveelVVw0FqsY1bomSkg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:25', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a3e5d3d7-1fcf-4f57-8916-3a4427b3d793.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:54:15,726 - api_logger - ERROR - Error creating record: (psycopg2.errors.ForeignKeyViolation) insert or update on table "cfdi_documents_recibidos_ead11a8d04a58779_virg900207rr3" violates foreign key constraint "cfdi_documents_recibidos_company_id_fkey"
DETAIL:  Key (company_id)=(46) is not present in table "companies".

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'b815ce6a-ff29-44e8-acfd-9076b697bb57', 'company_id': 46, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '897', 'dates': '2025-01-11T18:25:29', 'stamp': 'U75knfUsAo97T0dxgvD0sVMQE25jTW+VIV2eNM96PdK6JZiFK8L3l9x5CRxImTco0wmeNKqKrT/g76TN9WKhEFjvtS53+JfbJPcKN30AZrt6JK3hAfQLsFP5lxAUXkeEqnW90bkUA5VoD6s3i6B6r ... (46 characters truncated) ... HDX6Nfeh327exYZYtsQGwnbH/Z3YHMm0e1YrPeeQqN6jq3mnRnnq3QmcE5XoE53AnuLEVR7rMVNCWKV5W9Vp39VxSIv0WYsCa5t0wRACc7luPO6yLwGTi26fDK9PTn6+IXNOkxKPQx0tvpLxLlA==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-11T18:25:29', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/b815ce6a-ff29-44e8-acfd-9076b697bb57.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:59:56,083 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(78f14f40-fe1d-4830-b383-edef6d7a86e0, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '78f14f40-fe1d-4830-b383-edef6d7a86e0', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-06T19:53:52', 'stamp': 'HYNM2Ed841WndlL/7c7mrYZlvsKtmUzszZ/CXhqy81QelkQZNChZu8a63FK9Y6K7XC4I+p9iwnddk9poT1OKkvEs192qtZe4a5dlM1rTQvQciIBc6BpWb9SsF4kPG0lVgNPzOdAKReFXDS19+qSFM ... (46 characters truncated) ... iQuyPx6VF6TFWpVh0pfdrnhUCBgJfCNDbpr2KFzhi67ruJaZ2kXyZr3grhnHT01yyfpoicm5AuG9PLZswty7KjfPlk4YIZ8ROIv0p5/xlrXEZna9ZNHPJPaJIcY5H34XNHHx/e40MeIi3nTm3fQ==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8042.42', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13630.33', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8042.42", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-06T20:15:10', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/78f14f40-fe1d-4830-b383-edef6d7a86e0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:59:56,300 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(38C1CE7A-2F70-4688-A2DD-5C0838129C9C, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '38C1CE7A-2F70-4688-A2DD-5C0838129C9C', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1385483', 'dates': '2025-01-27T18:15:22', 'stamp': 'Dd65iwSniizBB0NYEYrbvUvARVypImtvSZTwdVJJYZ3jXDX/twXK4/EX6eqJn7CSj7S7ixyjA8oc2reDR0rxV2+NUnbUrOQ+JpFzEqRKac51zV7pflYGJCStOfq1dh6fkiY3K6H0uXgDtcut4YfeL ... (46 characters truncated) ... J33OIVodClrLT6wLwK7caTsabcmmRXd8a2mrDOm07YgbkDS3G7AIHsAdNUVHCvpIziSG03NFoOWIzr8ZfKPozfFWGwKFtnlyMhHlt7Xh+vRC1B/cQgXg8VC1J8ZltyfPnReyBp9ibSRkboUS6Fg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '405.57', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '470.45', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "INT. DE ... (954 characters truncated) ... ": "127.08", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "20.33"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '64.88', 'stamp_date': '2025-01-27T18:21:18', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/38c1ce7a-2f70-4688-a2dd-5c0838129c9c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:59:56,519 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(f61751e1-4c08-473e-8f32-b715544dcf20, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'f61751e1-4c08-473e-8f32-b715544dcf20', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'DIC76005', 'number_leaf': '50066858288', 'dates': '2025-01-03T13:10:40', 'stamp': 'adeG9BSrUyM3SwZci1kls1wjj+TpEpFA8lsE5i/pL+8Xjury/MNnLjPZhnAA01dswQ3VL1BhlofJ5KelaNmIW20EM1KRzZ0eE3Irgpwm/pS+1Bqy812lU+5y2Nlfn6iP3Rmk+2667crb1Iccdbas9 ... (46 characters truncated) ... vsj0QWMGoVJDv11cM6sGSDCtr+oyvEIeExE6OO7iVlpudkZBK0OdDHqoQHeT1TkjES0wQg0j00Rr/SP6YIqdD4sA0QdnuQkZpawD+Ly0gDobrKi2l0sVnlwrusd0SG/qkpKB+JZyHEmVNdTsNzg==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-03T19:12:04', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f61751e1-4c08-473e-8f32-b715544dcf20.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:59:56,747 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(4cbae294-fac7-4e71-a59c-edef6d7a2da0, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '4cbae294-fac7-4e71-a59c-edef6d7a2da0', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-22T15:04:31', 'stamp': 'IS/xHVuDRJNRxVdGo8jH7YmFHkcWTQJ19n2TDvBXgDZOfiOPq6azB2TEl2MlQAv0NW2F+KzrlwpKEErd5HH86SxU8x5BMO7ehfz+rR2Gc2djqzsEo3mrvqbgqIzB8/mL3h+SO4qMoin232ZKe9/QM ... (46 characters truncated) ... z7/3u/XCarqTFk/Wp1hoRxywAEm+1IRtXTkIc3Z2mjPeuUM3ETEQhBUQd0wR8+gpY0OcdUxQGapf1fcDg0kJzJmLQOApg6K7OdGy3oFo5klQTL1CumWePqvguwrhILuR6yWSfL18/ESloacPosw==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '24973.75', 'discount': '8053.20', 'currency': 'MXN', 'exchange_rate': '1', 'total': '16920.55', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "24973.75", "descuento": "8053.20", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-22T15:38:09', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/4cbae294-fac7-4e71-a59c-edef6d7a2da0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:59:56,969 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(5851A769-058A-4F53-AB9B-FF7130B0818C, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '5851A769-058A-4F53-AB9B-FF7130B0818C', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-01-09T09:58:02', 'stamp': 'Q2giEiTWYd+l/a1aHNxNLJMtXZcJJ8vHiF0b0qht8O73atpInOLow4sWd7xybiuwIjsRbXIpws1QwsdhW3SmcrIMjXbF7Qeux1z3o/ueglbwYwhnyMZPlMW3vcKRtEh9FaHdGujsRlcxqo3oFuojA ... (46 characters truncated) ... EmwNBNTMClPNF4wM0Q1VbqllV8gpRVGx1OQX7uJefL7kxHaoB9a8wFa7ht4Rl8JUuyDZEQ0Vhd9etpnNJrVAUNdHRt7LSA2AyPIRRrMcBsDG1BttPTI3dHXRdg9BVc9JMD0ejjETd7F/ThXOGGw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-09T17:31:47', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5851a769-058a-4f53-ab9b-ff7130b0818c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:59:57,189 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(DF9D88D7-A26D-4C02-A877-F385A12F4499, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'DF9D88D7-A26D-4C02-A877-F385A12F4499', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-01-24T04:29:53', 'stamp': 'TsK50wat0ZN74tstYiDQbFV5jnpWZSa99pUq65RvgsbaowLzgajRv94DvKzG4kXAqrTien4qlzmnpthnZBBzv7YnyG0YuEKl6CsXt8EaGlvS57llJ2AvG6JEHbG1elTlP3iLJVXaHSYrGmLSTv71M ... (46 characters truncated) ... MR+DzH8rRJbXDyb+qcBDhlLNDhwdPRH+UKekYStEzHBwRxpg6g49cYIrlrWFQB22uSaTB8vf9sWfX0fHqnTgFvQzwzY3LDJP5IN7124quR2tFSB9tXy4xeDc8Xp8cVP0Smz5WSCT0HJszvKXFYw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-24T06:00:15', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/df9d88d7-a26d-4c02-a877-f385a12f4499.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:59:57,406 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(71426F59-063F-4AFF-88E3-D21BDF84F1C4, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '71426F59-063F-4AFF-88E3-D21BDF84F1C4', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190212', 'dates': '2025-01-03T17:26:58', 'stamp': 'IJ1YYTtcrGk8Q/macfwKmpEChBPvZgvcZlL0btRXkYmQbhfU4ROT/wxyAmIW3AoD8/SD9Q3MTn1Dfcv5SPDLJhEnMwrdt4VcJ9qyDmiRqJ+/iV5kw6418wOTcA5xMrlkWWkFxh6xgCSg5VC3Vo38F ... (46 characters truncated) ... vHZX/ohx1nyi6cwQNS/hSAEpml8qz8MASlP/idCeNr6jmMUsPax/sthg+ZiYy2MEOwrJX3BXGX9chkaaNjPjvNwlwBRKSjkJI/OUEKU/9tQCeALUoawirnqkcsxzQ1Q7iU9uBL4jeFIM+RmHHMg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:32', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/71426f59-063f-4aff-88e3-d21bdf84f1c4.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:59:57,628 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(A3E5D3D7-1FCF-4F57-8916-3A4427B3D793, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'A3E5D3D7-1FCF-4F57-8916-3A4427B3D793', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190112', 'dates': '2025-01-03T17:26:58', 'stamp': 'eB1NQXQBF5nMInJi/MqqyNXituuejRvk+d9WZR8DddnHy2FWDW7l2P7FoHJMvoSZgoUMBSzj/nB8oXU96wnNp+AJgqP7XjNnFOVkPJUtqAAUJbchopg2i+DoXuL9iJFnlIl/YxCKWgvzHwPS5nAp0 ... (46 characters truncated) ... cdDTt4qkh67Dal/JZ9G4ULf2uI/fNvtCOfFX/UDUyKZS4SiUStjbVeFaAh6Zn9BhRgwqTmbs+ruzZRZ2jr+bCmrXc5qxNCpJKPhUYcKmYLlS9bq1adPs/D6ocDD54GAhveelVVw0FqsY1bomSkg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:25', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a3e5d3d7-1fcf-4f57-8916-3a4427b3d793.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 19:59:57,847 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(b815ce6a-ff29-44e8-acfd-9076b697bb57, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'b815ce6a-ff29-44e8-acfd-9076b697bb57', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '897', 'dates': '2025-01-11T18:25:29', 'stamp': 'U75knfUsAo97T0dxgvD0sVMQE25jTW+VIV2eNM96PdK6JZiFK8L3l9x5CRxImTco0wmeNKqKrT/g76TN9WKhEFjvtS53+JfbJPcKN30AZrt6JK3hAfQLsFP5lxAUXkeEqnW90bkUA5VoD6s3i6B6r ... (46 characters truncated) ... HDX6Nfeh327exYZYtsQGwnbH/Z3YHMm0e1YrPeeQqN6jq3mnRnnq3QmcE5XoE53AnuLEVR7rMVNCWKV5W9Vp39VxSIv0WYsCa5t0wRACc7luPO6yLwGTi26fDK9PTn6+IXNOkxKPQx0tvpLxLlA==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-11T18:25:29', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/b815ce6a-ff29-44e8-acfd-9076b697bb57.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:00,188 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(78f14f40-fe1d-4830-b383-edef6d7a86e0, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '78f14f40-fe1d-4830-b383-edef6d7a86e0', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-06T19:53:52', 'stamp': 'HYNM2Ed841WndlL/7c7mrYZlvsKtmUzszZ/CXhqy81QelkQZNChZu8a63FK9Y6K7XC4I+p9iwnddk9poT1OKkvEs192qtZe4a5dlM1rTQvQciIBc6BpWb9SsF4kPG0lVgNPzOdAKReFXDS19+qSFM ... (46 characters truncated) ... iQuyPx6VF6TFWpVh0pfdrnhUCBgJfCNDbpr2KFzhi67ruJaZ2kXyZr3grhnHT01yyfpoicm5AuG9PLZswty7KjfPlk4YIZ8ROIv0p5/xlrXEZna9ZNHPJPaJIcY5H34XNHHx/e40MeIi3nTm3fQ==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8042.42', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13630.33', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8042.42", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-06T20:15:10', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/78f14f40-fe1d-4830-b383-edef6d7a86e0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:00,408 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(38C1CE7A-2F70-4688-A2DD-5C0838129C9C, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '38C1CE7A-2F70-4688-A2DD-5C0838129C9C', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1385483', 'dates': '2025-01-27T18:15:22', 'stamp': 'Dd65iwSniizBB0NYEYrbvUvARVypImtvSZTwdVJJYZ3jXDX/twXK4/EX6eqJn7CSj7S7ixyjA8oc2reDR0rxV2+NUnbUrOQ+JpFzEqRKac51zV7pflYGJCStOfq1dh6fkiY3K6H0uXgDtcut4YfeL ... (46 characters truncated) ... J33OIVodClrLT6wLwK7caTsabcmmRXd8a2mrDOm07YgbkDS3G7AIHsAdNUVHCvpIziSG03NFoOWIzr8ZfKPozfFWGwKFtnlyMhHlt7Xh+vRC1B/cQgXg8VC1J8ZltyfPnReyBp9ibSRkboUS6Fg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '405.57', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '470.45', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "INT. DE ... (954 characters truncated) ... ": "127.08", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "20.33"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '64.88', 'stamp_date': '2025-01-27T18:21:18', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/38c1ce7a-2f70-4688-a2dd-5c0838129c9c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:00,628 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(f61751e1-4c08-473e-8f32-b715544dcf20, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'f61751e1-4c08-473e-8f32-b715544dcf20', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'DIC76005', 'number_leaf': '50066858288', 'dates': '2025-01-03T13:10:40', 'stamp': 'adeG9BSrUyM3SwZci1kls1wjj+TpEpFA8lsE5i/pL+8Xjury/MNnLjPZhnAA01dswQ3VL1BhlofJ5KelaNmIW20EM1KRzZ0eE3Irgpwm/pS+1Bqy812lU+5y2Nlfn6iP3Rmk+2667crb1Iccdbas9 ... (46 characters truncated) ... vsj0QWMGoVJDv11cM6sGSDCtr+oyvEIeExE6OO7iVlpudkZBK0OdDHqoQHeT1TkjES0wQg0j00Rr/SP6YIqdD4sA0QdnuQkZpawD+Ly0gDobrKi2l0sVnlwrusd0SG/qkpKB+JZyHEmVNdTsNzg==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-03T19:12:04', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f61751e1-4c08-473e-8f32-b715544dcf20.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:00,849 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(4cbae294-fac7-4e71-a59c-edef6d7a2da0, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '4cbae294-fac7-4e71-a59c-edef6d7a2da0', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-22T15:04:31', 'stamp': 'IS/xHVuDRJNRxVdGo8jH7YmFHkcWTQJ19n2TDvBXgDZOfiOPq6azB2TEl2MlQAv0NW2F+KzrlwpKEErd5HH86SxU8x5BMO7ehfz+rR2Gc2djqzsEo3mrvqbgqIzB8/mL3h+SO4qMoin232ZKe9/QM ... (46 characters truncated) ... z7/3u/XCarqTFk/Wp1hoRxywAEm+1IRtXTkIc3Z2mjPeuUM3ETEQhBUQd0wR8+gpY0OcdUxQGapf1fcDg0kJzJmLQOApg6K7OdGy3oFo5klQTL1CumWePqvguwrhILuR6yWSfL18/ESloacPosw==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '24973.75', 'discount': '8053.20', 'currency': 'MXN', 'exchange_rate': '1', 'total': '16920.55', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "24973.75", "descuento": "8053.20", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-22T15:38:09', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/4cbae294-fac7-4e71-a59c-edef6d7a2da0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:01,154 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(5851A769-058A-4F53-AB9B-FF7130B0818C, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '5851A769-058A-4F53-AB9B-FF7130B0818C', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-01-09T09:58:02', 'stamp': 'Q2giEiTWYd+l/a1aHNxNLJMtXZcJJ8vHiF0b0qht8O73atpInOLow4sWd7xybiuwIjsRbXIpws1QwsdhW3SmcrIMjXbF7Qeux1z3o/ueglbwYwhnyMZPlMW3vcKRtEh9FaHdGujsRlcxqo3oFuojA ... (46 characters truncated) ... EmwNBNTMClPNF4wM0Q1VbqllV8gpRVGx1OQX7uJefL7kxHaoB9a8wFa7ht4Rl8JUuyDZEQ0Vhd9etpnNJrVAUNdHRt7LSA2AyPIRRrMcBsDG1BttPTI3dHXRdg9BVc9JMD0ejjETd7F/ThXOGGw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-09T17:31:47', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5851a769-058a-4f53-ab9b-ff7130b0818c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:01,434 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(DF9D88D7-A26D-4C02-A877-F385A12F4499, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'DF9D88D7-A26D-4C02-A877-F385A12F4499', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-01-24T04:29:53', 'stamp': 'TsK50wat0ZN74tstYiDQbFV5jnpWZSa99pUq65RvgsbaowLzgajRv94DvKzG4kXAqrTien4qlzmnpthnZBBzv7YnyG0YuEKl6CsXt8EaGlvS57llJ2AvG6JEHbG1elTlP3iLJVXaHSYrGmLSTv71M ... (46 characters truncated) ... MR+DzH8rRJbXDyb+qcBDhlLNDhwdPRH+UKekYStEzHBwRxpg6g49cYIrlrWFQB22uSaTB8vf9sWfX0fHqnTgFvQzwzY3LDJP5IN7124quR2tFSB9tXy4xeDc8Xp8cVP0Smz5WSCT0HJszvKXFYw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-24T06:00:15', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/df9d88d7-a26d-4c02-a877-f385a12f4499.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:01,657 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(71426F59-063F-4AFF-88E3-D21BDF84F1C4, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '71426F59-063F-4AFF-88E3-D21BDF84F1C4', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190212', 'dates': '2025-01-03T17:26:58', 'stamp': 'IJ1YYTtcrGk8Q/macfwKmpEChBPvZgvcZlL0btRXkYmQbhfU4ROT/wxyAmIW3AoD8/SD9Q3MTn1Dfcv5SPDLJhEnMwrdt4VcJ9qyDmiRqJ+/iV5kw6418wOTcA5xMrlkWWkFxh6xgCSg5VC3Vo38F ... (46 characters truncated) ... vHZX/ohx1nyi6cwQNS/hSAEpml8qz8MASlP/idCeNr6jmMUsPax/sthg+ZiYy2MEOwrJX3BXGX9chkaaNjPjvNwlwBRKSjkJI/OUEKU/9tQCeALUoawirnqkcsxzQ1Q7iU9uBL4jeFIM+RmHHMg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:32', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/71426f59-063f-4aff-88e3-d21bdf84f1c4.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:01,883 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(A3E5D3D7-1FCF-4F57-8916-3A4427B3D793, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'A3E5D3D7-1FCF-4F57-8916-3A4427B3D793', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190112', 'dates': '2025-01-03T17:26:58', 'stamp': 'eB1NQXQBF5nMInJi/MqqyNXituuejRvk+d9WZR8DddnHy2FWDW7l2P7FoHJMvoSZgoUMBSzj/nB8oXU96wnNp+AJgqP7XjNnFOVkPJUtqAAUJbchopg2i+DoXuL9iJFnlIl/YxCKWgvzHwPS5nAp0 ... (46 characters truncated) ... cdDTt4qkh67Dal/JZ9G4ULf2uI/fNvtCOfFX/UDUyKZS4SiUStjbVeFaAh6Zn9BhRgwqTmbs+ruzZRZ2jr+bCmrXc5qxNCpJKPhUYcKmYLlS9bq1adPs/D6ocDD54GAhveelVVw0FqsY1bomSkg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:25', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a3e5d3d7-1fcf-4f57-8916-3a4427b3d793.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:02,102 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(b815ce6a-ff29-44e8-acfd-9076b697bb57, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'b815ce6a-ff29-44e8-acfd-9076b697bb57', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '897', 'dates': '2025-01-11T18:25:29', 'stamp': 'U75knfUsAo97T0dxgvD0sVMQE25jTW+VIV2eNM96PdK6JZiFK8L3l9x5CRxImTco0wmeNKqKrT/g76TN9WKhEFjvtS53+JfbJPcKN30AZrt6JK3hAfQLsFP5lxAUXkeEqnW90bkUA5VoD6s3i6B6r ... (46 characters truncated) ... HDX6Nfeh327exYZYtsQGwnbH/Z3YHMm0e1YrPeeQqN6jq3mnRnnq3QmcE5XoE53AnuLEVR7rMVNCWKV5W9Vp39VxSIv0WYsCa5t0wRACc7luPO6yLwGTi26fDK9PTn6+IXNOkxKPQx0tvpLxLlA==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-11T18:25:29', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/b815ce6a-ff29-44e8-acfd-9076b697bb57.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:04,424 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(5584BCB0-8DE7-4CED-A94E-E1A53343287E, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '5584BCB0-8DE7-4CED-A94E-E1A53343287E', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1617034', 'dates': '2025-05-30T19:39:02', 'stamp': 'ctHleSkHbZYXycmZhuvYt32U+LiLvNXGmAwrI7SZxi5i7mYw8QOFtegQlay5+NnRgxvy8sdeRFBUG6N4BSShPSEMtNnhNZpNxa3DUbI53yfw+3KQaFMcSFPCCVZaDC3uOGfuEx4VFRGUEVY6hkQ/k ... (46 characters truncated) ... sUkRM/3tGY/ONnT/igYcfZuavr9ah6UE5TK/yY6mbbppMCTkzQYD0JAMylVAyQFuipiFKHze3OKdyStY6+JeqsJ6SDx0Gkmvj58FuG3nEgqAZU0+bsPE0jrPtyeVdpf/NvTJV4CmKnUqBR8Qv5w==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '232.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '269.12', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "MSI (2/ ... (146 characters truncated) ... ": "232.00", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "37.12"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '37.12', 'stamp_date': '2025-05-30T19:43:54', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5584bcb0-8de7-4ced-a94e-e1a53343287e.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:04,644 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(2A42A262-4EBC-4165-85F7-BC2E103FC19B, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '2A42A262-4EBC-4165-85F7-BC2E103FC19B', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190204', 'dates': '2025-05-07T09:36:07', 'stamp': 'a6hY+WHq5dqwUWMJu3qEqCbw1Q8oNpfZRCG7SZN0PVWVw8Kq5QQEu64QRRTTH9zrkp4HioeNDC3FifV8Ixe9t+CpJHTvcyPwr+roDVryYtKlDwp2yghcHmIz9HOkyBVjVRZsN3bLvWTrNs6R08/f+ ... (46 characters truncated) ... FReQ6EKZ+zPEIQCfAvwZznfKeohwqGemel0dFfmzGsOy1IFBkWYzzoAcbfoLy6usaIeyrs5Gx2oBmQLmajgptrL5rixwI28TyH7mLUfDJCWgVWDzbGC9sCQhjfsH/thUL+WvKLWlsh0W8zbdRQA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-05-07T11:20:45', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/2a42a262-4ebc-4165-85f7-bc2e103fc19b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:04,882 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(46A5B74D-DB99-4CBE-820E-D3F584FEF527, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '46A5B74D-DB99-4CBE-820E-D3F584FEF527', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190104', 'dates': '2025-05-07T09:36:07', 'stamp': 'nkrqZsG5T+ml1CJ9aJVxnR/vDJTFHHES+Y5AbxKM3ZM7KEtPsBrKfWmhULqTD+7emCYK9tZKqvlarGjs7+26KeZplvmCUbsJkav+TdzVN1YFuLrnyMr6ZdqWU1jQ7WoAvaO30KkUq5+lQVrH4zjvG ... (46 characters truncated) ... 6QAK59r0kS4BMU74i5huocYLNU6H4RYzy6sZjtEfIlT20KQZsVyeuKf5GYk5bxLTozFDMvE08Lhbt0RwlRnFRqhIYU6ckBAa95+B+L4f88bhnWZP2i/jE/i32ahHlUFkHfmkm+3T6f76kUJckaA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-05-07T11:20:39', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/46a5b74d-db99-4cbe-820e-d3f584fef527.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:05,101 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(5BDBD974-1D1F-40FF-AEE4-23C38080E4A4, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '5BDBD974-1D1F-40FF-AEE4-23C38080E4A4', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'ECUH', 'number_leaf': '5356850', 'dates': '2025-05-04T02:48:16', 'stamp': 'QzK07QzH2nxLzSCFpUMexBYg3x+auHVsw/vYKHlye0gtzmHocZ17Jt2+BMxIDGf8Pgqsysv0zls83Aonr4JJ5HyCYx/xVRK7qQy8x3GYJId92KEEQSi2Us9DbJrWGn2DCokV64gcDsxvea25vs+Ri ... (46 characters truncated) ... 5tfzMrbh9aLwlHAojoo21zy3StX4MUxkNVrJjmipNsGKidj5iEwJjzp55207qdmwtXCBV+cRKfT1Ydj55OCYTG8rmzcMSVze9EtuIHDZLkeOIucHZXPIwUb6cYeXZI+RwTAdIfkxcJETMpmfmzg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "Servicio", "descripcion":  ... (42 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-04T02:54:27', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5bdbd974-1d1f-40ff-aee4-23c38080e4a4.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:05,320 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(48d10eb1-0a95-41c0-942f-edef6d7ae487, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '48d10eb1-0a95-41c0-942f-edef6d7ae487', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-05-22T13:22:20', 'stamp': 'EdIKXkgQzUk9Ep8g6TJIopNexzG0J3WXvecdheOz5bwmtAbWJZUylTibHHC+IRzACWJltKlCkLSSrZfpZUR4PLI+k7X7nK+R9xCLkTmAMEKv3AiwegNUVD7v6Ecq7qFMhv4L75KYiwikoOKO/BgfX ... (46 characters truncated) ... bRkZRggyoZcKDjMIYDxbEU3yavR26L6pE9RNnfAh+r5kq5q1QBtWiN+dqlsK25GOClGLwHktLISpO7uES/WfbLRdPuyv9lv5WCUFHDduyBaL4pL8x2pFVkQFDFBPUTdS6Qe1G/PhiIdmtLfONYw==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '2111.47', 'discount': '10.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '2101.46', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (31 characters truncated) ... 11.47", "importe": "2111.47", "descuento": "10.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-22T14:27:16', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/48d10eb1-0a95-41c0-942f-edef6d7ae487.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:05,540 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(a7fa07ae-40da-43bb-9546-edef6d7ab2a9, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'a7fa07ae-40da-43bb-9546-edef6d7ab2a9', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-05-21T09:16:28', 'stamp': 'QQU7Ov4WRUvBA4DtDPMFsvmn6NJ+wlkE4kT4bKLt6q15PT5hYU2mV3z9nIq0u8ncv+EPKlFh0fYaBpTPwIz7qhege7Q/AgbgCcpJoA+W2KUKhiEe8sY4TTHKe/rU5lLnpN4BSAfadPCs46D1CxTi7 ... (46 characters truncated) ... iTGy3xpoCGiIXTkMzfJff9FPRxZwQA6IqGcE1jkpaZGF26A/3StR0ivH4EuAZQAjzedKaJ+yVbKnVtL+J+TELYVG/IR5LtXvD4IiwJSHx0Ea1jG+GbFKrwagmTQ5Vlg3xI5m0Gk2yCK2BcyF5uA==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '25111.75', 'discount': '7831.56', 'currency': 'MXN', 'exchange_rate': '1', 'total': '17280.19', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "25111.75", "descuento": "7831.56", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-21T09:45:16', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a7fa07ae-40da-43bb-9546-edef6d7ab2a9.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:05,760 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(8F226EC3-D095-4886-B970-AEEFD2657E5E, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '8F226EC3-D095-4886-B970-AEEFD2657E5E', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-05-24T07:15:20', 'stamp': 'Yc+4Y0JTRlFIcZIzXfo8BeU9ARqvTUY8BkHZo6Pq55gpNtnrK6xKpOJRPjGGLB6OYWDz8j4XF/gcRW5FZ+8+WaZekjXvA2c0Nbn2I6ML6ZQmJgwgy0G4T9UqbQkeS3I2wrQsUi6W98pc26iD2ITsz ... (46 characters truncated) ... s9w9FXwdZdAtaaMY3wmmVR2cHuiOYowvJLsGptIg5uCsSSN0Cn2GSeoQNLCJ+nkLnNtbjUw2FMF5Q8eTCBB+x9FPvCATctiB/H8EeT2MmnJgNKRTHv5ljZtUrfmf8/L489KnuZAGMKSD1PMRj3A==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-24T11:41:39', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/8f226ec3-d095-4886-b970-aeefd2657e5e.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:05,985 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(a5190dd0-a8d3-4c3f-9f07-28543b621e5f, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'a5190dd0-a8d3-4c3f-9f07-28543b621e5f', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '973', 'dates': '2025-05-10T09:32:13', 'stamp': 'IGrsWkoj9zjBt4DioapyP2NuyaAIdu5G5k/CKwy5OGbvIIsqgO4RSgEqV80P4Pn7CoIPG5wFN5feZ+5g0QWpMPzeBcuwddDDIRzEXlZmCqaxif57jOEvLPgJrgX1L/w70YsA6B68o36dEj5PT2deL ... (46 characters truncated) ... EMhVpQh0Z2veR0gSnrFekZo1NTOf/nDFYFvS3i77sms+50wwenP6GrUbGJX3SS9I7Q9G4DJaNoBnmVKViRYDEHlTDXGUEijI0RT1hcjOgjIU6rBQFVQ/Dkv0rTMp0i/Bv9hpM7UCP4qvupDXC3w==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '1600.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '1600.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (45 characters truncated) ... : "1600.00", "importe": "1600.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-10T09:32:13', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a5190dd0-a8d3-4c3f-9f07-28543b621e5f.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:06,202 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(db30d851-8509-4f83-840d-c8b2a6a324e1, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'db30d851-8509-4f83-840d-c8b2a6a324e1', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '994', 'dates': '2025-05-31T16:19:48', 'stamp': 'U69NbbHSFTI1b2gMAeGUaaepx/wtZCDLmM6LA+GqKt1LWrmpz05ZuVrD3Szr/gO6N6KxWiFRPyfd6ut2np1hYJrHq+/OE31CBHVO9KV4o+sU8rOFQ8aqML45ufPOITutuyUbQosyeAR6DcJX1VZ8S ... (46 characters truncated) ... VQZ7E6aITLZr9NnED7D7r/5GODmIZsw3b/dTlK0HLa647ToaPxCUTnJcLJx56q5bx3M+UTKkdm4nDDCEkOJ3sqnyrXe25WCs5sE6Lyn/L2EPGs0610Oa0ONgRVA/ifH1mroz9TEfHByqozlK+mQ==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-31T16:19:48', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/db30d851-8509-4f83-840d-c8b2a6a324e1.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:06,419 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(221cc71f-9ff4-4f3d-99e4-84dd0fe4a3df, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '221cc71f-9ff4-4f3d-99e4-84dd0fe4a3df', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'ABR76927', 'number_leaf': '50066858288', 'dates': '2025-05-02T15:52:56', 'stamp': 'D+J5rIeToe0QFv7pmnv8Uq96Xka++3Xxrb6JSs51NsTSIl6FmrbUHGYLDzNPuaCwVp9DBwW7QkpRVvnCco7HnX8YKAOJsJ+bby1MpFniHBUMzPuYdOXNmu4jg0LcT/NVcS2DqO7c1x1aeJGT2V5pb ... (46 characters truncated) ... C1Uo94yRS9WHaNXfrWJAD0Gg9byNDM7ksAPejjGJpIQGNWt1doXxwni3/jrdVmDh3aTNZejJs1s9Alo/zLl8dGK7qhbolFSmMhF27WyAnHUIK1Vhp9/SIWeCdkun6QvcTJk/S1W9hx3eIL4QV6A==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-02T18:20:47', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/221cc71f-9ff4-4f3d-99e4-84dd0fe4a3df.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:06,637 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(6E64C893-E595-40B7-9040-7AE139822970, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '6E64C893-E595-40B7-9040-7AE139822970', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-05-02T08:02:23', 'stamp': 'SUboNfLH4uc4ZzPni2wMMJe6hVQz3LeQrJ5AiXPthWbN8k4LWglk9+e6CEBD8xF3M4JcP7bmXiRO2I6ZGHFRitxA0XyL1+J4TjD7gxV+XjsUKLKB60Ruw0ozge94Rd5fG/ODKIbCmZ9ZKzCo2ByuK ... (46 characters truncated) ... JsRpaqWyonWdhxKBsWNRt1bPeIGPWkBkrCkFpn0ppB3JvXsIyfRy2tisINVV84o3D97wxd48EzLK+XNA414OcWDFi6lOO7fWFRengO5+GPjfyRG2gsbnaEC+ldWTdhNV+gQYst5PL+VeE2nyjOA==', 'certificate_number': '00001000000518762142', 'certificate': 'MIIGATCCA+mgAwIBAgIUMDAwMDEwMDAwMDA1MTg3NjIxNDIwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1758 characters truncated) ... hcSuXfQFGX1hNs8k5LY6URRWb9yqf9YKt0jahJEKZcMZTd77cP2ez46akOobzQwOisFy+99GWwF/KFrXxI3CQ83u1YCOoJTuVTPpaDly6BmzKNYiePmPh6nM1zN/tVWGTHpXAwmhLToM4pkpPJIw=', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '4728.45', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '5485.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '72830', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'CXH230209QV4', 'name_of_the_issuer': 'CHOIZ XCALE HEALTH', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122201", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Unidad de servicio", "d ... (157 characters truncated) ...  "4728.45", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "756.55"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '756.55', 'stamp_date': '2025-05-02T08:02:48', 'certif_provider_rfc': 'SAT970701NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/6e64c893-e595-40b7-9040-7ae139822970.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:06,856 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(509977a7-ab40-49f2-9004-edef6d7ad0b8, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '509977a7-ab40-49f2-9004-edef6d7ad0b8', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-05-06T17:08:06', 'stamp': 'UfRb49QIelpVlSCu9G3lYXaFm/z6hgk7g37UTpjVtKbBojvlh9Q7O+C+YTYf87vjgXNAyHrhY3pMMVd7vxnXSNIgh/DujixMpP9M+ONi4IF3eiunzFEGNfFiI2DHJxh30dol4IMAJlWfml69CeZYc ... (46 characters truncated) ... 6dMdl1/yXdTVlxnGwQ0aXGPBNxSIT4Gzm9Ft3cKDdT0wb6QzTUEIZ9pAfEvrbYv3tY0+y8rhHbiCrX8ITJWHo/XsxxGLtx80PCtvbGjqKVMGRhtV9hzastnGHv397/ie8urD6WeRgkvWOx+TmKw==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '42688.75', 'discount': '13542.23', 'currency': 'MXN', 'exchange_rate': '1', 'total': '29146.52', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (36 characters truncated) ... 5", "importe": "42688.75", "descuento": "13542.23", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-06T17:41:18', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/509977a7-ab40-49f2-9004-edef6d7ad0b8.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:07,075 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(232E7F96-6F73-4D3A-BB48-75907DCD5387, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '232E7F96-6F73-4D3A-BB48-75907DCD5387', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-05-09T08:25:38', 'stamp': 'i2NXIbO6wrOoo3XbNxMOJojDJQsDgT1DrTBM6x/qfjmB56/lUBwMUFKkB3o0ReBqBRWrB9Qq5h6KLaq22zm9xCtZdETvX3xH/FTuJ3Mbqgyr/deULk7x4ubkSth6/NTCNzY7Ht9QH9DeSOeyREOke ... (46 characters truncated) ... 642VXi/gBdXRZSCT15Hv0iojZQkbNaTw0+tyjeKIJKywwXVoMuPc41H2kclAq3oe4+ojd1E+8J4JGjBWHrdRZbKM5v6yRvD83gz7x+9t/3+jr02T/XFcmN9tzaHiyEo1KFRoMkYFRCJRIV9SUgQ==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-05-09T15:27:35', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/232e7f96-6f73-4d3a-bb48-75907dcd5387.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:09,393 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(7412CCE8-1545-4C46-B656-C610A4BDD052, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '7412CCE8-1545-4C46-B656-C610A4BDD052', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190203', 'dates': '2025-04-01T23:20:35', 'stamp': 'noLUb7vDA0A9smcKPZgC/YYQd6sGnyFGlg4yIpAtVgPsw0aLyXF7RpfYlF3X2Iv8XhQwaJy5dhNa/dTfTkzBSvtZrokdpy+tTiGOCZ95oN3zn+kHw0TuqcNbEX0ozuqGrMpTiolAW141Rxb+5CTr3 ... (46 characters truncated) ... Xwd2kDQ1J/brYgZfQxSC6dX1LNpFw2B1gkjbU3WWsnWajzcr1KmWB3EcG0f3oltpuD/jTa7GxxsEY0Bmq/9AP3uVAbRtcNjjm7IhRwAC8tmR3nOGYK/V8N/Yz7GMn1myrHeC0plPoFuBy2cnJqg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-04-02T23:19:00', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/7412cce8-1545-4c46-b656-c610a4bdd052.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:09,612 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(661e2037-32ac-4369-9d62-a57e5ca51f08, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '661e2037-32ac-4369-9d62-a57e5ca51f08', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'MAR76708', 'number_leaf': '50066858288', 'dates': '2025-04-02T17:39:31', 'stamp': 'f4Kpop/WK9jDemMSo3bMzkn286TH0uHk36mVfoAFiUXcwrtRodlNEGSnyQP2ZYN9hduKvu56SqMLQQBIs/R71MWNHw1oidiZG/DRV3VRbfid3oQ1gNsUtP0hcE2kDbX0KqvgwclxH+JY9yUrLodUG ... (46 characters truncated) ... q4PSEbThc3Baj06QKmQBZghkBXCiG4xrTO/GsDqOFZxMPJTv+W2RTKuq6/z3LMlnakagk7z79h5rik+SEc//EW0MRc6JGk3aKAmRkeO4I0jVq8lU3PKUKC3maorodU93FRw2zyu6PP3DBsaAy/A==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-04-03T01:35:51', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/661e2037-32ac-4369-9d62-a57e5ca51f08.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:09,844 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(D4A735D6-5656-408D-BAB2-9904252A3BFC, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'D4A735D6-5656-408D-BAB2-9904252A3BFC', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'ECUH', 'number_leaf': '5144137', 'dates': '2025-04-04T20:01:00', 'stamp': 'ckRj6OUXaLiRWhosARkfAoWhGjZyz0KA9th95vcRCoIfwTrApNr+ugrZ4AHvDc1UZQMXxC/IT07nvIJH852v4CVdwAbLL9IOq4UOVlbvgI5Ns5ZjD8WzV8eDnLaOyLw87kQ8Pw07kBM8S6nBhsuCF ... (46 characters truncated) ... Bra1he0tX2sE7g6Moa+pPADivxP0WVoH84v69lWA3nnAtzi6p5/7YCI0qq8bw/FMR9pPkoCvuXmBVVhyPwx25zewddHNWT4Wwgx1wCF2+4o/g3rvjjMSZIiaDN97GLtr0rjcSAf/CBS9342Afpw==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "Servicio", "descripcion":  ... (42 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-04-04T20:06:50', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/d4a735d6-5656-408d-bab2-9904252a3bfc.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:10,064 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(560ff8a5-8834-4915-8490-edef6d7aa80b, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '560ff8a5-8834-4915-8490-edef6d7aa80b', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-04-07T12:29:45', 'stamp': 'PZiEcGyV9Ywa6QgAdK+vJ5IorLWrQCucVziuZG/4ZSfzaMzCKICkQjMiiZmPCi45ULs0WdgdrzwTnDoJqEgP0oXc0nCb7BhCsh12jfHDd7y1Rhoxm4HjagaysLXGDJu4ZBxWN/eTe3EnbRDh7X0yJ ... (46 characters truncated) ... O2jXB+QRvIMOGLhleV+wsGz9kAj5wKfGy0S3BsBL/nqgKIJPHgWdho2jmP0yL2pDTg87rit1cxxD6umgm4RB4igtaSWB/CZ3TLM4gv+TbH7oddr3xDfUIsjI2cIsjvq5/m16+ovhHLW/J+UMniw==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8447.34', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13225.41', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8447.34", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-04-07T12:45:13', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/560ff8a5-8834-4915-8490-edef6d7aa80b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:10,283 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(23E46B0A-55BC-470D-BE7C-7907E279045B, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '23E46B0A-55BC-470D-BE7C-7907E279045B', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190103', 'dates': '2025-04-01T23:20:35', 'stamp': 'log2rz113uZ7sdYdaAgogGWFo+EAJHuUm16DWb2ndRCkR/Ha4q+8h4YT0G88aIYwO2G3yzDVM0A1t8dw1/4do9g/cg9d39iLcIRD4IKGFLl4G29Yt+67wqJEGYwqwzmES7tnBMyIVp/ij2VLfYMT2 ... (46 characters truncated) ... nCJN+BELKudRIGp91ku49/8yID7YocRO1lnWlk6b55HmYtj8HEz0Bdhir0Rmi3eP45JpvPdiDW8Js5d9sHc2RGMhLhQkzGcsbV5w46KMZmIF4K+Bybs6RjffJT4XxnsNWhCfUsyeBsi/C2M/8nQ==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-04-02T23:18:39', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/23e46b0a-55bc-470d-be7c-7907e279045b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:10,501 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(7187F809-CAFF-4201-B044-55418E0AFD0A, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '7187F809-CAFF-4201-B044-55418E0AFD0A', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-04-24T04:49:35', 'stamp': 'g7hXbSBsVffBU6y74MA1fQ7K8s3N0EFvmojP6sYNXrIFaafkhBymhMSGuT18nKiwjgd+EySwzr+Y23PHRduoZe41ADjqCwWB6rCi3mw59QuC738bhssrDb+QEJrC3JIODJJUxga4QuTOZDKfXGrSj ... (46 characters truncated) ... SWSYC85OnRyiJBcjOV+FAr8nT9NwA6TVuBLTIixICkt5ZSEg7lksMC+5NZhhEALxj/WDonsBPb+kq8o6VCqaCtoT/LZS5Ls8+3LJd0pPwp2G0OsATUaRk6L0dD8ct5GElcSI+WqzMP5KkIXv2Ag==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-04-24T06:10:43', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/7187f809-caff-4201-b044-55418e0afd0a.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:10,728 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(0A169EB8-592A-4FC5-AB74-BAD39B5BE2C8, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '0A169EB8-592A-4FC5-AB74-BAD39B5BE2C8', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1569919', 'dates': '2025-04-29T14:25:07', 'stamp': 'aoDTu67N7teT6CLVyhsGIS+KPkW2QE3cYKYiG5VQ5JKSqviufhlXEk+wvj/x4zI8prjcC0YWCI9nCFIJ2H4khqcBX7EA8C3VAJtmhFdNczsdjhhNY9euUUuoa46EzVsP3Bg2hB5daPSD0U50LdfNd ... (46 characters truncated) ... zMP72HphBqjbkbmLoAitvs/ovXfE8+xh7lHQaGzxKdKdFXjapP5PiJjiKr/5u8ew7STxpsPVvPyQOSnzXQRIosBMb9QKu33FzdbSr3Ha1NOkK/haeimoKJjktgm9HTnaAO1unIzX1ceM1tnbriA==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '232.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '269.12', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "MSI (1/ ... (146 characters truncated) ... ": "232.00", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "37.12"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '37.12', 'stamp_date': '2025-04-29T14:31:09', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/0a169eb8-592a-4fc5-ab74-bad39b5be2c8.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:10,951 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(D870015C-100D-4B49-9D04-AA1E9EC2D8A5, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'D870015C-100D-4B49-9D04-AA1E9EC2D8A5', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-04-09T08:49:15', 'stamp': 'XHEcQXmU9AQgOqPiBD0suB8yYGzZqwyJ/d6SNxwPeMZD/Sg9C3zhGYFaKZoN6PZ0pvKsJRUUG2ND1G+q5iTvjhIGxssc30nZ6on4NO3mTPlCiiCa7iEL/nZV6FJ9Hv52X9munB3Xzxo7jqO+FaAZO ... (46 characters truncated) ... 8R3g7rVrfca/w8F7uzlQ5VVWocWAXbYv5ElKBEmJcQCWYF5mRzGFqElOIbya5TMG8PO+KDL3KKy3T7T4FSWUhYQZIEtirNSZJpf+k8C+wMBijYFCfss5zzQ7aV0v/vyBnXaYHP8d75MKasIYtGw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-04-09T19:20:50', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/d870015c-100d-4b49-9d04-aa1e9ec2d8a5.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:11,178 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(7be16617-28c8-4aa7-9c36-edef6d7ab2b6, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '7be16617-28c8-4aa7-9c36-edef6d7ab2b6', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-04-22T12:45:33', 'stamp': 'Au5HV+WPDVABWIPgU4LOiwT9Vk+UMCBeYCbT9KZY6mb+8afh8KDpe8t0I4aeLFHhXC146YTcR6EraAQu2azBCo00es3hWgFLc4igQtRO3Aiw4Up+3g8CXIBFp1TSNE/ElbVkrWrV8JAoBmCQnaZK2 ... (46 characters truncated) ... IVWEHLBzRsoN4qRs2DePLuMv4lRD0GCl00Bi3XgP8oCbX/rJwEWMSffD7me/Kei8P345mFvckecQC4fweGgydJk9WkmPGuLNBCbxtmjqYEQGqtrOvuzSQ1xV+lKz2/1GdTLYqXz2+5ysg3q8fDg==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '25111.75', 'discount': '8416.51', 'currency': 'MXN', 'exchange_rate': '1', 'total': '16695.24', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "25111.75", "descuento": "8416.51", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-04-22T13:07:17', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/7be16617-28c8-4aa7-9c36-edef6d7ab2b6.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:13,519 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(623C2FB4-27FE-4263-87CF-FA983A82A653, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '623C2FB4-27FE-4263-87CF-FA983A82A653', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-03-22T09:24:26', 'stamp': 'Q3jX4dqAYAyWJttwT8/T8SpfFvtjR405pOQqUm6lByQ8jNfX4o05p9mk9O5be9THNX3dFKHNT7/Yc6/Cb8Zrx4o1zu9NabrUCVPZ8DAdSSN8LZ+paobLDRgXuc351wy3xsUkAC9W5ydRrdk7mewbf ... (46 characters truncated) ... tY2kPDv8RDfXJBzo93rbJc60CfOQWqW2OqXpZ0eYE078HO5qVTXoEbYWY6s3Qg7WT4ShsruIOImEErBA112Ef6n+WR8vcD/8802st95yGsrKXomM7IvZyHwRcy7+z1tQltRzOgo2n19q946/yyg==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-22T17:04:16', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/623c2fb4-27fe-4263-87cf-fa983a82a653.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:13,744 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(F693F17F-DEC4-4BF1-B794-740BEB0E48B0, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'F693F17F-DEC4-4BF1-B794-740BEB0E48B0', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'ECUH', 'number_leaf': '4943269', 'dates': '2025-03-04T11:33:29', 'stamp': 'HpxHZOJAc/NgU7+gH/+wovn27wt1brwJYZODWeSiv9quM4DdCOsePJk7SERvIJeCeRbuTvffaiiXn2SGX26L0xbJPOCi79Hv6tQreavXlaXLGAFJo2aMLy1ULiqpl/KHQUWpn4mmWMws/LDLtMcKP ... (46 characters truncated) ... 1ISj7NBLWI5b5dGbbgopMPc9L7UyTnndY7yw8+GflY0YcDn47d1KQ/hTgMn3pN2SLeClSSLiVZV5ECkZvqMh98y+lhOjZ6WThxQepcmyTi0btYAFKJR1lSf7r4fCTQdkCO5+tQ7h5aIiJvKSYlg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "Servicio", "descripcion":  ... (42 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-04T11:40:56', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f693f17f-dec4-4bf1-b794-740beb0e48b0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:13,969 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(11C8ACE6-FDD5-11EF-A46F-018E2E04B81B, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '11C8ACE6-FDD5-11EF-A46F-018E2E04B81B', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'CSale', 'number_leaf': '153125196', 'dates': '2025-03-10T11:28:24', 'stamp': 'YH5jP2gZEIBDFM301E60bE7YkKuxgpPnZIqVjpcUe9iJPVY5dfrqUQ8uuq6qVELnQKU4szhEb6q8DlHO3zjhtC252IbPvA/PL7+UB1Lr9AcuzkoOZtUfU8F0mrYufbwMHZlKsv9F628H3HM6VY9w3 ... (46 characters truncated) ... b97fl6UJioqbrwK2NlO8fYmoBXpc/ImTf96xamD9TA0uOcWLmH2/Xbnnk8x3t8fwwinuogCD2L8hrhxT54bx9HZLOwOwQi94nmPcV1Z2PN9OmObCdLn13QTzjHO5lGg4ifgxXlyDW3s13Owk+ww==', 'certificate_number': '00001000000518142818', 'certificate': 'MIIGPzCCBCegAwIBAgIUMDAwMDEwMDAwMDA1MTgxNDI4MTgwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1842 characters truncated) ... OUgofznPaNWKlbbKsyKjOKY9xz98k60myRzTUoJ8ynB8ezOF+MSwD9meYp93hgZMaoNT8XOaEYAhqvCUPPklJkzCf0UM9OopvaLGt7tazqTWhB9JbZzl3BIVYl8GBB28F+eEuJq8chQYEsBo64w==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '625.29', 'discount': '22.70', 'currency': 'MXN', 'exchange_rate': '1', 'total': '699.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '11510', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'ANE140618P37', 'name_of_the_issuer': 'SERVICIOS COMERCIALES AMAZON MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "01010101", "no_identificacion": "1_B0CQMLYFQT_395546628426301", "cantidad": "1", "clave_unidad": "H87", "unidad": ... (284 characters truncated) ... ": "602.59", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "96.41"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '96.41', 'stamp_date': '2025-03-10T11:28:38', 'certif_provider_rfc': 'EME000602QR9', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/11c8ace6-fdd5-11ef-a46f-018e2e04b81b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:14,191 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(61df4bd6-d098-48b2-90de-edef6d7aa875, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '61df4bd6-d098-48b2-90de-edef6d7aa875', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-03-20T14:04:49', 'stamp': 'KlWQ3GG8YuIu8P0QpR3BMRuewuFeW9/9PGIVwhNDaFN789PDBOiwToX9txB69Ydk4vmYvq3okFCYclxUx/UOxO1Bl6XqH2WUi62fQSzzBnmFy/6tQJkP5Z1yKrKS8zKL8XXGeCdyUZ7RvEno6IZdL ... (46 characters truncated) ... Z0/mYLWBYwQYNmOloHr7jBuFpyrePPsF7L6v6gtpz2vo1IOPqKRctFOBtmF4NIaSnBssMG7TEtkRi8AuvdXIVaM4WL0nMS2yb9ADJ69mmg1gE0sgfqX6g50APw4XpREBvEh9npGLO+nVYUZz65A==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '25111.75', 'discount': '8485.09', 'currency': 'MXN', 'exchange_rate': '1', 'total': '16626.66', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "25111.75", "descuento": "8485.09", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-20T14:28:14', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/61df4bd6-d098-48b2-90de-edef6d7aa875.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:14,417 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(7de259ff-c20e-4bf7-972b-736228755e1f, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '7de259ff-c20e-4bf7-972b-736228755e1f', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-03-06T09:14:32', 'stamp': 'dHj991+hRzlLa7s4xborXhBbF3D5bZnM5BnqeFlI1TBrLzzinVyDdZc2K39vn7zF5n4C2TwgEOQ6cLWRyed84si3X/6uAp3/gLtBcQRG7yOH3BaY6CBP0X6wtHNFRSOiflHGHo7C18WicJo1L9kjq ... (46 characters truncated) ... hvful3HJrENiEsmV9m0dgUKtgRXRMFoCpcCkAGuO/wunEHpplw4044/CGqPhlx0WkB9e8+VEgK9zTLsNFGRttBSVjhSfr6zvJ9CpXL0L6L+FTqvpKP0+U2LmahaF9N9qL6nRqQoDXMYSwS9Izsw==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8447.34', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13225.41', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8447.34", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-06T10:40:15', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/7de259ff-c20e-4bf7-972b-736228755e1f.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:14,643 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(a686229d-71df-4c52-99f3-8a9cd4c8f8e9, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'a686229d-71df-4c52-99f3-8a9cd4c8f8e9', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'FEB76422', 'number_leaf': '50066858288', 'dates': '2025-03-02T15:47:07', 'stamp': 'SPD7tl5yWVUMzIZwadK/T+dgNriy6wwKrOcpJSfP1gEUpYsR6lfZoFIpKzExRh1/M3lKWrBsFh2cGGtM9P2PwMn3HlQZrRDWLT++Qpc7EGdEKIiLqiDLBJJHM/HpIWw8uD0Or7mkCtDwrHP2p04y4 ... (46 characters truncated) ... xbKcP4bmxoBlkIfL1DmtVPRpLF7NsGBcRNb3l+gRVrVMBd/M0hA21wgDDQpyT2QjFBvhs4NXss/StT2SwrTp+9/kGpZi8y4Ty+jP/0oQMI8uwJSppZ/wz+Y+4TAAl61JJzxVcUXwC0urfQJMIng==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-02T21:37:33', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a686229d-71df-4c52-99f3-8a9cd4c8f8e9.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:14,872 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(9465FF77-BB95-429B-BB47-EBE8780D229B, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '9465FF77-BB95-429B-BB47-EBE8780D229B', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-03-08T12:18:42', 'stamp': 'Y/eNZsN+2VcfPqSMQ0fv61vL+x4iQpvx5lmZ/swzeYvFvcW1rae4SkaQkLmYiuULAE6BU9klBkPkcM6KQkWmG5YvBicystPiUxkzW+m12DXl1RKkcfaLm+qFVBUXwzwMNohEyFf4h/qR4zpy3ld/i ... (46 characters truncated) ... +hBgtAvOec0Peu0drUo/1Gkm5JpsJ6+M2dNd5MNKpQ+9Dm5lq/I8oYcpTQnmfrhAuOmUD3dcWZbH3OOFGqq5jVX2VjntlLvPMJ0CbPacSTTNeakN0XvGx1SDXNwu4bePAdRpxn0N3UMmrKAy7dQ==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-09T00:32:02', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/9465ff77-bb95-429b-bb47-ebe8780d229b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:15,093 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(6927b00c-efee-47cd-8921-14760711d187, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '6927b00c-efee-47cd-8921-14760711d187', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '933', 'dates': '2025-03-28T13:29:47', 'stamp': 'aeeYBYBD4RQO6ejhaymz2fgxMvWSGbCIEwLPxgJsN+ogeuzAwwdurxF23cyfVo3tr56ud+G6q0Q8Y18jYFDcuku7OgYr90QgJqFNpdh8PZZp1DZnRyYeBcUUwiYdhF0rLWgNP8BcK48rwLM01TVlx ... (46 characters truncated) ... ZuesJSbpAgbUUZjiR6hcU1bTzxrA6+hemHEzlV7AVSatoQSIblonlHWI4b6J4PBeq8gAz92tncGUYzxB3PJo+BJ+06dg2esuv1lZDVfus8R7CY568GI79ySpEhpXqopzBMaCitt+tYD7zPIyogQ==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-28T13:29:47', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/6927b00c-efee-47cd-8921-14760711d187.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:15,324 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(5AC7F222-E782-4095-8848-96B43D9DAAA9, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '5AC7F222-E782-4095-8848-96B43D9DAAA9', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190202', 'dates': '2025-03-04T21:12:14', 'stamp': 'CNMn+/0BWbg/SG8s2Lmb/xgAFD5GYIbUZmV20zSi+hZgtwPXRQToP1eqwTFMfw3ZEYPrBjXCR46UiYUr+wsSyLIGX2hqENCDbarFG/RQ+3l+usBQtBpPGW+Jb4PuT23/Vw6ssJPAR2VDFWnj7YoY6 ... (46 characters truncated) ... dDqMvYufymtsbfYJ8kWTPJUdzBVEcWhPtdfXTJA+EgfkYDOX+jUSd+lD2/+WULfL/JtGYDl17QRviYzeC5WodS/IoNCeE5FjmO5HBJviLtB7MGg/EHVPbJRjmxDF1jU/QHwVhNA7vPVqI0Y1uDQ==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-03-05T05:00:43', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5ac7f222-e782-4095-8848-96b43d9daaa9.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:15,543 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(B793D98D-2037-4DFC-83F2-08A395E9FD0C, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'B793D98D-2037-4DFC-83F2-08A395E9FD0C', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190102', 'dates': '2025-03-04T21:12:14', 'stamp': 'HxyckweoFcHeT/k2vz52+Amf5SvkWPITYeedOSmuY7y/k7sgR1YEzaeybz3Ms0/tNOy/ezhf21lDpINLObFR4oKF1yrW7lUPZfvJ0jwNxYGSzZyBaRLsO2BZ9Q6kPi2cWK4+GtF+yPk9PeGPwGEhV ... (46 characters truncated) ... cJokS4ovDBaadfd7NRHMVWCQETihaACHZho6nrUwkYEu+CGxFPA+4gd1I21kPx4EW84kyAcRpD7Efdw9wUBUUmLJYcXeUzQwVp8/DFsj4bV7TMRbZKSyZvohpXiPeTLxA/oHAxCwFjRB7vE4mTA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-03-05T05:00:34', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/b793d98d-2037-4dfc-83f2-08a395e9fd0c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:17,862 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(9C54DBFE-27F8-4F3E-9829-82FE431FA439, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '9C54DBFE-27F8-4F3E-9829-82FE431FA439', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190201', 'dates': '2025-02-05T15:51:45', 'stamp': 'c8Pslp2nnbDDsUF1kfzDCyYP7evbQdqv+W4c6q33b9oJ1gC5iyA8givAcA9VYpJDfA9ZZK4GQda4LQpm5r4A/jdZYtCpV3wyzOiArr0h98PXcK3bRt/bLIBGBQF/JqGVezqSG5zy9v6xboDNFkLrT ... (46 characters truncated) ... oIbJYbcnkdtoQ4lRlnciwMA/BmFLWS6vKaYhuVaCcOjTyMxoEh/AnuB7JnayLQVqVcMBg/8TmUVxyYaXAhtMNwAxopdCs40o1gbYKjJUp+3zmGFXDwVneqDvnphx0c5iBdmL92FVzR8aNe+CPhA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-02-05T23:52:27', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/9c54dbfe-27f8-4f3e-9829-82fe431fa439.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:18,107 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(54d86d57-ea62-487c-9c66-8e3a09e1046e, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '54d86d57-ea62-487c-9c66-8e3a09e1046e', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '918', 'dates': '2025-02-25T09:43:55', 'stamp': 'WFsTxZbZQtZuyR3AqKymqgTOZS/ucl3333OjAhLFlzRsvoj6bGDbKy5Ya6CQdW0lJTodSVdCS2gm2p+mL7h+g++cAp5SOudKBF+7/eoYZt+57oXLMGnl2gYbh0uby1oljKud/q+v4OH3I3PwAEj76 ... (46 characters truncated) ... w+QYJz+Y59LupYTo5X8dxDziyLUc1iCsm3G6vIgkVsvUgFE/C0wLRttnGvV+VXaoF4uwISv4m5/MoNhZstt2bS55lfcgN3qZZ+wDBv/+H9veOBvcvQOA3M+MUF3EDz0u/CBkxz8R/C+usGOqLoQ==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-25T09:43:55', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/54d86d57-ea62-487c-9c66-8e3a09e1046e.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:18,365 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(3783a3c3-aac6-4c22-9970-edef6d7a0677, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '3783a3c3-aac6-4c22-9970-edef6d7a0677', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-02-05T13:54:30', 'stamp': '3HiStkCZhEeHjRbRlG08V4W2kPaDLXKv3sKlMg2RmtFkuHx2wzktNvPg0U8fImhcetI/dRjCwBsDvmm5M1gjXlpZ218SRJKOkRtkRtVmvQDFUK7P0cfPPmb9e2IVZ0szg9IXj426O/hu2DqPQKbyK ... (46 characters truncated) ... aFrRA7CaI78kq+eS3wP5mkr2A0dKALpOJgkjNZTbqTPVVUBx/Hms3GxUaJQ4aRkPyWQId37g2Jl9Ll+gPuN3VLz/NZRbmr6TWlaOO4n+K1Aqg5/EdIrS+LuGnNsLr/utqCsM67rcOpc9EiXW5XA==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '79991.17', 'discount': '21759.23', 'currency': 'MXN', 'exchange_rate': '1', 'total': '58231.94', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (36 characters truncated) ... 7", "importe": "79991.17", "descuento": "21759.23", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-05T13:58:09', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/3783a3c3-aac6-4c22-9970-edef6d7a0677.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:18,596 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(e94becb5-d4ea-4e52-bf37-dfdaf308a2b2, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'e94becb5-d4ea-4e52-bf37-dfdaf308a2b2', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'ENE76226', 'number_leaf': '50066858288', 'dates': '2025-02-02T18:52:49', 'stamp': 'LC+2CKgyqWeYLWLRLVNGxzFxxzCLVr6erFFZyQhOlDqq8g4yoibMWLp2P2EOmMOG/Soewu17WAuE1kevlSDOeqxSf0FPo29GyqAnxCOjTkMddPO/MjbI0ooGnz9Fmr/8DZY+cTf2Zf/VoLMmdNLNl ... (46 characters truncated) ... rds+AqOAbjWC5XaRBTjfSx7HiJAshEbZbiLjthF8RkgKO/EZ3eR4D2xpoAC3yM07L1YiJUqzI/D0IdEK5EXetwzIeNsQSNs0aduRLcxE+rTAL1WinVG1ROw/TqTh2CXmmsVDHoAUW/iiu8Qt9vg==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-03T05:07:26', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/e94becb5-d4ea-4e52-bf37-dfdaf308a2b2.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:18,817 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(C1B8BC2F-78CD-4FF5-934F-97DCA858B380, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'C1B8BC2F-78CD-4FF5-934F-97DCA858B380', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-02-08T10:53:55', 'stamp': 'kHnGjfPuuhbEBurpQsbw0I4+KbWOrT/r0oKb9ybB+iZzBs6Ska9Jvulhox5yY3McLjjQUimtLdEapQuEN+EBq2pLekJ5SeML2L3HhxbHvZfbfYbnmZHqjYbsox+KXUC6avyH1GTp3CT+ZHlFnniNj ... (46 characters truncated) ... i2f6uVpkSJr1s5hijov4zanCIb1lGtnmjRVQyWm5nJpdaTDhI/bUiWMVgtnr4PjfL8qXyW0ie1+cICuiNRVIAcsPHjMBWSaZcQS0Ieh6WI/6I4tBRZOt/OcHIOB8yairCc0MsW1v/b5xLN9zGdQ==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-08T19:48:56', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/c1b8bc2f-78cd-4ff5-934f-97dca858b380.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:19,035 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(BEBDBEED-2E5F-45CC-B6A1-AF2F82933744, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'BEBDBEED-2E5F-45CC-B6A1-AF2F82933744', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1457016', 'dates': '2025-02-27T20:44:26', 'stamp': 'DfSjGZYGp0L+Fudrab3w4ypBuEyGJipp1vKunxy471Yq+T1vlNH5VwjzUpYBgFpRT5tpNNR38PYrjkVYB0Bcd2BYA7RazHuLXikE/R05GT8nBtMbKv1PoBMkR+X7ZwmXXPGmm16WByfas5H6eRR71 ... (46 characters truncated) ... zOeaWFR7biXZngWUHMnuT6d/XEAoxoC7KEZEO6p0pgIzbkbeceQahv82/37Iu6UGzU6ayyplYgPFOYz3aGXdpfg0z/wgOx85LcXYhOhEeH207nLk1lqKBX91tCNqpeYqMEp3Ph2Q5LbE4VLWkwQ==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '205.80', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '238.73', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "INT. DE ... (945 characters truncated) ... e": "67.51", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "10.80"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '32.93', 'stamp_date': '2025-02-27T20:54:44', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/bebdbeed-2e5f-45cc-b6a1-af2f82933744.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:19,262 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(38545538-1905-4066-BB37-F62734BA212E, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '38545538-1905-4066-BB37-F62734BA212E', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190101', 'dates': '2025-02-05T15:51:45', 'stamp': 'IZehUWvH9hDLpHZik+5xrbQniXpPzZ90FBQCr4PpqQA8pVetSrW0D7HhTYoYLUz6adHpj/37OJAMKo+LDEcfFUzQ3BDZMPshKQAI0WTZ7Hc3VxFlEaYwlJ8mKysC+Zw5gaPbrQofaT31wD4qjozSf ... (46 characters truncated) ... CoWOiG8MCr2U+P0eqFBzO16u2fOjNF2HwYAynR4nUDYkm6DwNTfQJf1URRZqV7QwGltTjuAk+zijmL8xr1MVQCqTWeA7VInB0t1TIlugOuaFgkHARRd5hFeU6gXEM04nkU0Zsy1Ss6q1H2YIonA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-02-05T23:52:18', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/38545538-1905-4066-bb37-f62734ba212e.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:19,481 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(05D46C5F-DE44-40FB-9392-A8DDF87FD6A8, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '05D46C5F-DE44-40FB-9392-A8DDF87FD6A8', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-02-22T08:30:09', 'stamp': 'YKNzsTxB0aU/lFME/OZ1v7do70g2wpMXl/EendKlu9ktYKoaUr8xb1TqNF1LeQ7vQnwnYKhuNSUJ62f+VMZGMmpCzUCcf5J8FDG/Ny73vct1NtERLyCq2qG9WMe+3lX/m9/kWmfo7c1RiIoH9Y1tG ... (46 characters truncated) ... G1tf2aImjLvw6jwmRJ+LmwnWk9zG5g2gh7gXSyjaWVE97/fZ+oi0ofre7Ts2gAnu299uSosJIv6LoHNDDQ423m81YNWaH1puTpNfcot7ih1ZL/lrFD8vLTzNiAkHqkWFhK/1aZdTt2pFlRLp6BA==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-22T15:01:25', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/05d46c5f-de44-40fb-9392-a8ddf87fd6a8.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:19,700 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(f417abad-2b06-47f4-95da-edef6d7af3fd, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'f417abad-2b06-47f4-95da-edef6d7af3fd', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-02-20T13:11:29', 'stamp': 'gqyRvYwV7EJEop9RBWMtW08CRLXRvSVia4xYk/tytwdEnkYFncPbPgh3tED0Vkj8hcvQ+ocqtwmiD8O9wWF1kLdgvWWj39Os4amVzmesF77y0MdwQR9e/K+xSkhZEXQumzGRVV71PRRGvyNzW8a+p ... (46 characters truncated) ... f/iliDXANCycczi53zafFjjj2HfDko6iTa2AXQKITkSkDXnPdScD0d8YdGImy2LID7QzLJBRzhyFsf2wYc2TbtYQPq57JVMU5kH8Ofn8G/FkCvT3shAt7S/aoiGXQ8odHixqPFy3GbfZ4Jyn4pg==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '25111.75', 'discount': '7928.71', 'currency': 'MXN', 'exchange_rate': '1', 'total': '17183.04', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "25111.75", "descuento": "7928.71", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-20T13:34:12', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f417abad-2b06-47f4-95da-edef6d7af3fd.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:22,004 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(78f14f40-fe1d-4830-b383-edef6d7a86e0, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '78f14f40-fe1d-4830-b383-edef6d7a86e0', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-06T19:53:52', 'stamp': 'HYNM2Ed841WndlL/7c7mrYZlvsKtmUzszZ/CXhqy81QelkQZNChZu8a63FK9Y6K7XC4I+p9iwnddk9poT1OKkvEs192qtZe4a5dlM1rTQvQciIBc6BpWb9SsF4kPG0lVgNPzOdAKReFXDS19+qSFM ... (46 characters truncated) ... iQuyPx6VF6TFWpVh0pfdrnhUCBgJfCNDbpr2KFzhi67ruJaZ2kXyZr3grhnHT01yyfpoicm5AuG9PLZswty7KjfPlk4YIZ8ROIv0p5/xlrXEZna9ZNHPJPaJIcY5H34XNHHx/e40MeIi3nTm3fQ==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8042.42', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13630.33', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8042.42", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-06T20:15:10', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/78f14f40-fe1d-4830-b383-edef6d7a86e0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:22,223 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(38C1CE7A-2F70-4688-A2DD-5C0838129C9C, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '38C1CE7A-2F70-4688-A2DD-5C0838129C9C', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1385483', 'dates': '2025-01-27T18:15:22', 'stamp': 'Dd65iwSniizBB0NYEYrbvUvARVypImtvSZTwdVJJYZ3jXDX/twXK4/EX6eqJn7CSj7S7ixyjA8oc2reDR0rxV2+NUnbUrOQ+JpFzEqRKac51zV7pflYGJCStOfq1dh6fkiY3K6H0uXgDtcut4YfeL ... (46 characters truncated) ... J33OIVodClrLT6wLwK7caTsabcmmRXd8a2mrDOm07YgbkDS3G7AIHsAdNUVHCvpIziSG03NFoOWIzr8ZfKPozfFWGwKFtnlyMhHlt7Xh+vRC1B/cQgXg8VC1J8ZltyfPnReyBp9ibSRkboUS6Fg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '405.57', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '470.45', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "INT. DE ... (954 characters truncated) ... ": "127.08", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "20.33"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '64.88', 'stamp_date': '2025-01-27T18:21:18', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/38c1ce7a-2f70-4688-a2dd-5c0838129c9c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:22,442 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(f61751e1-4c08-473e-8f32-b715544dcf20, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'f61751e1-4c08-473e-8f32-b715544dcf20', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'DIC76005', 'number_leaf': '50066858288', 'dates': '2025-01-03T13:10:40', 'stamp': 'adeG9BSrUyM3SwZci1kls1wjj+TpEpFA8lsE5i/pL+8Xjury/MNnLjPZhnAA01dswQ3VL1BhlofJ5KelaNmIW20EM1KRzZ0eE3Irgpwm/pS+1Bqy812lU+5y2Nlfn6iP3Rmk+2667crb1Iccdbas9 ... (46 characters truncated) ... vsj0QWMGoVJDv11cM6sGSDCtr+oyvEIeExE6OO7iVlpudkZBK0OdDHqoQHeT1TkjES0wQg0j00Rr/SP6YIqdD4sA0QdnuQkZpawD+Ly0gDobrKi2l0sVnlwrusd0SG/qkpKB+JZyHEmVNdTsNzg==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-03T19:12:04', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f61751e1-4c08-473e-8f32-b715544dcf20.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:22,663 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(4cbae294-fac7-4e71-a59c-edef6d7a2da0, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '4cbae294-fac7-4e71-a59c-edef6d7a2da0', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-22T15:04:31', 'stamp': 'IS/xHVuDRJNRxVdGo8jH7YmFHkcWTQJ19n2TDvBXgDZOfiOPq6azB2TEl2MlQAv0NW2F+KzrlwpKEErd5HH86SxU8x5BMO7ehfz+rR2Gc2djqzsEo3mrvqbgqIzB8/mL3h+SO4qMoin232ZKe9/QM ... (46 characters truncated) ... z7/3u/XCarqTFk/Wp1hoRxywAEm+1IRtXTkIc3Z2mjPeuUM3ETEQhBUQd0wR8+gpY0OcdUxQGapf1fcDg0kJzJmLQOApg6K7OdGy3oFo5klQTL1CumWePqvguwrhILuR6yWSfL18/ESloacPosw==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '24973.75', 'discount': '8053.20', 'currency': 'MXN', 'exchange_rate': '1', 'total': '16920.55', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "24973.75", "descuento": "8053.20", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-22T15:38:09', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/4cbae294-fac7-4e71-a59c-edef6d7a2da0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:22,883 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(5851A769-058A-4F53-AB9B-FF7130B0818C, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '5851A769-058A-4F53-AB9B-FF7130B0818C', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-01-09T09:58:02', 'stamp': 'Q2giEiTWYd+l/a1aHNxNLJMtXZcJJ8vHiF0b0qht8O73atpInOLow4sWd7xybiuwIjsRbXIpws1QwsdhW3SmcrIMjXbF7Qeux1z3o/ueglbwYwhnyMZPlMW3vcKRtEh9FaHdGujsRlcxqo3oFuojA ... (46 characters truncated) ... EmwNBNTMClPNF4wM0Q1VbqllV8gpRVGx1OQX7uJefL7kxHaoB9a8wFa7ht4Rl8JUuyDZEQ0Vhd9etpnNJrVAUNdHRt7LSA2AyPIRRrMcBsDG1BttPTI3dHXRdg9BVc9JMD0ejjETd7F/ThXOGGw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-09T17:31:47', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5851a769-058a-4f53-ab9b-ff7130b0818c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:23,108 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(DF9D88D7-A26D-4C02-A877-F385A12F4499, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'DF9D88D7-A26D-4C02-A877-F385A12F4499', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-01-24T04:29:53', 'stamp': 'TsK50wat0ZN74tstYiDQbFV5jnpWZSa99pUq65RvgsbaowLzgajRv94DvKzG4kXAqrTien4qlzmnpthnZBBzv7YnyG0YuEKl6CsXt8EaGlvS57llJ2AvG6JEHbG1elTlP3iLJVXaHSYrGmLSTv71M ... (46 characters truncated) ... MR+DzH8rRJbXDyb+qcBDhlLNDhwdPRH+UKekYStEzHBwRxpg6g49cYIrlrWFQB22uSaTB8vf9sWfX0fHqnTgFvQzwzY3LDJP5IN7124quR2tFSB9tXy4xeDc8Xp8cVP0Smz5WSCT0HJszvKXFYw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-24T06:00:15', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/df9d88d7-a26d-4c02-a877-f385a12f4499.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:23,327 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(71426F59-063F-4AFF-88E3-D21BDF84F1C4, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '71426F59-063F-4AFF-88E3-D21BDF84F1C4', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190212', 'dates': '2025-01-03T17:26:58', 'stamp': 'IJ1YYTtcrGk8Q/macfwKmpEChBPvZgvcZlL0btRXkYmQbhfU4ROT/wxyAmIW3AoD8/SD9Q3MTn1Dfcv5SPDLJhEnMwrdt4VcJ9qyDmiRqJ+/iV5kw6418wOTcA5xMrlkWWkFxh6xgCSg5VC3Vo38F ... (46 characters truncated) ... vHZX/ohx1nyi6cwQNS/hSAEpml8qz8MASlP/idCeNr6jmMUsPax/sthg+ZiYy2MEOwrJX3BXGX9chkaaNjPjvNwlwBRKSjkJI/OUEKU/9tQCeALUoawirnqkcsxzQ1Q7iU9uBL4jeFIM+RmHHMg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:32', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/71426f59-063f-4aff-88e3-d21bdf84f1c4.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:23,554 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(A3E5D3D7-1FCF-4F57-8916-3A4427B3D793, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'A3E5D3D7-1FCF-4F57-8916-3A4427B3D793', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190112', 'dates': '2025-01-03T17:26:58', 'stamp': 'eB1NQXQBF5nMInJi/MqqyNXituuejRvk+d9WZR8DddnHy2FWDW7l2P7FoHJMvoSZgoUMBSzj/nB8oXU96wnNp+AJgqP7XjNnFOVkPJUtqAAUJbchopg2i+DoXuL9iJFnlIl/YxCKWgvzHwPS5nAp0 ... (46 characters truncated) ... cdDTt4qkh67Dal/JZ9G4ULf2uI/fNvtCOfFX/UDUyKZS4SiUStjbVeFaAh6Zn9BhRgwqTmbs+ruzZRZ2jr+bCmrXc5qxNCpJKPhUYcKmYLlS9bq1adPs/D6ocDD54GAhveelVVw0FqsY1bomSkg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:25', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a3e5d3d7-1fcf-4f57-8916-3a4427b3d793.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:23,783 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(b815ce6a-ff29-44e8-acfd-9076b697bb57, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'b815ce6a-ff29-44e8-acfd-9076b697bb57', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '897', 'dates': '2025-01-11T18:25:29', 'stamp': 'U75knfUsAo97T0dxgvD0sVMQE25jTW+VIV2eNM96PdK6JZiFK8L3l9x5CRxImTco0wmeNKqKrT/g76TN9WKhEFjvtS53+JfbJPcKN30AZrt6JK3hAfQLsFP5lxAUXkeEqnW90bkUA5VoD6s3i6B6r ... (46 characters truncated) ... HDX6Nfeh327exYZYtsQGwnbH/Z3YHMm0e1YrPeeQqN6jq3mnRnnq3QmcE5XoE53AnuLEVR7rMVNCWKV5W9Vp39VxSIv0WYsCa5t0wRACc7luPO6yLwGTi26fDK9PTn6+IXNOkxKPQx0tvpLxLlA==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-11T18:25:29', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/b815ce6a-ff29-44e8-acfd-9076b697bb57.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:26,089 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(623C2FB4-27FE-4263-87CF-FA983A82A653, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '623C2FB4-27FE-4263-87CF-FA983A82A653', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-03-22T09:24:26', 'stamp': 'Q3jX4dqAYAyWJttwT8/T8SpfFvtjR405pOQqUm6lByQ8jNfX4o05p9mk9O5be9THNX3dFKHNT7/Yc6/Cb8Zrx4o1zu9NabrUCVPZ8DAdSSN8LZ+paobLDRgXuc351wy3xsUkAC9W5ydRrdk7mewbf ... (46 characters truncated) ... tY2kPDv8RDfXJBzo93rbJc60CfOQWqW2OqXpZ0eYE078HO5qVTXoEbYWY6s3Qg7WT4ShsruIOImEErBA112Ef6n+WR8vcD/8802st95yGsrKXomM7IvZyHwRcy7+z1tQltRzOgo2n19q946/yyg==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-22T17:04:16', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/623c2fb4-27fe-4263-87cf-fa983a82a653.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:26,312 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(F693F17F-DEC4-4BF1-B794-740BEB0E48B0, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'F693F17F-DEC4-4BF1-B794-740BEB0E48B0', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'ECUH', 'number_leaf': '4943269', 'dates': '2025-03-04T11:33:29', 'stamp': 'HpxHZOJAc/NgU7+gH/+wovn27wt1brwJYZODWeSiv9quM4DdCOsePJk7SERvIJeCeRbuTvffaiiXn2SGX26L0xbJPOCi79Hv6tQreavXlaXLGAFJo2aMLy1ULiqpl/KHQUWpn4mmWMws/LDLtMcKP ... (46 characters truncated) ... 1ISj7NBLWI5b5dGbbgopMPc9L7UyTnndY7yw8+GflY0YcDn47d1KQ/hTgMn3pN2SLeClSSLiVZV5ECkZvqMh98y+lhOjZ6WThxQepcmyTi0btYAFKJR1lSf7r4fCTQdkCO5+tQ7h5aIiJvKSYlg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "Servicio", "descripcion":  ... (42 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-04T11:40:56', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f693f17f-dec4-4bf1-b794-740beb0e48b0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:26,539 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(11C8ACE6-FDD5-11EF-A46F-018E2E04B81B, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '11C8ACE6-FDD5-11EF-A46F-018E2E04B81B', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'CSale', 'number_leaf': '153125196', 'dates': '2025-03-10T11:28:24', 'stamp': 'YH5jP2gZEIBDFM301E60bE7YkKuxgpPnZIqVjpcUe9iJPVY5dfrqUQ8uuq6qVELnQKU4szhEb6q8DlHO3zjhtC252IbPvA/PL7+UB1Lr9AcuzkoOZtUfU8F0mrYufbwMHZlKsv9F628H3HM6VY9w3 ... (46 characters truncated) ... b97fl6UJioqbrwK2NlO8fYmoBXpc/ImTf96xamD9TA0uOcWLmH2/Xbnnk8x3t8fwwinuogCD2L8hrhxT54bx9HZLOwOwQi94nmPcV1Z2PN9OmObCdLn13QTzjHO5lGg4ifgxXlyDW3s13Owk+ww==', 'certificate_number': '00001000000518142818', 'certificate': 'MIIGPzCCBCegAwIBAgIUMDAwMDEwMDAwMDA1MTgxNDI4MTgwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1842 characters truncated) ... OUgofznPaNWKlbbKsyKjOKY9xz98k60myRzTUoJ8ynB8ezOF+MSwD9meYp93hgZMaoNT8XOaEYAhqvCUPPklJkzCf0UM9OopvaLGt7tazqTWhB9JbZzl3BIVYl8GBB28F+eEuJq8chQYEsBo64w==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '625.29', 'discount': '22.70', 'currency': 'MXN', 'exchange_rate': '1', 'total': '699.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '11510', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'ANE140618P37', 'name_of_the_issuer': 'SERVICIOS COMERCIALES AMAZON MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "01010101", "no_identificacion": "1_B0CQMLYFQT_395546628426301", "cantidad": "1", "clave_unidad": "H87", "unidad": ... (284 characters truncated) ... ": "602.59", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "96.41"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '96.41', 'stamp_date': '2025-03-10T11:28:38', 'certif_provider_rfc': 'EME000602QR9', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/11c8ace6-fdd5-11ef-a46f-018e2e04b81b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:26,760 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(61df4bd6-d098-48b2-90de-edef6d7aa875, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '61df4bd6-d098-48b2-90de-edef6d7aa875', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-03-20T14:04:49', 'stamp': 'KlWQ3GG8YuIu8P0QpR3BMRuewuFeW9/9PGIVwhNDaFN789PDBOiwToX9txB69Ydk4vmYvq3okFCYclxUx/UOxO1Bl6XqH2WUi62fQSzzBnmFy/6tQJkP5Z1yKrKS8zKL8XXGeCdyUZ7RvEno6IZdL ... (46 characters truncated) ... Z0/mYLWBYwQYNmOloHr7jBuFpyrePPsF7L6v6gtpz2vo1IOPqKRctFOBtmF4NIaSnBssMG7TEtkRi8AuvdXIVaM4WL0nMS2yb9ADJ69mmg1gE0sgfqX6g50APw4XpREBvEh9npGLO+nVYUZz65A==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '25111.75', 'discount': '8485.09', 'currency': 'MXN', 'exchange_rate': '1', 'total': '16626.66', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "25111.75", "descuento": "8485.09", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-20T14:28:14', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/61df4bd6-d098-48b2-90de-edef6d7aa875.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:26,988 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(7de259ff-c20e-4bf7-972b-736228755e1f, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '7de259ff-c20e-4bf7-972b-736228755e1f', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-03-06T09:14:32', 'stamp': 'dHj991+hRzlLa7s4xborXhBbF3D5bZnM5BnqeFlI1TBrLzzinVyDdZc2K39vn7zF5n4C2TwgEOQ6cLWRyed84si3X/6uAp3/gLtBcQRG7yOH3BaY6CBP0X6wtHNFRSOiflHGHo7C18WicJo1L9kjq ... (46 characters truncated) ... hvful3HJrENiEsmV9m0dgUKtgRXRMFoCpcCkAGuO/wunEHpplw4044/CGqPhlx0WkB9e8+VEgK9zTLsNFGRttBSVjhSfr6zvJ9CpXL0L6L+FTqvpKP0+U2LmahaF9N9qL6nRqQoDXMYSwS9Izsw==', 'certificate_number': '00001000000713780492', 'certificate': 'MIIF5TCCA82gAwIBAgIUMDAwMDEwMDAwMDA3MTM3ODA0OTIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1722 characters truncated) ... 8b6V0IWmEdesbwMzHAfHGdxRKRR3LkOVw+7xVB9HdPDLI9ZIXeQZm4h6bSgDjtCRyhzCDGbXYAzc3RA9Xio7yi1cRN+GIJDnIdYvmsOCidHJfyq6dA0U0Q0tzcrzYOE2v3x7BHRieBT04gvhY3g==', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8447.34', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13225.41', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8447.34", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-06T10:40:15', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/7de259ff-c20e-4bf7-972b-736228755e1f.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:27,210 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(a686229d-71df-4c52-99f3-8a9cd4c8f8e9, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'a686229d-71df-4c52-99f3-8a9cd4c8f8e9', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'FEB76422', 'number_leaf': '50066858288', 'dates': '2025-03-02T15:47:07', 'stamp': 'SPD7tl5yWVUMzIZwadK/T+dgNriy6wwKrOcpJSfP1gEUpYsR6lfZoFIpKzExRh1/M3lKWrBsFh2cGGtM9P2PwMn3HlQZrRDWLT++Qpc7EGdEKIiLqiDLBJJHM/HpIWw8uD0Or7mkCtDwrHP2p04y4 ... (46 characters truncated) ... xbKcP4bmxoBlkIfL1DmtVPRpLF7NsGBcRNb3l+gRVrVMBd/M0hA21wgDDQpyT2QjFBvhs4NXss/StT2SwrTp+9/kGpZi8y4Ty+jP/0oQMI8uwJSppZ/wz+Y+4TAAl61JJzxVcUXwC0urfQJMIng==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-02T21:37:33', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a686229d-71df-4c52-99f3-8a9cd4c8f8e9.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:27,436 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(9465FF77-BB95-429B-BB47-EBE8780D229B, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '9465FF77-BB95-429B-BB47-EBE8780D229B', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-03-08T12:18:42', 'stamp': 'Y/eNZsN+2VcfPqSMQ0fv61vL+x4iQpvx5lmZ/swzeYvFvcW1rae4SkaQkLmYiuULAE6BU9klBkPkcM6KQkWmG5YvBicystPiUxkzW+m12DXl1RKkcfaLm+qFVBUXwzwMNohEyFf4h/qR4zpy3ld/i ... (46 characters truncated) ... +hBgtAvOec0Peu0drUo/1Gkm5JpsJ6+M2dNd5MNKpQ+9Dm5lq/I8oYcpTQnmfrhAuOmUD3dcWZbH3OOFGqq5jVX2VjntlLvPMJ0CbPacSTTNeakN0XvGx1SDXNwu4bePAdRpxn0N3UMmrKAy7dQ==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-09T00:32:02', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/9465ff77-bb95-429b-bb47-ebe8780d229b.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:27,656 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(6927b00c-efee-47cd-8921-14760711d187, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '6927b00c-efee-47cd-8921-14760711d187', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '933', 'dates': '2025-03-28T13:29:47', 'stamp': 'aeeYBYBD4RQO6ejhaymz2fgxMvWSGbCIEwLPxgJsN+ogeuzAwwdurxF23cyfVo3tr56ud+G6q0Q8Y18jYFDcuku7OgYr90QgJqFNpdh8PZZp1DZnRyYeBcUUwiYdhF0rLWgNP8BcK48rwLM01TVlx ... (46 characters truncated) ... ZuesJSbpAgbUUZjiR6hcU1bTzxrA6+hemHEzlV7AVSatoQSIblonlHWI4b6J4PBeq8gAz92tncGUYzxB3PJo+BJ+06dg2esuv1lZDVfus8R7CY568GI79ySpEhpXqopzBMaCitt+tYD7zPIyogQ==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-03-28T13:29:47', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/6927b00c-efee-47cd-8921-14760711d187.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:27,878 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(5AC7F222-E782-4095-8848-96B43D9DAAA9, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '5AC7F222-E782-4095-8848-96B43D9DAAA9', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190202', 'dates': '2025-03-04T21:12:14', 'stamp': 'CNMn+/0BWbg/SG8s2Lmb/xgAFD5GYIbUZmV20zSi+hZgtwPXRQToP1eqwTFMfw3ZEYPrBjXCR46UiYUr+wsSyLIGX2hqENCDbarFG/RQ+3l+usBQtBpPGW+Jb4PuT23/Vw6ssJPAR2VDFWnj7YoY6 ... (46 characters truncated) ... dDqMvYufymtsbfYJ8kWTPJUdzBVEcWhPtdfXTJA+EgfkYDOX+jUSd+lD2/+WULfL/JtGYDl17QRviYzeC5WodS/IoNCeE5FjmO5HBJviLtB7MGg/EHVPbJRjmxDF1jU/QHwVhNA7vPVqI0Y1uDQ==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-03-05T05:00:43', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5ac7f222-e782-4095-8848-96b43d9daaa9.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:28,106 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(B793D98D-2037-4DFC-83F2-08A395E9FD0C, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'B793D98D-2037-4DFC-83F2-08A395E9FD0C', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190102', 'dates': '2025-03-04T21:12:14', 'stamp': 'HxyckweoFcHeT/k2vz52+Amf5SvkWPITYeedOSmuY7y/k7sgR1YEzaeybz3Ms0/tNOy/ezhf21lDpINLObFR4oKF1yrW7lUPZfvJ0jwNxYGSzZyBaRLsO2BZ9Q6kPi2cWK4+GtF+yPk9PeGPwGEhV ... (46 characters truncated) ... cJokS4ovDBaadfd7NRHMVWCQETihaACHZho6nrUwkYEu+CGxFPA+4gd1I21kPx4EW84kyAcRpD7Efdw9wUBUUmLJYcXeUzQwVp8/DFsj4bV7TMRbZKSyZvohpXiPeTLxA/oHAxCwFjRB7vE4mTA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-03-05T05:00:34', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/b793d98d-2037-4dfc-83f2-08a395e9fd0c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:30,413 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(9C54DBFE-27F8-4F3E-9829-82FE431FA439, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '9C54DBFE-27F8-4F3E-9829-82FE431FA439', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190201', 'dates': '2025-02-05T15:51:45', 'stamp': 'c8Pslp2nnbDDsUF1kfzDCyYP7evbQdqv+W4c6q33b9oJ1gC5iyA8givAcA9VYpJDfA9ZZK4GQda4LQpm5r4A/jdZYtCpV3wyzOiArr0h98PXcK3bRt/bLIBGBQF/JqGVezqSG5zy9v6xboDNFkLrT ... (46 characters truncated) ... oIbJYbcnkdtoQ4lRlnciwMA/BmFLWS6vKaYhuVaCcOjTyMxoEh/AnuB7JnayLQVqVcMBg/8TmUVxyYaXAhtMNwAxopdCs40o1gbYKjJUp+3zmGFXDwVneqDvnphx0c5iBdmL92FVzR8aNe+CPhA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-02-05T23:52:27', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/9c54dbfe-27f8-4f3e-9829-82fe431fa439.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:30,641 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(54d86d57-ea62-487c-9c66-8e3a09e1046e, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '54d86d57-ea62-487c-9c66-8e3a09e1046e', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '918', 'dates': '2025-02-25T09:43:55', 'stamp': 'WFsTxZbZQtZuyR3AqKymqgTOZS/ucl3333OjAhLFlzRsvoj6bGDbKy5Ya6CQdW0lJTodSVdCS2gm2p+mL7h+g++cAp5SOudKBF+7/eoYZt+57oXLMGnl2gYbh0uby1oljKud/q+v4OH3I3PwAEj76 ... (46 characters truncated) ... w+QYJz+Y59LupYTo5X8dxDziyLUc1iCsm3G6vIgkVsvUgFE/C0wLRttnGvV+VXaoF4uwISv4m5/MoNhZstt2bS55lfcgN3qZZ+wDBv/+H9veOBvcvQOA3M+MUF3EDz0u/CBkxz8R/C+usGOqLoQ==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-25T09:43:55', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/54d86d57-ea62-487c-9c66-8e3a09e1046e.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:30,860 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(3783a3c3-aac6-4c22-9970-edef6d7a0677, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '3783a3c3-aac6-4c22-9970-edef6d7a0677', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-02-05T13:54:30', 'stamp': '3HiStkCZhEeHjRbRlG08V4W2kPaDLXKv3sKlMg2RmtFkuHx2wzktNvPg0U8fImhcetI/dRjCwBsDvmm5M1gjXlpZ218SRJKOkRtkRtVmvQDFUK7P0cfPPmb9e2IVZ0szg9IXj426O/hu2DqPQKbyK ... (46 characters truncated) ... aFrRA7CaI78kq+eS3wP5mkr2A0dKALpOJgkjNZTbqTPVVUBx/Hms3GxUaJQ4aRkPyWQId37g2Jl9Ll+gPuN3VLz/NZRbmr6TWlaOO4n+K1Aqg5/EdIrS+LuGnNsLr/utqCsM67rcOpc9EiXW5XA==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '79991.17', 'discount': '21759.23', 'currency': 'MXN', 'exchange_rate': '1', 'total': '58231.94', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (36 characters truncated) ... 7", "importe": "79991.17", "descuento": "21759.23", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-05T13:58:09', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/3783a3c3-aac6-4c22-9970-edef6d7a0677.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:31,079 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(e94becb5-d4ea-4e52-bf37-dfdaf308a2b2, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'e94becb5-d4ea-4e52-bf37-dfdaf308a2b2', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'ENE76226', 'number_leaf': '50066858288', 'dates': '2025-02-02T18:52:49', 'stamp': 'LC+2CKgyqWeYLWLRLVNGxzFxxzCLVr6erFFZyQhOlDqq8g4yoibMWLp2P2EOmMOG/Soewu17WAuE1kevlSDOeqxSf0FPo29GyqAnxCOjTkMddPO/MjbI0ooGnz9Fmr/8DZY+cTf2Zf/VoLMmdNLNl ... (46 characters truncated) ... rds+AqOAbjWC5XaRBTjfSx7HiJAshEbZbiLjthF8RkgKO/EZ3eR4D2xpoAC3yM07L1YiJUqzI/D0IdEK5EXetwzIeNsQSNs0aduRLcxE+rTAL1WinVG1ROw/TqTh2CXmmsVDHoAUW/iiu8Qt9vg==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-03T05:07:26', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/e94becb5-d4ea-4e52-bf37-dfdaf308a2b2.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:31,306 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(C1B8BC2F-78CD-4FF5-934F-97DCA858B380, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'C1B8BC2F-78CD-4FF5-934F-97DCA858B380', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-02-08T10:53:55', 'stamp': 'kHnGjfPuuhbEBurpQsbw0I4+KbWOrT/r0oKb9ybB+iZzBs6Ska9Jvulhox5yY3McLjjQUimtLdEapQuEN+EBq2pLekJ5SeML2L3HhxbHvZfbfYbnmZHqjYbsox+KXUC6avyH1GTp3CT+ZHlFnniNj ... (46 characters truncated) ... i2f6uVpkSJr1s5hijov4zanCIb1lGtnmjRVQyWm5nJpdaTDhI/bUiWMVgtnr4PjfL8qXyW0ie1+cICuiNRVIAcsPHjMBWSaZcQS0Ieh6WI/6I4tBRZOt/OcHIOB8yairCc0MsW1v/b5xLN9zGdQ==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-08T19:48:56', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/c1b8bc2f-78cd-4ff5-934f-97dca858b380.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:31,523 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(BEBDBEED-2E5F-45CC-B6A1-AF2F82933744, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'BEBDBEED-2E5F-45CC-B6A1-AF2F82933744', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1457016', 'dates': '2025-02-27T20:44:26', 'stamp': 'DfSjGZYGp0L+Fudrab3w4ypBuEyGJipp1vKunxy471Yq+T1vlNH5VwjzUpYBgFpRT5tpNNR38PYrjkVYB0Bcd2BYA7RazHuLXikE/R05GT8nBtMbKv1PoBMkR+X7ZwmXXPGmm16WByfas5H6eRR71 ... (46 characters truncated) ... zOeaWFR7biXZngWUHMnuT6d/XEAoxoC7KEZEO6p0pgIzbkbeceQahv82/37Iu6UGzU6ayyplYgPFOYz3aGXdpfg0z/wgOx85LcXYhOhEeH207nLk1lqKBX91tCNqpeYqMEp3Ph2Q5LbE4VLWkwQ==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '205.80', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '238.73', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "INT. DE ... (945 characters truncated) ... e": "67.51", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "10.80"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '32.93', 'stamp_date': '2025-02-27T20:54:44', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/bebdbeed-2e5f-45cc-b6a1-af2f82933744.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:31,745 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(38545538-1905-4066-BB37-F62734BA212E, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '38545538-1905-4066-BB37-F62734BA212E', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190101', 'dates': '2025-02-05T15:51:45', 'stamp': 'IZehUWvH9hDLpHZik+5xrbQniXpPzZ90FBQCr4PpqQA8pVetSrW0D7HhTYoYLUz6adHpj/37OJAMKo+LDEcfFUzQ3BDZMPshKQAI0WTZ7Hc3VxFlEaYwlJ8mKysC+Zw5gaPbrQofaT31wD4qjozSf ... (46 characters truncated) ... CoWOiG8MCr2U+P0eqFBzO16u2fOjNF2HwYAynR4nUDYkm6DwNTfQJf1URRZqV7QwGltTjuAk+zijmL8xr1MVQCqTWeA7VInB0t1TIlugOuaFgkHARRd5hFeU6gXEM04nkU0Zsy1Ss6q1H2YIonA==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-02-05T23:52:18', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/38545538-1905-4066-bb37-f62734ba212e.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:31,964 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(05D46C5F-DE44-40FB-9392-A8DDF87FD6A8, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '05D46C5F-DE44-40FB-9392-A8DDF87FD6A8', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-02-22T08:30:09', 'stamp': 'YKNzsTxB0aU/lFME/OZ1v7do70g2wpMXl/EendKlu9ktYKoaUr8xb1TqNF1LeQ7vQnwnYKhuNSUJ62f+VMZGMmpCzUCcf5J8FDG/Ny73vct1NtERLyCq2qG9WMe+3lX/m9/kWmfo7c1RiIoH9Y1tG ... (46 characters truncated) ... G1tf2aImjLvw6jwmRJ+LmwnWk9zG5g2gh7gXSyjaWVE97/fZ+oi0ofre7Ts2gAnu299uSosJIv6LoHNDDQ423m81YNWaH1puTpNfcot7ih1ZL/lrFD8vLTzNiAkHqkWFhK/1aZdTt2pFlRLp6BA==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-22T15:01:25', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/05d46c5f-de44-40fb-9392-a8ddf87fd6a8.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:32,225 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(f417abad-2b06-47f4-95da-edef6d7af3fd, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'f417abad-2b06-47f4-95da-edef6d7af3fd', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-02-20T13:11:29', 'stamp': 'gqyRvYwV7EJEop9RBWMtW08CRLXRvSVia4xYk/tytwdEnkYFncPbPgh3tED0Vkj8hcvQ+ocqtwmiD8O9wWF1kLdgvWWj39Os4amVzmesF77y0MdwQR9e/K+xSkhZEXQumzGRVV71PRRGvyNzW8a+p ... (46 characters truncated) ... f/iliDXANCycczi53zafFjjj2HfDko6iTa2AXQKITkSkDXnPdScD0d8YdGImy2LID7QzLJBRzhyFsf2wYc2TbtYQPq57JVMU5kH8Ofn8G/FkCvT3shAt7S/aoiGXQ8odHixqPFy3GbfZ4Jyn4pg==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '25111.75', 'discount': '7928.71', 'currency': 'MXN', 'exchange_rate': '1', 'total': '17183.04', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "25111.75", "descuento": "7928.71", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-02-20T13:34:12', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f417abad-2b06-47f4-95da-edef6d7af3fd.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:34,542 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(78f14f40-fe1d-4830-b383-edef6d7a86e0, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '78f14f40-fe1d-4830-b383-edef6d7a86e0', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-06T19:53:52', 'stamp': 'HYNM2Ed841WndlL/7c7mrYZlvsKtmUzszZ/CXhqy81QelkQZNChZu8a63FK9Y6K7XC4I+p9iwnddk9poT1OKkvEs192qtZe4a5dlM1rTQvQciIBc6BpWb9SsF4kPG0lVgNPzOdAKReFXDS19+qSFM ... (46 characters truncated) ... iQuyPx6VF6TFWpVh0pfdrnhUCBgJfCNDbpr2KFzhi67ruJaZ2kXyZr3grhnHT01yyfpoicm5AuG9PLZswty7KjfPlk4YIZ8ROIv0p5/xlrXEZna9ZNHPJPaJIcY5H34XNHHx/e40MeIi3nTm3fQ==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8042.42', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13630.33', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8042.42", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-06T20:15:10', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/78f14f40-fe1d-4830-b383-edef6d7a86e0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:34,761 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(38C1CE7A-2F70-4688-A2DD-5C0838129C9C, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '38C1CE7A-2F70-4688-A2DD-5C0838129C9C', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1385483', 'dates': '2025-01-27T18:15:22', 'stamp': 'Dd65iwSniizBB0NYEYrbvUvARVypImtvSZTwdVJJYZ3jXDX/twXK4/EX6eqJn7CSj7S7ixyjA8oc2reDR0rxV2+NUnbUrOQ+JpFzEqRKac51zV7pflYGJCStOfq1dh6fkiY3K6H0uXgDtcut4YfeL ... (46 characters truncated) ... J33OIVodClrLT6wLwK7caTsabcmmRXd8a2mrDOm07YgbkDS3G7AIHsAdNUVHCvpIziSG03NFoOWIzr8ZfKPozfFWGwKFtnlyMhHlt7Xh+vRC1B/cQgXg8VC1J8ZltyfPnReyBp9ibSRkboUS6Fg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '405.57', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '470.45', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "INT. DE ... (954 characters truncated) ... ": "127.08", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "20.33"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '64.88', 'stamp_date': '2025-01-27T18:21:18', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/38c1ce7a-2f70-4688-a2dd-5c0838129c9c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:34,988 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(f61751e1-4c08-473e-8f32-b715544dcf20, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'f61751e1-4c08-473e-8f32-b715544dcf20', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'DIC76005', 'number_leaf': '50066858288', 'dates': '2025-01-03T13:10:40', 'stamp': 'adeG9BSrUyM3SwZci1kls1wjj+TpEpFA8lsE5i/pL+8Xjury/MNnLjPZhnAA01dswQ3VL1BhlofJ5KelaNmIW20EM1KRzZ0eE3Irgpwm/pS+1Bqy812lU+5y2Nlfn6iP3Rmk+2667crb1Iccdbas9 ... (46 characters truncated) ... vsj0QWMGoVJDv11cM6sGSDCtr+oyvEIeExE6OO7iVlpudkZBK0OdDHqoQHeT1TkjES0wQg0j00Rr/SP6YIqdD4sA0QdnuQkZpawD+Ly0gDobrKi2l0sVnlwrusd0SG/qkpKB+JZyHEmVNdTsNzg==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-03T19:12:04', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f61751e1-4c08-473e-8f32-b715544dcf20.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:35,207 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(4cbae294-fac7-4e71-a59c-edef6d7a2da0, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '4cbae294-fac7-4e71-a59c-edef6d7a2da0', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-22T15:04:31', 'stamp': 'IS/xHVuDRJNRxVdGo8jH7YmFHkcWTQJ19n2TDvBXgDZOfiOPq6azB2TEl2MlQAv0NW2F+KzrlwpKEErd5HH86SxU8x5BMO7ehfz+rR2Gc2djqzsEo3mrvqbgqIzB8/mL3h+SO4qMoin232ZKe9/QM ... (46 characters truncated) ... z7/3u/XCarqTFk/Wp1hoRxywAEm+1IRtXTkIc3Z2mjPeuUM3ETEQhBUQd0wR8+gpY0OcdUxQGapf1fcDg0kJzJmLQOApg6K7OdGy3oFo5klQTL1CumWePqvguwrhILuR6yWSfL18/ESloacPosw==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '24973.75', 'discount': '8053.20', 'currency': 'MXN', 'exchange_rate': '1', 'total': '16920.55', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "24973.75", "descuento": "8053.20", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-22T15:38:09', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/4cbae294-fac7-4e71-a59c-edef6d7a2da0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:35,426 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(5851A769-058A-4F53-AB9B-FF7130B0818C, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '5851A769-058A-4F53-AB9B-FF7130B0818C', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-01-09T09:58:02', 'stamp': 'Q2giEiTWYd+l/a1aHNxNLJMtXZcJJ8vHiF0b0qht8O73atpInOLow4sWd7xybiuwIjsRbXIpws1QwsdhW3SmcrIMjXbF7Qeux1z3o/ueglbwYwhnyMZPlMW3vcKRtEh9FaHdGujsRlcxqo3oFuojA ... (46 characters truncated) ... EmwNBNTMClPNF4wM0Q1VbqllV8gpRVGx1OQX7uJefL7kxHaoB9a8wFa7ht4Rl8JUuyDZEQ0Vhd9etpnNJrVAUNdHRt7LSA2AyPIRRrMcBsDG1BttPTI3dHXRdg9BVc9JMD0ejjETd7F/ThXOGGw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-09T17:31:47', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5851a769-058a-4f53-ab9b-ff7130b0818c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:35,657 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(DF9D88D7-A26D-4C02-A877-F385A12F4499, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'DF9D88D7-A26D-4C02-A877-F385A12F4499', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-01-24T04:29:53', 'stamp': 'TsK50wat0ZN74tstYiDQbFV5jnpWZSa99pUq65RvgsbaowLzgajRv94DvKzG4kXAqrTien4qlzmnpthnZBBzv7YnyG0YuEKl6CsXt8EaGlvS57llJ2AvG6JEHbG1elTlP3iLJVXaHSYrGmLSTv71M ... (46 characters truncated) ... MR+DzH8rRJbXDyb+qcBDhlLNDhwdPRH+UKekYStEzHBwRxpg6g49cYIrlrWFQB22uSaTB8vf9sWfX0fHqnTgFvQzwzY3LDJP5IN7124quR2tFSB9tXy4xeDc8Xp8cVP0Smz5WSCT0HJszvKXFYw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-24T06:00:15', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/df9d88d7-a26d-4c02-a877-f385a12f4499.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:35,877 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(71426F59-063F-4AFF-88E3-D21BDF84F1C4, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '71426F59-063F-4AFF-88E3-D21BDF84F1C4', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190212', 'dates': '2025-01-03T17:26:58', 'stamp': 'IJ1YYTtcrGk8Q/macfwKmpEChBPvZgvcZlL0btRXkYmQbhfU4ROT/wxyAmIW3AoD8/SD9Q3MTn1Dfcv5SPDLJhEnMwrdt4VcJ9qyDmiRqJ+/iV5kw6418wOTcA5xMrlkWWkFxh6xgCSg5VC3Vo38F ... (46 characters truncated) ... vHZX/ohx1nyi6cwQNS/hSAEpml8qz8MASlP/idCeNr6jmMUsPax/sthg+ZiYy2MEOwrJX3BXGX9chkaaNjPjvNwlwBRKSjkJI/OUEKU/9tQCeALUoawirnqkcsxzQ1Q7iU9uBL4jeFIM+RmHHMg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:32', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/71426f59-063f-4aff-88e3-d21bdf84f1c4.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:36,096 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(A3E5D3D7-1FCF-4F57-8916-3A4427B3D793, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'A3E5D3D7-1FCF-4F57-8916-3A4427B3D793', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190112', 'dates': '2025-01-03T17:26:58', 'stamp': 'eB1NQXQBF5nMInJi/MqqyNXituuejRvk+d9WZR8DddnHy2FWDW7l2P7FoHJMvoSZgoUMBSzj/nB8oXU96wnNp+AJgqP7XjNnFOVkPJUtqAAUJbchopg2i+DoXuL9iJFnlIl/YxCKWgvzHwPS5nAp0 ... (46 characters truncated) ... cdDTt4qkh67Dal/JZ9G4ULf2uI/fNvtCOfFX/UDUyKZS4SiUStjbVeFaAh6Zn9BhRgwqTmbs+ruzZRZ2jr+bCmrXc5qxNCpJKPhUYcKmYLlS9bq1adPs/D6ocDD54GAhveelVVw0FqsY1bomSkg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:25', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a3e5d3d7-1fcf-4f57-8916-3a4427b3d793.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:36,321 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(b815ce6a-ff29-44e8-acfd-9076b697bb57, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'b815ce6a-ff29-44e8-acfd-9076b697bb57', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '897', 'dates': '2025-01-11T18:25:29', 'stamp': 'U75knfUsAo97T0dxgvD0sVMQE25jTW+VIV2eNM96PdK6JZiFK8L3l9x5CRxImTco0wmeNKqKrT/g76TN9WKhEFjvtS53+JfbJPcKN30AZrt6JK3hAfQLsFP5lxAUXkeEqnW90bkUA5VoD6s3i6B6r ... (46 characters truncated) ... HDX6Nfeh327exYZYtsQGwnbH/Z3YHMm0e1YrPeeQqN6jq3mnRnnq3QmcE5XoE53AnuLEVR7rMVNCWKV5W9Vp39VxSIv0WYsCa5t0wRACc7luPO6yLwGTi26fDK9PTn6+IXNOkxKPQx0tvpLxLlA==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-11T18:25:29', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/b815ce6a-ff29-44e8-acfd-9076b697bb57.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:38,637 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(78f14f40-fe1d-4830-b383-edef6d7a86e0, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '78f14f40-fe1d-4830-b383-edef6d7a86e0', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-06T19:53:52', 'stamp': 'HYNM2Ed841WndlL/7c7mrYZlvsKtmUzszZ/CXhqy81QelkQZNChZu8a63FK9Y6K7XC4I+p9iwnddk9poT1OKkvEs192qtZe4a5dlM1rTQvQciIBc6BpWb9SsF4kPG0lVgNPzOdAKReFXDS19+qSFM ... (46 characters truncated) ... iQuyPx6VF6TFWpVh0pfdrnhUCBgJfCNDbpr2KFzhi67ruJaZ2kXyZr3grhnHT01yyfpoicm5AuG9PLZswty7KjfPlk4YIZ8ROIv0p5/xlrXEZna9ZNHPJPaJIcY5H34XNHHx/e40MeIi3nTm3fQ==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8042.42', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13630.33', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8042.42", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-06T20:15:10', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/78f14f40-fe1d-4830-b383-edef6d7a86e0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:38,864 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(38C1CE7A-2F70-4688-A2DD-5C0838129C9C, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '38C1CE7A-2F70-4688-A2DD-5C0838129C9C', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1385483', 'dates': '2025-01-27T18:15:22', 'stamp': 'Dd65iwSniizBB0NYEYrbvUvARVypImtvSZTwdVJJYZ3jXDX/twXK4/EX6eqJn7CSj7S7ixyjA8oc2reDR0rxV2+NUnbUrOQ+JpFzEqRKac51zV7pflYGJCStOfq1dh6fkiY3K6H0uXgDtcut4YfeL ... (46 characters truncated) ... J33OIVodClrLT6wLwK7caTsabcmmRXd8a2mrDOm07YgbkDS3G7AIHsAdNUVHCvpIziSG03NFoOWIzr8ZfKPozfFWGwKFtnlyMhHlt7Xh+vRC1B/cQgXg8VC1J8ZltyfPnReyBp9ibSRkboUS6Fg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '405.57', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '470.45', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "INT. DE ... (954 characters truncated) ... ": "127.08", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "20.33"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '64.88', 'stamp_date': '2025-01-27T18:21:18', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/38c1ce7a-2f70-4688-a2dd-5c0838129c9c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:39,082 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(f61751e1-4c08-473e-8f32-b715544dcf20, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'f61751e1-4c08-473e-8f32-b715544dcf20', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'DIC76005', 'number_leaf': '50066858288', 'dates': '2025-01-03T13:10:40', 'stamp': 'adeG9BSrUyM3SwZci1kls1wjj+TpEpFA8lsE5i/pL+8Xjury/MNnLjPZhnAA01dswQ3VL1BhlofJ5KelaNmIW20EM1KRzZ0eE3Irgpwm/pS+1Bqy812lU+5y2Nlfn6iP3Rmk+2667crb1Iccdbas9 ... (46 characters truncated) ... vsj0QWMGoVJDv11cM6sGSDCtr+oyvEIeExE6OO7iVlpudkZBK0OdDHqoQHeT1TkjES0wQg0j00Rr/SP6YIqdD4sA0QdnuQkZpawD+Ly0gDobrKi2l0sVnlwrusd0SG/qkpKB+JZyHEmVNdTsNzg==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-03T19:12:04', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f61751e1-4c08-473e-8f32-b715544dcf20.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:39,302 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(4cbae294-fac7-4e71-a59c-edef6d7a2da0, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '4cbae294-fac7-4e71-a59c-edef6d7a2da0', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-22T15:04:31', 'stamp': 'IS/xHVuDRJNRxVdGo8jH7YmFHkcWTQJ19n2TDvBXgDZOfiOPq6azB2TEl2MlQAv0NW2F+KzrlwpKEErd5HH86SxU8x5BMO7ehfz+rR2Gc2djqzsEo3mrvqbgqIzB8/mL3h+SO4qMoin232ZKe9/QM ... (46 characters truncated) ... z7/3u/XCarqTFk/Wp1hoRxywAEm+1IRtXTkIc3Z2mjPeuUM3ETEQhBUQd0wR8+gpY0OcdUxQGapf1fcDg0kJzJmLQOApg6K7OdGy3oFo5klQTL1CumWePqvguwrhILuR6yWSfL18/ESloacPosw==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '24973.75', 'discount': '8053.20', 'currency': 'MXN', 'exchange_rate': '1', 'total': '16920.55', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "24973.75", "descuento": "8053.20", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-22T15:38:09', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/4cbae294-fac7-4e71-a59c-edef6d7a2da0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:39,520 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(5851A769-058A-4F53-AB9B-FF7130B0818C, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '5851A769-058A-4F53-AB9B-FF7130B0818C', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-01-09T09:58:02', 'stamp': 'Q2giEiTWYd+l/a1aHNxNLJMtXZcJJ8vHiF0b0qht8O73atpInOLow4sWd7xybiuwIjsRbXIpws1QwsdhW3SmcrIMjXbF7Qeux1z3o/ueglbwYwhnyMZPlMW3vcKRtEh9FaHdGujsRlcxqo3oFuojA ... (46 characters truncated) ... EmwNBNTMClPNF4wM0Q1VbqllV8gpRVGx1OQX7uJefL7kxHaoB9a8wFa7ht4Rl8JUuyDZEQ0Vhd9etpnNJrVAUNdHRt7LSA2AyPIRRrMcBsDG1BttPTI3dHXRdg9BVc9JMD0ejjETd7F/ThXOGGw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-09T17:31:47', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5851a769-058a-4f53-ab9b-ff7130b0818c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:39,740 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(DF9D88D7-A26D-4C02-A877-F385A12F4499, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'DF9D88D7-A26D-4C02-A877-F385A12F4499', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-01-24T04:29:53', 'stamp': 'TsK50wat0ZN74tstYiDQbFV5jnpWZSa99pUq65RvgsbaowLzgajRv94DvKzG4kXAqrTien4qlzmnpthnZBBzv7YnyG0YuEKl6CsXt8EaGlvS57llJ2AvG6JEHbG1elTlP3iLJVXaHSYrGmLSTv71M ... (46 characters truncated) ... MR+DzH8rRJbXDyb+qcBDhlLNDhwdPRH+UKekYStEzHBwRxpg6g49cYIrlrWFQB22uSaTB8vf9sWfX0fHqnTgFvQzwzY3LDJP5IN7124quR2tFSB9tXy4xeDc8Xp8cVP0Smz5WSCT0HJszvKXFYw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-24T06:00:15', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/df9d88d7-a26d-4c02-a877-f385a12f4499.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:39,957 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(71426F59-063F-4AFF-88E3-D21BDF84F1C4, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '71426F59-063F-4AFF-88E3-D21BDF84F1C4', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190212', 'dates': '2025-01-03T17:26:58', 'stamp': 'IJ1YYTtcrGk8Q/macfwKmpEChBPvZgvcZlL0btRXkYmQbhfU4ROT/wxyAmIW3AoD8/SD9Q3MTn1Dfcv5SPDLJhEnMwrdt4VcJ9qyDmiRqJ+/iV5kw6418wOTcA5xMrlkWWkFxh6xgCSg5VC3Vo38F ... (46 characters truncated) ... vHZX/ohx1nyi6cwQNS/hSAEpml8qz8MASlP/idCeNr6jmMUsPax/sthg+ZiYy2MEOwrJX3BXGX9chkaaNjPjvNwlwBRKSjkJI/OUEKU/9tQCeALUoawirnqkcsxzQ1Q7iU9uBL4jeFIM+RmHHMg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:32', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/71426f59-063f-4aff-88e3-d21bdf84f1c4.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:40,179 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(A3E5D3D7-1FCF-4F57-8916-3A4427B3D793, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'A3E5D3D7-1FCF-4F57-8916-3A4427B3D793', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190112', 'dates': '2025-01-03T17:26:58', 'stamp': 'eB1NQXQBF5nMInJi/MqqyNXituuejRvk+d9WZR8DddnHy2FWDW7l2P7FoHJMvoSZgoUMBSzj/nB8oXU96wnNp+AJgqP7XjNnFOVkPJUtqAAUJbchopg2i+DoXuL9iJFnlIl/YxCKWgvzHwPS5nAp0 ... (46 characters truncated) ... cdDTt4qkh67Dal/JZ9G4ULf2uI/fNvtCOfFX/UDUyKZS4SiUStjbVeFaAh6Zn9BhRgwqTmbs+ruzZRZ2jr+bCmrXc5qxNCpJKPhUYcKmYLlS9bq1adPs/D6ocDD54GAhveelVVw0FqsY1bomSkg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:25', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a3e5d3d7-1fcf-4f57-8916-3a4427b3d793.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:40,404 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(b815ce6a-ff29-44e8-acfd-9076b697bb57, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'b815ce6a-ff29-44e8-acfd-9076b697bb57', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '897', 'dates': '2025-01-11T18:25:29', 'stamp': 'U75knfUsAo97T0dxgvD0sVMQE25jTW+VIV2eNM96PdK6JZiFK8L3l9x5CRxImTco0wmeNKqKrT/g76TN9WKhEFjvtS53+JfbJPcKN30AZrt6JK3hAfQLsFP5lxAUXkeEqnW90bkUA5VoD6s3i6B6r ... (46 characters truncated) ... HDX6Nfeh327exYZYtsQGwnbH/Z3YHMm0e1YrPeeQqN6jq3mnRnnq3QmcE5XoE53AnuLEVR7rMVNCWKV5W9Vp39VxSIv0WYsCa5t0wRACc7luPO6yLwGTi26fDK9PTn6+IXNOkxKPQx0tvpLxLlA==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-11T18:25:29', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/b815ce6a-ff29-44e8-acfd-9076b697bb57.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:42,757 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(78f14f40-fe1d-4830-b383-edef6d7a86e0, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '78f14f40-fe1d-4830-b383-edef6d7a86e0', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-06T19:53:52', 'stamp': 'HYNM2Ed841WndlL/7c7mrYZlvsKtmUzszZ/CXhqy81QelkQZNChZu8a63FK9Y6K7XC4I+p9iwnddk9poT1OKkvEs192qtZe4a5dlM1rTQvQciIBc6BpWb9SsF4kPG0lVgNPzOdAKReFXDS19+qSFM ... (46 characters truncated) ... iQuyPx6VF6TFWpVh0pfdrnhUCBgJfCNDbpr2KFzhi67ruJaZ2kXyZr3grhnHT01yyfpoicm5AuG9PLZswty7KjfPlk4YIZ8ROIv0p5/xlrXEZna9ZNHPJPaJIcY5H34XNHHx/e40MeIi3nTm3fQ==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '21672.75', 'discount': '8042.42', 'currency': 'MXN', 'exchange_rate': '1', 'total': '13630.33', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "21672.75", "descuento": "8042.42", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-06T20:15:10', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/78f14f40-fe1d-4830-b383-edef6d7a86e0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:42,988 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(38C1CE7A-2F70-4688-A2DD-5C0838129C9C, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '38C1CE7A-2F70-4688-A2DD-5C0838129C9C', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'TDCH', 'number_leaf': '1385483', 'dates': '2025-01-27T18:15:22', 'stamp': 'Dd65iwSniizBB0NYEYrbvUvARVypImtvSZTwdVJJYZ3jXDX/twXK4/EX6eqJn7CSj7S7ixyjA8oc2reDR0rxV2+NUnbUrOQ+JpFzEqRKac51zV7pflYGJCStOfq1dh6fkiY3K6H0uXgDtcut4YfeL ... (46 characters truncated) ... J33OIVodClrLT6wLwK7caTsabcmmRXd8a2mrDOm07YgbkDS3G7AIHsAdNUVHCvpIziSG03NFoOWIzr8ZfKPozfFWGwKFtnlyMhHlt7Xh+vRC1B/cQgXg8VC1J8ZltyfPnReyBp9ibSRkboUS6Fg==', 'certificate_number': '00001000000707087659', 'certificate': 'MIIGhjCCBG6gAwIBAgIUMDAwMDEwMDAwMDA3MDcwODc2NTkwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1934 characters truncated) ... 4Rvvm/VRkvqtQbXDgtHbv267Mg+HuCuYEVl3dWgDXjWMHsPnsJCt7tPgHPyy5U2yv2/BMFsXQUVAfPasN6Y6NxrD0lglvsqHAp2MFswCJcCXuvJ9HZAo061GgeENEfai3UMSj9iuxYmJgLFkBPqNj', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '405.57', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '470.45', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '66278', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BRM940216EQ6', 'name_of_the_issuer': 'BANCO REGIONAL SA INSTITUCION DE BANCA MULTIPLE BANREGIO GRUPO FINANCIERO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '616', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "INT. DE ... (954 characters truncated) ... ": "127.08", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "20.33"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '64.88', 'stamp_date': '2025-01-27T18:21:18', 'certif_provider_rfc': 'GFA0905206U3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/38c1ce7a-2f70-4688-a2dd-5c0838129c9c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:43,213 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(f61751e1-4c08-473e-8f32-b715544dcf20, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'f61751e1-4c08-473e-8f32-b715544dcf20', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'DIC76005', 'number_leaf': '50066858288', 'dates': '2025-01-03T13:10:40', 'stamp': 'adeG9BSrUyM3SwZci1kls1wjj+TpEpFA8lsE5i/pL+8Xjury/MNnLjPZhnAA01dswQ3VL1BhlofJ5KelaNmIW20EM1KRzZ0eE3Irgpwm/pS+1Bqy812lU+5y2Nlfn6iP3Rmk+2667crb1Iccdbas9 ... (46 characters truncated) ... vsj0QWMGoVJDv11cM6sGSDCtr+oyvEIeExE6OO7iVlpudkZBK0OdDHqoQHeT1TkjES0wQg0j00Rr/SP6YIqdD4sA0QdnuQkZpawD+Ly0gDobrKi2l0sVnlwrusd0SG/qkpKB+JZyHEmVNdTsNzg==', 'certificate_number': '00001000000711188581', 'certificate': 'MIIGiTCCBHGgAwIBAgIUMDAwMDEwMDAwMDA3MTExODg1ODEwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1938 characters truncated) ... wmDf50wth53nFZ/pVzU503GqlXAnL5yuJXnv+APjHJc4tfYXzB79+62o3E5ormT+SsSGQaNZY6CUoWolHZ4rGXugZsY/neVqhemGciPYHKFcrOmlh9fyfTSGRxcFd5HrWM2Tpuh4F/tJ+MJUebBTG', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03100', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BII931004P61', 'name_of_the_issuer': 'BANCO INBURSA SA, INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO INBURSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1", "clave_unidad": "E48", "unidad": "", "descripcion": "Servici ... (34 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-03T19:12:04', 'certif_provider_rfc': 'AUR100128NN3', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/f61751e1-4c08-473e-8f32-b715544dcf20.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:43,433 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(4cbae294-fac7-4e71-a59c-edef6d7a2da0, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '4cbae294-fac7-4e71-a59c-edef6d7a2da0', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': None, 'dates': '2025-01-22T15:04:31', 'stamp': 'IS/xHVuDRJNRxVdGo8jH7YmFHkcWTQJ19n2TDvBXgDZOfiOPq6azB2TEl2MlQAv0NW2F+KzrlwpKEErd5HH86SxU8x5BMO7ehfz+rR2Gc2djqzsEo3mrvqbgqIzB8/mL3h+SO4qMoin232ZKe9/QM ... (46 characters truncated) ... z7/3u/XCarqTFk/Wp1hoRxywAEm+1IRtXTkIc3Z2mjPeuUM3ETEQhBUQd0wR8+gpY0OcdUxQGapf1fcDg0kJzJmLQOApg6K7OdGy3oFo5klQTL1CumWePqvguwrhILuR6yWSfL18/ESloacPosw==', 'certificate_number': '00001000000506597591', 'certificate': 'MIIF1DCCA7ygAwIBAgIUMDAwMDEwMDAwMDA1MDY1OTc1OTEwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1698 characters truncated) ... YyyiWRjsJOJ4rwlIg4vZYqdPWo17WX6deruooj30V3Va9yTnjOKSgCBvK9iWCUanQUpHQdZjBMXTonpGVEXM3VVE15Rh1URKvBfD1zQOOdWJhT4OjEuuRQd06Pe9UzgWfRsEHwwArrVPpVjIlHTo=', 'form_of_payment': '', 'payment_terms': None, 'subtotal': '24973.75', 'discount': '8053.20', 'currency': 'MXN', 'exchange_rate': '1', 'total': '16920.55', 'type_of_fiscal_document': 'N', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '14060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'UNI951013RC1', 'name_of_the_issuer': 'UNINET', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'CN01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84111505", "no_identificacion": "", "cantidad": "1", "clave_unidad": "ACT", "unidad": "", "descripcion": "Pago de ... (35 characters truncated) ... 75", "importe": "24973.75", "descuento": "8053.20", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-22T15:38:09', 'certif_provider_rfc': 'TME840315KT6', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/4cbae294-fac7-4e71-a59c-edef6d7a2da0.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:43,654 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(5851A769-058A-4F53-AB9B-FF7130B0818C, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '5851A769-058A-4F53-AB9B-FF7130B0818C', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '012180015746226533', 'dates': '2025-01-09T09:58:02', 'stamp': 'Q2giEiTWYd+l/a1aHNxNLJMtXZcJJ8vHiF0b0qht8O73atpInOLow4sWd7xybiuwIjsRbXIpws1QwsdhW3SmcrIMjXbF7Qeux1z3o/ueglbwYwhnyMZPlMW3vcKRtEh9FaHdGujsRlcxqo3oFuojA ... (46 characters truncated) ... EmwNBNTMClPNF4wM0Q1VbqllV8gpRVGx1OQX7uJefL7kxHaoB9a8wFa7ht4Rl8JUuyDZEQ0Vhd9etpnNJrVAUNdHRt7LSA2AyPIRRrMcBsDG1BttPTI3dHXRdg9BVc9JMD0ejjETd7F/ThXOGGw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "SERVICIO", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-09T17:31:47', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/5851a769-058a-4f53-ab9b-ff7130b0818c.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:43,877 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(DF9D88D7-A26D-4C02-A877-F385A12F4499, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'DF9D88D7-A26D-4C02-A877-F385A12F4499', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': '', 'number_leaf': '007400737348564685', 'dates': '2025-01-24T04:29:53', 'stamp': 'TsK50wat0ZN74tstYiDQbFV5jnpWZSa99pUq65RvgsbaowLzgajRv94DvKzG4kXAqrTien4qlzmnpthnZBBzv7YnyG0YuEKl6CsXt8EaGlvS57llJ2AvG6JEHbG1elTlP3iLJVXaHSYrGmLSTv71M ... (46 characters truncated) ... MR+DzH8rRJbXDyb+qcBDhlLNDhwdPRH+UKekYStEzHBwRxpg6g49cYIrlrWFQB22uSaTB8vf9sWfX0fHqnTgFvQzwzY3LDJP5IN7124quR2tFSB9tXy4xeDc8Xp8cVP0Smz5WSCT0HJszvKXFYw==', 'certificate_number': '00001000000509478830', 'certificate': 'MIIGeTCCBGGgAwIBAgIUMDAwMDEwMDAwMDA1MDk0Nzg4MzAwDQYJKoZIhvcNAQELBQAwggGEMSAwHgYDVQQDDBdBVVRPUklEQUQgQ0VSVElGSUNBRE9SQTEuMCwGA1UECgwlU0VSVklDSU8gREUgQ ... (1918 characters truncated) ... TULB273pvpIiH2/OaJ+EBAhJsQMwmyNnvtDKfBrHHZXs/bGihT39yXCARNOqZrzVzZZwAq4p6Gk+ss0a/9AeRZ4zGRR3rsRjRxoGVptuPEcKxcKfLX7Sdk+yq647yu5U2Pa32pIAxqJzAhkMTlbA=', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '06600', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'BBA830831LJ2', 'name_of_the_issuer': 'BBVA MEXICO, S.A., INSTITUCION DE BANCA MULTIPLE, GRUPO FINANCIERO BBVA MEXICO', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "", "cantidad": "1.00", "clave_unidad": "E48", "unidad": "Servicio", "descripcion ... (45 characters truncated) ... o": "0.01", "importe": "0.01", "descuento": "0.01", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-24T06:00:15', 'certif_provider_rfc': 'DET080304395', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/df9d88d7-a26d-4c02-a877-f385a12f4499.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:44,097 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(71426F59-063F-4AFF-88E3-D21BDF84F1C4, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': '71426F59-063F-4AFF-88E3-D21BDF84F1C4', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190212', 'dates': '2025-01-03T17:26:58', 'stamp': 'IJ1YYTtcrGk8Q/macfwKmpEChBPvZgvcZlL0btRXkYmQbhfU4ROT/wxyAmIW3AoD8/SD9Q3MTn1Dfcv5SPDLJhEnMwrdt4VcJ9qyDmiRqJ+/iV5kw6418wOTcA5xMrlkWWkFxh6xgCSg5VC3Vo38F ... (46 characters truncated) ... vHZX/ohx1nyi6cwQNS/hSAEpml8qz8MASlP/idCeNr6jmMUsPax/sthg+ZiYy2MEOwrJX3BXGX9chkaaNjPjvNwlwBRKSjkJI/OUEKU/9tQCeALUoawirnqkcsxzQ1Q7iU9uBL4jeFIM+RmHHMg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:32', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/71426f59-063f-4aff-88e3-d21bdf84f1c4.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:44,333 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(A3E5D3D7-1FCF-4F57-8916-3A4427B3D793, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'A3E5D3D7-1FCF-4F57-8916-3A4427B3D793', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'CB', 'number_leaf': '5190112', 'dates': '2025-01-03T17:26:58', 'stamp': 'eB1NQXQBF5nMInJi/MqqyNXituuejRvk+d9WZR8DddnHy2FWDW7l2P7FoHJMvoSZgoUMBSzj/nB8oXU96wnNp+AJgqP7XjNnFOVkPJUtqAAUJbchopg2i+DoXuL9iJFnlIl/YxCKWgvzHwPS5nAp0 ... (46 characters truncated) ... cdDTt4qkh67Dal/JZ9G4ULf2uI/fNvtCOfFX/UDUyKZS4SiUStjbVeFaAh6Zn9BhRgwqTmbs+ruzZRZ2jr+bCmrXc5qxNCpJKPhUYcKmYLlS9bq1adPs/D6ocDD54GAhveelVVw0FqsY1bomSkg==', 'certificate_number': '00001000000710267196', 'certificate': 'MIIGfTCCBGWgAwIBAgIUMDAwMDEwMDAwMDA3MTAyNjcxOTYwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1922 characters truncated) ... EjTvgCeoPNyCqS8AxRNEWsSbrCxEQ5Lxooj9KE00KK1GUaKyplFgE2D3BSbeXLmPs8csSZqVK9937QaVg9OTLbstvkoJTrsmT4/8dy/5xcT2Yon24/tBjBalFWcwNJo/VUmuKxjcdwAcr9LXEBAMK', 'form_of_payment': '03', 'payment_terms': None, 'subtotal': '0.01', 'discount': '0.01', 'currency': 'MXN', 'exchange_rate': '1', 'total': '0.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '03900', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'GGB080116EZ0', 'name_of_the_issuer': 'GRUPO BURSATIL MEXICANO, S.A. DE C.V. CASA DE BOLSA', 'tax_regime_of_the_issuer': '601', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'S01', 'concepts': '{"conceptos": [{"clave_prod_serv": "84121500", "no_identificacion": "84121500", "cantidad": "1", "clave_unidad": "E48", "unidad": "E48", "descripcion ... (148 characters truncated) ... ase": "0.01", "impuesto": "002", "tipo_factor": "Tasa", "tasa_cuota": "0.160000", "importe": "0.00"}], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0.00', 'stamp_date': '2025-01-04T01:18:25', 'certif_provider_rfc': 'SST060807KU0', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/a3e5d3d7-1fcf-4f57-8916-3a4427b3d793.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-11 20:00:44,555 - api_logger - ERROR - Error creating record: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "cfdi_documents_recibidos_ead11a8d04_uuid_rfc_hash_usr_ownr_key4"
DETAIL:  Key (uuid, rfc_hash_usr_ownr)=(b815ce6a-ff29-44e8-acfd-9076b697bb57, ead11a8d04a58779_virg900207rr3) already exists.

[SQL: INSERT INTO cfdi_system.cfdi_documents_recibidos (rfc_hash_usr_ownr, uuid, company_id, tenant_id, version, series, number_leaf, dates, stamp, certificate_number, certificate, form_of_payment, payment_terms, subtotal, discount, currency, exchange_rate, total, type_of_fiscal_document, export, payment_method, place_of_issuance, confirmation, periodicity, months, years, type_of_relationship, rfc_of_the_issuer, name_of_the_issuer, tax_regime_of_the_issuer, rfc_of_the_receiver, name_of_the_receiver, tax_address_of_the_receiver, fiscal_residence_of_the_receiver, tax_identification_number_of_the_receiver, tax_regime_of_the_receiver, use_of_cfdi, concepts, total_retained_taxes, total_transferred_taxes, stamp_date, certif_provider_rfc, status, xml_path, last_check_status) VALUES (%(rfc_hash_usr_ownr)s, %(uuid)s, %(company_id)s, %(tenant_id)s::UUID, %(version)s, %(series)s, %(number_leaf)s, %(dates)s, %(stamp)s, %(certificate_number)s, %(certificate)s, %(form_of_payment)s, %(payment_terms)s, %(subtotal)s, %(discount)s, %(currency)s, %(exchange_rate)s, %(total)s, %(type_of_fiscal_document)s, %(export)s, %(payment_method)s, %(place_of_issuance)s, %(confirmation)s, %(periodicity)s, %(months)s, %(years)s, %(type_of_relationship)s, %(rfc_of_the_issuer)s, %(name_of_the_issuer)s, %(tax_regime_of_the_issuer)s, %(rfc_of_the_receiver)s, %(name_of_the_receiver)s, %(tax_address_of_the_receiver)s, %(fiscal_residence_of_the_receiver)s, %(tax_identification_number_of_the_receiver)s, %(tax_regime_of_the_receiver)s, %(use_of_cfdi)s, %(concepts)s, %(total_retained_taxes)s, %(total_transferred_taxes)s, %(stamp_date)s, %(certif_provider_rfc)s, %(status)s, %(xml_path)s, %(last_check_status)s) RETURNING cfdi_system.cfdi_documents_recibidos.cfdi_id, cfdi_system.cfdi_documents_recibidos.created_at]
[parameters: {'rfc_hash_usr_ownr': 'ead11a8d04a58779_virg900207rr3', 'uuid': 'b815ce6a-ff29-44e8-acfd-9076b697bb57', 'company_id': 2, 'tenant_id': None, 'version': '4.0', 'series': 'A', 'number_leaf': '897', 'dates': '2025-01-11T18:25:29', 'stamp': 'U75knfUsAo97T0dxgvD0sVMQE25jTW+VIV2eNM96PdK6JZiFK8L3l9x5CRxImTco0wmeNKqKrT/g76TN9WKhEFjvtS53+JfbJPcKN30AZrt6JK3hAfQLsFP5lxAUXkeEqnW90bkUA5VoD6s3i6B6r ... (46 characters truncated) ... HDX6Nfeh327exYZYtsQGwnbH/Z3YHMm0e1YrPeeQqN6jq3mnRnnq3QmcE5XoE53AnuLEVR7rMVNCWKV5W9Vp39VxSIv0WYsCa5t0wRACc7luPO6yLwGTi26fDK9PTn6+IXNOkxKPQx0tvpLxLlA==', 'certificate_number': '00001000000704635782', 'certificate': 'MIIGAzCCA+ugAwIBAgIUMDAwMDEwMDAwMDA3MDQ2MzU3ODIwDQYJKoZIhvcNAQELBQAwggGVMTUwMwYDVQQDDCxBQyBERUwgU0VSVklDSU8gREUgQURNSU5JU1RSQUNJT04gVFJJQlVUQVJJQTEuM ... (1762 characters truncated) ... zizVqCX1UVhaKwBXkcU5dFptyMdQqJY4uG4EmESZool0c0lmWjMuxcr5tgLrk6mUkdD0qlh/7OejjDmxUvJTDGvgq/xRPhh1RH+1Kxt04GKDLTQnER1+pbikltb0S7qEc6cZfCL+wlx1HlQDssw==', 'form_of_payment': '04', 'payment_terms': None, 'subtotal': '800.00', 'discount': '0', 'currency': 'MXN', 'exchange_rate': '1', 'total': '800.00', 'type_of_fiscal_document': 'I', 'export': '01', 'payment_method': 'PUE', 'place_of_issuance': '09060', 'confirmation': None, 'periodicity': None, 'months': None, 'years': None, 'type_of_relationship': None, 'rfc_of_the_issuer': 'AUAG7506176E0', 'name_of_the_issuer': 'GERARDO ISRAEL ABUNDEZ ARREOLA', 'tax_regime_of_the_issuer': '626', 'rfc_of_the_receiver': 'VIRG900207RR3', 'name_of_the_receiver': 'GUSTAVO VICTORIA RAMIREZ', 'tax_address_of_the_receiver': '09640', 'fiscal_residence_of_the_receiver': None, 'tax_identification_number_of_the_receiver': None, 'tax_regime_of_the_receiver': '605', 'use_of_cfdi': 'D01', 'concepts': '{"conceptos": [{"clave_prod_serv": "85122000", "no_identificacion": "GEN001", "cantidad": "1", "clave_unidad": "E48", "unidad": "PZA", "descripcion": ... (43 characters truncated) ... o": "800.00", "importe": "800.00", "descuento": "", "objeto_imp": "01", "impuestos": {"traslados": [], "retenciones": []}}], "cfdi_relacionados": []}', 'total_retained_taxes': '0', 'total_transferred_taxes': '0', 'stamp_date': '2025-01-11T18:25:29', 'certif_provider_rfc': 'LSO1306189R5', 'status': None, 'xml_path': '/home/gothic/Documentos/geniubs/sat/app/api/tmp/sat_facturas/b815ce6a-ff29-44e8-acfd-9076b697bb57.xml', 'last_check_status': None}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2026-05-12 01:21:25,342 - api_logger - INFO - Router cargado: /catalogs
2026-05-12 01:21:25,345 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-12 01:21:25,346 - api_logger - INFO - Router cargado: /export
2026-05-12 01:21:25,346 - api_logger - INFO - Router cargado: /licenses
2026-05-12 01:21:25,346 - api_logger - INFO - Router cargado: /menu_options
2026-05-12 01:21:25,353 - api_logger - INFO - Router cargado: /movements_banks
2026-05-12 01:21:25,354 - api_logger - INFO - Router cargado: /payment
2026-05-12 01:21:25,354 - api_logger - INFO - Router cargado: /plans
2026-05-12 01:21:25,355 - api_logger - INFO - Router cargado: 
2026-05-12 01:21:25,356 - api_logger - INFO - Router cargado: /webservices
2026-05-12 01:21:25,358 - api_logger - INFO - Router cargado: /auth
2026-05-12 01:21:25,359 - api_logger - INFO - Router cargado: /users
2026-05-12 01:21:25,361 - api_logger - INFO - Router cargado: /bankaccount
2026-05-12 01:21:25,365 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-12 01:21:25,366 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-12 01:21:25,400 - api_logger - ERROR - Error creating record: DB error
2026-05-12 01:21:25,402 - api_logger - ERROR - Error creating record: fail
2026-05-12 01:21:25,406 - api_logger - ERROR - Error getting all records: DB error
2026-05-12 01:21:25,504 - api_logger - ERROR - Error getting record by ID: DB error
2026-05-12 01:21:25,510 - api_logger - ERROR - Error updating record: DB error
2026-05-12 01:21:25,513 - api_logger - ERROR - Error deleting record: DB error
2026-05-12 01:21:25,519 - api_logger - ERROR - Error searching record: DB error
2026-05-12 01:21:25,521 - api_logger - ERROR - Error searching record: '>=' not supported between instances of 'MagicMock' and 'int'
2026-05-12 01:21:25,532 - api_logger - ERROR - DB error
2026-05-12 01:24:19,029 - api_logger - INFO - Router cargado: /catalogs
2026-05-12 01:24:19,031 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-12 01:24:19,032 - api_logger - INFO - Router cargado: /export
2026-05-12 01:24:19,033 - api_logger - INFO - Router cargado: /licenses
2026-05-12 01:24:19,033 - api_logger - INFO - Router cargado: /menu_options
2026-05-12 01:24:19,040 - api_logger - INFO - Router cargado: /movements_banks
2026-05-12 01:24:19,041 - api_logger - INFO - Router cargado: /payment
2026-05-12 01:24:19,041 - api_logger - INFO - Router cargado: /plans
2026-05-12 01:24:19,042 - api_logger - INFO - Router cargado: 
2026-05-12 01:24:19,043 - api_logger - INFO - Router cargado: /webservices
2026-05-12 01:24:19,044 - api_logger - INFO - Router cargado: /auth
2026-05-12 01:24:19,046 - api_logger - INFO - Router cargado: /users
2026-05-12 01:24:19,049 - api_logger - INFO - Router cargado: /bankaccount
2026-05-12 01:24:19,052 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-12 01:24:19,053 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-12 01:24:19,084 - api_logger - ERROR - Error creating record: DB error
2026-05-12 01:24:19,086 - api_logger - ERROR - Error creating record: fail
2026-05-12 01:24:19,090 - api_logger - ERROR - Error getting all records: DB error
2026-05-12 01:24:19,093 - api_logger - ERROR - Error getting record by ID: DB error
2026-05-12 01:24:19,098 - api_logger - ERROR - Error updating record: DB error
2026-05-12 01:24:19,101 - api_logger - ERROR - Error deleting record: DB error
2026-05-12 01:24:19,107 - api_logger - ERROR - Error searching record: DB error
2026-05-12 01:24:19,121 - api_logger - ERROR - DB error
2026-05-12 01:24:31,195 - api_logger - INFO - Router cargado: /catalogs
2026-05-12 01:24:31,198 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-12 01:24:31,199 - api_logger - INFO - Router cargado: /export
2026-05-12 01:24:31,199 - api_logger - INFO - Router cargado: /licenses
2026-05-12 01:24:31,199 - api_logger - INFO - Router cargado: /menu_options
2026-05-12 01:24:31,206 - api_logger - INFO - Router cargado: /movements_banks
2026-05-12 01:24:31,207 - api_logger - INFO - Router cargado: /payment
2026-05-12 01:24:31,207 - api_logger - INFO - Router cargado: /plans
2026-05-12 01:24:31,208 - api_logger - INFO - Router cargado: 
2026-05-12 01:24:31,210 - api_logger - INFO - Router cargado: /webservices
2026-05-12 01:24:31,211 - api_logger - INFO - Router cargado: /auth
2026-05-12 01:24:31,213 - api_logger - INFO - Router cargado: /users
2026-05-12 01:24:31,215 - api_logger - INFO - Router cargado: /bankaccount
2026-05-12 01:24:31,218 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-12 01:24:31,219 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-12 01:24:31,297 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?current_page=0: current_page debe ser un valor positivo.
2026-05-12 01:24:31,299 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?page_size=0: page_size debe estar entre 1 y 100.
2026-05-12 01:24:31,300 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?page_size=101: page_size debe estar entre 1 y 100.
2026-05-12 01:24:31,302 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/999: Registro no encontrado
2026-05-12 01:24:31,310 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/update/999: Registro no encontrado
2026-05-12 01:24:31,313 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/delete/999: Registro no encontrado
2026-05-12 01:24:31,317 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/999: Registro no encontrado
2026-05-12 01:24:31,320 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/create: El campo 'description' es requerido.
2026-05-12 01:24:31,378 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/getbyid/999: Registro no encontrado
2026-05-12 01:24:31,382 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/update/999: Registro no encontrado
2026-05-12 01:24:31,385 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/delete/999: Registro no encontrado
2026-05-12 01:24:31,431 - api_logger - ERROR - Error inesperado en http://testserver/v1/export/export-file-csv?filename=test&schema=public&table=users: IO Error
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/export_file.py", line 22, in export_file
    file_path = exporter.main()
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: IO Error
2026-05-12 01:24:31,440 - api_logger - ERROR - Error inesperado en http://testserver/v1/export/export-file-xlsx?filename=test&schema=public&table=users: Write Error
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/export_file.py", line 40, in export_xlsx
    file_path = exporter.main()
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: Write Error
2026-05-12 01:24:31,451 - api_logger - ERROR - Error inesperado en http://testserver/v1/webservices/authenticate: Vault unreachable
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/webservices.py", line 80, in authenticate
    datas = clienthvac.secrets.kv.v2.read_secret_version(path=path_vault)['data']['data']
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: Vault unreachable
2026-05-12 01:24:31,458 - api_logger - DEBUG - [DomainError] http://testserver/v1/webservices/downloadrequest: El token debe tener más de 255 caracteres
2026-05-12 01:24:31,467 - api_logger - ERROR - Error inesperado en http://testserver/v1/webservices/verifydownloadrequest: Vault error
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/webservices.py", line 150, in verifydownloadrequest
    datas = clienthvac.secrets.kv.v2.read_secret_version(path=path_vault)['data']['data']
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: Vault error
2026-05-12 01:24:31,474 - api_logger - DEBUG - [DomainError] http://testserver/v1/webservices/downloadpackage: No se pudo descargar el paquete PKG-UUID-0001
2026-05-12 01:27:34,324 - api_logger - INFO - Router cargado: /catalogs
2026-05-12 01:27:34,327 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-12 01:27:34,328 - api_logger - INFO - Router cargado: /export
2026-05-12 01:27:34,328 - api_logger - INFO - Router cargado: /licenses
2026-05-12 01:27:34,328 - api_logger - INFO - Router cargado: /menu_options
2026-05-12 01:27:34,335 - api_logger - INFO - Router cargado: /movements_banks
2026-05-12 01:27:34,336 - api_logger - INFO - Router cargado: /payment
2026-05-12 01:27:34,336 - api_logger - INFO - Router cargado: /plans
2026-05-12 01:27:34,337 - api_logger - INFO - Router cargado: 
2026-05-12 01:27:34,338 - api_logger - INFO - Router cargado: /webservices
2026-05-12 01:27:34,340 - api_logger - INFO - Router cargado: /auth
2026-05-12 01:27:34,341 - api_logger - INFO - Router cargado: /users
2026-05-12 01:27:34,343 - api_logger - INFO - Router cargado: /bankaccount
2026-05-12 01:27:34,346 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-12 01:27:34,347 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-12 01:27:34,384 - api_logger - ERROR - verify_email unexpected: Unexpected
2026-05-12 01:27:34,396 - api_logger - ERROR - verify_recovery unexpected: Unexpected
2026-05-12 01:29:51,548 - api_logger - INFO - Router cargado: /catalogs
2026-05-12 01:29:51,551 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-12 01:29:51,552 - api_logger - INFO - Router cargado: /export
2026-05-12 01:29:51,552 - api_logger - INFO - Router cargado: /licenses
2026-05-12 01:29:51,552 - api_logger - INFO - Router cargado: /menu_options
2026-05-12 01:29:51,560 - api_logger - INFO - Router cargado: /movements_banks
2026-05-12 01:29:51,560 - api_logger - INFO - Router cargado: /payment
2026-05-12 01:29:51,560 - api_logger - INFO - Router cargado: /plans
2026-05-12 01:29:51,561 - api_logger - INFO - Router cargado: 
2026-05-12 01:29:51,563 - api_logger - INFO - Router cargado: /webservices
2026-05-12 01:29:51,564 - api_logger - INFO - Router cargado: /auth
2026-05-12 01:29:51,566 - api_logger - INFO - Router cargado: /users
2026-05-12 01:29:51,567 - api_logger - INFO - Router cargado: /bankaccount
2026-05-12 01:29:51,571 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-12 01:29:51,572 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-12 01:29:51,721 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/login: Usuario no encontrado.
2026-05-12 01:29:51,722 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 4.
2026-05-12 01:29:51,724 - api_logger - DEBUG - [LockedError] http://testserver/v1/auth/login: Cuenta bloqueada.
2026-05-12 01:29:51,725 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/auth/login: Tu cuenta aún no ha sido verificada.
2026-05-12 01:29:51,727 - api_logger - DEBUG - [UnavailableForLegalReasonsError] http://testserver/v1/auth/login: Tu cuenta ha sido suspendida.
2026-05-12 01:29:51,730 - api_logger - DEBUG - [ConflictError] http://testserver/v1/auth/register: El correo electrónico nuevo@example.com ya está registrado.
2026-05-12 01:29:51,733 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/recovery/passwd: Cuenta no registrada.
2026-05-12 01:29:51,736 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/reset/passwd: El token para permitir el cambio de contraseña ha expirado.
2026-05-12 01:29:51,738 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/resend-verification?tkn=bad-token: Token no válido
2026-05-12 01:29:51,740 - api_logger - DEBUG - [TooManyRequestsError] http://testserver/v1/auth/resend-verification?tkn=any-token: Has superado el límite de intentos.
2026-05-12 01:29:51,746 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getall: Sin cuentas registradas.
2026-05-12 01:29:51,749 - api_logger - DEBUG - [ConflictError] http://testserver/v1/bankaccount/create: La cuenta ya existe.
2026-05-12 01:29:51,752 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getbyid/999: Cuenta no encontrada.
2026-05-12 01:29:51,755 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/update/999: Cuenta no encontrada.
2026-05-12 01:29:51,758 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/delete/999: Cuenta no encontrada.
2026-05-12 01:29:51,763 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?current_page=0: current_page debe ser un valor positivo.
2026-05-12 01:29:51,764 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?page_size=0: page_size debe estar entre 1 y 100.
2026-05-12 01:29:51,765 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?page_size=101: page_size debe estar entre 1 y 100.
2026-05-12 01:29:51,768 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/999: Registro no encontrado
2026-05-12 01:29:51,775 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/update/999: Registro no encontrado
2026-05-12 01:29:51,778 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/delete/999: Registro no encontrado
2026-05-12 01:29:51,783 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/999: Registro no encontrado
2026-05-12 01:29:51,786 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/create: El campo 'description' es requerido.
2026-05-12 01:29:51,795 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/getbyid/999: Registro no encontrado
2026-05-12 01:29:51,799 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/update/999: Registro no encontrado
2026-05-12 01:29:51,802 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/delete/999: Registro no encontrado
2026-05-12 01:29:51,805 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?current_page=0: current_page debe ser un valor positivo.
2026-05-12 01:29:51,806 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?page_size=200: page_size debe estar entre 1 y 100.
2026-05-12 01:29:51,838 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 encontrados=0 insertados=5 omitidos(dup)=0
2026-05-12 01:29:51,839 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=fiel paquetes=1 encontrados=0 insertados=5 omitidos(dup)=0
2026-05-12 01:29:51,840 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 encontrados=0 insertados=3 omitidos(dup)=0
2026-05-12 01:29:51,841 - api_logger - WARNING - [Orchestrator] RFC XAXX010101000 sin credenciales: Sin credenciales
2026-05-12 01:29:51,843 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=2 encontrados=0 insertados=10 omitidos(dup)=0
2026-05-12 01:29:51,844 - api_logger - ERROR - [Orchestrator] Error en RFC=XAXX010101000: Error SAT
2026-05-12 01:29:51,849 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 esperando turno (semáforo)...
2026-05-12 01:29:51,849 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 iniciando sesión SAT
2026-05-12 01:29:51,849 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 sesión terminada — esperando 120s antes de la siguiente
2026-05-12 01:29:51,849 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=ciec paquetes=0 encontrados=0 insertados=0 omitidos(dup)=0
2026-05-12 01:29:51,945 - api_logger - ERROR - [CredentialsProvider] Error desencriptando FIEL desde DB: 
2026-05-12 01:29:51,947 - api_logger - ERROR - [CredentialsProvider] Error desencriptando CIEC desde DB: 
2026-05-12 01:29:51,952 - api_logger - ERROR - Error creating record: DB error
2026-05-12 01:29:51,954 - api_logger - ERROR - Error creating record: fail
2026-05-12 01:29:51,958 - api_logger - ERROR - Error getting all records: DB error
2026-05-12 01:29:51,961 - api_logger - ERROR - Error getting record by ID: DB error
2026-05-12 01:29:51,967 - api_logger - ERROR - Error updating record: DB error
2026-05-12 01:29:51,970 - api_logger - ERROR - Error deleting record: DB error
2026-05-12 01:29:51,976 - api_logger - ERROR - Error searching record: DB error
2026-05-12 01:29:51,989 - api_logger - ERROR - DB error
2026-05-12 01:29:51,996 - api_logger - ERROR - Error inesperado en http://testserver/v1/export/export-file-csv?filename=test&schema=public&table=users: IO Error
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/export_file.py", line 22, in export_file
    file_path = exporter.main()
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: IO Error
2026-05-12 01:29:52,005 - api_logger - ERROR - Error inesperado en http://testserver/v1/export/export-file-xlsx?filename=test&schema=public&table=users: Write Error
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/export_file.py", line 40, in export_xlsx
    file_path = exporter.main()
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: Write Error
2026-05-12 01:29:52,010 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/create: El RFC ya está registrado.
2026-05-12 01:29:52,011 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/fiscalcustomer/create: No autorizado.
2026-05-12 01:29:52,016 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/update/999: RFC no encontrado.
2026-05-12 01:29:52,020 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/list/byid/999: RFC no encontrado.
2026-05-12 01:29:52,025 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/setselected/999: RFC no encontrado.
2026-05-12 01:29:52,028 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/getselected: Sin RFC seleccionado.
2026-05-12 01:29:52,032 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/savecerts: error al guardar certificados FIEL.
2026-05-12 01:29:52,038 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/saveciec: error al guardar contraseña CIEC.
2026-05-12 01:29:54,188 - api_logger - ERROR - [GetCFDIWebServices] Error crítico en execute: fallo crítico
2026-05-12 01:29:54,196 - api_logger - WARNING - [emitidos] Solicitud rechazada por el SAT: {'cod_estatus': '5002', 'id_solicitud': 'SOL-001'}
2026-05-12 01:29:54,197 - api_logger - INFO - [GetCFDIWebServices] Sin paquetes disponibles para emitidos
2026-05-12 01:29:54,198 - api_logger - ERROR - [GetCFDIWebServices] Error en _run_descarga [emitidos]: timeout
2026-05-12 01:29:54,199 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=1
2026-05-12 01:29:54,200 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=1
2026-05-12 01:29:54,201 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=2
2026-05-12 01:29:54,201 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=3
2026-05-12 01:29:54,202 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=4 intento=1
2026-05-12 01:29:54,203 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=5 intento=1
2026-05-12 01:29:54,203 - api_logger - INFO - [GetCFDIWebServices] Solicitud SOL-001 rechazada por SAT (estado=5): sin comprobantes disponibles en el período.
2026-05-12 01:29:54,211 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/licenses/info: Licencia no encontrada.
2026-05-12 01:29:54,212 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/licenses/info: Licencia suspendida.
2026-05-12 01:29:54,216 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/menu_options/get: Rol no encontrado.
2026-05-12 01:29:54,221 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/getall: Sin movimientos.
2026-05-12 01:29:54,224 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/get_selected_rfc: Sin RFC seleccionado.
2026-05-12 01:29:54,228 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/delete/999: Movimiento no encontrado.
2026-05-12 01:29:54,232 - api_logger - DEBUG - [DomainError] http://testserver/v1/movements_banks/upload/bbva: Formato de archivo inválido.
2026-05-12 01:29:54,236 - api_logger - DEBUG - [ConflictError] http://testserver/v1/payment/stripe/checkout: Suscripción activa.
2026-05-12 01:29:54,241 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/getsubscription: Sin suscripción activa.
2026-05-12 01:29:54,244 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/cancelsubscription/sub_INVALID: Suscripción no encontrada.
2026-05-12 01:29:54,249 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-11 → 2026-05-11 retry_only=False
2026-05-12 01:29:54,249 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-12 01:29:54,250 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140389817612816'>
2026-05-12 01:29:54,250 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-05-12 01:29:54,250 - api_logger - INFO - [run_daily_download] Licencia 2 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140389817612816'>
2026-05-12 01:29:54,250 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-05-12 01:29:54,250 - api_logger - INFO - [run_daily_download] Licencia 3 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140389817612816'>
2026-05-12 01:29:54,251 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-11 → 2026-05-11 retry_only=False
2026-05-12 01:29:54,251 - api_logger - INFO - [run_daily_download] Licencia 5 — jobs creados: [10, 11]
2026-05-12 01:29:54,251 - api_logger - INFO - [run_daily_download] Licencia 5 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140389817601392'>
2026-05-12 01:29:54,252 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-11 → 2026-05-11 retry_only=False
2026-05-12 01:29:54,252 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-12 01:29:54,252 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140389520099040'>
2026-05-12 01:29:54,253 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-11 → 2026-05-11 retry_only=False
2026-05-12 01:29:54,253 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-12 01:29:54,253 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140389520099376'>
2026-05-12 01:29:54,254 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-11 → 2026-05-11 retry_only=False
2026-05-12 01:29:54,254 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-12 01:29:54,254 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140389817612816'>
2026-05-12 01:29:54,255 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-05 → 2026-05-11 retry_only=False
2026-05-12 01:29:54,255 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-12 01:29:54,256 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140389520115760'>
2026-05-12 01:29:54,257 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-11 → 2026-05-11 retry_only=True
2026-05-12 01:29:54,257 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs reintentados: [10]
2026-05-12 01:29:54,257 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs reintentados: [10]
2026-05-12 01:29:54,257 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs reintentados: [10]
2026-05-12 01:29:54,258 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-11 → 2026-05-11 retry_only=False
2026-05-12 01:29:54,258 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-12 01:29:54,258 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140389817609456'>
2026-05-12 01:29:54,258 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-05-12 01:29:54,259 - api_logger - INFO - [run_daily_download] Licencia 2 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140389817609456'>
2026-05-12 01:29:54,259 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-05-12 01:29:54,259 - api_logger - INFO - [run_daily_download] Licencia 3 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140389817609456'>
2026-05-12 01:29:54,259 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-11 → 2026-05-11 retry_only=False
2026-05-12 01:29:54,260 - api_logger - ERROR - [run_daily_download] Error en licencia 1: SAT no disponible
2026-05-12 01:29:54,260 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10]
2026-05-12 01:29:54,260 - api_logger - INFO - [run_daily_download] Licencia 2 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140389370571680'>
2026-05-12 01:29:54,260 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [11]
2026-05-12 01:29:54,260 - api_logger - INFO - [run_daily_download] Licencia 3 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140389370571680'>
2026-05-12 01:29:54,261 - api_logger - INFO - [run_daily_download] Iniciando — licencias=0 rango=2026-05-11 → 2026-05-11 retry_only=False
2026-05-12 01:29:54,270 - api_logger - WARNING - invoice.payment_succeeded sin customer_email, ignorando
2026-05-12 01:29:54,271 - api_logger - WARNING - invoice.payment_failed sin customer_email, ignorando
2026-05-12 01:29:54,272 - api_logger - WARNING - invoice.upcoming sin customer_email, ignorando
2026-05-12 01:29:54,276 - api_logger - WARNING - invoice.payment_action_required sin customer_email, ignorando
2026-05-12 01:29:54,277 - api_logger - WARNING - No se pudo obtener last4 para action_required: error
2026-05-12 01:29:54,285 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: test@example.com
2026-05-12 01:29:54,286 - api_logger - INFO - Pago fallido registrado | user: test@example.com | decline_code: card_declined | last4: 4242
2026-05-12 01:29:54,287 - api_logger - WARNING - Charge fallido: card_declined - None - email: None
2026-05-12 01:29:54,287 - api_logger - ERROR - charge.failed sin customer_email, no se puede registrar
2026-05-12 01:29:54,288 - api_logger - ERROR - PaymentIntent fallido | customer: cus_stripe123 | decline_code: card_declined | message: Your card was declined.
2026-05-12 01:29:54,292 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile: Usuario no encontrado.
2026-05-12 01:29:54,296 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile/update: Usuario no encontrado.
2026-05-12 01:29:54,299 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/users/subusers: No tienes permisos.
2026-05-12 01:29:54,303 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/detail?id=999: Subusuario no encontrado.
2026-05-12 01:29:54,308 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/delete?id_subuser=999: Subusuario no encontrado.
2026-05-12 01:29:54,312 - api_logger - DEBUG - [ConflictError] http://testserver/v1/users/subuser/create: El correo ya está registrado.
2026-05-12 01:29:54,319 - api_logger - ERROR - verify_email unexpected: Unexpected
2026-05-12 01:29:54,333 - api_logger - ERROR - verify_recovery unexpected: Unexpected
2026-05-12 01:29:54,342 - api_logger - ERROR - Error inesperado en http://testserver/v1/webservices/authenticate: Vault unreachable
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/webservices.py", line 80, in authenticate
    datas = clienthvac.secrets.kv.v2.read_secret_version(path=path_vault)['data']['data']
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: Vault unreachable
2026-05-12 01:29:54,352 - api_logger - DEBUG - [DomainError] http://testserver/v1/webservices/downloadrequest: El token debe tener más de 255 caracteres
2026-05-12 01:29:54,361 - api_logger - ERROR - Error inesperado en http://testserver/v1/webservices/verifydownloadrequest: Vault error
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/webservices.py", line 150, in verifydownloadrequest
    datas = clienthvac.secrets.kv.v2.read_secret_version(path=path_vault)['data']['data']
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: Vault error
2026-05-12 01:29:54,369 - api_logger - DEBUG - [DomainError] http://testserver/v1/webservices/downloadpackage: No se pudo descargar el paquete PKG-UUID-0001
2026-05-12 01:31:29,037 - api_logger - INFO - Router cargado: /catalogs
2026-05-12 01:31:29,040 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-12 01:31:29,041 - api_logger - INFO - Router cargado: /export
2026-05-12 01:31:29,041 - api_logger - INFO - Router cargado: /licenses
2026-05-12 01:31:29,041 - api_logger - INFO - Router cargado: /menu_options
2026-05-12 01:31:29,048 - api_logger - INFO - Router cargado: /movements_banks
2026-05-12 01:31:29,049 - api_logger - INFO - Router cargado: /payment
2026-05-12 01:31:29,049 - api_logger - INFO - Router cargado: /plans
2026-05-12 01:31:29,050 - api_logger - INFO - Router cargado: 
2026-05-12 01:31:29,051 - api_logger - INFO - Router cargado: /webservices
2026-05-12 01:31:29,053 - api_logger - INFO - Router cargado: /users
2026-05-12 01:31:29,055 - api_logger - INFO - Router cargado: /bankaccount
2026-05-12 01:31:29,058 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-12 01:31:29,059 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-12 01:31:29,060 - api_logger - INFO - Router cargado: /auth
2026-05-12 01:31:31,203 - api_logger - ERROR - [GetCFDIWebServices] Error crítico en execute: fallo crítico
2026-05-12 01:31:31,205 - api_logger - WARNING - [emitidos] Solicitud rechazada por el SAT: {'cod_estatus': '5002', 'id_solicitud': 'SOL-001'}
2026-05-12 01:31:31,206 - api_logger - INFO - [GetCFDIWebServices] Sin paquetes disponibles para emitidos
2026-05-12 01:31:31,208 - api_logger - ERROR - [GetCFDIWebServices] Error en _run_descarga [emitidos]: timeout
2026-05-12 01:31:31,209 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=1
2026-05-12 01:31:31,210 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=1
2026-05-12 01:31:31,210 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=2
2026-05-12 01:31:31,210 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=3
2026-05-12 01:31:31,211 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=4 intento=1
2026-05-12 01:31:31,213 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=5 intento=1
2026-05-12 01:31:31,213 - api_logger - INFO - [GetCFDIWebServices] Solicitud SOL-001 rechazada por SAT (estado=5): sin comprobantes disponibles en el período.
2026-05-12 01:33:50,631 - api_logger - INFO - Router cargado: /catalogs
2026-05-12 01:33:50,633 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-12 01:33:50,634 - api_logger - INFO - Router cargado: /export
2026-05-12 01:33:50,635 - api_logger - INFO - Router cargado: /licenses
2026-05-12 01:33:50,635 - api_logger - INFO - Router cargado: /menu_options
2026-05-12 01:33:50,642 - api_logger - INFO - Router cargado: /movements_banks
2026-05-12 01:33:50,643 - api_logger - INFO - Router cargado: /payment
2026-05-12 01:33:50,643 - api_logger - INFO - Router cargado: /plans
2026-05-12 01:33:50,644 - api_logger - INFO - Router cargado: 
2026-05-12 01:33:50,645 - api_logger - INFO - Router cargado: /webservices
2026-05-12 01:33:50,647 - api_logger - INFO - Router cargado: /users
2026-05-12 01:33:50,649 - api_logger - INFO - Router cargado: /bankaccount
2026-05-12 01:33:50,652 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-12 01:33:50,653 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-12 01:33:50,654 - api_logger - INFO - Router cargado: /auth
2026-05-12 01:33:50,725 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/login: Usuario no encontrado.
2026-05-12 01:33:50,726 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 4.
2026-05-12 01:33:50,728 - api_logger - DEBUG - [LockedError] http://testserver/v1/auth/login: Cuenta bloqueada.
2026-05-12 01:33:50,729 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/auth/login: Tu cuenta aún no ha sido verificada.
2026-05-12 01:33:50,731 - api_logger - DEBUG - [UnavailableForLegalReasonsError] http://testserver/v1/auth/login: Tu cuenta ha sido suspendida.
2026-05-12 01:33:50,733 - api_logger - DEBUG - [ConflictError] http://testserver/v1/auth/register: El correo electrónico nuevo@example.com ya está registrado.
2026-05-12 01:33:50,736 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/recovery/passwd: Cuenta no registrada.
2026-05-12 01:33:50,739 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/reset/passwd: El token para permitir el cambio de contraseña ha expirado.
2026-05-12 01:33:50,742 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/resend-verification?tkn=bad-token: Token no válido
2026-05-12 01:33:50,743 - api_logger - DEBUG - [TooManyRequestsError] http://testserver/v1/auth/resend-verification?tkn=any-token: Has superado el límite de intentos.
2026-05-12 01:33:50,750 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getall: Sin cuentas registradas.
2026-05-12 01:33:50,753 - api_logger - DEBUG - [ConflictError] http://testserver/v1/bankaccount/create: La cuenta ya existe.
2026-05-12 01:33:50,756 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getbyid/999: Cuenta no encontrada.
2026-05-12 01:33:50,759 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/update/999: Cuenta no encontrada.
2026-05-12 01:33:50,762 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/delete/999: Cuenta no encontrada.
2026-05-12 01:33:50,766 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?current_page=0: current_page debe ser un valor positivo.
2026-05-12 01:33:50,767 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?page_size=0: page_size debe estar entre 1 y 100.
2026-05-12 01:33:50,769 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?page_size=101: page_size debe estar entre 1 y 100.
2026-05-12 01:33:50,771 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/999: Registro no encontrado
2026-05-12 01:33:50,779 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/update/999: Registro no encontrado
2026-05-12 01:33:50,782 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/delete/999: Registro no encontrado
2026-05-12 01:33:50,787 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/999: Registro no encontrado
2026-05-12 01:33:50,790 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/create: El campo 'description' es requerido.
2026-05-12 01:33:50,799 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/getbyid/999: Registro no encontrado
2026-05-12 01:33:50,804 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/update/999: Registro no encontrado
2026-05-12 01:33:50,806 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/delete/999: Registro no encontrado
2026-05-12 01:33:50,809 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?current_page=0: current_page debe ser un valor positivo.
2026-05-12 01:33:50,811 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?page_size=200: page_size debe estar entre 1 y 100.
2026-05-12 01:33:50,841 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 encontrados=0 insertados=5 omitidos(dup)=0
2026-05-12 01:33:50,841 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=fiel paquetes=1 encontrados=0 insertados=5 omitidos(dup)=0
2026-05-12 01:33:50,843 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 encontrados=0 insertados=3 omitidos(dup)=0
2026-05-12 01:33:50,844 - api_logger - WARNING - [Orchestrator] RFC XAXX010101000 sin credenciales: Sin credenciales
2026-05-12 01:33:50,845 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=2 encontrados=0 insertados=10 omitidos(dup)=0
2026-05-12 01:33:50,847 - api_logger - ERROR - [Orchestrator] Error en RFC=XAXX010101000: Error SAT
2026-05-12 01:33:50,852 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 esperando turno (semáforo)...
2026-05-12 01:33:50,852 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 iniciando sesión SAT
2026-05-12 01:33:50,852 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 sesión terminada — esperando 120s antes de la siguiente
2026-05-12 01:33:50,852 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=ciec paquetes=0 encontrados=0 insertados=0 omitidos(dup)=0
2026-05-12 01:33:50,871 - api_logger - ERROR - [CredentialsProvider] Error desencriptando FIEL desde DB: 
2026-05-12 01:33:50,873 - api_logger - ERROR - [CredentialsProvider] Error desencriptando CIEC desde DB: 
2026-05-12 01:33:50,877 - api_logger - ERROR - Error creating record: DB error
2026-05-12 01:33:50,879 - api_logger - ERROR - Error creating record: fail
2026-05-12 01:33:50,883 - api_logger - ERROR - Error getting all records: DB error
2026-05-12 01:33:50,886 - api_logger - ERROR - Error getting record by ID: DB error
2026-05-12 01:33:50,891 - api_logger - ERROR - Error updating record: DB error
2026-05-12 01:33:50,895 - api_logger - ERROR - Error deleting record: DB error
2026-05-12 01:33:50,900 - api_logger - ERROR - Error searching record: DB error
2026-05-12 01:33:50,993 - api_logger - ERROR - DB error
2026-05-12 01:33:51,001 - api_logger - ERROR - Error inesperado en http://testserver/v1/export/export-file-csv?filename=test&schema=public&table=users: IO Error
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/export_file.py", line 22, in export_file
    file_path = exporter.main()
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: IO Error
2026-05-12 01:33:51,010 - api_logger - ERROR - Error inesperado en http://testserver/v1/export/export-file-xlsx?filename=test&schema=public&table=users: Write Error
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/export_file.py", line 40, in export_xlsx
    file_path = exporter.main()
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: Write Error
2026-05-12 01:33:51,015 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/create: El RFC ya está registrado.
2026-05-12 01:33:51,016 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/fiscalcustomer/create: No autorizado.
2026-05-12 01:33:51,021 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/update/999: RFC no encontrado.
2026-05-12 01:33:51,026 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/list/byid/999: RFC no encontrado.
2026-05-12 01:33:51,031 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/setselected/999: RFC no encontrado.
2026-05-12 01:33:51,034 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/getselected: Sin RFC seleccionado.
2026-05-12 01:33:51,038 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/savecerts: error al guardar certificados FIEL.
2026-05-12 01:33:51,044 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/saveciec: error al guardar contraseña CIEC.
2026-05-12 01:33:53,188 - api_logger - ERROR - [GetCFDIWebServices] Error crítico en execute: fallo crítico
2026-05-12 01:33:53,191 - api_logger - WARNING - [emitidos] Solicitud rechazada por el SAT: {'cod_estatus': '5002', 'id_solicitud': 'SOL-001'}
2026-05-12 01:33:53,193 - api_logger - INFO - [GetCFDIWebServices] Sin paquetes disponibles para emitidos
2026-05-12 01:33:53,194 - api_logger - ERROR - [GetCFDIWebServices] Error en _run_descarga [emitidos]: timeout
2026-05-12 01:33:53,195 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=1
2026-05-12 01:33:53,196 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=1
2026-05-12 01:33:53,197 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=2
2026-05-12 01:33:53,197 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=3
2026-05-12 01:33:53,198 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=4 intento=1
2026-05-12 01:33:53,199 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=5 intento=1
2026-05-12 01:33:53,199 - api_logger - INFO - [GetCFDIWebServices] Solicitud SOL-001 rechazada por SAT (estado=5): sin comprobantes disponibles en el período.
2026-05-12 01:33:53,206 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/licenses/info: Licencia no encontrada.
2026-05-12 01:33:53,208 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/licenses/info: Licencia suspendida.
2026-05-12 01:33:53,212 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/menu_options/get: Rol no encontrado.
2026-05-12 01:33:53,217 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/getall: Sin movimientos.
2026-05-12 01:33:53,220 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/get_selected_rfc: Sin RFC seleccionado.
2026-05-12 01:33:53,223 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/delete/999: Movimiento no encontrado.
2026-05-12 01:33:53,227 - api_logger - DEBUG - [DomainError] http://testserver/v1/movements_banks/upload/bbva: Formato de archivo inválido.
2026-05-12 01:33:53,231 - api_logger - DEBUG - [ConflictError] http://testserver/v1/payment/stripe/checkout: Suscripción activa.
2026-05-12 01:33:53,235 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/getsubscription: Sin suscripción activa.
2026-05-12 01:33:53,239 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/cancelsubscription/sub_INVALID: Suscripción no encontrada.
2026-05-12 01:33:53,243 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-11 → 2026-05-11 retry_only=False
2026-05-12 01:33:53,243 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-12 01:33:53,243 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139702329479856'>
2026-05-12 01:33:53,243 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-05-12 01:33:53,243 - api_logger - INFO - [run_daily_download] Licencia 2 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139702329479856'>
2026-05-12 01:33:53,243 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-05-12 01:33:53,243 - api_logger - INFO - [run_daily_download] Licencia 3 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139702329479856'>
2026-05-12 01:33:53,244 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-11 → 2026-05-11 retry_only=False
2026-05-12 01:33:53,244 - api_logger - INFO - [run_daily_download] Licencia 5 — jobs creados: [10, 11]
2026-05-12 01:33:53,244 - api_logger - INFO - [run_daily_download] Licencia 5 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139702491161872'>
2026-05-12 01:33:53,245 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-11 → 2026-05-11 retry_only=False
2026-05-12 01:33:53,245 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-12 01:33:53,245 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139702329479856'>
2026-05-12 01:33:53,246 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-11 → 2026-05-11 retry_only=False
2026-05-12 01:33:53,246 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-12 01:33:53,247 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139702491158848'>
2026-05-12 01:33:53,247 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-11 → 2026-05-11 retry_only=False
2026-05-12 01:33:53,247 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-12 01:33:53,248 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139702329479520'>
2026-05-12 01:33:53,248 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-05 → 2026-05-11 retry_only=False
2026-05-12 01:33:53,248 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-12 01:33:53,249 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139702639730304'>
2026-05-12 01:33:53,249 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-11 → 2026-05-11 retry_only=True
2026-05-12 01:33:53,250 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs reintentados: [10]
2026-05-12 01:33:53,250 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs reintentados: [10]
2026-05-12 01:33:53,250 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs reintentados: [10]
2026-05-12 01:33:53,250 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-11 → 2026-05-11 retry_only=False
2026-05-12 01:33:53,250 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-12 01:33:53,251 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139702639734336'>
2026-05-12 01:33:53,251 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-05-12 01:33:53,251 - api_logger - INFO - [run_daily_download] Licencia 2 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139702639734336'>
2026-05-12 01:33:53,251 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-05-12 01:33:53,251 - api_logger - INFO - [run_daily_download] Licencia 3 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139702639734336'>
2026-05-12 01:33:53,252 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-11 → 2026-05-11 retry_only=False
2026-05-12 01:33:53,253 - api_logger - ERROR - [run_daily_download] Error en licencia 1: SAT no disponible
2026-05-12 01:33:53,253 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10]
2026-05-12 01:33:53,253 - api_logger - INFO - [run_daily_download] Licencia 2 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139702329479520'>
2026-05-12 01:33:53,253 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [11]
2026-05-12 01:33:53,253 - api_logger - INFO - [run_daily_download] Licencia 3 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139702329479520'>
2026-05-12 01:33:53,254 - api_logger - INFO - [run_daily_download] Iniciando — licencias=0 rango=2026-05-11 → 2026-05-11 retry_only=False
2026-05-12 01:33:53,262 - api_logger - WARNING - invoice.payment_succeeded sin customer_email, ignorando
2026-05-12 01:33:53,263 - api_logger - WARNING - invoice.payment_failed sin customer_email, ignorando
2026-05-12 01:33:53,264 - api_logger - WARNING - invoice.upcoming sin customer_email, ignorando
2026-05-12 01:33:53,268 - api_logger - WARNING - invoice.payment_action_required sin customer_email, ignorando
2026-05-12 01:33:53,269 - api_logger - WARNING - No se pudo obtener last4 para action_required: error
2026-05-12 01:33:53,277 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: test@example.com
2026-05-12 01:33:53,278 - api_logger - INFO - Pago fallido registrado | user: test@example.com | decline_code: card_declined | last4: 4242
2026-05-12 01:33:53,279 - api_logger - WARNING - Charge fallido: card_declined - None - email: None
2026-05-12 01:33:53,279 - api_logger - ERROR - charge.failed sin customer_email, no se puede registrar
2026-05-12 01:33:53,280 - api_logger - ERROR - PaymentIntent fallido | customer: cus_stripe123 | decline_code: card_declined | message: Your card was declined.
2026-05-12 01:33:53,284 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile: Usuario no encontrado.
2026-05-12 01:33:53,287 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile/update: Usuario no encontrado.
2026-05-12 01:33:53,290 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/users/subusers: No tienes permisos.
2026-05-12 01:33:53,294 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/detail?id=999: Subusuario no encontrado.
2026-05-12 01:33:53,299 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/delete?id_subuser=999: Subusuario no encontrado.
2026-05-12 01:33:53,304 - api_logger - DEBUG - [ConflictError] http://testserver/v1/users/subuser/create: El correo ya está registrado.
2026-05-12 01:33:53,311 - api_logger - ERROR - verify_email unexpected: Unexpected
2026-05-12 01:33:53,324 - api_logger - ERROR - verify_recovery unexpected: Unexpected
2026-05-12 01:33:53,334 - api_logger - ERROR - Error inesperado en http://testserver/v1/webservices/authenticate: Vault unreachable
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/webservices.py", line 80, in authenticate
    datas = clienthvac.secrets.kv.v2.read_secret_version(path=path_vault)['data']['data']
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: Vault unreachable
2026-05-12 01:33:53,343 - api_logger - DEBUG - [DomainError] http://testserver/v1/webservices/downloadrequest: El token debe tener más de 255 caracteres
2026-05-12 01:33:53,352 - api_logger - ERROR - Error inesperado en http://testserver/v1/webservices/verifydownloadrequest: Vault error
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/webservices.py", line 150, in verifydownloadrequest
    datas = clienthvac.secrets.kv.v2.read_secret_version(path=path_vault)['data']['data']
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: Vault error
2026-05-12 01:33:53,360 - api_logger - DEBUG - [DomainError] http://testserver/v1/webservices/downloadpackage: No se pudo descargar el paquete PKG-UUID-0001
2026-05-13 08:03:56,952 - api_logger - INFO - Router cargado: /catalogs
2026-05-13 08:03:56,955 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-13 08:03:56,955 - api_logger - INFO - Router cargado: /export
2026-05-13 08:03:56,956 - api_logger - INFO - Router cargado: /licenses
2026-05-13 08:03:56,956 - api_logger - INFO - Router cargado: /menu_options
2026-05-13 08:03:56,964 - api_logger - INFO - Router cargado: /movements_banks
2026-05-13 08:03:56,965 - api_logger - INFO - Router cargado: /payment
2026-05-13 08:03:56,965 - api_logger - INFO - Router cargado: /plans
2026-05-13 08:03:56,966 - api_logger - INFO - Router cargado: 
2026-05-13 08:03:56,967 - api_logger - INFO - Router cargado: /webservices
2026-05-13 08:03:56,969 - api_logger - INFO - Router cargado: /users
2026-05-13 08:03:56,971 - api_logger - INFO - Router cargado: /bankaccount
2026-05-13 08:03:56,975 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-13 08:03:56,975 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-13 08:03:56,977 - api_logger - INFO - Router cargado: /auth
2026-05-13 08:07:13,748 - api_logger - INFO - Router cargado: /catalogs
2026-05-13 08:07:13,751 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-13 08:07:13,752 - api_logger - INFO - Router cargado: /export
2026-05-13 08:07:13,752 - api_logger - INFO - Router cargado: /licenses
2026-05-13 08:07:13,752 - api_logger - INFO - Router cargado: /menu_options
2026-05-13 08:07:13,760 - api_logger - INFO - Router cargado: /movements_banks
2026-05-13 08:07:13,760 - api_logger - INFO - Router cargado: /payment
2026-05-13 08:07:13,760 - api_logger - INFO - Router cargado: /plans
2026-05-13 08:07:13,761 - api_logger - INFO - Router cargado: 
2026-05-13 08:07:13,763 - api_logger - INFO - Router cargado: /webservices
2026-05-13 08:07:13,765 - api_logger - INFO - Router cargado: /users
2026-05-13 08:07:13,767 - api_logger - INFO - Router cargado: /bankaccount
2026-05-13 08:07:13,770 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-13 08:07:13,771 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-13 08:07:13,772 - api_logger - INFO - Router cargado: /auth
2026-05-13 08:07:13,804 - api_logger - ERROR - Error creating record: 'NoneType' object has no attribute 'supports_population'
2026-05-13 08:07:19,959 - api_logger - INFO - Router cargado: /catalogs
2026-05-13 08:07:19,962 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-13 08:07:19,963 - api_logger - INFO - Router cargado: /export
2026-05-13 08:07:19,963 - api_logger - INFO - Router cargado: /licenses
2026-05-13 08:07:19,963 - api_logger - INFO - Router cargado: /menu_options
2026-05-13 08:07:19,970 - api_logger - INFO - Router cargado: /movements_banks
2026-05-13 08:07:19,971 - api_logger - INFO - Router cargado: /payment
2026-05-13 08:07:19,971 - api_logger - INFO - Router cargado: /plans
2026-05-13 08:07:19,972 - api_logger - INFO - Router cargado: 
2026-05-13 08:07:19,974 - api_logger - INFO - Router cargado: /webservices
2026-05-13 08:07:19,975 - api_logger - INFO - Router cargado: /users
2026-05-13 08:07:19,977 - api_logger - INFO - Router cargado: /bankaccount
2026-05-13 08:07:19,980 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-13 08:07:19,981 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-13 08:07:19,982 - api_logger - INFO - Router cargado: /auth
2026-05-13 08:07:20,091 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/login: Usuario no encontrado.
2026-05-13 08:07:20,093 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 4.
2026-05-13 08:07:20,094 - api_logger - DEBUG - [LockedError] http://testserver/v1/auth/login: Cuenta bloqueada.
2026-05-13 08:07:20,096 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/auth/login: Tu cuenta aún no ha sido verificada.
2026-05-13 08:07:20,097 - api_logger - DEBUG - [UnavailableForLegalReasonsError] http://testserver/v1/auth/login: Tu cuenta ha sido suspendida.
2026-05-13 08:07:20,100 - api_logger - DEBUG - [ConflictError] http://testserver/v1/auth/register: El correo electrónico nuevo@example.com ya está registrado.
2026-05-13 08:07:20,103 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/recovery/passwd: Cuenta no registrada.
2026-05-13 08:07:20,106 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/reset/passwd: El token para permitir el cambio de contraseña ha expirado.
2026-05-13 08:07:20,109 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/resend-verification?tkn=bad-token: Token no válido
2026-05-13 08:07:20,110 - api_logger - DEBUG - [TooManyRequestsError] http://testserver/v1/auth/resend-verification?tkn=any-token: Has superado el límite de intentos.
2026-05-13 08:07:20,117 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getall: Sin cuentas registradas.
2026-05-13 08:07:20,120 - api_logger - DEBUG - [ConflictError] http://testserver/v1/bankaccount/create: La cuenta ya existe.
2026-05-13 08:07:20,123 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getbyid/999: Cuenta no encontrada.
2026-05-13 08:07:20,126 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/update/999: Cuenta no encontrada.
2026-05-13 08:07:20,129 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/delete/999: Cuenta no encontrada.
2026-05-13 08:07:20,134 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?current_page=0: current_page debe ser un valor positivo.
2026-05-13 08:07:20,135 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?page_size=0: page_size debe estar entre 1 y 100.
2026-05-13 08:07:20,136 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?page_size=101: page_size debe estar entre 1 y 100.
2026-05-13 08:07:20,139 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/999: Registro no encontrado
2026-05-13 08:07:20,147 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/update/999: Registro no encontrado
2026-05-13 08:07:20,150 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/delete/999: Registro no encontrado
2026-05-13 08:07:20,154 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/999: Registro no encontrado
2026-05-13 08:07:20,158 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/create: El campo 'description' es requerido.
2026-05-13 08:07:20,167 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/getbyid/999: Registro no encontrado
2026-05-13 08:07:20,171 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/update/999: Registro no encontrado
2026-05-13 08:07:20,174 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/delete/999: Registro no encontrado
2026-05-13 08:07:20,176 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?current_page=0: current_page debe ser un valor positivo.
2026-05-13 08:07:20,178 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?page_size=200: page_size debe estar entre 1 y 100.
2026-05-13 08:07:20,211 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 encontrados=0 insertados=5 omitidos(dup)=0
2026-05-13 08:07:20,211 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=fiel paquetes=1 encontrados=0 insertados=5 omitidos(dup)=0
2026-05-13 08:07:20,212 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 encontrados=0 insertados=3 omitidos(dup)=0
2026-05-13 08:07:20,213 - api_logger - WARNING - [Orchestrator] RFC XAXX010101000 sin credenciales: Sin credenciales
2026-05-13 08:07:20,215 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=2 encontrados=0 insertados=10 omitidos(dup)=0
2026-05-13 08:07:20,216 - api_logger - ERROR - [Orchestrator] Error en RFC=XAXX010101000: Error SAT
2026-05-13 08:07:20,221 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 esperando turno (semáforo)...
2026-05-13 08:07:20,221 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 iniciando sesión SAT
2026-05-13 08:07:20,221 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 sesión terminada — esperando 120s antes de la siguiente
2026-05-13 08:07:20,221 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=ciec paquetes=0 encontrados=0 insertados=0 omitidos(dup)=0
2026-05-13 08:07:20,242 - api_logger - ERROR - [CredentialsProvider] Error desencriptando FIEL desde DB: 
2026-05-13 08:07:20,244 - api_logger - ERROR - [CredentialsProvider] Error desencriptando CIEC desde DB: 
2026-05-13 08:07:20,248 - api_logger - ERROR - Error creating record: DB error
2026-05-13 08:07:20,250 - api_logger - ERROR - Error creating record: fail
2026-05-13 08:07:20,254 - api_logger - ERROR - Error getting all records: DB error
2026-05-13 08:07:20,258 - api_logger - ERROR - Error getting record by ID: DB error
2026-05-13 08:07:20,263 - api_logger - ERROR - Error updating record: DB error
2026-05-13 08:07:20,267 - api_logger - ERROR - Error deleting record: DB error
2026-05-13 08:07:20,273 - api_logger - ERROR - Error searching record: DB error
2026-05-13 08:07:20,372 - api_logger - ERROR - DB error
2026-05-13 08:07:20,379 - api_logger - ERROR - Error inesperado en http://testserver/v1/export/export-file-csv?filename=test&schema=public&table=users: IO Error
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/export_file.py", line 22, in export_file
    file_path = exporter.main()
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: IO Error
2026-05-13 08:07:20,390 - api_logger - ERROR - Error inesperado en http://testserver/v1/export/export-file-xlsx?filename=test&schema=public&table=users: Write Error
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/export_file.py", line 40, in export_xlsx
    file_path = exporter.main()
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: Write Error
2026-05-13 08:07:20,395 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/create: El RFC ya está registrado.
2026-05-13 08:07:20,396 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/fiscalcustomer/create: No autorizado.
2026-05-13 08:07:20,401 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/update/999: RFC no encontrado.
2026-05-13 08:07:20,407 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/list/byid/999: RFC no encontrado.
2026-05-13 08:07:20,411 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/setselected/999: RFC no encontrado.
2026-05-13 08:07:20,415 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/getselected: Sin RFC seleccionado.
2026-05-13 08:07:20,419 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/savecerts: error al guardar certificados FIEL.
2026-05-13 08:07:20,425 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/saveciec: error al guardar contraseña CIEC.
2026-05-13 08:07:22,484 - api_logger - ERROR - [GetCFDIWebServices] Error crítico en execute: fallo crítico
2026-05-13 08:07:22,486 - api_logger - WARNING - [emitidos] Solicitud rechazada por el SAT: {'cod_estatus': '5002', 'id_solicitud': 'SOL-001'}
2026-05-13 08:07:22,488 - api_logger - INFO - [GetCFDIWebServices] Sin paquetes disponibles para emitidos
2026-05-13 08:07:22,489 - api_logger - ERROR - [GetCFDIWebServices] Error en _run_descarga [emitidos]: timeout
2026-05-13 08:07:22,490 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=1
2026-05-13 08:07:22,491 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=1
2026-05-13 08:07:22,491 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=2
2026-05-13 08:07:22,491 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=3
2026-05-13 08:07:22,493 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=4 intento=1
2026-05-13 08:07:22,494 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=5 intento=1
2026-05-13 08:07:22,494 - api_logger - INFO - [GetCFDIWebServices] Solicitud SOL-001 rechazada por SAT (estado=5): sin comprobantes disponibles en el período.
2026-05-13 08:07:22,500 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/licenses/info: Licencia no encontrada.
2026-05-13 08:07:22,502 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/licenses/info: Licencia suspendida.
2026-05-13 08:07:22,505 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/menu_options/get: Rol no encontrado.
2026-05-13 08:07:22,511 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/getall: Sin movimientos.
2026-05-13 08:07:22,514 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/get_selected_rfc: Sin RFC seleccionado.
2026-05-13 08:07:22,518 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/delete/999: Movimiento no encontrado.
2026-05-13 08:07:22,522 - api_logger - DEBUG - [DomainError] http://testserver/v1/movements_banks/upload/bbva: Formato de archivo inválido.
2026-05-13 08:07:22,526 - api_logger - DEBUG - [ConflictError] http://testserver/v1/payment/stripe/checkout: Suscripción activa.
2026-05-13 08:07:22,531 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/getsubscription: Sin suscripción activa.
2026-05-13 08:07:22,535 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/cancelsubscription/sub_INVALID: Suscripción no encontrada.
2026-05-13 08:07:22,539 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 08:07:22,540 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 08:07:22,541 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140235324562400'>
2026-05-13 08:07:22,541 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-05-13 08:07:22,541 - api_logger - INFO - [run_daily_download] Licencia 2 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140235324562400'>
2026-05-13 08:07:22,541 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-05-13 08:07:22,541 - api_logger - INFO - [run_daily_download] Licencia 3 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140235324562400'>
2026-05-13 08:07:22,542 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 08:07:22,542 - api_logger - INFO - [run_daily_download] Licencia 5 — jobs creados: [10, 11]
2026-05-13 08:07:22,542 - api_logger - INFO - [run_daily_download] Licencia 5 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140235324920496'>
2026-05-13 08:07:22,543 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 08:07:22,543 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 08:07:22,543 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140235324916464'>
2026-05-13 08:07:22,544 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 08:07:22,544 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 08:07:22,545 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140235324917136'>
2026-05-13 08:07:22,545 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 08:07:22,546 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 08:07:22,546 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140235324917472'>
2026-05-13 08:07:22,547 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-06 → 2026-05-12 retry_only=False
2026-05-13 08:07:22,547 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 08:07:22,547 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140235324922512'>
2026-05-13 08:07:22,548 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-12 → 2026-05-12 retry_only=True
2026-05-13 08:07:22,548 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs reintentados: [10]
2026-05-13 08:07:22,548 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs reintentados: [10]
2026-05-13 08:07:22,548 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs reintentados: [10]
2026-05-13 08:07:22,549 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 08:07:22,549 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 08:07:22,549 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140235324918144'>
2026-05-13 08:07:22,549 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-05-13 08:07:22,549 - api_logger - INFO - [run_daily_download] Licencia 2 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140235324918144'>
2026-05-13 08:07:22,549 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-05-13 08:07:22,549 - api_logger - INFO - [run_daily_download] Licencia 3 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140235324918144'>
2026-05-13 08:07:22,550 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 08:07:22,550 - api_logger - ERROR - [run_daily_download] Error en licencia 1: SAT no disponible
2026-05-13 08:07:22,550 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10]
2026-05-13 08:07:22,550 - api_logger - INFO - [run_daily_download] Licencia 2 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140235324917472'>
2026-05-13 08:07:22,550 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [11]
2026-05-13 08:07:22,550 - api_logger - INFO - [run_daily_download] Licencia 3 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140235324917472'>
2026-05-13 08:07:22,551 - api_logger - INFO - [run_daily_download] Iniciando — licencias=0 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 08:07:22,560 - api_logger - ERROR - Error creating record: 'NoneType' object has no attribute 'supports_population'
2026-05-13 08:07:22,581 - api_logger - WARNING - invoice.payment_succeeded sin customer_email, ignorando
2026-05-13 08:07:22,582 - api_logger - WARNING - invoice.payment_failed sin customer_email, ignorando
2026-05-13 08:07:22,583 - api_logger - WARNING - invoice.upcoming sin customer_email, ignorando
2026-05-13 08:07:22,587 - api_logger - WARNING - invoice.payment_action_required sin customer_email, ignorando
2026-05-13 08:07:22,590 - api_logger - WARNING - No se pudo obtener last4 para action_required: error
2026-05-13 08:07:22,597 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: test@example.com
2026-05-13 08:07:22,597 - api_logger - INFO - Pago fallido registrado | user: test@example.com | decline_code: card_declined | last4: 4242
2026-05-13 08:07:22,598 - api_logger - WARNING - Charge fallido: card_declined - None - email: None
2026-05-13 08:07:22,598 - api_logger - ERROR - charge.failed sin customer_email, no se puede registrar
2026-05-13 08:07:22,599 - api_logger - ERROR - PaymentIntent fallido | customer: cus_stripe123 | decline_code: card_declined | message: Your card was declined.
2026-05-13 08:07:22,604 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile: Usuario no encontrado.
2026-05-13 08:07:22,608 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile/update: Usuario no encontrado.
2026-05-13 08:07:22,612 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/users/subusers: No tienes permisos.
2026-05-13 08:07:22,615 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/detail?id=999: Subusuario no encontrado.
2026-05-13 08:07:22,621 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/delete?id_subuser=999: Subusuario no encontrado.
2026-05-13 08:07:22,625 - api_logger - DEBUG - [ConflictError] http://testserver/v1/users/subuser/create: El correo ya está registrado.
2026-05-13 08:07:22,633 - api_logger - ERROR - verify_email unexpected: Unexpected
2026-05-13 08:07:22,646 - api_logger - ERROR - verify_recovery unexpected: Unexpected
2026-05-13 08:07:22,657 - api_logger - ERROR - Error inesperado en http://testserver/v1/webservices/authenticate: Vault unreachable
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/webservices.py", line 80, in authenticate
    datas = clienthvac.secrets.kv.v2.read_secret_version(path=path_vault)['data']['data']
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: Vault unreachable
2026-05-13 08:07:22,667 - api_logger - DEBUG - [DomainError] http://testserver/v1/webservices/downloadrequest: El token debe tener más de 255 caracteres
2026-05-13 08:07:22,676 - api_logger - ERROR - Error inesperado en http://testserver/v1/webservices/verifydownloadrequest: Vault error
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/webservices.py", line 150, in verifydownloadrequest
    datas = clienthvac.secrets.kv.v2.read_secret_version(path=path_vault)['data']['data']
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: Vault error
2026-05-13 08:07:22,684 - api_logger - DEBUG - [DomainError] http://testserver/v1/webservices/downloadpackage: No se pudo descargar el paquete PKG-UUID-0001
2026-05-13 09:07:37,019 - api_logger - INFO - Router cargado: /catalogs
2026-05-13 09:07:37,022 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-13 09:07:37,023 - api_logger - INFO - Router cargado: /export
2026-05-13 09:07:37,023 - api_logger - INFO - Router cargado: /licenses
2026-05-13 09:07:37,024 - api_logger - INFO - Router cargado: /menu_options
2026-05-13 09:07:37,031 - api_logger - INFO - Router cargado: /movements_banks
2026-05-13 09:07:37,032 - api_logger - INFO - Router cargado: /payment
2026-05-13 09:07:37,032 - api_logger - INFO - Router cargado: /plans
2026-05-13 09:07:37,033 - api_logger - INFO - Router cargado: 
2026-05-13 09:07:37,034 - api_logger - INFO - Router cargado: /webservices
2026-05-13 09:07:37,035 - api_logger - INFO - Router cargado: /users
2026-05-13 09:07:37,037 - api_logger - INFO - Router cargado: /bankaccount
2026-05-13 09:07:37,041 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-13 09:07:37,042 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-13 09:07:37,043 - api_logger - INFO - Router cargado: /auth
2026-05-13 09:07:37,122 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?current_page=0: current_page debe ser un valor positivo.
2026-05-13 09:07:37,123 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?page_size=0: page_size debe estar entre 1 y 100.
2026-05-13 09:07:37,125 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?page_size=101: page_size debe estar entre 1 y 100.
2026-05-13 09:07:37,128 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/999: Registro no encontrado.
2026-05-13 09:07:37,135 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/update/999: Registro no encontrado.
2026-05-13 09:07:37,138 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/delete/999: Registro no encontrado.
2026-05-13 09:07:37,142 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/999: Registro no encontrado.
2026-05-13 09:07:37,145 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/create: El campo 'description' es requerido.
2026-05-13 09:07:37,149 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/delete/999: Registro no encontrado.
2026-05-13 09:07:37,154 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/getbyid/999: Registro no encontrado.
2026-05-13 09:07:37,156 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/create: El campo 'payment_method' es requerido.
2026-05-13 09:07:37,159 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/update/999: Registro no encontrado.
2026-05-13 09:07:37,161 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/update/1: El campo 'payment_method' es requerido.
2026-05-13 09:07:37,164 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/delete/999: Registro no encontrado.
2026-05-13 09:08:50,302 - api_logger - INFO - Router cargado: /catalogs
2026-05-13 09:08:50,305 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-13 09:08:50,306 - api_logger - INFO - Router cargado: /export
2026-05-13 09:08:50,306 - api_logger - INFO - Router cargado: /licenses
2026-05-13 09:08:50,306 - api_logger - INFO - Router cargado: /menu_options
2026-05-13 09:08:50,314 - api_logger - INFO - Router cargado: /movements_banks
2026-05-13 09:08:50,314 - api_logger - INFO - Router cargado: /payment
2026-05-13 09:08:50,315 - api_logger - INFO - Router cargado: /plans
2026-05-13 09:08:50,315 - api_logger - INFO - Router cargado: 
2026-05-13 09:08:50,317 - api_logger - INFO - Router cargado: /webservices
2026-05-13 09:08:50,318 - api_logger - INFO - Router cargado: /users
2026-05-13 09:08:50,320 - api_logger - INFO - Router cargado: /bankaccount
2026-05-13 09:08:50,324 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-13 09:08:50,325 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-13 09:08:50,326 - api_logger - INFO - Router cargado: /auth
2026-05-13 09:08:50,436 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/login: Usuario no encontrado.
2026-05-13 09:08:50,438 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 4.
2026-05-13 09:08:50,439 - api_logger - DEBUG - [LockedError] http://testserver/v1/auth/login: Cuenta bloqueada.
2026-05-13 09:08:50,440 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/auth/login: Tu cuenta aún no ha sido verificada.
2026-05-13 09:08:50,442 - api_logger - DEBUG - [UnavailableForLegalReasonsError] http://testserver/v1/auth/login: Tu cuenta ha sido suspendida.
2026-05-13 09:08:50,445 - api_logger - DEBUG - [ConflictError] http://testserver/v1/auth/register: El correo electrónico nuevo@example.com ya está registrado.
2026-05-13 09:08:50,448 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/recovery/passwd: Cuenta no registrada.
2026-05-13 09:08:50,451 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/reset/passwd: El token para permitir el cambio de contraseña ha expirado.
2026-05-13 09:08:50,453 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/resend-verification?tkn=bad-token: Token no válido
2026-05-13 09:08:50,455 - api_logger - DEBUG - [TooManyRequestsError] http://testserver/v1/auth/resend-verification?tkn=any-token: Has superado el límite de intentos.
2026-05-13 09:08:50,461 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getall: Sin cuentas registradas.
2026-05-13 09:08:50,464 - api_logger - DEBUG - [ConflictError] http://testserver/v1/bankaccount/create: La cuenta ya existe.
2026-05-13 09:08:50,468 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getbyid/999: Cuenta no encontrada.
2026-05-13 09:08:50,471 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/update/999: Cuenta no encontrada.
2026-05-13 09:08:50,474 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/delete/999: Cuenta no encontrada.
2026-05-13 09:08:50,479 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?current_page=0: current_page debe ser un valor positivo.
2026-05-13 09:08:50,480 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?page_size=0: page_size debe estar entre 1 y 100.
2026-05-13 09:08:50,482 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?page_size=101: page_size debe estar entre 1 y 100.
2026-05-13 09:08:50,485 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/999: Registro no encontrado.
2026-05-13 09:08:50,492 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/update/999: Registro no encontrado.
2026-05-13 09:08:50,495 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/delete/999: Registro no encontrado.
2026-05-13 09:08:50,499 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/999: Registro no encontrado.
2026-05-13 09:08:50,502 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/create: El campo 'description' es requerido.
2026-05-13 09:08:50,507 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/delete/999: Registro no encontrado.
2026-05-13 09:08:50,511 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/getbyid/999: Registro no encontrado.
2026-05-13 09:08:50,515 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/create: El campo 'payment_method' es requerido.
2026-05-13 09:08:50,518 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/update/999: Registro no encontrado.
2026-05-13 09:08:50,520 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/update/1: El campo 'payment_method' es requerido.
2026-05-13 09:08:50,523 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/delete/999: Registro no encontrado.
2026-05-13 09:08:50,525 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?current_page=0: current_page debe ser un valor positivo.
2026-05-13 09:08:50,527 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?page_size=200: page_size debe estar entre 1 y 100.
2026-05-13 09:08:50,560 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 encontrados=0 insertados=5 omitidos(dup)=0
2026-05-13 09:08:50,560 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=fiel paquetes=1 encontrados=0 insertados=5 omitidos(dup)=0
2026-05-13 09:08:50,561 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 encontrados=0 insertados=3 omitidos(dup)=0
2026-05-13 09:08:50,562 - api_logger - WARNING - [Orchestrator] RFC XAXX010101000 sin credenciales: Sin credenciales
2026-05-13 09:08:50,563 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=2 encontrados=0 insertados=10 omitidos(dup)=0
2026-05-13 09:08:50,565 - api_logger - ERROR - [Orchestrator] Error en RFC=XAXX010101000: Error SAT
2026-05-13 09:08:50,570 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 esperando turno (semáforo)...
2026-05-13 09:08:50,570 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 iniciando sesión SAT
2026-05-13 09:08:50,570 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 sesión terminada — esperando 120s antes de la siguiente
2026-05-13 09:08:50,570 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=ciec paquetes=0 encontrados=0 insertados=0 omitidos(dup)=0
2026-05-13 09:08:50,590 - api_logger - ERROR - [CredentialsProvider] Error desencriptando FIEL desde DB: 
2026-05-13 09:08:50,592 - api_logger - ERROR - [CredentialsProvider] Error desencriptando CIEC desde DB: 
2026-05-13 09:08:50,596 - api_logger - ERROR - Error creating record: DB error
2026-05-13 09:08:50,598 - api_logger - ERROR - Error creating record: fail
2026-05-13 09:08:50,603 - api_logger - ERROR - Error getting all records: DB error
2026-05-13 09:08:50,606 - api_logger - ERROR - Error getting record by ID: DB error
2026-05-13 09:08:50,611 - api_logger - ERROR - Error updating record: DB error
2026-05-13 09:08:50,614 - api_logger - ERROR - Error deleting record: DB error
2026-05-13 09:08:50,619 - api_logger - ERROR - Error searching record: DB error
2026-05-13 09:08:50,718 - api_logger - ERROR - DB error
2026-05-13 09:08:50,729 - api_logger - ERROR - Error inesperado en http://testserver/v1/export/export-file-csv?filename=test&schema=public&table=users: IO Error
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/export_file.py", line 22, in export_file
    file_path = exporter.main()
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: IO Error
2026-05-13 09:08:50,739 - api_logger - ERROR - Error inesperado en http://testserver/v1/export/export-file-xlsx?filename=test&schema=public&table=users: Write Error
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/export_file.py", line 40, in export_xlsx
    file_path = exporter.main()
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: Write Error
2026-05-13 09:08:50,745 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/create: El RFC ya está registrado.
2026-05-13 09:08:50,747 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/fiscalcustomer/create: No autorizado.
2026-05-13 09:08:50,752 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/update/999: RFC no encontrado.
2026-05-13 09:08:50,757 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/list/byid/999: RFC no encontrado.
2026-05-13 09:08:50,762 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/setselected/999: RFC no encontrado.
2026-05-13 09:08:50,765 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/getselected: Sin RFC seleccionado.
2026-05-13 09:08:50,769 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/savecerts: error al guardar certificados FIEL.
2026-05-13 09:08:50,776 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/saveciec: error al guardar contraseña CIEC.
2026-05-13 09:08:52,831 - api_logger - ERROR - [GetCFDIWebServices] Error crítico en execute: fallo crítico
2026-05-13 09:08:52,833 - api_logger - WARNING - [emitidos] Solicitud rechazada por el SAT: {'cod_estatus': '5002', 'id_solicitud': 'SOL-001'}
2026-05-13 09:08:52,834 - api_logger - INFO - [GetCFDIWebServices] Sin paquetes disponibles para emitidos
2026-05-13 09:08:52,834 - api_logger - ERROR - [GetCFDIWebServices] Error en _run_descarga [emitidos]: timeout
2026-05-13 09:08:52,836 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=1
2026-05-13 09:08:52,836 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=1
2026-05-13 09:08:52,837 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=2
2026-05-13 09:08:52,837 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=3
2026-05-13 09:08:52,838 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=4 intento=1
2026-05-13 09:08:52,839 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=5 intento=1
2026-05-13 09:08:52,839 - api_logger - INFO - [GetCFDIWebServices] Solicitud SOL-001 rechazada por SAT (estado=5): sin comprobantes disponibles en el período.
2026-05-13 09:08:52,844 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/licenses/info: Licencia no encontrada.
2026-05-13 09:08:52,846 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/licenses/info: Licencia suspendida.
2026-05-13 09:08:52,849 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/menu_options/get: Rol no encontrado.
2026-05-13 09:08:52,853 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/getall: Sin movimientos.
2026-05-13 09:08:52,856 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/get_selected_rfc: Sin RFC seleccionado.
2026-05-13 09:08:52,859 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/delete/999: Movimiento no encontrado.
2026-05-13 09:08:52,863 - api_logger - DEBUG - [DomainError] http://testserver/v1/movements_banks/upload/bbva: Formato de archivo inválido.
2026-05-13 09:08:52,866 - api_logger - DEBUG - [ConflictError] http://testserver/v1/payment/stripe/checkout: Suscripción activa.
2026-05-13 09:08:52,870 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/getsubscription: Sin suscripción activa.
2026-05-13 09:08:52,874 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/cancelsubscription/sub_INVALID: Suscripción no encontrada.
2026-05-13 09:08:52,879 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 09:08:52,880 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 09:08:52,880 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140606480237296'>
2026-05-13 09:08:52,880 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-05-13 09:08:52,880 - api_logger - INFO - [run_daily_download] Licencia 2 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140606480237296'>
2026-05-13 09:08:52,880 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-05-13 09:08:52,880 - api_logger - INFO - [run_daily_download] Licencia 3 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140606480237296'>
2026-05-13 09:08:52,881 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 09:08:52,881 - api_logger - INFO - [run_daily_download] Licencia 5 — jobs creados: [10, 11]
2026-05-13 09:08:52,881 - api_logger - INFO - [run_daily_download] Licencia 5 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140606480245024'>
2026-05-13 09:08:52,882 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 09:08:52,882 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 09:08:52,882 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140606480245024'>
2026-05-13 09:08:52,883 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 09:08:52,883 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 09:08:52,884 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140606480243344'>
2026-05-13 09:08:52,884 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 09:08:52,884 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 09:08:52,885 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140606629904800'>
2026-05-13 09:08:52,885 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-06 → 2026-05-12 retry_only=False
2026-05-13 09:08:52,885 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 09:08:52,886 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140606480236624'>
2026-05-13 09:08:52,886 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-12 → 2026-05-12 retry_only=True
2026-05-13 09:08:52,886 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs reintentados: [10]
2026-05-13 09:08:52,886 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs reintentados: [10]
2026-05-13 09:08:52,886 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs reintentados: [10]
2026-05-13 09:08:52,887 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 09:08:52,887 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 09:08:52,887 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140606480244016'>
2026-05-13 09:08:52,887 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-05-13 09:08:52,887 - api_logger - INFO - [run_daily_download] Licencia 2 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140606480244016'>
2026-05-13 09:08:52,887 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-05-13 09:08:52,888 - api_logger - INFO - [run_daily_download] Licencia 3 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140606480244016'>
2026-05-13 09:08:52,888 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 09:08:52,888 - api_logger - ERROR - [run_daily_download] Error en licencia 1: SAT no disponible
2026-05-13 09:08:52,888 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10]
2026-05-13 09:08:52,889 - api_logger - INFO - [run_daily_download] Licencia 2 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140606629910512'>
2026-05-13 09:08:52,889 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [11]
2026-05-13 09:08:52,889 - api_logger - INFO - [run_daily_download] Licencia 3 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140606629910512'>
2026-05-13 09:08:52,889 - api_logger - INFO - [run_daily_download] Iniciando — licencias=0 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 09:08:52,898 - api_logger - ERROR - Error creating record: 'NoneType' object has no attribute 'supports_population'
2026-05-13 09:08:52,916 - api_logger - WARNING - invoice.payment_succeeded sin customer_email, ignorando
2026-05-13 09:08:52,917 - api_logger - WARNING - invoice.payment_failed sin customer_email, ignorando
2026-05-13 09:08:52,918 - api_logger - WARNING - invoice.upcoming sin customer_email, ignorando
2026-05-13 09:08:52,921 - api_logger - WARNING - invoice.payment_action_required sin customer_email, ignorando
2026-05-13 09:08:52,923 - api_logger - WARNING - No se pudo obtener last4 para action_required: error
2026-05-13 09:08:52,930 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: test@example.com
2026-05-13 09:08:52,930 - api_logger - INFO - Pago fallido registrado | user: test@example.com | decline_code: card_declined | last4: 4242
2026-05-13 09:08:52,931 - api_logger - WARNING - Charge fallido: card_declined - None - email: None
2026-05-13 09:08:52,931 - api_logger - ERROR - charge.failed sin customer_email, no se puede registrar
2026-05-13 09:08:52,932 - api_logger - ERROR - PaymentIntent fallido | customer: cus_stripe123 | decline_code: card_declined | message: Your card was declined.
2026-05-13 09:08:52,936 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile: Usuario no encontrado.
2026-05-13 09:08:52,940 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile/update: Usuario no encontrado.
2026-05-13 09:08:52,943 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/users/subusers: No tienes permisos.
2026-05-13 09:08:52,946 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/detail?id=999: Subusuario no encontrado.
2026-05-13 09:08:52,951 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/delete?id_subuser=999: Subusuario no encontrado.
2026-05-13 09:08:52,954 - api_logger - DEBUG - [ConflictError] http://testserver/v1/users/subuser/create: El correo ya está registrado.
2026-05-13 09:08:52,961 - api_logger - ERROR - verify_email unexpected: Unexpected
2026-05-13 09:08:52,974 - api_logger - ERROR - verify_recovery unexpected: Unexpected
2026-05-13 09:08:52,985 - api_logger - ERROR - Error inesperado en http://testserver/v1/webservices/authenticate: Vault unreachable
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/webservices.py", line 80, in authenticate
    datas = clienthvac.secrets.kv.v2.read_secret_version(path=path_vault)['data']['data']
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: Vault unreachable
2026-05-13 09:08:52,994 - api_logger - DEBUG - [DomainError] http://testserver/v1/webservices/downloadrequest: El token debe tener más de 255 caracteres
2026-05-13 09:08:53,002 - api_logger - ERROR - Error inesperado en http://testserver/v1/webservices/verifydownloadrequest: Vault error
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/webservices.py", line 150, in verifydownloadrequest
    datas = clienthvac.secrets.kv.v2.read_secret_version(path=path_vault)['data']['data']
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: Vault error
2026-05-13 09:08:53,010 - api_logger - DEBUG - [DomainError] http://testserver/v1/webservices/downloadpackage: No se pudo descargar el paquete PKG-UUID-0001
2026-05-13 10:16:27,984 - api_logger - INFO - Router cargado: /catalogs
2026-05-13 10:16:27,987 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-13 10:16:27,988 - api_logger - INFO - Router cargado: /export
2026-05-13 10:16:27,988 - api_logger - INFO - Router cargado: /licenses
2026-05-13 10:16:27,988 - api_logger - INFO - Router cargado: /menu_options
2026-05-13 10:16:27,995 - api_logger - INFO - Router cargado: /movements_banks
2026-05-13 10:16:27,996 - api_logger - INFO - Router cargado: /payment
2026-05-13 10:16:27,996 - api_logger - INFO - Router cargado: /plans
2026-05-13 10:16:27,997 - api_logger - INFO - Router cargado: 
2026-05-13 10:16:27,999 - api_logger - INFO - Router cargado: /webservices
2026-05-13 10:16:28,000 - api_logger - INFO - Router cargado: /users
2026-05-13 10:16:28,002 - api_logger - INFO - Router cargado: /bankaccount
2026-05-13 10:16:28,005 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-13 10:16:28,006 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-13 10:16:28,007 - api_logger - INFO - Router cargado: /auth
2026-05-13 10:16:28,212 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/login: Usuario no encontrado.
2026-05-13 10:16:28,213 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 4.
2026-05-13 10:16:28,215 - api_logger - DEBUG - [LockedError] http://testserver/v1/auth/login: Cuenta bloqueada.
2026-05-13 10:16:28,216 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/auth/login: Tu cuenta aún no ha sido verificada.
2026-05-13 10:16:28,218 - api_logger - DEBUG - [UnavailableForLegalReasonsError] http://testserver/v1/auth/login: Tu cuenta ha sido suspendida.
2026-05-13 10:16:28,221 - api_logger - DEBUG - [ConflictError] http://testserver/v1/auth/register: El correo electrónico nuevo@example.com ya está registrado.
2026-05-13 10:16:28,224 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/recovery/passwd: Cuenta no registrada.
2026-05-13 10:16:28,227 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/reset/passwd: El token para permitir el cambio de contraseña ha expirado.
2026-05-13 10:16:28,229 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/resend-verification?tkn=bad-token: Token no válido
2026-05-13 10:16:28,231 - api_logger - DEBUG - [TooManyRequestsError] http://testserver/v1/auth/resend-verification?tkn=any-token: Has superado el límite de intentos.
2026-05-13 10:16:28,240 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getall: Sin cuentas registradas.
2026-05-13 10:16:28,244 - api_logger - DEBUG - [ConflictError] http://testserver/v1/bankaccount/create: La cuenta ya existe.
2026-05-13 10:16:28,247 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getbyid/999: Cuenta no encontrada.
2026-05-13 10:16:28,250 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/update/999: Cuenta no encontrada.
2026-05-13 10:16:28,253 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/delete/999: Cuenta no encontrada.
2026-05-13 10:16:28,258 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?current_page=0: current_page debe ser un valor positivo.
2026-05-13 10:16:28,259 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?page_size=0: page_size debe estar entre 1 y 100.
2026-05-13 10:16:28,261 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?page_size=101: page_size debe estar entre 1 y 100.
2026-05-13 10:16:28,264 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/999: Registro no encontrado.
2026-05-13 10:16:28,272 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/update/999: Registro no encontrado.
2026-05-13 10:16:28,275 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/delete/999: Registro no encontrado.
2026-05-13 10:16:28,280 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/999: Registro no encontrado.
2026-05-13 10:16:28,283 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/create: El campo 'description' es requerido.
2026-05-13 10:16:28,288 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/delete/999: Registro no encontrado.
2026-05-13 10:16:28,292 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/getbyid/999: Registro no encontrado.
2026-05-13 10:16:28,295 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/create: El campo 'payment_method' es requerido.
2026-05-13 10:16:28,298 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/update/999: Registro no encontrado.
2026-05-13 10:16:28,300 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/update/1: El campo 'payment_method' es requerido.
2026-05-13 10:16:28,303 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/delete/999: Registro no encontrado.
2026-05-13 10:16:28,306 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?current_page=0: current_page debe ser un valor positivo.
2026-05-13 10:16:28,308 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?page_size=200: page_size debe estar entre 1 y 100.
2026-05-13 10:16:28,342 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 encontrados=0 insertados=5 omitidos(dup)=0
2026-05-13 10:16:28,342 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=fiel paquetes=1 encontrados=0 insertados=5 omitidos(dup)=0
2026-05-13 10:16:28,343 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 encontrados=0 insertados=3 omitidos(dup)=0
2026-05-13 10:16:28,344 - api_logger - WARNING - [Orchestrator] RFC XAXX010101000 sin credenciales: Sin credenciales
2026-05-13 10:16:28,346 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=2 encontrados=0 insertados=10 omitidos(dup)=0
2026-05-13 10:16:28,347 - api_logger - ERROR - [Orchestrator] Error en RFC=XAXX010101000: Error SAT
2026-05-13 10:16:28,352 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 esperando turno (semáforo)...
2026-05-13 10:16:28,352 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 iniciando sesión SAT
2026-05-13 10:16:28,353 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 sesión terminada — esperando 120s antes de la siguiente
2026-05-13 10:16:28,353 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=ciec paquetes=0 encontrados=0 insertados=0 omitidos(dup)=0
2026-05-13 10:16:28,373 - api_logger - ERROR - [CredentialsProvider] Error desencriptando FIEL desde DB: 
2026-05-13 10:16:28,376 - api_logger - ERROR - [CredentialsProvider] Error desencriptando CIEC desde DB: 
2026-05-13 10:16:28,379 - api_logger - ERROR - Error creating record: DB error
2026-05-13 10:16:28,382 - api_logger - ERROR - Error creating record: fail
2026-05-13 10:16:28,386 - api_logger - ERROR - Error getting all records: DB error
2026-05-13 10:16:28,389 - api_logger - ERROR - Error getting record by ID: DB error
2026-05-13 10:16:28,394 - api_logger - ERROR - Error updating record: DB error
2026-05-13 10:16:28,397 - api_logger - ERROR - Error deleting record: DB error
2026-05-13 10:16:28,403 - api_logger - ERROR - Error searching record: DB error
2026-05-13 10:16:28,522 - api_logger - ERROR - DB error
2026-05-13 10:16:28,530 - api_logger - ERROR - Error inesperado en http://testserver/v1/export/export-file-csv?filename=test&schema=public&table=users: IO Error
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/export_file.py", line 22, in export_file
    file_path = exporter.main()
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: IO Error
2026-05-13 10:16:28,546 - api_logger - ERROR - Error inesperado en http://testserver/v1/export/export-file-xlsx?filename=test&schema=public&table=users: Write Error
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/export_file.py", line 40, in export_xlsx
    file_path = exporter.main()
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: Write Error
2026-05-13 10:16:28,550 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/create: El RFC ya está registrado.
2026-05-13 10:16:28,552 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/fiscalcustomer/create: No autorizado.
2026-05-13 10:16:28,557 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/update/999: RFC no encontrado.
2026-05-13 10:16:28,561 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/list/byid/999: RFC no encontrado.
2026-05-13 10:16:28,566 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/setselected/999: RFC no encontrado.
2026-05-13 10:16:28,569 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/getselected: Sin RFC seleccionado.
2026-05-13 10:16:28,573 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/savecerts: error al guardar certificados FIEL.
2026-05-13 10:16:28,579 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/saveciec: error al guardar contraseña CIEC.
2026-05-13 10:16:30,638 - api_logger - ERROR - [GetCFDIWebServices] Error crítico en execute: fallo crítico
2026-05-13 10:16:30,640 - api_logger - WARNING - [emitidos] Solicitud rechazada por el SAT: {'cod_estatus': '5002', 'id_solicitud': 'SOL-001'}
2026-05-13 10:16:30,641 - api_logger - INFO - [GetCFDIWebServices] Sin paquetes disponibles para emitidos
2026-05-13 10:16:30,642 - api_logger - ERROR - [GetCFDIWebServices] Error en _run_descarga [emitidos]: timeout
2026-05-13 10:16:30,644 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=1
2026-05-13 10:16:30,645 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=1
2026-05-13 10:16:30,645 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=2
2026-05-13 10:16:30,645 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=3
2026-05-13 10:16:30,647 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=4 intento=1
2026-05-13 10:16:30,648 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=5 intento=1
2026-05-13 10:16:30,648 - api_logger - INFO - [GetCFDIWebServices] Solicitud SOL-001 rechazada por SAT (estado=5): sin comprobantes disponibles en el período.
2026-05-13 10:16:34,737 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/licenses/info: Licencia no encontrada.
2026-05-13 10:16:34,739 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/licenses/info: Licencia suspendida.
2026-05-13 10:16:34,748 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/menu_options/get: Rol no encontrado.
2026-05-13 10:16:34,774 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/getall: Sin movimientos.
2026-05-13 10:16:34,777 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/get_selected_rfc: Sin RFC seleccionado.
2026-05-13 10:16:34,781 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/delete/999: Movimiento no encontrado.
2026-05-13 10:16:34,785 - api_logger - DEBUG - [DomainError] http://testserver/v1/movements_banks/upload/bbva: Formato de archivo inválido.
2026-05-13 10:16:34,797 - api_logger - DEBUG - [ConflictError] http://testserver/v1/payment/stripe/checkout: Suscripción activa.
2026-05-13 10:16:34,802 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/getsubscription: Sin suscripción activa.
2026-05-13 10:16:34,805 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/cancelsubscription/sub_INVALID: Suscripción no encontrada.
2026-05-13 10:16:34,836 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 10:16:34,836 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 10:16:34,836 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140462177239792'>
2026-05-13 10:16:34,836 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-05-13 10:16:34,836 - api_logger - INFO - [run_daily_download] Licencia 2 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140462177239792'>
2026-05-13 10:16:34,836 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-05-13 10:16:34,836 - api_logger - INFO - [run_daily_download] Licencia 3 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140462177239792'>
2026-05-13 10:16:34,837 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 10:16:34,837 - api_logger - INFO - [run_daily_download] Licencia 5 — jobs creados: [10, 11]
2026-05-13 10:16:34,838 - api_logger - INFO - [run_daily_download] Licencia 5 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140462177247520'>
2026-05-13 10:16:34,838 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 10:16:34,839 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 10:16:34,839 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140462177247520'>
2026-05-13 10:16:34,840 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 10:16:34,840 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 10:16:34,840 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140462177245840'>
2026-05-13 10:16:34,841 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 10:16:34,841 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 10:16:34,841 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140462326907296'>
2026-05-13 10:16:34,842 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-06 → 2026-05-12 retry_only=False
2026-05-13 10:16:34,842 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 10:16:34,842 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140462177239120'>
2026-05-13 10:16:34,843 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-12 → 2026-05-12 retry_only=True
2026-05-13 10:16:34,843 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs reintentados: [10]
2026-05-13 10:16:34,843 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs reintentados: [10]
2026-05-13 10:16:34,843 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs reintentados: [10]
2026-05-13 10:16:34,844 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 10:16:34,844 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 10:16:34,844 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140462177246512'>
2026-05-13 10:16:34,844 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-05-13 10:16:34,844 - api_logger - INFO - [run_daily_download] Licencia 2 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140462177246512'>
2026-05-13 10:16:34,844 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-05-13 10:16:34,844 - api_logger - INFO - [run_daily_download] Licencia 3 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140462177246512'>
2026-05-13 10:16:34,845 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 10:16:34,845 - api_logger - ERROR - [run_daily_download] Error en licencia 1: SAT no disponible
2026-05-13 10:16:34,845 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10]
2026-05-13 10:16:34,846 - api_logger - INFO - [run_daily_download] Licencia 2 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140462326913008'>
2026-05-13 10:16:34,846 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [11]
2026-05-13 10:16:34,846 - api_logger - INFO - [run_daily_download] Licencia 3 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140462326913008'>
2026-05-13 10:16:34,846 - api_logger - INFO - [run_daily_download] Iniciando — licencias=0 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 10:16:34,856 - api_logger - ERROR - Error creating record: 'NoneType' object has no attribute 'supports_population'
2026-05-13 10:16:34,876 - api_logger - WARNING - invoice.payment_succeeded sin customer_email, ignorando
2026-05-13 10:16:34,877 - api_logger - WARNING - invoice.payment_failed sin customer_email, ignorando
2026-05-13 10:16:34,878 - api_logger - WARNING - invoice.upcoming sin customer_email, ignorando
2026-05-13 10:16:34,882 - api_logger - WARNING - invoice.payment_action_required sin customer_email, ignorando
2026-05-13 10:16:34,884 - api_logger - WARNING - No se pudo obtener last4 para action_required: error
2026-05-13 10:16:34,892 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: test@example.com
2026-05-13 10:16:34,892 - api_logger - INFO - Pago fallido registrado | user: test@example.com | decline_code: card_declined | last4: 4242
2026-05-13 10:16:34,893 - api_logger - WARNING - Charge fallido: card_declined - None - email: None
2026-05-13 10:16:34,893 - api_logger - ERROR - charge.failed sin customer_email, no se puede registrar
2026-05-13 10:16:34,894 - api_logger - ERROR - PaymentIntent fallido | customer: cus_stripe123 | decline_code: card_declined | message: Your card was declined.
2026-05-13 10:16:34,961 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile: Usuario no encontrado.
2026-05-13 10:16:34,966 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile/update: Usuario no encontrado.
2026-05-13 10:16:34,970 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/users/subusers: No tienes permisos.
2026-05-13 10:16:34,974 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/detail?id=999: Subusuario no encontrado.
2026-05-13 10:16:34,979 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/delete?id_subuser=999: Subusuario no encontrado.
2026-05-13 10:16:34,983 - api_logger - DEBUG - [ConflictError] http://testserver/v1/users/subuser/create: El correo ya está registrado.
2026-05-13 10:16:34,991 - api_logger - ERROR - verify_email unexpected: Unexpected
2026-05-13 10:16:35,005 - api_logger - ERROR - verify_recovery unexpected: Unexpected
2026-05-13 10:16:35,017 - api_logger - ERROR - Error inesperado en http://testserver/v1/webservices/authenticate: Vault unreachable
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/webservices.py", line 80, in authenticate
    datas = clienthvac.secrets.kv.v2.read_secret_version(path=path_vault)['data']['data']
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: Vault unreachable
2026-05-13 10:16:35,026 - api_logger - DEBUG - [DomainError] http://testserver/v1/webservices/downloadrequest: El token debe tener más de 255 caracteres
2026-05-13 10:16:35,035 - api_logger - ERROR - Error inesperado en http://testserver/v1/webservices/verifydownloadrequest: Vault error
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/webservices.py", line 150, in verifydownloadrequest
    datas = clienthvac.secrets.kv.v2.read_secret_version(path=path_vault)['data']['data']
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: Vault error
2026-05-13 10:16:35,042 - api_logger - DEBUG - [DomainError] http://testserver/v1/webservices/downloadpackage: No se pudo descargar el paquete PKG-UUID-0001
2026-05-13 10:40:02,432 - api_logger - INFO - Router cargado: /catalogs
2026-05-13 10:40:02,434 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-13 10:40:02,435 - api_logger - INFO - Router cargado: /export
2026-05-13 10:40:02,435 - api_logger - INFO - Router cargado: /licenses
2026-05-13 10:40:02,435 - api_logger - INFO - Router cargado: /menu_options
2026-05-13 10:40:02,443 - api_logger - INFO - Router cargado: /movements_banks
2026-05-13 10:40:02,444 - api_logger - INFO - Router cargado: /payment
2026-05-13 10:40:02,444 - api_logger - INFO - Router cargado: /plans
2026-05-13 10:40:02,445 - api_logger - INFO - Router cargado: 
2026-05-13 10:40:02,447 - api_logger - INFO - Router cargado: /webservices
2026-05-13 10:40:02,448 - api_logger - INFO - Router cargado: /users
2026-05-13 10:40:02,450 - api_logger - INFO - Router cargado: /bankaccount
2026-05-13 10:40:02,454 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-13 10:40:02,455 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-13 10:40:02,456 - api_logger - INFO - Router cargado: /auth
2026-05-13 10:40:02,496 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?current_page=0: current_page debe ser un valor positivo.
2026-05-13 10:40:02,498 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?page_size=0: page_size debe estar entre 1 y 100.
2026-05-13 10:40:02,499 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?page_size=101: page_size debe estar entre 1 y 100.
2026-05-13 10:40:02,502 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/999: Registro no encontrado.
2026-05-13 10:40:02,509 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/update/999: Registro no encontrado.
2026-05-13 10:40:02,512 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/delete/999: Registro no encontrado.
2026-05-13 10:40:02,516 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/999: Registro no encontrado.
2026-05-13 10:40:02,519 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/create: El campo 'description' es requerido.
2026-05-13 10:40:02,523 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/delete/999: Registro no encontrado.
2026-05-13 10:40:02,528 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/getbyid/999: Registro no encontrado.
2026-05-13 10:40:02,531 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/create: El campo 'payment_method' es requerido.
2026-05-13 10:40:02,533 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/update/999: Registro no encontrado.
2026-05-13 10:40:02,535 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/update/1: El campo 'payment_method' es requerido.
2026-05-13 10:40:02,538 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/delete/999: Registro no encontrado.
2026-05-13 10:40:02,541 - api_logger - ERROR - Error creating record: DB error
2026-05-13 10:40:02,543 - api_logger - ERROR - Error creating record: fail
2026-05-13 10:40:02,548 - api_logger - ERROR - Error getting all records: DB error
2026-05-13 10:40:02,551 - api_logger - ERROR - Error getting record by ID: DB error
2026-05-13 10:40:02,556 - api_logger - ERROR - Error updating record: DB error
2026-05-13 10:40:02,559 - api_logger - ERROR - Error deleting record: DB error
2026-05-13 10:40:02,566 - api_logger - ERROR - Error searching record: DB error
2026-05-13 10:40:02,578 - api_logger - ERROR - DB error
2026-05-13 10:40:02,587 - api_logger - ERROR - Error creating record: 'NoneType' object has no attribute 'supports_population'
2026-05-13 11:05:38,483 - api_logger - INFO - Router cargado: /catalogs
2026-05-13 11:05:38,486 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-13 11:05:38,487 - api_logger - INFO - Router cargado: /export
2026-05-13 11:05:38,488 - api_logger - INFO - Router cargado: /licenses
2026-05-13 11:05:38,488 - api_logger - INFO - Router cargado: /menu_options
2026-05-13 11:05:38,497 - api_logger - INFO - Router cargado: /movements_banks
2026-05-13 11:05:38,497 - api_logger - INFO - Router cargado: /payment
2026-05-13 11:05:38,498 - api_logger - INFO - Router cargado: /plans
2026-05-13 11:05:38,498 - api_logger - INFO - Router cargado: 
2026-05-13 11:05:38,500 - api_logger - INFO - Router cargado: /webservices
2026-05-13 11:05:38,502 - api_logger - INFO - Router cargado: /users
2026-05-13 11:05:38,504 - api_logger - INFO - Router cargado: /bankaccount
2026-05-13 11:05:38,508 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-13 11:05:38,508 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-13 11:05:38,510 - api_logger - INFO - Router cargado: /auth
2026-05-13 11:05:38,716 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/login: Usuario no encontrado.
2026-05-13 11:05:38,718 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 4.
2026-05-13 11:05:38,719 - api_logger - DEBUG - [LockedError] http://testserver/v1/auth/login: Cuenta bloqueada.
2026-05-13 11:05:38,721 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/auth/login: Tu cuenta aún no ha sido verificada.
2026-05-13 11:05:38,723 - api_logger - DEBUG - [UnavailableForLegalReasonsError] http://testserver/v1/auth/login: Tu cuenta ha sido suspendida.
2026-05-13 11:05:38,726 - api_logger - DEBUG - [ConflictError] http://testserver/v1/auth/register: El correo electrónico nuevo@example.com ya está registrado.
2026-05-13 11:05:38,729 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/recovery/passwd: Cuenta no registrada.
2026-05-13 11:05:38,732 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/reset/passwd: El token para permitir el cambio de contraseña ha expirado.
2026-05-13 11:05:38,735 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/resend-verification?tkn=bad-token: Token no válido
2026-05-13 11:05:38,736 - api_logger - DEBUG - [TooManyRequestsError] http://testserver/v1/auth/resend-verification?tkn=any-token: Has superado el límite de intentos.
2026-05-13 11:05:38,746 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getall: Sin cuentas registradas.
2026-05-13 11:05:38,749 - api_logger - DEBUG - [ConflictError] http://testserver/v1/bankaccount/create: La cuenta ya existe.
2026-05-13 11:05:38,752 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getbyid/999: Cuenta no encontrada.
2026-05-13 11:05:38,755 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/update/999: Cuenta no encontrada.
2026-05-13 11:05:38,758 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/delete/999: Cuenta no encontrada.
2026-05-13 11:05:38,771 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?current_page=0: current_page debe ser un valor positivo.
2026-05-13 11:05:38,772 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?page_size=0: page_size debe estar entre 1 y 100.
2026-05-13 11:05:38,774 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?page_size=101: page_size debe estar entre 1 y 100.
2026-05-13 11:05:38,778 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/999: Registro no encontrado.
2026-05-13 11:05:38,786 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/update/999: Registro no encontrado.
2026-05-13 11:05:38,789 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/delete/999: Registro no encontrado.
2026-05-13 11:05:38,794 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/999: Registro no encontrado.
2026-05-13 11:05:38,797 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/create: El campo 'description' es requerido.
2026-05-13 11:05:38,801 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/delete/999: Registro no encontrado.
2026-05-13 11:05:38,806 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/getbyid/999: Registro no encontrado.
2026-05-13 11:05:38,809 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/create: El campo 'payment_method' es requerido.
2026-05-13 11:05:38,812 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/update/999: Registro no encontrado.
2026-05-13 11:05:38,814 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/update/1: El campo 'payment_method' es requerido.
2026-05-13 11:05:38,817 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/delete/999: Registro no encontrado.
2026-05-13 11:05:38,820 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?current_page=0: current_page debe ser un valor positivo.
2026-05-13 11:05:38,822 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?page_size=200: page_size debe estar entre 1 y 100.
2026-05-13 11:05:38,855 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 encontrados=0 insertados=5 omitidos(dup)=0
2026-05-13 11:05:38,855 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=fiel paquetes=1 encontrados=0 insertados=5 omitidos(dup)=0
2026-05-13 11:05:38,857 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 encontrados=0 insertados=3 omitidos(dup)=0
2026-05-13 11:05:38,858 - api_logger - WARNING - [Orchestrator] RFC XAXX010101000 sin credenciales: Sin credenciales
2026-05-13 11:05:38,859 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=2 encontrados=0 insertados=10 omitidos(dup)=0
2026-05-13 11:05:38,861 - api_logger - ERROR - [Orchestrator] Error en RFC=XAXX010101000: Error SAT
2026-05-13 11:05:38,866 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 esperando turno (semáforo)...
2026-05-13 11:05:38,866 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 iniciando sesión SAT
2026-05-13 11:05:38,866 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 sesión terminada — esperando 120s antes de la siguiente
2026-05-13 11:05:38,866 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=ciec paquetes=0 encontrados=0 insertados=0 omitidos(dup)=0
2026-05-13 11:05:38,888 - api_logger - ERROR - [CredentialsProvider] Error desencriptando FIEL desde DB: 
2026-05-13 11:05:38,891 - api_logger - ERROR - [CredentialsProvider] Error desencriptando CIEC desde DB: 
2026-05-13 11:05:38,895 - api_logger - ERROR - Error creating record: DB error
2026-05-13 11:05:38,897 - api_logger - ERROR - Error creating record: fail
2026-05-13 11:05:38,901 - api_logger - ERROR - Error getting all records: DB error
2026-05-13 11:05:38,904 - api_logger - ERROR - Error getting record by ID: DB error
2026-05-13 11:05:38,910 - api_logger - ERROR - Error updating record: DB error
2026-05-13 11:05:38,914 - api_logger - ERROR - Error deleting record: DB error
2026-05-13 11:05:38,920 - api_logger - ERROR - Error searching record: DB error
2026-05-13 11:05:39,027 - api_logger - ERROR - Error getting paginated records: DB error
2026-05-13 11:05:39,035 - api_logger - ERROR - Error inesperado en http://testserver/v1/export/export-file-csv?filename=test&schema=public&table=users: IO Error
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/export_file.py", line 22, in export_file
    file_path = exporter.main()
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: IO Error
2026-05-13 11:05:39,054 - api_logger - ERROR - Error inesperado en http://testserver/v1/export/export-file-xlsx?filename=test&schema=public&table=users: Write Error
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/export_file.py", line 40, in export_xlsx
    file_path = exporter.main()
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: Write Error
2026-05-13 11:05:39,063 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/create: El RFC ya está registrado.
2026-05-13 11:05:39,066 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/fiscalcustomer/create: No autorizado.
2026-05-13 11:05:39,072 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/update/999: RFC no encontrado.
2026-05-13 11:05:39,078 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/list/byid/999: RFC no encontrado.
2026-05-13 11:05:39,084 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/setselected/999: RFC no encontrado.
2026-05-13 11:05:39,087 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/getselected: Sin RFC seleccionado.
2026-05-13 11:05:39,091 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/savecerts: error al guardar certificados FIEL.
2026-05-13 11:05:39,097 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/saveciec: error al guardar contraseña CIEC.
2026-05-13 11:05:41,229 - api_logger - ERROR - [GetCFDIWebServices] Error crítico en execute: fallo crítico
2026-05-13 11:05:41,231 - api_logger - WARNING - [emitidos] Solicitud rechazada por el SAT: {'cod_estatus': '5002', 'id_solicitud': 'SOL-001'}
2026-05-13 11:05:41,233 - api_logger - INFO - [GetCFDIWebServices] Sin paquetes disponibles para emitidos
2026-05-13 11:05:41,234 - api_logger - ERROR - [GetCFDIWebServices] Error en _run_descarga [emitidos]: timeout
2026-05-13 11:05:41,235 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=1
2026-05-13 11:05:41,236 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=1
2026-05-13 11:05:41,236 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=2
2026-05-13 11:05:41,236 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=3
2026-05-13 11:05:41,237 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=4 intento=1
2026-05-13 11:05:41,238 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=5 intento=1
2026-05-13 11:05:41,238 - api_logger - INFO - [GetCFDIWebServices] Solicitud SOL-001 rechazada por SAT (estado=5): sin comprobantes disponibles en el período.
2026-05-13 11:05:41,246 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/licenses/info: Licencia no encontrada.
2026-05-13 11:05:41,248 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/licenses/info: Licencia suspendida.
2026-05-13 11:05:41,251 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/menu_options/get: Rol no encontrado.
2026-05-13 11:05:41,256 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/getall: Sin movimientos.
2026-05-13 11:05:41,260 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/get_selected_rfc: Sin RFC seleccionado.
2026-05-13 11:05:41,262 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/delete/999: Movimiento no encontrado.
2026-05-13 11:05:41,266 - api_logger - DEBUG - [DomainError] http://testserver/v1/movements_banks/upload/bbva: Formato de archivo inválido.
2026-05-13 11:05:41,270 - api_logger - DEBUG - [ConflictError] http://testserver/v1/payment/stripe/checkout: Suscripción activa.
2026-05-13 11:05:41,274 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/getsubscription: Sin suscripción activa.
2026-05-13 11:05:41,278 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/cancelsubscription/sub_INVALID: Suscripción no encontrada.
2026-05-13 11:05:41,283 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 11:05:41,283 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 11:05:41,283 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139877818792800'>
2026-05-13 11:05:41,283 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-05-13 11:05:41,283 - api_logger - INFO - [run_daily_download] Licencia 2 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139877818792800'>
2026-05-13 11:05:41,283 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-05-13 11:05:41,283 - api_logger - INFO - [run_daily_download] Licencia 3 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139877818792800'>
2026-05-13 11:05:41,284 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 11:05:41,284 - api_logger - INFO - [run_daily_download] Licencia 5 — jobs creados: [10, 11]
2026-05-13 11:05:41,284 - api_logger - INFO - [run_daily_download] Licencia 5 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139877818785744'>
2026-05-13 11:05:41,285 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 11:05:41,285 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 11:05:41,285 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139878265742608'>
2026-05-13 11:05:41,286 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 11:05:41,286 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 11:05:41,286 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139878265742608'>
2026-05-13 11:05:41,287 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 11:05:41,287 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 11:05:41,287 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139877818485120'>
2026-05-13 11:05:41,287 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-06 → 2026-05-12 retry_only=False
2026-05-13 11:05:41,288 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 11:05:41,288 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139877818488480'>
2026-05-13 11:05:41,289 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-12 → 2026-05-12 retry_only=True
2026-05-13 11:05:41,289 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs reintentados: [10]
2026-05-13 11:05:41,289 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs reintentados: [10]
2026-05-13 11:05:41,289 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs reintentados: [10]
2026-05-13 11:05:41,289 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 11:05:41,289 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 11:05:41,290 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139878414064608'>
2026-05-13 11:05:41,290 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-05-13 11:05:41,290 - api_logger - INFO - [run_daily_download] Licencia 2 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139878414064608'>
2026-05-13 11:05:41,290 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-05-13 11:05:41,290 - api_logger - INFO - [run_daily_download] Licencia 3 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139878414064608'>
2026-05-13 11:05:41,291 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 11:05:41,291 - api_logger - ERROR - [run_daily_download] Error en licencia 1: SAT no disponible
2026-05-13 11:05:41,291 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10]
2026-05-13 11:05:41,292 - api_logger - INFO - [run_daily_download] Licencia 2 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139877818486464'>
2026-05-13 11:05:41,292 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [11]
2026-05-13 11:05:41,292 - api_logger - INFO - [run_daily_download] Licencia 3 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139877818486464'>
2026-05-13 11:05:41,292 - api_logger - INFO - [run_daily_download] Iniciando — licencias=0 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 11:05:41,301 - api_logger - ERROR - Error creating record: 'NoneType' object has no attribute 'supports_population'
2026-05-13 11:05:41,319 - api_logger - WARNING - invoice.payment_succeeded sin customer_email, ignorando
2026-05-13 11:05:41,320 - api_logger - WARNING - invoice.payment_failed sin customer_email, ignorando
2026-05-13 11:05:41,321 - api_logger - WARNING - invoice.upcoming sin customer_email, ignorando
2026-05-13 11:05:41,324 - api_logger - WARNING - invoice.payment_action_required sin customer_email, ignorando
2026-05-13 11:05:41,325 - api_logger - WARNING - No se pudo obtener last4 para action_required: error
2026-05-13 11:05:41,332 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: test@example.com
2026-05-13 11:05:41,333 - api_logger - INFO - Pago fallido registrado | user: test@example.com | decline_code: card_declined | last4: 4242
2026-05-13 11:05:41,333 - api_logger - WARNING - Charge fallido: card_declined - None - email: None
2026-05-13 11:05:41,333 - api_logger - ERROR - charge.failed sin customer_email, no se puede registrar
2026-05-13 11:05:41,334 - api_logger - ERROR - PaymentIntent fallido | customer: cus_stripe123 | decline_code: card_declined | message: Your card was declined.
2026-05-13 11:05:41,338 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile: Usuario no encontrado.
2026-05-13 11:05:41,342 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile/update: Usuario no encontrado.
2026-05-13 11:05:41,345 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/users/subusers: No tienes permisos.
2026-05-13 11:05:41,348 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/detail?id=999: Subusuario no encontrado.
2026-05-13 11:05:41,353 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/delete?id_subuser=999: Subusuario no encontrado.
2026-05-13 11:05:41,356 - api_logger - DEBUG - [ConflictError] http://testserver/v1/users/subuser/create: El correo ya está registrado.
2026-05-13 11:05:41,363 - api_logger - ERROR - verify_email unexpected: Unexpected
2026-05-13 11:05:41,376 - api_logger - ERROR - verify_recovery unexpected: Unexpected
2026-05-13 11:05:41,385 - api_logger - ERROR - Error inesperado en http://testserver/v1/webservices/authenticate: Vault unreachable
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/webservices.py", line 80, in authenticate
    datas = clienthvac.secrets.kv.v2.read_secret_version(path=path_vault)['data']['data']
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: Vault unreachable
2026-05-13 11:05:41,393 - api_logger - DEBUG - [DomainError] http://testserver/v1/webservices/downloadrequest: El token debe tener más de 255 caracteres
2026-05-13 11:05:41,402 - api_logger - ERROR - Error inesperado en http://testserver/v1/webservices/verifydownloadrequest: Vault error
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/webservices.py", line 150, in verifydownloadrequest
    datas = clienthvac.secrets.kv.v2.read_secret_version(path=path_vault)['data']['data']
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: Vault error
2026-05-13 11:05:41,410 - api_logger - DEBUG - [DomainError] http://testserver/v1/webservices/downloadpackage: No se pudo descargar el paquete PKG-UUID-0001
2026-05-13 12:22:55,328 - api_logger - INFO - Router cargado: /catalogs
2026-05-13 12:22:55,331 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-13 12:22:55,332 - api_logger - INFO - Router cargado: /export
2026-05-13 12:22:55,332 - api_logger - INFO - Router cargado: /licenses
2026-05-13 12:22:55,333 - api_logger - INFO - Router cargado: /menu_options
2026-05-13 12:22:55,340 - api_logger - INFO - Router cargado: /movements_banks
2026-05-13 12:22:55,341 - api_logger - INFO - Router cargado: /payment
2026-05-13 12:22:55,341 - api_logger - INFO - Router cargado: /plans
2026-05-13 12:22:55,342 - api_logger - INFO - Router cargado: 
2026-05-13 12:22:55,343 - api_logger - INFO - Router cargado: /webservices
2026-05-13 12:22:55,345 - api_logger - INFO - Router cargado: /users
2026-05-13 12:22:55,347 - api_logger - INFO - Router cargado: /bankaccount
2026-05-13 12:22:55,350 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-13 12:22:55,351 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-13 12:22:55,353 - api_logger - INFO - Router cargado: /auth
2026-05-13 12:22:55,592 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/login: Usuario no encontrado.
2026-05-13 12:22:55,593 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 4.
2026-05-13 12:22:55,595 - api_logger - DEBUG - [LockedError] http://testserver/v1/auth/login: Cuenta bloqueada.
2026-05-13 12:22:55,596 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/auth/login: Tu cuenta aún no ha sido verificada.
2026-05-13 12:22:55,598 - api_logger - DEBUG - [UnavailableForLegalReasonsError] http://testserver/v1/auth/login: Tu cuenta ha sido suspendida.
2026-05-13 12:22:55,601 - api_logger - DEBUG - [ConflictError] http://testserver/v1/auth/register: El correo electrónico nuevo@example.com ya está registrado.
2026-05-13 12:22:55,603 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/recovery/passwd: Cuenta no registrada.
2026-05-13 12:22:55,606 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/reset/passwd: El token para permitir el cambio de contraseña ha expirado.
2026-05-13 12:22:55,609 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/resend-verification?tkn=bad-token: Token no válido
2026-05-13 12:22:55,610 - api_logger - DEBUG - [TooManyRequestsError] http://testserver/v1/auth/resend-verification?tkn=any-token: Has superado el límite de intentos.
2026-05-13 12:22:55,618 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getall: Sin cuentas registradas.
2026-05-13 12:22:55,621 - api_logger - DEBUG - [ConflictError] http://testserver/v1/bankaccount/create: La cuenta ya existe.
2026-05-13 12:22:55,624 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getbyid/999: Cuenta no encontrada.
2026-05-13 12:22:55,627 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/update/999: Cuenta no encontrada.
2026-05-13 12:22:55,630 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/delete/999: Cuenta no encontrada.
2026-05-13 12:22:55,636 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?current_page=0: current_page debe ser un valor positivo.
2026-05-13 12:22:55,637 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?page_size=0: page_size debe estar entre 1 y 100.
2026-05-13 12:22:55,638 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?page_size=101: page_size debe estar entre 1 y 100.
2026-05-13 12:22:55,641 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/999: Registro no encontrado.
2026-05-13 12:22:55,649 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/update/999: Registro no encontrado.
2026-05-13 12:22:55,651 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/delete/999: Registro no encontrado.
2026-05-13 12:22:55,656 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/999: Registro no encontrado.
2026-05-13 12:22:55,659 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/create: El campo 'description' es requerido.
2026-05-13 12:22:55,664 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/delete/999: Registro no encontrado.
2026-05-13 12:22:55,668 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/getbyid/999: Registro no encontrado.
2026-05-13 12:22:55,671 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/create: El campo 'payment_method' es requerido.
2026-05-13 12:22:55,674 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/update/999: Registro no encontrado.
2026-05-13 12:22:55,676 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/update/1: El campo 'payment_method' es requerido.
2026-05-13 12:22:55,678 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/delete/999: Registro no encontrado.
2026-05-13 12:22:55,681 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?current_page=0: current_page debe ser un valor positivo.
2026-05-13 12:22:55,683 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?page_size=200: page_size debe estar entre 1 y 100.
2026-05-13 12:22:55,716 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 encontrados=0 insertados=5 omitidos(dup)=0
2026-05-13 12:22:55,716 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=fiel paquetes=1 encontrados=0 insertados=5 omitidos(dup)=0
2026-05-13 12:22:55,718 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 encontrados=0 insertados=3 omitidos(dup)=0
2026-05-13 12:22:55,719 - api_logger - WARNING - [Orchestrator] RFC XAXX010101000 sin credenciales: Sin credenciales
2026-05-13 12:22:55,720 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=2 encontrados=0 insertados=10 omitidos(dup)=0
2026-05-13 12:22:55,721 - api_logger - ERROR - [Orchestrator] Error en RFC=XAXX010101000: Error SAT
2026-05-13 12:22:55,727 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 esperando turno (semáforo)...
2026-05-13 12:22:55,727 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 iniciando sesión SAT
2026-05-13 12:22:55,727 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 sesión terminada — esperando 120s antes de la siguiente
2026-05-13 12:22:55,727 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=ciec paquetes=0 encontrados=0 insertados=0 omitidos(dup)=0
2026-05-13 12:22:55,747 - api_logger - ERROR - [CredentialsProvider] Error desencriptando FIEL desde DB: 
2026-05-13 12:22:55,749 - api_logger - ERROR - [CredentialsProvider] Error desencriptando CIEC desde DB: 
2026-05-13 12:22:55,753 - api_logger - ERROR - Error creating record: DB error
2026-05-13 12:22:55,755 - api_logger - ERROR - Error creating record: fail
2026-05-13 12:22:55,760 - api_logger - ERROR - Error getting all records: DB error
2026-05-13 12:22:55,763 - api_logger - ERROR - Error getting record by ID: DB error
2026-05-13 12:22:55,768 - api_logger - ERROR - Error updating record: DB error
2026-05-13 12:22:55,771 - api_logger - ERROR - Error deleting record: DB error
2026-05-13 12:22:55,777 - api_logger - ERROR - Error searching record: DB error
2026-05-13 12:22:55,877 - api_logger - ERROR - Error getting paginated records: DB error
2026-05-13 12:22:55,887 - api_logger - ERROR - Error inesperado en http://testserver/v1/export/export-file-csv?filename=test&schema=public&table=users: IO Error
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/export_file.py", line 22, in export_file
    file_path = exporter.main()
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: IO Error
2026-05-13 12:22:55,906 - api_logger - ERROR - Error inesperado en http://testserver/v1/export/export-file-xlsx?filename=test&schema=public&table=users: Write Error
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/export_file.py", line 40, in export_xlsx
    file_path = exporter.main()
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: Write Error
2026-05-13 12:22:55,911 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/create: El RFC ya está registrado.
2026-05-13 12:22:55,913 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/fiscalcustomer/create: No autorizado.
2026-05-13 12:22:55,917 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/update/999: RFC no encontrado.
2026-05-13 12:22:55,922 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/list/byid/999: RFC no encontrado.
2026-05-13 12:22:55,927 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/setselected/999: RFC no encontrado.
2026-05-13 12:22:55,931 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/getselected: Sin RFC seleccionado.
2026-05-13 12:22:55,935 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/savecerts: error al guardar certificados FIEL.
2026-05-13 12:22:55,942 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/saveciec: error al guardar contraseña CIEC.
2026-05-13 12:22:58,087 - api_logger - ERROR - [GetCFDIWebServices] Error crítico en execute: fallo crítico
2026-05-13 12:22:58,089 - api_logger - WARNING - [emitidos] Solicitud rechazada por el SAT: {'cod_estatus': '5002', 'id_solicitud': 'SOL-001'}
2026-05-13 12:22:58,097 - api_logger - INFO - [GetCFDIWebServices] Sin paquetes disponibles para emitidos
2026-05-13 12:22:58,098 - api_logger - ERROR - [GetCFDIWebServices] Error en _run_descarga [emitidos]: timeout
2026-05-13 12:22:58,099 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=1
2026-05-13 12:22:58,100 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=1
2026-05-13 12:22:58,101 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=2
2026-05-13 12:22:58,101 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=3
2026-05-13 12:22:58,102 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=4 intento=1
2026-05-13 12:22:58,103 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=5 intento=1
2026-05-13 12:22:58,103 - api_logger - INFO - [GetCFDIWebServices] Solicitud SOL-001 rechazada por SAT (estado=5): sin comprobantes disponibles en el período.
2026-05-13 12:22:58,111 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/licenses/info: Licencia no encontrada.
2026-05-13 12:22:58,113 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/licenses/info: Licencia suspendida.
2026-05-13 12:22:58,117 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/menu_options/get: Rol no encontrado.
2026-05-13 12:22:58,122 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/getall: Sin movimientos.
2026-05-13 12:22:58,125 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/get_selected_rfc: Sin RFC seleccionado.
2026-05-13 12:22:58,128 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/delete/999: Movimiento no encontrado.
2026-05-13 12:22:58,132 - api_logger - DEBUG - [DomainError] http://testserver/v1/movements_banks/upload/bbva: Formato de archivo inválido.
2026-05-13 12:22:58,136 - api_logger - DEBUG - [ConflictError] http://testserver/v1/payment/stripe/checkout: Suscripción activa.
2026-05-13 12:22:58,140 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/getsubscription: Sin suscripción activa.
2026-05-13 12:22:58,144 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/cancelsubscription/sub_INVALID: Suscripción no encontrada.
2026-05-13 12:22:58,148 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 12:22:58,148 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 12:22:58,148 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140115387580496'>
2026-05-13 12:22:58,149 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-05-13 12:22:58,149 - api_logger - INFO - [run_daily_download] Licencia 2 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140115387580496'>
2026-05-13 12:22:58,149 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-05-13 12:22:58,149 - api_logger - INFO - [run_daily_download] Licencia 3 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140115387580496'>
2026-05-13 12:22:58,150 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 12:22:58,150 - api_logger - INFO - [run_daily_download] Licencia 5 — jobs creados: [10, 11]
2026-05-13 12:22:58,150 - api_logger - INFO - [run_daily_download] Licencia 5 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140115387872800'>
2026-05-13 12:22:58,150 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 12:22:58,150 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 12:22:58,151 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140115860453232'>
2026-05-13 12:22:58,151 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 12:22:58,151 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 12:22:58,152 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140115860445504'>
2026-05-13 12:22:58,152 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 12:22:58,152 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 12:22:58,152 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140115387588560'>
2026-05-13 12:22:58,153 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-06 → 2026-05-12 retry_only=False
2026-05-13 12:22:58,153 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 12:22:58,153 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140115387585536'>
2026-05-13 12:22:58,154 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-12 → 2026-05-12 retry_only=True
2026-05-13 12:22:58,154 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs reintentados: [10]
2026-05-13 12:22:58,154 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs reintentados: [10]
2026-05-13 12:22:58,154 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs reintentados: [10]
2026-05-13 12:22:58,155 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 12:22:58,155 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 12:22:58,155 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140115387590240'>
2026-05-13 12:22:58,155 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-05-13 12:22:58,155 - api_logger - INFO - [run_daily_download] Licencia 2 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140115387590240'>
2026-05-13 12:22:58,155 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-05-13 12:22:58,155 - api_logger - INFO - [run_daily_download] Licencia 3 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140115387590240'>
2026-05-13 12:22:58,157 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 12:22:58,157 - api_logger - ERROR - [run_daily_download] Error en licencia 1: SAT no disponible
2026-05-13 12:22:58,157 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10]
2026-05-13 12:22:58,157 - api_logger - INFO - [run_daily_download] Licencia 2 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140115387584864'>
2026-05-13 12:22:58,157 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [11]
2026-05-13 12:22:58,157 - api_logger - INFO - [run_daily_download] Licencia 3 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140115387584864'>
2026-05-13 12:22:58,158 - api_logger - INFO - [run_daily_download] Iniciando — licencias=0 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 12:22:58,166 - api_logger - ERROR - Error creating record: 'NoneType' object has no attribute 'supports_population'
2026-05-13 12:22:58,190 - api_logger - WARNING - invoice.payment_succeeded sin customer_email, ignorando
2026-05-13 12:22:58,191 - api_logger - WARNING - invoice.payment_failed sin customer_email, ignorando
2026-05-13 12:22:58,191 - api_logger - WARNING - invoice.upcoming sin customer_email, ignorando
2026-05-13 12:22:58,195 - api_logger - WARNING - invoice.payment_action_required sin customer_email, ignorando
2026-05-13 12:22:58,195 - api_logger - WARNING - No se pudo obtener last4 para action_required: error
2026-05-13 12:22:58,203 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: test@example.com
2026-05-13 12:22:58,203 - api_logger - INFO - Pago fallido registrado | user: test@example.com | decline_code: card_declined | last4: 4242
2026-05-13 12:22:58,204 - api_logger - WARNING - Charge fallido: card_declined - None - email: None
2026-05-13 12:22:58,204 - api_logger - ERROR - charge.failed sin customer_email, no se puede registrar
2026-05-13 12:22:58,205 - api_logger - ERROR - PaymentIntent fallido | customer: cus_stripe123 | decline_code: card_declined | message: Your card was declined.
2026-05-13 12:22:58,209 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile: Usuario no encontrado.
2026-05-13 12:22:58,213 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile/update: Usuario no encontrado.
2026-05-13 12:22:58,217 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/users/subusers: No tienes permisos.
2026-05-13 12:22:58,221 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/detail?id=999: Subusuario no encontrado.
2026-05-13 12:22:58,226 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/delete?id_subuser=999: Subusuario no encontrado.
2026-05-13 12:22:58,230 - api_logger - DEBUG - [ConflictError] http://testserver/v1/users/subuser/create: El correo ya está registrado.
2026-05-13 12:22:58,238 - api_logger - ERROR - verify_email unexpected: Unexpected
2026-05-13 12:22:58,251 - api_logger - ERROR - verify_recovery unexpected: Unexpected
2026-05-13 12:22:58,260 - api_logger - ERROR - Error inesperado en http://testserver/v1/webservices/authenticate: Vault unreachable
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/webservices.py", line 80, in authenticate
    datas = clienthvac.secrets.kv.v2.read_secret_version(path=path_vault)['data']['data']
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: Vault unreachable
2026-05-13 12:22:58,269 - api_logger - DEBUG - [DomainError] http://testserver/v1/webservices/downloadrequest: El token debe tener más de 255 caracteres
2026-05-13 12:22:58,278 - api_logger - ERROR - Error inesperado en http://testserver/v1/webservices/verifydownloadrequest: Vault error
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/webservices.py", line 150, in verifydownloadrequest
    datas = clienthvac.secrets.kv.v2.read_secret_version(path=path_vault)['data']['data']
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: Vault error
2026-05-13 12:22:58,285 - api_logger - DEBUG - [DomainError] http://testserver/v1/webservices/downloadpackage: No se pudo descargar el paquete PKG-UUID-0001
2026-05-13 12:24:02,631 - api_logger - INFO - Router cargado: /catalogs
2026-05-13 12:24:02,634 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-13 12:24:02,635 - api_logger - INFO - Router cargado: /export
2026-05-13 12:24:02,635 - api_logger - INFO - Router cargado: /licenses
2026-05-13 12:24:02,635 - api_logger - INFO - Router cargado: /menu_options
2026-05-13 12:24:02,643 - api_logger - INFO - Router cargado: /movements_banks
2026-05-13 12:24:02,643 - api_logger - INFO - Router cargado: /payment
2026-05-13 12:24:02,644 - api_logger - INFO - Router cargado: /plans
2026-05-13 12:24:02,644 - api_logger - INFO - Router cargado: 
2026-05-13 12:24:02,646 - api_logger - INFO - Router cargado: /webservices
2026-05-13 12:24:02,647 - api_logger - INFO - Router cargado: /users
2026-05-13 12:24:02,649 - api_logger - INFO - Router cargado: /bankaccount
2026-05-13 12:24:02,653 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-13 12:24:02,654 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-13 12:24:02,655 - api_logger - INFO - Router cargado: /auth
2026-05-13 12:24:02,672 - api_logger - ERROR - Error creating record: 'NoneType' object has no attribute 'supports_population'
2026-05-13 12:35:49,733 - api_logger - INFO - Router cargado: /catalogs
2026-05-13 12:35:49,736 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-13 12:35:49,737 - api_logger - INFO - Router cargado: /export
2026-05-13 12:35:49,737 - api_logger - INFO - Router cargado: /licenses
2026-05-13 12:35:49,737 - api_logger - INFO - Router cargado: /menu_options
2026-05-13 12:35:49,744 - api_logger - INFO - Router cargado: /movements_banks
2026-05-13 12:35:49,745 - api_logger - INFO - Router cargado: /payment
2026-05-13 12:35:49,745 - api_logger - INFO - Router cargado: /plans
2026-05-13 12:35:49,746 - api_logger - INFO - Router cargado: 
2026-05-13 12:35:49,747 - api_logger - INFO - Router cargado: /webservices
2026-05-13 12:35:49,749 - api_logger - INFO - Router cargado: /users
2026-05-13 12:35:49,752 - api_logger - INFO - Router cargado: /bankaccount
2026-05-13 12:35:49,757 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-13 12:35:49,758 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-13 12:35:49,760 - api_logger - INFO - Router cargado: /auth
2026-05-13 12:35:49,988 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/login: Usuario no encontrado.
2026-05-13 12:35:49,990 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 4.
2026-05-13 12:35:49,992 - api_logger - DEBUG - [LockedError] http://testserver/v1/auth/login: Cuenta bloqueada.
2026-05-13 12:35:49,993 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/auth/login: Tu cuenta aún no ha sido verificada.
2026-05-13 12:35:49,995 - api_logger - DEBUG - [UnavailableForLegalReasonsError] http://testserver/v1/auth/login: Tu cuenta ha sido suspendida.
2026-05-13 12:35:49,998 - api_logger - DEBUG - [ConflictError] http://testserver/v1/auth/register: El correo electrónico nuevo@example.com ya está registrado.
2026-05-13 12:35:50,001 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/recovery/passwd: Cuenta no registrada.
2026-05-13 12:35:50,004 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/reset/passwd: El token para permitir el cambio de contraseña ha expirado.
2026-05-13 12:35:50,006 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/resend-verification?tkn=bad-token: Token no válido
2026-05-13 12:35:50,007 - api_logger - DEBUG - [TooManyRequestsError] http://testserver/v1/auth/resend-verification?tkn=any-token: Has superado el límite de intentos.
2026-05-13 12:35:50,014 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getall: Sin cuentas registradas.
2026-05-13 12:35:50,017 - api_logger - DEBUG - [ConflictError] http://testserver/v1/bankaccount/create: La cuenta ya existe.
2026-05-13 12:35:50,020 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getbyid/999: Cuenta no encontrada.
2026-05-13 12:35:50,023 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/update/999: Cuenta no encontrada.
2026-05-13 12:35:50,026 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/delete/999: Cuenta no encontrada.
2026-05-13 12:35:50,032 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?current_page=0: current_page debe ser un valor positivo.
2026-05-13 12:35:50,033 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?page_size=0: page_size debe estar entre 1 y 100.
2026-05-13 12:35:50,035 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?page_size=101: page_size debe estar entre 1 y 100.
2026-05-13 12:35:50,038 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/999: Registro no encontrado.
2026-05-13 12:35:50,045 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/update/999: Registro no encontrado.
2026-05-13 12:35:50,049 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/delete/999: Registro no encontrado.
2026-05-13 12:35:50,053 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/999: Registro no encontrado.
2026-05-13 12:35:50,062 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/create: El campo 'description' es requerido.
2026-05-13 12:35:50,068 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/delete/999: Registro no encontrado.
2026-05-13 12:35:50,073 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/getbyid/999: Registro no encontrado.
2026-05-13 12:35:50,077 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/create: El campo 'payment_method' es requerido.
2026-05-13 12:35:50,081 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/update/999: Registro no encontrado.
2026-05-13 12:35:50,083 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/update/1: El campo 'payment_method' es requerido.
2026-05-13 12:35:50,087 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/delete/999: Registro no encontrado.
2026-05-13 12:35:50,090 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?current_page=0: current_page debe ser un valor positivo.
2026-05-13 12:35:50,092 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?page_size=200: page_size debe estar entre 1 y 100.
2026-05-13 12:35:50,129 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 encontrados=0 insertados=5 omitidos(dup)=0
2026-05-13 12:35:50,129 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=fiel paquetes=1 encontrados=0 insertados=5 omitidos(dup)=0
2026-05-13 12:35:50,131 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 encontrados=0 insertados=3 omitidos(dup)=0
2026-05-13 12:35:50,132 - api_logger - WARNING - [Orchestrator] RFC XAXX010101000 sin credenciales: Sin credenciales
2026-05-13 12:35:50,133 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=2 encontrados=0 insertados=10 omitidos(dup)=0
2026-05-13 12:35:50,135 - api_logger - ERROR - [Orchestrator] Error en RFC=XAXX010101000: Error SAT
2026-05-13 12:35:50,140 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 esperando turno (semáforo)...
2026-05-13 12:35:50,140 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 iniciando sesión SAT
2026-05-13 12:35:50,140 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 sesión terminada — esperando 120s antes de la siguiente
2026-05-13 12:35:50,140 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=ciec paquetes=0 encontrados=0 insertados=0 omitidos(dup)=0
2026-05-13 12:35:50,162 - api_logger - ERROR - [CredentialsProvider] Error desencriptando FIEL desde DB: 
2026-05-13 12:35:50,165 - api_logger - ERROR - [CredentialsProvider] Error desencriptando CIEC desde DB: 
2026-05-13 12:35:50,169 - api_logger - ERROR - Error creating record: DB error
2026-05-13 12:35:50,172 - api_logger - ERROR - Error creating record: fail
2026-05-13 12:35:50,176 - api_logger - ERROR - Error getting all records: DB error
2026-05-13 12:35:50,181 - api_logger - ERROR - Error getting record by ID: DB error
2026-05-13 12:35:50,186 - api_logger - ERROR - Error updating record: DB error
2026-05-13 12:35:50,190 - api_logger - ERROR - Error deleting record: DB error
2026-05-13 12:35:50,196 - api_logger - ERROR - Error searching record: DB error
2026-05-13 12:35:50,295 - api_logger - ERROR - Error getting paginated records: DB error
2026-05-13 12:35:50,302 - api_logger - ERROR - Error inesperado en http://testserver/v1/export/export-file-csv?filename=test&schema=public&table=users: IO Error
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/export_file.py", line 22, in export_file
    file_path = exporter.main()
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: IO Error
2026-05-13 12:35:50,316 - api_logger - ERROR - Error inesperado en http://testserver/v1/export/export-file-xlsx?filename=test&schema=public&table=users: Write Error
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/export_file.py", line 40, in export_xlsx
    file_path = exporter.main()
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: Write Error
2026-05-13 12:35:50,321 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/create: El RFC ya está registrado.
2026-05-13 12:35:50,323 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/fiscalcustomer/create: No autorizado.
2026-05-13 12:35:50,328 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/update/999: RFC no encontrado.
2026-05-13 12:35:50,332 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/list/byid/999: RFC no encontrado.
2026-05-13 12:35:50,337 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/setselected/999: RFC no encontrado.
2026-05-13 12:35:50,340 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/getselected: Sin RFC seleccionado.
2026-05-13 12:35:50,345 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/savecerts: error al guardar certificados FIEL.
2026-05-13 12:35:50,351 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/saveciec: error al guardar contraseña CIEC.
2026-05-13 12:35:52,405 - api_logger - ERROR - [GetCFDIWebServices] Error crítico en execute: fallo crítico
2026-05-13 12:35:52,407 - api_logger - WARNING - [emitidos] Solicitud rechazada por el SAT: {'cod_estatus': '5002', 'id_solicitud': 'SOL-001'}
2026-05-13 12:35:52,408 - api_logger - INFO - [GetCFDIWebServices] Sin paquetes disponibles para emitidos
2026-05-13 12:35:52,410 - api_logger - ERROR - [GetCFDIWebServices] Error en _run_descarga [emitidos]: timeout
2026-05-13 12:35:52,411 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=1
2026-05-13 12:35:52,412 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=1
2026-05-13 12:35:52,412 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=2
2026-05-13 12:35:52,412 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=3
2026-05-13 12:35:52,413 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=4 intento=1
2026-05-13 12:35:52,415 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=5 intento=1
2026-05-13 12:35:52,415 - api_logger - INFO - [GetCFDIWebServices] Solicitud SOL-001 rechazada por SAT (estado=5): sin comprobantes disponibles en el período.
2026-05-13 12:35:52,421 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/licenses/info: Licencia no encontrada.
2026-05-13 12:35:52,422 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/licenses/info: Licencia suspendida.
2026-05-13 12:35:52,426 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/menu_options/get: Rol no encontrado.
2026-05-13 12:35:52,432 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/getall: Sin movimientos.
2026-05-13 12:35:52,435 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/get_selected_rfc: Sin RFC seleccionado.
2026-05-13 12:35:52,438 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/delete/999: Movimiento no encontrado.
2026-05-13 12:35:52,443 - api_logger - DEBUG - [DomainError] http://testserver/v1/movements_banks/upload/bbva: Formato de archivo inválido.
2026-05-13 12:35:52,448 - api_logger - DEBUG - [ConflictError] http://testserver/v1/payment/stripe/checkout: Suscripción activa.
2026-05-13 12:35:52,453 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/getsubscription: Sin suscripción activa.
2026-05-13 12:35:52,457 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/cancelsubscription/sub_INVALID: Suscripción no encontrada.
2026-05-13 12:35:52,462 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 12:35:52,462 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 12:35:52,462 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140144754746304'>
2026-05-13 12:35:52,462 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-05-13 12:35:52,462 - api_logger - INFO - [run_daily_download] Licencia 2 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140144754746304'>
2026-05-13 12:35:52,463 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-05-13 12:35:52,463 - api_logger - INFO - [run_daily_download] Licencia 3 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140144754746304'>
2026-05-13 12:35:52,463 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 12:35:52,464 - api_logger - INFO - [run_daily_download] Licencia 5 — jobs creados: [10, 11]
2026-05-13 12:35:52,464 - api_logger - INFO - [run_daily_download] Licencia 5 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140144754737568'>
2026-05-13 12:35:52,465 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 12:35:52,465 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 12:35:52,465 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140144754751008'>
2026-05-13 12:35:52,466 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 12:35:52,466 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 12:35:52,466 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140144754753024'>
2026-05-13 12:35:52,467 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 12:35:52,467 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 12:35:52,467 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140144754750336'>
2026-05-13 12:35:52,468 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-06 → 2026-05-12 retry_only=False
2026-05-13 12:35:52,468 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 12:35:52,468 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140144754742944'>
2026-05-13 12:35:52,469 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-12 → 2026-05-12 retry_only=True
2026-05-13 12:35:52,469 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs reintentados: [10]
2026-05-13 12:35:52,469 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs reintentados: [10]
2026-05-13 12:35:52,469 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs reintentados: [10]
2026-05-13 12:35:52,470 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 12:35:52,470 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 12:35:52,470 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140144754820496'>
2026-05-13 12:35:52,470 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-05-13 12:35:52,471 - api_logger - INFO - [run_daily_download] Licencia 2 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140144754820496'>
2026-05-13 12:35:52,471 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-05-13 12:35:52,471 - api_logger - INFO - [run_daily_download] Licencia 3 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140144754820496'>
2026-05-13 12:35:52,471 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 12:35:52,471 - api_logger - ERROR - [run_daily_download] Error en licencia 1: SAT no disponible
2026-05-13 12:35:52,471 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10]
2026-05-13 12:35:52,472 - api_logger - INFO - [run_daily_download] Licencia 2 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140144754750336'>
2026-05-13 12:35:52,472 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [11]
2026-05-13 12:35:52,472 - api_logger - INFO - [run_daily_download] Licencia 3 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140144754750336'>
2026-05-13 12:35:52,472 - api_logger - INFO - [run_daily_download] Iniciando — licencias=0 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 12:35:52,501 - api_logger - WARNING - invoice.payment_succeeded sin customer_email, ignorando
2026-05-13 12:35:52,503 - api_logger - WARNING - invoice.payment_failed sin customer_email, ignorando
2026-05-13 12:35:52,503 - api_logger - WARNING - invoice.upcoming sin customer_email, ignorando
2026-05-13 12:35:52,508 - api_logger - WARNING - invoice.payment_action_required sin customer_email, ignorando
2026-05-13 12:35:52,509 - api_logger - WARNING - No se pudo obtener last4 para action_required: error
2026-05-13 12:35:52,517 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: test@example.com
2026-05-13 12:35:52,518 - api_logger - INFO - Pago fallido registrado | user: test@example.com | decline_code: card_declined | last4: 4242
2026-05-13 12:35:52,518 - api_logger - WARNING - Charge fallido: card_declined - None - email: None
2026-05-13 12:35:52,518 - api_logger - ERROR - charge.failed sin customer_email, no se puede registrar
2026-05-13 12:35:52,519 - api_logger - ERROR - PaymentIntent fallido | customer: cus_stripe123 | decline_code: card_declined | message: Your card was declined.
2026-05-13 12:35:52,524 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile: Usuario no encontrado.
2026-05-13 12:35:52,528 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile/update: Usuario no encontrado.
2026-05-13 12:35:52,532 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/users/subusers: No tienes permisos.
2026-05-13 12:35:52,536 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/detail?id=999: Subusuario no encontrado.
2026-05-13 12:35:52,541 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/delete?id_subuser=999: Subusuario no encontrado.
2026-05-13 12:35:52,545 - api_logger - DEBUG - [ConflictError] http://testserver/v1/users/subuser/create: El correo ya está registrado.
2026-05-13 12:35:52,552 - api_logger - ERROR - verify_email unexpected: Unexpected
2026-05-13 12:35:52,568 - api_logger - ERROR - verify_recovery unexpected: Unexpected
2026-05-13 12:35:52,579 - api_logger - ERROR - Error inesperado en http://testserver/v1/webservices/authenticate: Vault unreachable
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/webservices.py", line 80, in authenticate
    datas = clienthvac.secrets.kv.v2.read_secret_version(path=path_vault)['data']['data']
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: Vault unreachable
2026-05-13 12:35:52,588 - api_logger - DEBUG - [DomainError] http://testserver/v1/webservices/downloadrequest: El token debe tener más de 255 caracteres
2026-05-13 12:35:52,597 - api_logger - ERROR - Error inesperado en http://testserver/v1/webservices/verifydownloadrequest: Vault error
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/webservices.py", line 150, in verifydownloadrequest
    datas = clienthvac.secrets.kv.v2.read_secret_version(path=path_vault)['data']['data']
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: Vault error
2026-05-13 12:35:52,605 - api_logger - DEBUG - [DomainError] http://testserver/v1/webservices/downloadpackage: No se pudo descargar el paquete PKG-UUID-0001
2026-05-13 12:37:07,976 - api_logger - INFO - Router cargado: /catalogs
2026-05-13 12:37:07,978 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-13 12:37:07,979 - api_logger - INFO - Router cargado: /export
2026-05-13 12:37:07,979 - api_logger - INFO - Router cargado: /licenses
2026-05-13 12:37:07,979 - api_logger - INFO - Router cargado: /menu_options
2026-05-13 12:37:07,986 - api_logger - INFO - Router cargado: /movements_banks
2026-05-13 12:37:07,987 - api_logger - INFO - Router cargado: /payment
2026-05-13 12:37:07,987 - api_logger - INFO - Router cargado: /plans
2026-05-13 12:37:07,988 - api_logger - INFO - Router cargado: 
2026-05-13 12:37:07,990 - api_logger - INFO - Router cargado: /webservices
2026-05-13 12:37:07,991 - api_logger - INFO - Router cargado: /users
2026-05-13 12:37:07,993 - api_logger - INFO - Router cargado: /bankaccount
2026-05-13 12:37:07,997 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-13 12:37:07,997 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-13 12:37:07,999 - api_logger - INFO - Router cargado: /auth
2026-05-13 12:44:01,952 - api_logger - INFO - Router cargado: /catalogs
2026-05-13 12:44:01,955 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-13 12:44:01,956 - api_logger - INFO - Router cargado: /export
2026-05-13 12:44:01,956 - api_logger - INFO - Router cargado: /licenses
2026-05-13 12:44:01,956 - api_logger - INFO - Router cargado: /menu_options
2026-05-13 12:44:01,964 - api_logger - INFO - Router cargado: /movements_banks
2026-05-13 12:44:01,964 - api_logger - INFO - Router cargado: /payment
2026-05-13 12:44:01,964 - api_logger - INFO - Router cargado: /plans
2026-05-13 12:44:01,965 - api_logger - INFO - Router cargado: 
2026-05-13 12:44:01,967 - api_logger - INFO - Router cargado: /webservices
2026-05-13 12:44:01,968 - api_logger - INFO - Router cargado: /users
2026-05-13 12:44:01,970 - api_logger - INFO - Router cargado: /bankaccount
2026-05-13 12:44:01,974 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-13 12:44:01,974 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-13 12:44:01,976 - api_logger - INFO - Router cargado: /auth
2026-05-13 12:44:02,068 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/login: Usuario no encontrado.
2026-05-13 12:44:02,070 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 4.
2026-05-13 12:44:02,071 - api_logger - DEBUG - [LockedError] http://testserver/v1/auth/login: Cuenta bloqueada.
2026-05-13 12:44:02,072 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/auth/login: Tu cuenta aún no ha sido verificada.
2026-05-13 12:44:02,074 - api_logger - DEBUG - [UnavailableForLegalReasonsError] http://testserver/v1/auth/login: Tu cuenta ha sido suspendida.
2026-05-13 12:44:02,077 - api_logger - DEBUG - [ConflictError] http://testserver/v1/auth/register: El correo electrónico nuevo@example.com ya está registrado.
2026-05-13 12:44:02,080 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/recovery/passwd: Cuenta no registrada.
2026-05-13 12:44:02,083 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/reset/passwd: El token para permitir el cambio de contraseña ha expirado.
2026-05-13 12:44:02,086 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/resend-verification?tkn=bad-token: Token no válido
2026-05-13 12:44:02,087 - api_logger - DEBUG - [TooManyRequestsError] http://testserver/v1/auth/resend-verification?tkn=any-token: Has superado el límite de intentos.
2026-05-13 12:44:02,094 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getall: Sin cuentas registradas.
2026-05-13 12:44:02,097 - api_logger - DEBUG - [ConflictError] http://testserver/v1/bankaccount/create: La cuenta ya existe.
2026-05-13 12:44:02,100 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getbyid/999: Cuenta no encontrada.
2026-05-13 12:44:02,103 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/update/999: Cuenta no encontrada.
2026-05-13 12:44:02,105 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/delete/999: Cuenta no encontrada.
2026-05-13 12:44:02,110 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?current_page=0: current_page debe ser un valor positivo.
2026-05-13 12:44:02,112 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?page_size=0: page_size debe estar entre 1 y 100.
2026-05-13 12:44:02,113 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?page_size=101: page_size debe estar entre 1 y 100.
2026-05-13 12:44:02,116 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/999: Registro no encontrado.
2026-05-13 12:44:02,124 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/update/999: Registro no encontrado.
2026-05-13 12:44:02,127 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/delete/999: Registro no encontrado.
2026-05-13 12:44:02,131 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/999: Registro no encontrado.
2026-05-13 12:44:02,134 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/create: El campo 'description' es requerido.
2026-05-13 12:44:02,139 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/delete/999: Registro no encontrado.
2026-05-13 12:44:02,143 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/getbyid/999: Registro no encontrado.
2026-05-13 12:44:02,146 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/create: El campo 'payment_method' es requerido.
2026-05-13 12:44:02,150 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/update/999: Registro no encontrado.
2026-05-13 12:44:02,151 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/update/1: El campo 'payment_method' es requerido.
2026-05-13 12:44:02,154 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/delete/999: Registro no encontrado.
2026-05-13 12:44:02,157 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?current_page=0: current_page debe ser un valor positivo.
2026-05-13 12:44:02,158 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?page_size=200: page_size debe estar entre 1 y 100.
2026-05-13 12:44:02,191 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 encontrados=0 insertados=5 omitidos(dup)=0
2026-05-13 12:44:02,191 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=fiel paquetes=1 encontrados=0 insertados=5 omitidos(dup)=0
2026-05-13 12:44:02,193 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 encontrados=0 insertados=3 omitidos(dup)=0
2026-05-13 12:44:02,194 - api_logger - WARNING - [Orchestrator] RFC XAXX010101000 sin credenciales: Sin credenciales
2026-05-13 12:44:02,195 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=2 encontrados=0 insertados=10 omitidos(dup)=0
2026-05-13 12:44:02,197 - api_logger - ERROR - [Orchestrator] Error en RFC=XAXX010101000: Error SAT
2026-05-13 12:44:02,202 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 esperando turno (semáforo)...
2026-05-13 12:44:02,202 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 iniciando sesión SAT
2026-05-13 12:44:02,202 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 sesión terminada — esperando 120s antes de la siguiente
2026-05-13 12:44:02,202 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=ciec paquetes=0 encontrados=0 insertados=0 omitidos(dup)=0
2026-05-13 12:44:02,225 - api_logger - ERROR - [CredentialsProvider] Error desencriptando FIEL desde DB: 
2026-05-13 12:44:02,227 - api_logger - ERROR - [CredentialsProvider] Error desencriptando CIEC desde DB: 
2026-05-13 12:44:02,231 - api_logger - ERROR - Error creating record: DB error
2026-05-13 12:44:02,233 - api_logger - ERROR - Error creating record: fail
2026-05-13 12:44:02,238 - api_logger - ERROR - Error getting all records: DB error
2026-05-13 12:44:02,241 - api_logger - ERROR - Error getting record by ID: DB error
2026-05-13 12:44:02,245 - api_logger - ERROR - Error updating record: DB error
2026-05-13 12:44:02,248 - api_logger - ERROR - Error deleting record: DB error
2026-05-13 12:44:02,254 - api_logger - ERROR - Error searching record: DB error
2026-05-13 12:44:02,353 - api_logger - ERROR - Error getting paginated records: DB error
2026-05-13 12:44:02,360 - api_logger - ERROR - Error inesperado en http://testserver/v1/export/export-file-csv?filename=test&schema=public&table=users: IO Error
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/export_file.py", line 22, in export_file
    file_path = exporter.main()
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: IO Error
2026-05-13 12:44:02,370 - api_logger - ERROR - Error inesperado en http://testserver/v1/export/export-file-xlsx?filename=test&schema=public&table=users: Write Error
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/export_file.py", line 40, in export_xlsx
    file_path = exporter.main()
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: Write Error
2026-05-13 12:44:02,374 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/create: El RFC ya está registrado.
2026-05-13 12:44:02,376 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/fiscalcustomer/create: No autorizado.
2026-05-13 12:44:02,381 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/update/999: RFC no encontrado.
2026-05-13 12:44:02,386 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/list/byid/999: RFC no encontrado.
2026-05-13 12:44:02,392 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/setselected/999: RFC no encontrado.
2026-05-13 12:44:02,395 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/getselected: Sin RFC seleccionado.
2026-05-13 12:44:02,399 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/savecerts: error al guardar certificados FIEL.
2026-05-13 12:44:02,405 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/saveciec: error al guardar contraseña CIEC.
2026-05-13 12:44:04,459 - api_logger - ERROR - [GetCFDIWebServices] Error crítico en execute: fallo crítico
2026-05-13 12:44:04,461 - api_logger - WARNING - [emitidos] Solicitud rechazada por el SAT: {'cod_estatus': '5002', 'id_solicitud': 'SOL-001'}
2026-05-13 12:44:04,462 - api_logger - INFO - [GetCFDIWebServices] Sin paquetes disponibles para emitidos
2026-05-13 12:44:04,463 - api_logger - ERROR - [GetCFDIWebServices] Error en _run_descarga [emitidos]: timeout
2026-05-13 12:44:04,464 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=1
2026-05-13 12:44:04,466 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=1
2026-05-13 12:44:04,466 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=2
2026-05-13 12:44:04,466 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=3
2026-05-13 12:44:04,467 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=4 intento=1
2026-05-13 12:44:04,468 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=5 intento=1
2026-05-13 12:44:04,468 - api_logger - INFO - [GetCFDIWebServices] Solicitud SOL-001 rechazada por SAT (estado=5): sin comprobantes disponibles en el período.
2026-05-13 12:44:04,475 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/licenses/info: Licencia no encontrada.
2026-05-13 12:44:04,477 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/licenses/info: Licencia suspendida.
2026-05-13 12:44:04,480 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/menu_options/get: Rol no encontrado.
2026-05-13 12:44:04,486 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/getall: Sin movimientos.
2026-05-13 12:44:04,489 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/get_selected_rfc: Sin RFC seleccionado.
2026-05-13 12:44:04,492 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/delete/999: Movimiento no encontrado.
2026-05-13 12:44:04,498 - api_logger - DEBUG - [DomainError] http://testserver/v1/movements_banks/upload/bbva: Formato de archivo inválido.
2026-05-13 12:44:04,501 - api_logger - DEBUG - [ConflictError] http://testserver/v1/payment/stripe/checkout: Suscripción activa.
2026-05-13 12:44:04,506 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/getsubscription: Sin suscripción activa.
2026-05-13 12:44:04,509 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/cancelsubscription/sub_INVALID: Suscripción no encontrada.
2026-05-13 12:44:04,514 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 12:44:04,514 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 12:44:04,514 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140419250906048'>
2026-05-13 12:44:04,514 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-05-13 12:44:04,514 - api_logger - INFO - [run_daily_download] Licencia 2 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140419250906048'>
2026-05-13 12:44:04,514 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-05-13 12:44:04,514 - api_logger - INFO - [run_daily_download] Licencia 3 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140419250906048'>
2026-05-13 12:44:04,515 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 12:44:04,515 - api_logger - INFO - [run_daily_download] Licencia 5 — jobs creados: [10, 11]
2026-05-13 12:44:04,515 - api_logger - INFO - [run_daily_download] Licencia 5 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140419250897312'>
2026-05-13 12:44:04,516 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 12:44:04,516 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 12:44:04,516 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140419250910752'>
2026-05-13 12:44:04,517 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 12:44:04,517 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 12:44:04,517 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140419250912768'>
2026-05-13 12:44:04,518 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 12:44:04,518 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 12:44:04,519 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140419250910080'>
2026-05-13 12:44:04,519 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-06 → 2026-05-12 retry_only=False
2026-05-13 12:44:04,519 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 12:44:04,520 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140419250902688'>
2026-05-13 12:44:04,520 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-12 → 2026-05-12 retry_only=True
2026-05-13 12:44:04,520 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs reintentados: [10]
2026-05-13 12:44:04,520 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs reintentados: [10]
2026-05-13 12:44:04,520 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs reintentados: [10]
2026-05-13 12:44:04,521 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 12:44:04,521 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 12:44:04,522 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140419251062160'>
2026-05-13 12:44:04,522 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-05-13 12:44:04,522 - api_logger - INFO - [run_daily_download] Licencia 2 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140419251062160'>
2026-05-13 12:44:04,522 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-05-13 12:44:04,522 - api_logger - INFO - [run_daily_download] Licencia 3 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140419251062160'>
2026-05-13 12:44:04,522 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 12:44:04,522 - api_logger - ERROR - [run_daily_download] Error en licencia 1: SAT no disponible
2026-05-13 12:44:04,523 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10]
2026-05-13 12:44:04,523 - api_logger - INFO - [run_daily_download] Licencia 2 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140419250910080'>
2026-05-13 12:44:04,523 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [11]
2026-05-13 12:44:04,523 - api_logger - INFO - [run_daily_download] Licencia 3 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='140419250910080'>
2026-05-13 12:44:04,523 - api_logger - INFO - [run_daily_download] Iniciando — licencias=0 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 12:44:04,550 - api_logger - WARNING - invoice.payment_succeeded sin customer_email, ignorando
2026-05-13 12:44:04,551 - api_logger - WARNING - invoice.payment_failed sin customer_email, ignorando
2026-05-13 12:44:04,552 - api_logger - WARNING - invoice.upcoming sin customer_email, ignorando
2026-05-13 12:44:04,557 - api_logger - WARNING - invoice.payment_action_required sin customer_email, ignorando
2026-05-13 12:44:04,558 - api_logger - WARNING - No se pudo obtener last4 para action_required: error
2026-05-13 12:44:04,565 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: test@example.com
2026-05-13 12:44:04,565 - api_logger - INFO - Pago fallido registrado | user: test@example.com | decline_code: card_declined | last4: 4242
2026-05-13 12:44:04,566 - api_logger - WARNING - Charge fallido: card_declined - None - email: None
2026-05-13 12:44:04,566 - api_logger - ERROR - charge.failed sin customer_email, no se puede registrar
2026-05-13 12:44:04,566 - api_logger - ERROR - PaymentIntent fallido | customer: cus_stripe123 | decline_code: card_declined | message: Your card was declined.
2026-05-13 12:44:04,571 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile: Usuario no encontrado.
2026-05-13 12:44:04,575 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile/update: Usuario no encontrado.
2026-05-13 12:44:04,578 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/users/subusers: No tienes permisos.
2026-05-13 12:44:04,581 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/detail?id=999: Subusuario no encontrado.
2026-05-13 12:44:04,586 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/delete?id_subuser=999: Subusuario no encontrado.
2026-05-13 12:44:04,590 - api_logger - DEBUG - [ConflictError] http://testserver/v1/users/subuser/create: El correo ya está registrado.
2026-05-13 12:44:04,597 - api_logger - ERROR - verify_email unexpected: Unexpected
2026-05-13 12:44:04,610 - api_logger - ERROR - verify_recovery unexpected: Unexpected
2026-05-13 12:44:04,619 - api_logger - ERROR - Error inesperado en http://testserver/v1/webservices/authenticate: Vault unreachable
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/webservices.py", line 80, in authenticate
    datas = clienthvac.secrets.kv.v2.read_secret_version(path=path_vault)['data']['data']
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: Vault unreachable
2026-05-13 12:44:04,628 - api_logger - DEBUG - [DomainError] http://testserver/v1/webservices/downloadrequest: El token debe tener más de 255 caracteres
2026-05-13 12:44:04,636 - api_logger - ERROR - Error inesperado en http://testserver/v1/webservices/verifydownloadrequest: Vault error
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/webservices.py", line 150, in verifydownloadrequest
    datas = clienthvac.secrets.kv.v2.read_secret_version(path=path_vault)['data']['data']
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: Vault error
2026-05-13 12:44:04,643 - api_logger - DEBUG - [DomainError] http://testserver/v1/webservices/downloadpackage: No se pudo descargar el paquete PKG-UUID-0001
2026-05-13 14:18:49,896 - api_logger - INFO - Router cargado: /catalogs
2026-05-13 14:18:49,900 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-13 14:18:49,901 - api_logger - INFO - Router cargado: /export
2026-05-13 14:18:49,901 - api_logger - INFO - Router cargado: /licenses
2026-05-13 14:18:49,901 - api_logger - INFO - Router cargado: /menu_options
2026-05-13 14:18:49,908 - api_logger - INFO - Router cargado: /movements_banks
2026-05-13 14:18:49,909 - api_logger - INFO - Router cargado: /payment
2026-05-13 14:18:49,909 - api_logger - INFO - Router cargado: /plans
2026-05-13 14:18:49,910 - api_logger - INFO - Router cargado: 
2026-05-13 14:18:49,912 - api_logger - INFO - Router cargado: /webservices
2026-05-13 14:18:49,913 - api_logger - INFO - Router cargado: /users
2026-05-13 14:18:49,915 - api_logger - INFO - Router cargado: /bankaccount
2026-05-13 14:18:49,919 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-13 14:18:49,919 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-13 14:18:49,921 - api_logger - INFO - Router cargado: /auth
2026-05-13 14:18:50,116 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/login: Usuario no encontrado.
2026-05-13 14:18:50,118 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 4.
2026-05-13 14:18:50,119 - api_logger - DEBUG - [LockedError] http://testserver/v1/auth/login: Cuenta bloqueada.
2026-05-13 14:18:50,120 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/auth/login: Tu cuenta aún no ha sido verificada.
2026-05-13 14:18:50,122 - api_logger - DEBUG - [UnavailableForLegalReasonsError] http://testserver/v1/auth/login: Tu cuenta ha sido suspendida.
2026-05-13 14:18:50,125 - api_logger - DEBUG - [ConflictError] http://testserver/v1/auth/register: El correo electrónico nuevo@example.com ya está registrado.
2026-05-13 14:18:50,128 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/recovery/passwd: Cuenta no registrada.
2026-05-13 14:18:50,131 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/auth/reset/passwd: El token para permitir el cambio de contraseña ha expirado.
2026-05-13 14:18:50,133 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/auth/resend-verification?tkn=bad-token: Token no válido
2026-05-13 14:18:50,135 - api_logger - DEBUG - [TooManyRequestsError] http://testserver/v1/auth/resend-verification?tkn=any-token: Has superado el límite de intentos.
2026-05-13 14:18:50,141 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getall: Sin cuentas registradas.
2026-05-13 14:18:50,144 - api_logger - DEBUG - [ConflictError] http://testserver/v1/bankaccount/create: La cuenta ya existe.
2026-05-13 14:18:50,147 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/getbyid/999: Cuenta no encontrada.
2026-05-13 14:18:50,150 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/update/999: Cuenta no encontrada.
2026-05-13 14:18:50,153 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/bankaccount/delete/999: Cuenta no encontrada.
2026-05-13 14:18:50,158 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?current_page=0: current_page debe ser un valor positivo.
2026-05-13 14:18:50,159 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?page_size=0: page_size debe estar entre 1 y 100.
2026-05-13 14:18:50,161 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?page_size=101: page_size debe estar entre 1 y 100.
2026-05-13 14:18:50,164 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/999: Registro no encontrado.
2026-05-13 14:18:50,168 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/create: Error al insertar.
2026-05-13 14:18:50,171 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/update/999: Registro no encontrado.
2026-05-13 14:18:50,174 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/delete/999: Registro no encontrado.
2026-05-13 14:18:50,179 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/999: Registro no encontrado.
2026-05-13 14:18:50,182 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/create: El campo 'description' es requerido.
2026-05-13 14:18:50,187 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/delete/999: Registro no encontrado.
2026-05-13 14:18:50,191 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/getbyid/999: Registro no encontrado.
2026-05-13 14:18:50,194 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/create: El campo 'payment_method' es requerido.
2026-05-13 14:18:50,197 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/update/999: Registro no encontrado.
2026-05-13 14:18:50,199 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/update/1: El campo 'payment_method' es requerido.
2026-05-13 14:18:50,201 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/delete/999: Registro no encontrado.
2026-05-13 14:18:50,204 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?current_page=0: current_page debe ser un valor positivo.
2026-05-13 14:18:50,206 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogsloadables/demandables?page_size=200: page_size debe estar entre 1 y 100.
2026-05-13 14:18:50,236 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 encontrados=0 insertados=5 omitidos(dup)=0
2026-05-13 14:18:50,236 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=fiel paquetes=1 encontrados=0 insertados=5 omitidos(dup)=0
2026-05-13 14:18:50,238 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=1 encontrados=0 insertados=3 omitidos(dup)=0
2026-05-13 14:18:50,239 - api_logger - WARNING - [Orchestrator] RFC XAXX010101000 sin credenciales: Sin credenciales
2026-05-13 14:18:50,240 - api_logger - INFO - [Orchestrator] RFC=XAXX010101000 método=fiel paquetes=2 encontrados=0 insertados=10 omitidos(dup)=0
2026-05-13 14:18:50,242 - api_logger - ERROR - [Orchestrator] Error en RFC=XAXX010101000: Error SAT
2026-05-13 14:18:50,247 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 esperando turno (semáforo)...
2026-05-13 14:18:50,247 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 iniciando sesión SAT
2026-05-13 14:18:50,247 - api_logger - INFO - [Orchestrator/CIEC] RFC=YYYYYY010101000 sesión terminada — esperando 120s antes de la siguiente
2026-05-13 14:18:50,248 - api_logger - INFO - [Orchestrator] RFC=YYYYYY010101000 método=ciec paquetes=0 encontrados=0 insertados=0 omitidos(dup)=0
2026-05-13 14:18:50,266 - api_logger - ERROR - [CredentialsProvider] Error desencriptando FIEL desde DB: 
2026-05-13 14:18:50,268 - api_logger - ERROR - [CredentialsProvider] Error desencriptando CIEC desde DB: 
2026-05-13 14:18:50,272 - api_logger - ERROR - Error creating record: DB error
2026-05-13 14:18:50,274 - api_logger - ERROR - Error creating record: fail
2026-05-13 14:18:50,279 - api_logger - ERROR - Error getting all records: DB error
2026-05-13 14:18:50,282 - api_logger - ERROR - Error getting record by ID: DB error
2026-05-13 14:18:50,286 - api_logger - ERROR - Error updating record: DB error
2026-05-13 14:18:50,289 - api_logger - ERROR - Error deleting record: DB error
2026-05-13 14:18:50,296 - api_logger - ERROR - Error searching record: DB error
2026-05-13 14:18:50,384 - api_logger - ERROR - Error getting paginated records: DB error
2026-05-13 14:18:50,391 - api_logger - ERROR - Error inesperado en http://testserver/v1/export/export-file-csv?filename=test&schema=public&table=users: IO Error
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/export_file.py", line 22, in export_file
    file_path = exporter.main()
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: IO Error
2026-05-13 14:18:50,401 - api_logger - ERROR - Error inesperado en http://testserver/v1/export/export-file-xlsx?filename=test&schema=public&table=users: Write Error
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/export_file.py", line 40, in export_xlsx
    file_path = exporter.main()
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: Write Error
2026-05-13 14:18:50,405 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/create: El RFC ya está registrado.
2026-05-13 14:18:50,407 - api_logger - DEBUG - [UnauthorizedError] http://testserver/v1/fiscalcustomer/create: No autorizado.
2026-05-13 14:18:50,412 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/update/999: RFC no encontrado.
2026-05-13 14:18:50,416 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/list/byid/999: RFC no encontrado.
2026-05-13 14:18:50,421 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/setselected/999: RFC no encontrado.
2026-05-13 14:18:50,424 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/fiscalcustomer/getselected: Sin RFC seleccionado.
2026-05-13 14:18:50,429 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/savecerts: error al guardar certificados FIEL.
2026-05-13 14:18:50,435 - api_logger - DEBUG - [ConflictError] http://testserver/v1/fiscalcustomer/saveciec: error al guardar contraseña CIEC.
2026-05-13 14:18:52,485 - api_logger - ERROR - [GetCFDIWebServices] Error crítico en execute: fallo crítico
2026-05-13 14:18:52,487 - api_logger - WARNING - [emitidos] Solicitud rechazada por el SAT: {'cod_estatus': '5002', 'id_solicitud': 'SOL-001'}
2026-05-13 14:18:52,488 - api_logger - INFO - [GetCFDIWebServices] Sin paquetes disponibles para emitidos
2026-05-13 14:18:52,489 - api_logger - ERROR - [GetCFDIWebServices] Error en _run_descarga [emitidos]: timeout
2026-05-13 14:18:52,491 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=1
2026-05-13 14:18:52,492 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=1
2026-05-13 14:18:52,492 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=2 intento=2
2026-05-13 14:18:52,492 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=3 intento=3
2026-05-13 14:18:52,493 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=4 intento=1
2026-05-13 14:18:52,496 - api_logger - INFO - [GetCFDIWebServices] Verificación solicitud=SOL-001 estado=5 intento=1
2026-05-13 14:18:52,496 - api_logger - INFO - [GetCFDIWebServices] Solicitud SOL-001 rechazada por SAT (estado=5): sin comprobantes disponibles en el período.
2026-05-13 14:18:52,507 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/licenses/info: Licencia no encontrada.
2026-05-13 14:18:52,509 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/licenses/info: Licencia suspendida.
2026-05-13 14:18:52,512 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/menu_options/get: Rol no encontrado.
2026-05-13 14:18:52,517 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/getall: Sin movimientos.
2026-05-13 14:18:52,520 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/get_selected_rfc: Sin RFC seleccionado.
2026-05-13 14:18:52,524 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/movements_banks/delete/999: Movimiento no encontrado.
2026-05-13 14:18:52,528 - api_logger - DEBUG - [DomainError] http://testserver/v1/movements_banks/upload/bbva: Formato de archivo inválido.
2026-05-13 14:18:52,531 - api_logger - DEBUG - [ConflictError] http://testserver/v1/payment/stripe/checkout: Suscripción activa.
2026-05-13 14:18:52,536 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/getsubscription: Sin suscripción activa.
2026-05-13 14:18:52,539 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/payment/stripe/cancelsubscription/sub_INVALID: Suscripción no encontrada.
2026-05-13 14:18:52,543 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 14:18:52,544 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 14:18:52,544 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139850510191312'>
2026-05-13 14:18:52,544 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-05-13 14:18:52,544 - api_logger - INFO - [run_daily_download] Licencia 2 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139850510191312'>
2026-05-13 14:18:52,544 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-05-13 14:18:52,544 - api_logger - INFO - [run_daily_download] Licencia 3 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139850510191312'>
2026-05-13 14:18:52,545 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 14:18:52,545 - api_logger - INFO - [run_daily_download] Licencia 5 — jobs creados: [10, 11]
2026-05-13 14:18:52,545 - api_logger - INFO - [run_daily_download] Licencia 5 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139850510201056'>
2026-05-13 14:18:52,546 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 14:18:52,546 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 14:18:52,546 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139850509961600'>
2026-05-13 14:18:52,547 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 14:18:52,547 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 14:18:52,547 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139850510203408'>
2026-05-13 14:18:52,548 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 14:18:52,548 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 14:18:52,548 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139850509971680'>
2026-05-13 14:18:52,549 - api_logger - INFO - [run_daily_download] Iniciando — licencias=1 rango=2026-05-06 → 2026-05-12 retry_only=False
2026-05-13 14:18:52,549 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 14:18:52,549 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139850510196016'>
2026-05-13 14:18:52,550 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-12 → 2026-05-12 retry_only=True
2026-05-13 14:18:52,550 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs reintentados: [10]
2026-05-13 14:18:52,550 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs reintentados: [10]
2026-05-13 14:18:52,550 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs reintentados: [10]
2026-05-13 14:18:52,551 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 14:18:52,551 - api_logger - INFO - [run_daily_download] Licencia 1 — jobs creados: [10, 11]
2026-05-13 14:18:52,552 - api_logger - INFO - [run_daily_download] Licencia 1 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139850509964288'>
2026-05-13 14:18:52,552 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10, 11]
2026-05-13 14:18:52,552 - api_logger - INFO - [run_daily_download] Licencia 2 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139850509964288'>
2026-05-13 14:18:52,552 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [10, 11]
2026-05-13 14:18:52,552 - api_logger - INFO - [run_daily_download] Licencia 3 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139850509964288'>
2026-05-13 14:18:52,552 - api_logger - INFO - [run_daily_download] Iniciando — licencias=3 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 14:18:52,552 - api_logger - ERROR - [run_daily_download] Error en licencia 1: SAT no disponible
2026-05-13 14:18:52,553 - api_logger - INFO - [run_daily_download] Licencia 2 — jobs creados: [10]
2026-05-13 14:18:52,553 - api_logger - INFO - [run_daily_download] Licencia 2 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139850509959920'>
2026-05-13 14:18:52,553 - api_logger - INFO - [run_daily_download] Licencia 3 — jobs creados: [11]
2026-05-13 14:18:52,553 - api_logger - INFO - [run_daily_download] Licencia 3 — folios recuperados: <MagicMock name='mock().recuperar_folios_ciec()' id='139850509959920'>
2026-05-13 14:18:52,553 - api_logger - INFO - [run_daily_download] Iniciando — licencias=0 rango=2026-05-12 → 2026-05-12 retry_only=False
2026-05-13 14:18:52,582 - api_logger - WARNING - invoice.payment_succeeded sin customer_email, ignorando
2026-05-13 14:18:52,583 - api_logger - WARNING - invoice.payment_failed sin customer_email, ignorando
2026-05-13 14:18:52,584 - api_logger - WARNING - invoice.upcoming sin customer_email, ignorando
2026-05-13 14:18:52,588 - api_logger - WARNING - invoice.payment_action_required sin customer_email, ignorando
2026-05-13 14:18:52,589 - api_logger - WARNING - No se pudo obtener last4 para action_required: error
2026-05-13 14:18:52,596 - api_logger - WARNING - Charge fallido: card_declined - Your card was declined. - email: test@example.com
2026-05-13 14:18:52,597 - api_logger - INFO - Pago fallido registrado | user: test@example.com | decline_code: card_declined | last4: 4242
2026-05-13 14:18:52,597 - api_logger - WARNING - Charge fallido: card_declined - None - email: None
2026-05-13 14:18:52,597 - api_logger - ERROR - charge.failed sin customer_email, no se puede registrar
2026-05-13 14:18:52,598 - api_logger - ERROR - PaymentIntent fallido | customer: cus_stripe123 | decline_code: card_declined | message: Your card was declined.
2026-05-13 14:18:52,603 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile: Usuario no encontrado.
2026-05-13 14:18:52,607 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/profile/update: Usuario no encontrado.
2026-05-13 14:18:52,610 - api_logger - DEBUG - [ForbiddenError] http://testserver/v1/users/subusers: No tienes permisos.
2026-05-13 14:18:52,616 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/detail?id=999: Subusuario no encontrado.
2026-05-13 14:18:52,621 - api_logger - DEBUG - [NotFoundError] http://testserver/v1/users/subuser/delete?id_subuser=999: Subusuario no encontrado.
2026-05-13 14:18:52,625 - api_logger - DEBUG - [ConflictError] http://testserver/v1/users/subuser/create: El correo ya está registrado.
2026-05-13 14:18:52,632 - api_logger - ERROR - verify_email unexpected: Unexpected
2026-05-13 14:18:52,645 - api_logger - ERROR - verify_recovery unexpected: Unexpected
2026-05-13 14:18:52,655 - api_logger - ERROR - Error inesperado en http://testserver/v1/webservices/authenticate: Vault unreachable
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/webservices.py", line 80, in authenticate
    datas = clienthvac.secrets.kv.v2.read_secret_version(path=path_vault)['data']['data']
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: Vault unreachable
2026-05-13 14:18:52,664 - api_logger - DEBUG - [DomainError] http://testserver/v1/webservices/downloadrequest: El token debe tener más de 255 caracteres
2026-05-13 14:18:52,672 - api_logger - ERROR - Error inesperado en http://testserver/v1/webservices/verifydownloadrequest: Vault error
Traceback (most recent call last):
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 87, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 130, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 116, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 670, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/Documentos/geniubs/sat/app/api/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 324, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/Documentos/geniubs/sat/app/api/app/api/v1/webservices.py", line 150, in verifydownloadrequest
    datas = clienthvac.secrets.kv.v2.read_secret_version(path=path_vault)['data']['data']
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1169, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1173, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
Exception: Vault error
2026-05-13 14:18:52,679 - api_logger - DEBUG - [DomainError] http://testserver/v1/webservices/downloadpackage: No se pudo descargar el paquete PKG-UUID-0001
2026-05-13 15:49:31,774 - api_logger - INFO - Router cargado: /catalogs
2026-05-13 15:49:31,777 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-13 15:49:31,778 - api_logger - INFO - Router cargado: /export
2026-05-13 15:49:31,778 - api_logger - INFO - Router cargado: /licenses
2026-05-13 15:49:31,778 - api_logger - INFO - Router cargado: /menu_options
2026-05-13 15:49:31,786 - api_logger - INFO - Router cargado: /movements_banks
2026-05-13 15:49:31,786 - api_logger - INFO - Router cargado: /payment
2026-05-13 15:49:31,786 - api_logger - INFO - Router cargado: /plans
2026-05-13 15:49:31,787 - api_logger - INFO - Router cargado: 
2026-05-13 15:49:31,789 - api_logger - INFO - Router cargado: /webservices
2026-05-13 15:49:31,790 - api_logger - INFO - Router cargado: /users
2026-05-13 15:49:31,792 - api_logger - INFO - Router cargado: /bankaccount
2026-05-13 15:49:31,796 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-13 15:49:31,796 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-13 15:49:31,798 - api_logger - INFO - Router cargado: /auth
2026-05-13 15:49:31,928 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?current_page=0: current_page debe ser un valor positivo.
2026-05-13 15:49:31,929 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?page_size=0: page_size debe estar entre 1 y 100.
2026-05-13 15:49:31,931 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?page_size=101: page_size debe estar entre 1 y 100.
2026-05-13 15:49:31,934 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/999: Registro no encontrado.
2026-05-13 15:49:31,939 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/create: Error al insertar.
2026-05-13 15:49:31,942 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/update/999: Registro no encontrado.
2026-05-13 15:49:31,945 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/delete/999: Registro no encontrado.
2026-05-13 15:49:31,949 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/999: Registro no encontrado.
2026-05-13 15:49:31,952 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/create: El campo 'description' es requerido.
2026-05-13 15:49:31,957 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/delete/999: Registro no encontrado.
2026-05-13 15:49:31,961 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/getbyid/999: Registro no encontrado.
2026-05-13 15:49:31,964 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/create: El campo 'payment_method' es requerido.
2026-05-13 15:49:31,967 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/update/999: Registro no encontrado.
2026-05-13 15:49:31,969 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/update/1: El campo 'payment_method' es requerido.
2026-05-13 15:49:31,972 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/delete/999: Registro no encontrado.
2026-05-13 20:55:53,511 - api_logger - INFO - Router cargado: /catalogs
2026-05-13 20:55:53,514 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-13 20:55:53,515 - api_logger - INFO - Router cargado: /export
2026-05-13 20:55:53,515 - api_logger - INFO - Router cargado: /licenses
2026-05-13 20:55:53,516 - api_logger - INFO - Router cargado: /menu_options
2026-05-13 20:55:53,523 - api_logger - INFO - Router cargado: /movements_banks
2026-05-13 20:55:53,524 - api_logger - INFO - Router cargado: /payment
2026-05-13 20:55:53,524 - api_logger - INFO - Router cargado: /plans
2026-05-13 20:55:53,525 - api_logger - INFO - Router cargado: 
2026-05-13 20:55:53,526 - api_logger - INFO - Router cargado: /webservices
2026-05-13 20:55:53,528 - api_logger - INFO - Router cargado: /users
2026-05-13 20:55:53,530 - api_logger - INFO - Router cargado: /bankaccount
2026-05-13 20:55:53,533 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-13 20:55:53,534 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-13 20:55:53,535 - api_logger - INFO - Router cargado: /auth
2026-05-13 20:55:54,473 - api_logger - INFO - Router cargado: /catalogs
2026-05-13 20:55:54,475 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-13 20:55:54,476 - api_logger - INFO - Router cargado: /export
2026-05-13 20:55:54,476 - api_logger - INFO - Router cargado: /licenses
2026-05-13 20:55:54,476 - api_logger - INFO - Router cargado: /menu_options
2026-05-13 20:55:54,483 - api_logger - INFO - Router cargado: /movements_banks
2026-05-13 20:55:54,484 - api_logger - INFO - Router cargado: /payment
2026-05-13 20:55:54,484 - api_logger - INFO - Router cargado: /plans
2026-05-13 20:55:54,485 - api_logger - INFO - Router cargado: 
2026-05-13 20:55:54,487 - api_logger - INFO - Router cargado: /webservices
2026-05-13 20:55:54,488 - api_logger - INFO - Router cargado: /users
2026-05-13 20:55:54,490 - api_logger - INFO - Router cargado: /bankaccount
2026-05-13 20:55:54,493 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-13 20:55:54,494 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-13 20:55:54,496 - api_logger - INFO - Router cargado: /auth
2026-05-13 20:55:54,551 - api_logger - INFO - Router cargado: /catalogs
2026-05-13 20:55:54,553 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-13 20:55:54,554 - api_logger - INFO - Router cargado: /export
2026-05-13 20:55:54,554 - api_logger - INFO - Router cargado: /licenses
2026-05-13 20:55:54,555 - api_logger - INFO - Router cargado: /menu_options
2026-05-13 20:55:54,561 - api_logger - INFO - Router cargado: /movements_banks
2026-05-13 20:55:54,562 - api_logger - INFO - Router cargado: /payment
2026-05-13 20:55:54,562 - api_logger - INFO - Router cargado: /plans
2026-05-13 20:55:54,563 - api_logger - INFO - Router cargado: 
2026-05-13 20:55:54,564 - api_logger - INFO - Router cargado: /webservices
2026-05-13 20:55:54,565 - api_logger - INFO - Router cargado: /users
2026-05-13 20:55:54,567 - api_logger - INFO - Router cargado: /bankaccount
2026-05-13 20:55:54,570 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-13 20:55:54,570 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-13 20:55:54,572 - api_logger - INFO - Router cargado: /auth
2026-05-13 20:56:44,580 - api_logger - WARNING - error en usuario batcaver7@gmail.com :: Credenciales incorrectas, numero de intentos restantes: 2.
2026-05-13 20:56:44,580 - api_logger - DEBUG - [UnauthorizedError] http://localhost:8000/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 2.
2026-05-13 20:56:57,360 - api_logger - WARNING - error en usuario batcaver7@gmail.com :: Credenciales incorrectas, numero de intentos restantes: 1.
2026-05-13 20:56:57,361 - api_logger - DEBUG - [UnauthorizedError] http://localhost:8000/v1/auth/login: Credenciales incorrectas, numero de intentos restantes: 1.
2026-05-13 20:58:16,946 - api_logger - ERROR - Error getting paginated records: (psycopg2.errors.UndefinedColumn) column demandables.dates_of_firts_publication does not exist
LINE 1: ...les.supposed AS cfdi_system_demandables_supposed, cfdi_syste...
                                                             ^
HINT:  Perhaps you meant to reference the column "demandables.dates_of_first_publication".

[SQL: SELECT cfdi_system.demandables.rfc AS cfdi_system_demandables_rfc, cfdi_system.demandables.company_name AS cfdi_system_demandables_company_name, cfdi_system.demandables.type_person AS cfdi_system_demandables_type_person, cfdi_system.demandables.supposed AS cfdi_system_demandables_supposed, cfdi_system.demandables.dates_of_firts_publication AS cfdi_system_demandables_dates_of_firts_publication, cfdi_system.demandables.federal_entity AS cfdi_system_demandables_federal_entity 
FROM cfdi_system.demandables 
 LIMIT %(param_1)s OFFSET %(param_2)s]
[parameters: {'param_1': 100, 'param_2': 0}]
(Background on this error at: https://sqlalche.me/e/20/f405)
2026-05-13 20:58:17,948 - api_logger - ERROR - Error getting paginated records: (psycopg2.errors.UndefinedColumn) column demandables.dates_of_firts_publication does not exist
LINE 1: ...les.supposed AS cfdi_system_demandables_supposed, cfdi_syste...
                                                             ^
HINT:  Perhaps you meant to reference the column "demandables.dates_of_first_publication".

[SQL: SELECT cfdi_system.demandables.rfc AS cfdi_system_demandables_rfc, cfdi_system.demandables.company_name AS cfdi_system_demandables_company_name, cfdi_system.demandables.type_person AS cfdi_system_demandables_type_person, cfdi_system.demandables.supposed AS cfdi_system_demandables_supposed, cfdi_system.demandables.dates_of_firts_publication AS cfdi_system_demandables_dates_of_firts_publication, cfdi_system.demandables.federal_entity AS cfdi_system_demandables_federal_entity 
FROM cfdi_system.demandables 
 LIMIT %(param_1)s OFFSET %(param_2)s]
[parameters: {'param_1': 100, 'param_2': 0}]
(Background on this error at: https://sqlalche.me/e/20/f405)
2026-05-13 20:58:20,292 - api_logger - ERROR - Error getting paginated records: (psycopg2.errors.UndefinedColumn) column firms.dates_of_firts_publication does not exist
LINE 1: ...tem.firms.supposed AS cfdi_system_firms_supposed, cfdi_syste...
                                                             ^
HINT:  Perhaps you meant to reference the column "firms.date_of_first_publication".

[SQL: SELECT cfdi_system.firms.rfc AS cfdi_system_firms_rfc, cfdi_system.firms.company_name AS cfdi_system_firms_company_name, cfdi_system.firms.type_person AS cfdi_system_firms_type_person, cfdi_system.firms.supposed AS cfdi_system_firms_supposed, cfdi_system.firms.dates_of_firts_publication AS cfdi_system_firms_dates_of_firts_publication, cfdi_system.firms.federal_entity AS cfdi_system_firms_federal_entity 
FROM cfdi_system.firms 
 LIMIT %(param_1)s OFFSET %(param_2)s]
[parameters: {'param_1': 100, 'param_2': 0}]
(Background on this error at: https://sqlalche.me/e/20/f405)
2026-05-13 20:58:23,525 - api_logger - ERROR - Error getting paginated records: (psycopg2.errors.UndefinedColumn) column firms.dates_of_firts_publication does not exist
LINE 1: ...tem.firms.supposed AS cfdi_system_firms_supposed, cfdi_syste...
                                                             ^
HINT:  Perhaps you meant to reference the column "firms.date_of_first_publication".

[SQL: SELECT cfdi_system.firms.rfc AS cfdi_system_firms_rfc, cfdi_system.firms.company_name AS cfdi_system_firms_company_name, cfdi_system.firms.type_person AS cfdi_system_firms_type_person, cfdi_system.firms.supposed AS cfdi_system_firms_supposed, cfdi_system.firms.dates_of_firts_publication AS cfdi_system_firms_dates_of_firts_publication, cfdi_system.firms.federal_entity AS cfdi_system_firms_federal_entity 
FROM cfdi_system.firms 
 LIMIT %(param_1)s OFFSET %(param_2)s]
[parameters: {'param_1': 100, 'param_2': 0}]
(Background on this error at: https://sqlalche.me/e/20/f405)
2026-05-13 21:00:20,826 - api_logger - INFO - Router cargado: /catalogs
2026-05-13 21:00:20,828 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-13 21:00:20,829 - api_logger - INFO - Router cargado: /export
2026-05-13 21:00:20,829 - api_logger - INFO - Router cargado: /licenses
2026-05-13 21:00:20,830 - api_logger - INFO - Router cargado: /menu_options
2026-05-13 21:00:20,837 - api_logger - INFO - Router cargado: /movements_banks
2026-05-13 21:00:20,838 - api_logger - INFO - Router cargado: /payment
2026-05-13 21:00:20,838 - api_logger - INFO - Router cargado: /plans
2026-05-13 21:00:20,839 - api_logger - INFO - Router cargado: 
2026-05-13 21:00:20,841 - api_logger - INFO - Router cargado: /webservices
2026-05-13 21:00:20,842 - api_logger - INFO - Router cargado: /users
2026-05-13 21:00:20,844 - api_logger - INFO - Router cargado: /bankaccount
2026-05-13 21:00:20,848 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-13 21:00:20,848 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-13 21:00:20,850 - api_logger - INFO - Router cargado: /auth
2026-05-13 21:00:20,920 - api_logger - INFO - Router cargado: /catalogs
2026-05-13 21:00:20,922 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-13 21:00:20,923 - api_logger - INFO - Router cargado: /export
2026-05-13 21:00:20,923 - api_logger - INFO - Router cargado: /licenses
2026-05-13 21:00:20,923 - api_logger - INFO - Router cargado: /menu_options
2026-05-13 21:00:20,930 - api_logger - INFO - Router cargado: /movements_banks
2026-05-13 21:00:20,930 - api_logger - INFO - Router cargado: /payment
2026-05-13 21:00:20,931 - api_logger - INFO - Router cargado: /plans
2026-05-13 21:00:20,931 - api_logger - INFO - Router cargado: 
2026-05-13 21:00:20,933 - api_logger - INFO - Router cargado: /webservices
2026-05-13 21:00:20,934 - api_logger - INFO - Router cargado: /users
2026-05-13 21:00:20,935 - api_logger - INFO - Router cargado: /bankaccount
2026-05-13 21:00:20,938 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-13 21:00:20,939 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-13 21:00:20,940 - api_logger - INFO - Router cargado: /auth
2026-05-13 21:00:22,943 - api_logger - INFO - Router cargado: /catalogs
2026-05-13 21:00:22,945 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-13 21:00:22,946 - api_logger - INFO - Router cargado: /export
2026-05-13 21:00:22,946 - api_logger - INFO - Router cargado: /licenses
2026-05-13 21:00:22,947 - api_logger - INFO - Router cargado: /menu_options
2026-05-13 21:00:22,954 - api_logger - INFO - Router cargado: /movements_banks
2026-05-13 21:00:22,955 - api_logger - INFO - Router cargado: /payment
2026-05-13 21:00:22,955 - api_logger - INFO - Router cargado: /plans
2026-05-13 21:00:22,956 - api_logger - INFO - Router cargado: 
2026-05-13 21:00:22,957 - api_logger - INFO - Router cargado: /webservices
2026-05-13 21:00:22,959 - api_logger - INFO - Router cargado: /users
2026-05-13 21:00:22,961 - api_logger - INFO - Router cargado: /bankaccount
2026-05-13 21:00:22,964 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-13 21:00:22,965 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-13 21:00:22,966 - api_logger - INFO - Router cargado: /auth
2026-05-13 21:00:23,013 - api_logger - INFO - Router cargado: /catalogs
2026-05-13 21:00:23,015 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-13 21:00:23,016 - api_logger - INFO - Router cargado: /export
2026-05-13 21:00:23,016 - api_logger - INFO - Router cargado: /licenses
2026-05-13 21:00:23,016 - api_logger - INFO - Router cargado: /menu_options
2026-05-13 21:00:23,024 - api_logger - INFO - Router cargado: /movements_banks
2026-05-13 21:00:23,024 - api_logger - INFO - Router cargado: /payment
2026-05-13 21:00:23,024 - api_logger - INFO - Router cargado: /plans
2026-05-13 21:00:23,025 - api_logger - INFO - Router cargado: 
2026-05-13 21:00:23,026 - api_logger - INFO - Router cargado: /webservices
2026-05-13 21:00:23,028 - api_logger - INFO - Router cargado: /users
2026-05-13 21:00:23,029 - api_logger - INFO - Router cargado: /bankaccount
2026-05-13 21:00:23,032 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-13 21:00:23,033 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-13 21:00:23,034 - api_logger - INFO - Router cargado: /auth
2026-05-13 21:00:26,821 - api_logger - INFO - Router cargado: /catalogs
2026-05-13 21:00:26,824 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-13 21:00:26,825 - api_logger - INFO - Router cargado: /export
2026-05-13 21:00:26,825 - api_logger - INFO - Router cargado: /licenses
2026-05-13 21:00:26,825 - api_logger - INFO - Router cargado: /menu_options
2026-05-13 21:00:26,832 - api_logger - INFO - Router cargado: /movements_banks
2026-05-13 21:00:26,833 - api_logger - INFO - Router cargado: /payment
2026-05-13 21:00:26,833 - api_logger - INFO - Router cargado: /plans
2026-05-13 21:00:26,834 - api_logger - INFO - Router cargado: 
2026-05-13 21:00:26,835 - api_logger - INFO - Router cargado: /webservices
2026-05-13 21:00:26,837 - api_logger - INFO - Router cargado: /users
2026-05-13 21:00:26,839 - api_logger - INFO - Router cargado: /bankaccount
2026-05-13 21:00:26,842 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-13 21:00:26,843 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-13 21:00:26,844 - api_logger - INFO - Router cargado: /auth
2026-05-13 21:00:26,890 - api_logger - INFO - Router cargado: /catalogs
2026-05-13 21:00:26,893 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-13 21:00:26,893 - api_logger - INFO - Router cargado: /export
2026-05-13 21:00:26,894 - api_logger - INFO - Router cargado: /licenses
2026-05-13 21:00:26,894 - api_logger - INFO - Router cargado: /menu_options
2026-05-13 21:00:26,901 - api_logger - INFO - Router cargado: /movements_banks
2026-05-13 21:00:26,901 - api_logger - INFO - Router cargado: /payment
2026-05-13 21:00:26,901 - api_logger - INFO - Router cargado: /plans
2026-05-13 21:00:26,902 - api_logger - INFO - Router cargado: 
2026-05-13 21:00:26,903 - api_logger - INFO - Router cargado: /webservices
2026-05-13 21:00:26,905 - api_logger - INFO - Router cargado: /users
2026-05-13 21:00:26,906 - api_logger - INFO - Router cargado: /bankaccount
2026-05-13 21:00:26,909 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-13 21:00:26,910 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-13 21:00:26,911 - api_logger - INFO - Router cargado: /auth
2026-05-13 21:00:30,279 - api_logger - INFO - Router cargado: /catalogs
2026-05-13 21:00:30,282 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-13 21:00:30,283 - api_logger - INFO - Router cargado: /export
2026-05-13 21:00:30,283 - api_logger - INFO - Router cargado: /licenses
2026-05-13 21:00:30,283 - api_logger - INFO - Router cargado: /menu_options
2026-05-13 21:00:30,291 - api_logger - INFO - Router cargado: /movements_banks
2026-05-13 21:00:30,292 - api_logger - INFO - Router cargado: /payment
2026-05-13 21:00:30,292 - api_logger - INFO - Router cargado: /plans
2026-05-13 21:00:30,293 - api_logger - INFO - Router cargado: 
2026-05-13 21:00:30,295 - api_logger - INFO - Router cargado: /webservices
2026-05-13 21:00:30,297 - api_logger - INFO - Router cargado: /users
2026-05-13 21:00:30,299 - api_logger - INFO - Router cargado: /bankaccount
2026-05-13 21:00:30,302 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-13 21:00:30,303 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-13 21:00:30,305 - api_logger - INFO - Router cargado: /auth
2026-05-13 21:00:30,357 - api_logger - INFO - Router cargado: /catalogs
2026-05-13 21:00:30,360 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-13 21:00:30,361 - api_logger - INFO - Router cargado: /export
2026-05-13 21:00:30,361 - api_logger - INFO - Router cargado: /licenses
2026-05-13 21:00:30,361 - api_logger - INFO - Router cargado: /menu_options
2026-05-13 21:00:30,370 - api_logger - INFO - Router cargado: /movements_banks
2026-05-13 21:00:30,370 - api_logger - INFO - Router cargado: /payment
2026-05-13 21:00:30,370 - api_logger - INFO - Router cargado: /plans
2026-05-13 21:00:30,371 - api_logger - INFO - Router cargado: 
2026-05-13 21:00:30,373 - api_logger - INFO - Router cargado: /webservices
2026-05-13 21:00:30,374 - api_logger - INFO - Router cargado: /users
2026-05-13 21:00:30,376 - api_logger - INFO - Router cargado: /bankaccount
2026-05-13 21:00:30,380 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-13 21:00:30,381 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-13 21:00:30,382 - api_logger - INFO - Router cargado: /auth
2026-05-13 21:00:35,893 - api_logger - INFO - Router cargado: /catalogs
2026-05-13 21:00:35,907 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-13 21:00:35,908 - api_logger - INFO - Router cargado: /export
2026-05-13 21:00:35,908 - api_logger - INFO - Router cargado: /licenses
2026-05-13 21:00:35,908 - api_logger - INFO - Router cargado: /menu_options
2026-05-13 21:00:35,917 - api_logger - INFO - Router cargado: /movements_banks
2026-05-13 21:00:35,917 - api_logger - INFO - Router cargado: /payment
2026-05-13 21:00:35,918 - api_logger - INFO - Router cargado: /plans
2026-05-13 21:00:35,919 - api_logger - INFO - Router cargado: 
2026-05-13 21:00:35,920 - api_logger - INFO - Router cargado: /webservices
2026-05-13 21:00:35,922 - api_logger - INFO - Router cargado: /users
2026-05-13 21:00:35,924 - api_logger - INFO - Router cargado: /bankaccount
2026-05-13 21:00:35,928 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-13 21:00:35,929 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-13 21:00:35,930 - api_logger - INFO - Router cargado: /auth
2026-05-13 21:00:36,124 - api_logger - INFO - Router cargado: /catalogs
2026-05-13 21:00:36,126 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-13 21:00:36,127 - api_logger - INFO - Router cargado: /export
2026-05-13 21:00:36,127 - api_logger - INFO - Router cargado: /licenses
2026-05-13 21:00:36,127 - api_logger - INFO - Router cargado: /menu_options
2026-05-13 21:00:36,135 - api_logger - INFO - Router cargado: /movements_banks
2026-05-13 21:00:36,136 - api_logger - INFO - Router cargado: /payment
2026-05-13 21:00:36,136 - api_logger - INFO - Router cargado: /plans
2026-05-13 21:00:36,137 - api_logger - INFO - Router cargado: 
2026-05-13 21:00:36,138 - api_logger - INFO - Router cargado: /webservices
2026-05-13 21:00:36,140 - api_logger - INFO - Router cargado: /users
2026-05-13 21:00:36,141 - api_logger - INFO - Router cargado: /bankaccount
2026-05-13 21:00:36,144 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-13 21:00:36,145 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-13 21:00:36,146 - api_logger - INFO - Router cargado: /auth
2026-05-14 01:05:23,982 - api_logger - INFO - Router cargado: /catalogs
2026-05-14 01:05:23,993 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-14 01:05:23,994 - api_logger - INFO - Router cargado: /export
2026-05-14 01:05:23,994 - api_logger - INFO - Router cargado: /licenses
2026-05-14 01:05:23,994 - api_logger - INFO - Router cargado: /menu_options
2026-05-14 01:05:24,002 - api_logger - INFO - Router cargado: /movements_banks
2026-05-14 01:05:24,003 - api_logger - INFO - Router cargado: /payment
2026-05-14 01:05:24,003 - api_logger - INFO - Router cargado: /plans
2026-05-14 01:05:24,004 - api_logger - INFO - Router cargado: 
2026-05-14 01:05:24,005 - api_logger - INFO - Router cargado: /webservices
2026-05-14 01:05:24,007 - api_logger - INFO - Router cargado: /users
2026-05-14 01:05:24,009 - api_logger - INFO - Router cargado: /bankaccount
2026-05-14 01:05:24,012 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-14 01:05:24,013 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-14 01:05:24,015 - api_logger - INFO - Router cargado: /auth
2026-05-14 01:05:24,160 - api_logger - INFO - Router cargado: /catalogs
2026-05-14 01:05:24,162 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-14 01:05:24,163 - api_logger - INFO - Router cargado: /export
2026-05-14 01:05:24,163 - api_logger - INFO - Router cargado: /licenses
2026-05-14 01:05:24,163 - api_logger - INFO - Router cargado: /menu_options
2026-05-14 01:05:24,170 - api_logger - INFO - Router cargado: /movements_banks
2026-05-14 01:05:24,171 - api_logger - INFO - Router cargado: /payment
2026-05-14 01:05:24,171 - api_logger - INFO - Router cargado: /plans
2026-05-14 01:05:24,172 - api_logger - INFO - Router cargado: 
2026-05-14 01:05:24,173 - api_logger - INFO - Router cargado: /webservices
2026-05-14 01:05:24,175 - api_logger - INFO - Router cargado: /users
2026-05-14 01:05:24,176 - api_logger - INFO - Router cargado: /bankaccount
2026-05-14 01:05:24,180 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-14 01:05:24,180 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-14 01:05:24,181 - api_logger - INFO - Router cargado: /auth
2026-05-14 01:05:51,128 - api_logger - INFO - Router cargado: /catalogs
2026-05-14 01:05:51,130 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-14 01:05:51,131 - api_logger - INFO - Router cargado: /export
2026-05-14 01:05:51,131 - api_logger - INFO - Router cargado: /licenses
2026-05-14 01:05:51,132 - api_logger - INFO - Router cargado: /menu_options
2026-05-14 01:05:51,139 - api_logger - INFO - Router cargado: /movements_banks
2026-05-14 01:05:51,140 - api_logger - INFO - Router cargado: /payment
2026-05-14 01:05:51,140 - api_logger - INFO - Router cargado: /plans
2026-05-14 01:05:51,141 - api_logger - INFO - Router cargado: 
2026-05-14 01:05:51,142 - api_logger - INFO - Router cargado: /webservices
2026-05-14 01:05:51,144 - api_logger - INFO - Router cargado: /users
2026-05-14 01:05:51,146 - api_logger - INFO - Router cargado: /bankaccount
2026-05-14 01:05:51,149 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-14 01:05:51,150 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-14 01:05:51,151 - api_logger - INFO - Router cargado: /auth
2026-05-14 01:05:51,205 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?current_page=0: current_page debe ser un valor positivo.
2026-05-14 01:05:51,207 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?page_size=0: page_size debe estar entre 1 y 100.
2026-05-14 01:05:51,208 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/getall?page_size=101: page_size debe estar entre 1 y 100.
2026-05-14 01:05:51,211 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/999: Registro no encontrado.
2026-05-14 01:05:51,216 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/create: Error al insertar.
2026-05-14 01:05:51,219 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/update/999: Registro no encontrado.
2026-05-14 01:05:51,222 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/claveprodserv/delete/999: Registro no encontrado.
2026-05-14 01:05:51,226 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/999: Registro no encontrado.
2026-05-14 01:05:51,229 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/create: El campo 'description' es requerido.
2026-05-14 01:05:51,234 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/exportacion/delete/999: Registro no encontrado.
2026-05-14 01:05:51,238 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/getbyid/999: Registro no encontrado.
2026-05-14 01:05:51,241 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/create: El campo 'payment_method' es requerido.
2026-05-14 01:05:51,244 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/update/999: Registro no encontrado.
2026-05-14 01:05:51,246 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/update/1: El campo 'payment_method' es requerido.
2026-05-14 01:05:51,249 - api_logger - DEBUG - [DomainError] http://testserver/v1/catalogs/formapago/delete/999: Registro no encontrado.
2026-05-14 01:07:14,205 - api_logger - INFO - Router cargado: /catalogs
2026-05-14 01:07:14,208 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-14 01:07:14,209 - api_logger - INFO - Router cargado: /export
2026-05-14 01:07:14,209 - api_logger - INFO - Router cargado: /licenses
2026-05-14 01:07:14,209 - api_logger - INFO - Router cargado: /menu_options
2026-05-14 01:07:14,217 - api_logger - INFO - Router cargado: /movements_banks
2026-05-14 01:07:14,218 - api_logger - INFO - Router cargado: /payment
2026-05-14 01:07:14,218 - api_logger - INFO - Router cargado: /plans
2026-05-14 01:07:14,219 - api_logger - INFO - Router cargado: 
2026-05-14 01:07:14,220 - api_logger - INFO - Router cargado: /webservices
2026-05-14 01:07:14,222 - api_logger - INFO - Router cargado: /users
2026-05-14 01:07:14,224 - api_logger - INFO - Router cargado: /bankaccount
2026-05-14 01:07:14,227 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-14 01:07:14,228 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-14 01:07:14,229 - api_logger - INFO - Router cargado: /auth
2026-05-14 01:07:15,066 - api_logger - INFO - Router cargado: /catalogs
2026-05-14 01:07:15,068 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-14 01:07:15,069 - api_logger - INFO - Router cargado: /export
2026-05-14 01:07:15,069 - api_logger - INFO - Router cargado: /licenses
2026-05-14 01:07:15,070 - api_logger - INFO - Router cargado: /menu_options
2026-05-14 01:07:15,077 - api_logger - INFO - Router cargado: /movements_banks
2026-05-14 01:07:15,078 - api_logger - INFO - Router cargado: /payment
2026-05-14 01:07:15,078 - api_logger - INFO - Router cargado: /plans
2026-05-14 01:07:15,079 - api_logger - INFO - Router cargado: 
2026-05-14 01:07:15,080 - api_logger - INFO - Router cargado: /webservices
2026-05-14 01:07:15,081 - api_logger - INFO - Router cargado: /users
2026-05-14 01:07:15,083 - api_logger - INFO - Router cargado: /bankaccount
2026-05-14 01:07:15,087 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-14 01:07:15,088 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-14 01:07:15,089 - api_logger - INFO - Router cargado: /auth
2026-05-14 01:07:15,133 - api_logger - INFO - Router cargado: /catalogs
2026-05-14 01:07:15,136 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-14 01:07:15,137 - api_logger - INFO - Router cargado: /export
2026-05-14 01:07:15,137 - api_logger - INFO - Router cargado: /licenses
2026-05-14 01:07:15,137 - api_logger - INFO - Router cargado: /menu_options
2026-05-14 01:07:15,144 - api_logger - INFO - Router cargado: /movements_banks
2026-05-14 01:07:15,144 - api_logger - INFO - Router cargado: /payment
2026-05-14 01:07:15,144 - api_logger - INFO - Router cargado: /plans
2026-05-14 01:07:15,145 - api_logger - INFO - Router cargado: 
2026-05-14 01:07:15,147 - api_logger - INFO - Router cargado: /webservices
2026-05-14 01:07:15,148 - api_logger - INFO - Router cargado: /users
2026-05-14 01:07:15,150 - api_logger - INFO - Router cargado: /bankaccount
2026-05-14 01:07:15,153 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-14 01:07:15,153 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-14 01:07:15,154 - api_logger - INFO - Router cargado: /auth
2026-05-14 01:16:31,742 - api_logger - INFO - Router cargado: /catalogs
2026-05-14 01:16:31,745 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-14 01:16:31,746 - api_logger - INFO - Router cargado: /export
2026-05-14 01:16:31,746 - api_logger - INFO - Router cargado: /licenses
2026-05-14 01:16:31,746 - api_logger - INFO - Router cargado: /menu_options
2026-05-14 01:16:31,753 - api_logger - INFO - Router cargado: /movements_banks
2026-05-14 01:16:31,754 - api_logger - INFO - Router cargado: /payment
2026-05-14 01:16:31,754 - api_logger - INFO - Router cargado: /plans
2026-05-14 01:16:31,755 - api_logger - INFO - Router cargado: 
2026-05-14 01:16:31,756 - api_logger - INFO - Router cargado: /webservices
2026-05-14 01:16:31,758 - api_logger - INFO - Router cargado: /users
2026-05-14 01:16:31,760 - api_logger - INFO - Router cargado: /bankaccount
2026-05-14 01:16:31,763 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-14 01:16:31,764 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-14 01:16:31,765 - api_logger - INFO - Router cargado: /auth
2026-05-14 01:16:32,599 - api_logger - INFO - Router cargado: /catalogs
2026-05-14 01:16:32,601 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-14 01:16:32,602 - api_logger - INFO - Router cargado: /export
2026-05-14 01:16:32,603 - api_logger - INFO - Router cargado: /licenses
2026-05-14 01:16:32,603 - api_logger - INFO - Router cargado: /menu_options
2026-05-14 01:16:32,610 - api_logger - INFO - Router cargado: /movements_banks
2026-05-14 01:16:32,611 - api_logger - INFO - Router cargado: /payment
2026-05-14 01:16:32,611 - api_logger - INFO - Router cargado: /plans
2026-05-14 01:16:32,612 - api_logger - INFO - Router cargado: 
2026-05-14 01:16:32,613 - api_logger - INFO - Router cargado: /webservices
2026-05-14 01:16:32,615 - api_logger - INFO - Router cargado: /users
2026-05-14 01:16:32,617 - api_logger - INFO - Router cargado: /bankaccount
2026-05-14 01:16:32,621 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-14 01:16:32,621 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-14 01:16:32,623 - api_logger - INFO - Router cargado: /auth
2026-05-14 01:16:32,668 - api_logger - INFO - Router cargado: /catalogs
2026-05-14 01:16:32,670 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-14 01:16:32,671 - api_logger - INFO - Router cargado: /export
2026-05-14 01:16:32,671 - api_logger - INFO - Router cargado: /licenses
2026-05-14 01:16:32,671 - api_logger - INFO - Router cargado: /menu_options
2026-05-14 01:16:32,678 - api_logger - INFO - Router cargado: /movements_banks
2026-05-14 01:16:32,679 - api_logger - INFO - Router cargado: /payment
2026-05-14 01:16:32,679 - api_logger - INFO - Router cargado: /plans
2026-05-14 01:16:32,680 - api_logger - INFO - Router cargado: 
2026-05-14 01:16:32,681 - api_logger - INFO - Router cargado: /webservices
2026-05-14 01:16:32,682 - api_logger - INFO - Router cargado: /users
2026-05-14 01:16:32,684 - api_logger - INFO - Router cargado: /bankaccount
2026-05-14 01:16:32,687 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-14 01:16:32,688 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-14 01:16:32,689 - api_logger - INFO - Router cargado: /auth
2026-05-21 10:55:48,489 - api_logger - INFO - Router cargado: /catalogs
2026-05-21 10:55:48,492 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-21 10:55:48,494 - api_logger - INFO - Router cargado: /export
2026-05-21 10:55:48,494 - api_logger - INFO - Router cargado: /licenses
2026-05-21 10:55:48,494 - api_logger - INFO - Router cargado: /menu_options
2026-05-21 10:55:48,503 - api_logger - INFO - Router cargado: /movements_banks
2026-05-21 10:55:48,504 - api_logger - INFO - Router cargado: /payment
2026-05-21 10:55:48,504 - api_logger - INFO - Router cargado: /plans
2026-05-21 10:55:48,505 - api_logger - INFO - Router cargado: 
2026-05-21 10:55:48,507 - api_logger - INFO - Router cargado: /webservices
2026-05-21 10:55:48,509 - api_logger - INFO - Router cargado: /users
2026-05-21 10:55:48,511 - api_logger - INFO - Router cargado: /bankaccount
2026-05-21 10:55:48,515 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-21 10:55:48,516 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-21 10:55:48,518 - api_logger - INFO - Router cargado: /auth
2026-05-21 10:55:49,411 - api_logger - INFO - Router cargado: /catalogs
2026-05-21 10:55:49,413 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-21 10:55:49,414 - api_logger - INFO - Router cargado: /export
2026-05-21 10:55:49,414 - api_logger - INFO - Router cargado: /licenses
2026-05-21 10:55:49,415 - api_logger - INFO - Router cargado: /menu_options
2026-05-21 10:55:49,422 - api_logger - INFO - Router cargado: /movements_banks
2026-05-21 10:55:49,423 - api_logger - INFO - Router cargado: /payment
2026-05-21 10:55:49,423 - api_logger - INFO - Router cargado: /plans
2026-05-21 10:55:49,424 - api_logger - INFO - Router cargado: 
2026-05-21 10:55:49,425 - api_logger - INFO - Router cargado: /webservices
2026-05-21 10:55:49,427 - api_logger - INFO - Router cargado: /users
2026-05-21 10:55:49,429 - api_logger - INFO - Router cargado: /bankaccount
2026-05-21 10:55:49,432 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-21 10:55:49,433 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-21 10:55:49,434 - api_logger - INFO - Router cargado: /auth
2026-05-21 10:55:49,488 - api_logger - INFO - Router cargado: /catalogs
2026-05-21 10:55:49,491 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-21 10:55:49,491 - api_logger - INFO - Router cargado: /export
2026-05-21 10:55:49,492 - api_logger - INFO - Router cargado: /licenses
2026-05-21 10:55:49,492 - api_logger - INFO - Router cargado: /menu_options
2026-05-21 10:55:49,499 - api_logger - INFO - Router cargado: /movements_banks
2026-05-21 10:55:49,499 - api_logger - INFO - Router cargado: /payment
2026-05-21 10:55:49,499 - api_logger - INFO - Router cargado: /plans
2026-05-21 10:55:49,500 - api_logger - INFO - Router cargado: 
2026-05-21 10:55:49,501 - api_logger - INFO - Router cargado: /webservices
2026-05-21 10:55:49,503 - api_logger - INFO - Router cargado: /users
2026-05-21 10:55:49,504 - api_logger - INFO - Router cargado: /bankaccount
2026-05-21 10:55:49,507 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-21 10:55:49,508 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-21 10:55:49,509 - api_logger - INFO - Router cargado: /auth
2026-05-21 11:08:53,613 - api_logger - INFO - Router cargado: /catalogs
2026-05-21 11:08:53,615 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-21 11:08:53,616 - api_logger - INFO - Router cargado: /export
2026-05-21 11:08:53,617 - api_logger - INFO - Router cargado: /licenses
2026-05-21 11:08:53,617 - api_logger - INFO - Router cargado: /menu_options
2026-05-21 11:08:53,624 - api_logger - INFO - Router cargado: /movements_banks
2026-05-21 11:08:53,625 - api_logger - INFO - Router cargado: /payment
2026-05-21 11:08:53,625 - api_logger - INFO - Router cargado: /plans
2026-05-21 11:08:53,626 - api_logger - INFO - Router cargado: 
2026-05-21 11:08:53,627 - api_logger - INFO - Router cargado: /webservices
2026-05-21 11:08:53,629 - api_logger - INFO - Router cargado: /users
2026-05-21 11:08:53,631 - api_logger - INFO - Router cargado: /bankaccount
2026-05-21 11:08:53,635 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-21 11:08:53,636 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-21 11:08:53,637 - api_logger - INFO - Router cargado: /auth
2026-05-21 11:08:53,688 - api_logger - INFO - Router cargado: /catalogs
2026-05-21 11:08:53,691 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-21 11:08:53,691 - api_logger - INFO - Router cargado: /export
2026-05-21 11:08:53,692 - api_logger - INFO - Router cargado: /licenses
2026-05-21 11:08:53,692 - api_logger - INFO - Router cargado: /menu_options
2026-05-21 11:08:53,699 - api_logger - INFO - Router cargado: /movements_banks
2026-05-21 11:08:53,699 - api_logger - INFO - Router cargado: /payment
2026-05-21 11:08:53,699 - api_logger - INFO - Router cargado: /plans
2026-05-21 11:08:53,700 - api_logger - INFO - Router cargado: 
2026-05-21 11:08:53,701 - api_logger - INFO - Router cargado: /webservices
2026-05-21 11:08:53,702 - api_logger - INFO - Router cargado: /users
2026-05-21 11:08:53,705 - api_logger - INFO - Router cargado: /bankaccount
2026-05-21 11:08:53,708 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-21 11:08:53,708 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-21 11:08:53,709 - api_logger - INFO - Router cargado: /auth
2026-05-21 11:08:59,682 - api_logger - INFO - Router cargado: /catalogs
2026-05-21 11:08:59,685 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-21 11:08:59,686 - api_logger - INFO - Router cargado: /export
2026-05-21 11:08:59,686 - api_logger - INFO - Router cargado: /licenses
2026-05-21 11:08:59,686 - api_logger - INFO - Router cargado: /menu_options
2026-05-21 11:08:59,694 - api_logger - INFO - Router cargado: /movements_banks
2026-05-21 11:08:59,695 - api_logger - INFO - Router cargado: /payment
2026-05-21 11:08:59,695 - api_logger - INFO - Router cargado: /plans
2026-05-21 11:08:59,696 - api_logger - INFO - Router cargado: 
2026-05-21 11:08:59,697 - api_logger - INFO - Router cargado: /webservices
2026-05-21 11:08:59,699 - api_logger - INFO - Router cargado: /users
2026-05-21 11:08:59,701 - api_logger - INFO - Router cargado: /bankaccount
2026-05-21 11:08:59,704 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-21 11:08:59,705 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-21 11:08:59,706 - api_logger - INFO - Router cargado: /auth
2026-05-21 11:08:59,754 - api_logger - INFO - Router cargado: /catalogs
2026-05-21 11:08:59,756 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-21 11:08:59,757 - api_logger - INFO - Router cargado: /export
2026-05-21 11:08:59,757 - api_logger - INFO - Router cargado: /licenses
2026-05-21 11:08:59,757 - api_logger - INFO - Router cargado: /menu_options
2026-05-21 11:08:59,765 - api_logger - INFO - Router cargado: /movements_banks
2026-05-21 11:08:59,765 - api_logger - INFO - Router cargado: /payment
2026-05-21 11:08:59,765 - api_logger - INFO - Router cargado: /plans
2026-05-21 11:08:59,766 - api_logger - INFO - Router cargado: 
2026-05-21 11:08:59,767 - api_logger - INFO - Router cargado: /webservices
2026-05-21 11:08:59,769 - api_logger - INFO - Router cargado: /users
2026-05-21 11:08:59,770 - api_logger - INFO - Router cargado: /bankaccount
2026-05-21 11:08:59,773 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-21 11:08:59,774 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-21 11:08:59,775 - api_logger - INFO - Router cargado: /auth
2026-05-21 11:28:34,254 - api_logger - INFO - Router cargado: /fiscalcustomer
2026-05-21 11:28:34,287 - api_logger - INFO - Router cargado: /catalogs
2026-05-21 11:28:34,288 - api_logger - INFO - Router cargado: /cfdidocuments
2026-05-21 11:28:34,289 - api_logger - INFO - Router cargado: /users
2026-05-21 11:28:34,290 - api_logger - INFO - Router cargado: /export
2026-05-21 11:28:34,290 - api_logger - INFO - Router cargado: /plans
2026-05-21 11:28:34,291 - api_logger - INFO - Router cargado: /webservices
2026-05-21 11:28:34,291 - api_logger - INFO - Router cargado: /licenses
2026-05-21 11:28:34,292 - api_logger - INFO - Router cargado: /menu_options
2026-05-21 11:28:34,292 - api_logger - INFO - Router cargado: /payment
2026-05-21 11:28:34,299 - api_logger - INFO - Router cargado: /movements_banks
2026-05-21 11:28:34,300 - api_logger - INFO - Router cargado: 
2026-05-21 11:28:34,302 - api_logger - INFO - Router cargado: /bankaccount
2026-05-21 11:28:34,305 - api_logger - INFO - Router cargado: /catalogsloadables
2026-05-21 11:28:34,306 - api_logger - INFO - Router cargado: /auth
2026-05-21 13:41:48,103 - api_logger - INFO - Router cargado: /test
2026-05-21 13:41:48,126 - api_logger - INFO - Router cargado: /test
2026-05-21 13:41:48,319 - api_logger - INFO - Router cargado: /test
2026-05-21 13:41:48,339 - api_logger - INFO - Router cargado: /test
2026-05-21 13:42:51,253 - api_logger - INFO - Router cargado: /test
2026-05-21 13:42:51,273 - api_logger - INFO - Router cargado: /test
2026-05-21 13:44:23,539 - api_logger - INFO - Router cargado: /test
2026-05-21 13:44:23,558 - api_logger - INFO - Router cargado: /test
2026-05-21 13:47:17,779 - api_logger - INFO - Router cargado: /test
2026-05-21 13:47:17,801 - api_logger - INFO - Router cargado: /test
2026-05-21 13:47:37,138 - api_logger - INFO - Router cargado: /test
2026-05-21 13:47:37,159 - api_logger - INFO - Router cargado: /test
2026-05-21 13:48:12,784 - api_logger - ERROR - Error inesperado en http://localhost:8000/v1/test/getall: TestService.MethodTest() takes 0 positional arguments but 1 was given
Traceback (most recent call last):
  File "/home/gothic/public_html/nube_bcknd/nv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/public_html/nube_bcknd/nv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 88, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/nv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/nv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/public_html/nube_bcknd/nv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/public_html/nube_bcknd/nv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/nv/lib64/python3.13/site-packages/starlette/routing.py", line 660, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/nv/lib64/python3.13/site-packages/starlette/routing.py", line 680, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/nv/lib64/python3.13/site-packages/starlette/routing.py", line 276, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/nv/lib64/python3.13/site-packages/fastapi/routing.py", line 134, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/nv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/public_html/nube_bcknd/nv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/public_html/nube_bcknd/nv/lib64/python3.13/site-packages/fastapi/routing.py", line 120, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/public_html/nube_bcknd/nv/lib64/python3.13/site-packages/fastapi/routing.py", line 674, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/public_html/nube_bcknd/nv/lib64/python3.13/site-packages/fastapi/routing.py", line 328, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/public_html/nube_bcknd/app/api/v1/test.py", line 18, in get_all
    rslt = srvs.MethodTest()
TypeError: TestService.MethodTest() takes 0 positional arguments but 1 was given
2026-05-21 13:49:15,349 - api_logger - INFO - Router cargado: /test
2026-05-21 13:49:15,370 - api_logger - INFO - Router cargado: /test
2026-05-21 13:49:22,464 - api_logger - ERROR - Error inesperado en http://localhost:8000/v1/test/getall: TestService.MethodTest() takes 0 positional arguments but 1 was given
Traceback (most recent call last):
  File "/home/gothic/public_html/nube_bcknd/nv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/public_html/nube_bcknd/nv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 88, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/nv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/nv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/public_html/nube_bcknd/nv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/public_html/nube_bcknd/nv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/nv/lib64/python3.13/site-packages/starlette/routing.py", line 660, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/nv/lib64/python3.13/site-packages/starlette/routing.py", line 680, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/nv/lib64/python3.13/site-packages/starlette/routing.py", line 276, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/nv/lib64/python3.13/site-packages/fastapi/routing.py", line 134, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/nv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/public_html/nube_bcknd/nv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/public_html/nube_bcknd/nv/lib64/python3.13/site-packages/fastapi/routing.py", line 120, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/public_html/nube_bcknd/nv/lib64/python3.13/site-packages/fastapi/routing.py", line 674, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/public_html/nube_bcknd/nv/lib64/python3.13/site-packages/fastapi/routing.py", line 328, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/public_html/nube_bcknd/app/api/v1/test.py", line 18, in get_all
    rslt = await srvs.MethodTest()
                 ~~~~~~~~~~~~~~~^^
TypeError: TestService.MethodTest() takes 0 positional arguments but 1 was given
2026-05-21 13:50:32,608 - api_logger - INFO - Router cargado: /test
2026-05-21 13:50:32,626 - api_logger - INFO - Router cargado: /test
2026-05-21 16:47:25,399 - api_logger - INFO - Router cargado: /test
2026-05-21 16:47:25,415 - api_logger - INFO - Router cargado: /test
2026-05-21 16:47:25,620 - api_logger - INFO - Router cargado: /test
2026-05-21 16:47:25,640 - api_logger - INFO - Router cargado: /test
2026-06-02 10:31:26,585 - api_logger - INFO - Router cargado: /test
2026-06-02 10:31:26,619 - api_logger - INFO - Router cargado: /test
2026-06-02 10:31:26,807 - api_logger - INFO - Router cargado: /test
2026-06-02 10:31:26,828 - api_logger - INFO - Router cargado: /test
2026-06-02 11:27:35,032 - api_logger - INFO - Router cargado: /test
2026-06-02 11:27:35,033 - api_logger - INFO - Router cargado: /debug
2026-06-02 11:27:35,066 - api_logger - INFO - Router cargado: /test
2026-06-02 11:27:35,067 - api_logger - INFO - Router cargado: /debug
2026-06-02 11:27:35,247 - api_logger - INFO - Router cargado: /test
2026-06-02 11:27:35,247 - api_logger - INFO - Router cargado: /debug
2026-06-02 11:27:35,272 - api_logger - INFO - Router cargado: /test
2026-06-02 11:27:35,272 - api_logger - INFO - Router cargado: /debug
2026-06-02 11:39:41,105 - api_logger - INFO - Router cargado: /test
2026-06-02 11:39:41,106 - api_logger - INFO - Router cargado: /debug
2026-06-02 11:39:41,129 - api_logger - INFO - Router cargado: /test
2026-06-02 11:39:41,130 - api_logger - INFO - Router cargado: /debug
2026-06-02 11:39:57,240 - api_logger - INFO - Router cargado: /test
2026-06-02 11:39:57,240 - api_logger - INFO - Router cargado: /debug
2026-06-02 11:39:57,259 - api_logger - INFO - Router cargado: /test
2026-06-02 11:39:57,259 - api_logger - INFO - Router cargado: /debug
2026-06-02 11:41:13,585 - api_logger - INFO - Router cargado: /test
2026-06-02 11:41:13,588 - api_logger - INFO - Router cargado: /debug
2026-06-02 11:41:13,606 - api_logger - INFO - Router cargado: /test
2026-06-02 11:41:13,606 - api_logger - INFO - Router cargado: /debug
2026-06-02 11:41:19,607 - api_logger - INFO - Router cargado: /test
2026-06-02 11:41:19,607 - api_logger - INFO - Router cargado: /debug
2026-06-02 11:41:19,628 - api_logger - INFO - Router cargado: /test
2026-06-02 11:41:19,628 - api_logger - INFO - Router cargado: /debug
2026-06-02 11:41:23,824 - api_logger - INFO - Router cargado: /test
2026-06-02 11:41:23,824 - api_logger - INFO - Router cargado: /debug
2026-06-02 11:41:23,844 - api_logger - INFO - Router cargado: /test
2026-06-02 11:41:23,844 - api_logger - INFO - Router cargado: /debug
2026-06-02 11:41:24,534 - api_logger - INFO - Router cargado: /test
2026-06-02 11:41:24,535 - api_logger - INFO - Router cargado: /debug
2026-06-02 11:41:24,555 - api_logger - INFO - Router cargado: /test
2026-06-02 11:41:24,556 - api_logger - INFO - Router cargado: /debug
2026-06-02 11:41:55,394 - api_logger - INFO - Router cargado: /test
2026-06-02 11:41:55,394 - api_logger - INFO - Router cargado: /debug
2026-06-02 11:41:55,413 - api_logger - INFO - Router cargado: /test
2026-06-02 11:41:55,413 - api_logger - INFO - Router cargado: /debug
2026-06-02 11:42:08,420 - api_logger - INFO - Router cargado: /test
2026-06-02 11:42:08,420 - api_logger - INFO - Router cargado: /debug
2026-06-02 11:42:08,439 - api_logger - INFO - Router cargado: /test
2026-06-02 11:42:08,439 - api_logger - INFO - Router cargado: /debug
2026-06-02 11:44:50,450 - api_logger - INFO - Router cargado: /test
2026-06-02 11:44:50,450 - api_logger - INFO - Router cargado: /debug
2026-06-02 11:44:50,489 - api_logger - INFO - Router cargado: /test
2026-06-02 11:44:50,489 - api_logger - INFO - Router cargado: /debug
2026-06-02 11:48:51,999 - api_logger - INFO - Router cargado: /test
2026-06-02 11:48:51,999 - api_logger - INFO - Router cargado: /daas
2026-06-02 11:48:52,032 - api_logger - INFO - Router cargado: /test
2026-06-02 11:48:52,032 - api_logger - INFO - Router cargado: /daas
2026-06-02 11:49:01,436 - api_logger - INFO - Router cargado: /test
2026-06-02 11:49:01,436 - api_logger - INFO - Router cargado: /daas
2026-06-02 11:49:01,455 - api_logger - INFO - Router cargado: /test
2026-06-02 11:49:01,455 - api_logger - INFO - Router cargado: /daas
2026-06-02 11:49:11,256 - api_logger - INFO - Router cargado: /test
2026-06-02 11:49:11,256 - api_logger - INFO - Router cargado: /daas
2026-06-02 11:49:11,274 - api_logger - INFO - Router cargado: /test
2026-06-02 11:49:11,274 - api_logger - INFO - Router cargado: /daas
2026-06-02 11:49:22,370 - api_logger - INFO - Router cargado: /test
2026-06-02 11:49:22,370 - api_logger - INFO - Router cargado: /daas
2026-06-02 11:49:22,389 - api_logger - INFO - Router cargado: /test
2026-06-02 11:49:22,389 - api_logger - INFO - Router cargado: /daas
2026-06-02 11:50:08,774 - api_logger - INFO - Router cargado: /test
2026-06-02 11:50:08,774 - api_logger - INFO - Router cargado: /daas
2026-06-02 11:50:08,792 - api_logger - INFO - Router cargado: /test
2026-06-02 11:50:08,792 - api_logger - INFO - Router cargado: /daas
2026-06-02 11:50:23,907 - api_logger - INFO - Router cargado: /test
2026-06-02 11:50:23,907 - api_logger - INFO - Router cargado: /daas
2026-06-02 11:50:23,925 - api_logger - INFO - Router cargado: /test
2026-06-02 11:50:23,925 - api_logger - INFO - Router cargado: /daas
2026-06-02 11:50:24,613 - api_logger - INFO - Router cargado: /test
2026-06-02 11:50:24,613 - api_logger - INFO - Router cargado: /daas
2026-06-02 11:50:24,634 - api_logger - INFO - Router cargado: /test
2026-06-02 11:50:24,634 - api_logger - INFO - Router cargado: /daas
2026-06-02 11:50:52,266 - api_logger - INFO - Router cargado: /test
2026-06-02 11:50:52,267 - api_logger - INFO - Router cargado: /daas
2026-06-02 11:50:52,285 - api_logger - INFO - Router cargado: /test
2026-06-02 11:50:52,286 - api_logger - INFO - Router cargado: /daas
2026-06-02 11:51:02,684 - api_logger - INFO - Router cargado: /test
2026-06-02 11:51:02,684 - api_logger - INFO - Router cargado: /daas
2026-06-02 11:51:02,703 - api_logger - INFO - Router cargado: /test
2026-06-02 11:51:02,703 - api_logger - INFO - Router cargado: /daas
2026-06-02 11:54:27,551 - api_logger - INFO - Router cargado: /test
2026-06-02 11:54:27,551 - api_logger - INFO - Router cargado: /daas
2026-06-02 11:54:27,588 - api_logger - INFO - Router cargado: /test
2026-06-02 11:54:27,588 - api_logger - INFO - Router cargado: /daas
2026-06-02 11:54:34,189 - api_logger - INFO - Router cargado: /test
2026-06-02 11:54:34,189 - api_logger - INFO - Router cargado: /daas
2026-06-02 11:54:34,207 - api_logger - INFO - Router cargado: /test
2026-06-02 11:54:34,207 - api_logger - INFO - Router cargado: /daas
2026-06-02 11:54:39,292 - api_logger - INFO - Router cargado: /test
2026-06-02 11:54:39,292 - api_logger - INFO - Router cargado: /daas
2026-06-02 11:54:39,310 - api_logger - INFO - Router cargado: /test
2026-06-02 11:54:39,310 - api_logger - INFO - Router cargado: /daas
2026-06-02 11:55:08,645 - api_logger - ERROR - Error inesperado en http://localhost:8000/v1/daas/regions/all: name 'Regions' is not defined
Traceback (most recent call last):
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 88, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/routing.py", line 660, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/routing.py", line 680, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/routing.py", line 276, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 134, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 120, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 674, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 328, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/public_html/nube_bcknd/app/api/v1/daas.py", line 18, in get_regions_all
    regions = Regions()
              ^^^^^^^
NameError: name 'Regions' is not defined
2026-06-02 11:58:12,689 - api_logger - INFO - Router cargado: /test
2026-06-02 11:58:12,690 - api_logger - INFO - Router cargado: /daas
2026-06-02 11:58:12,714 - api_logger - INFO - Router cargado: /test
2026-06-02 11:58:12,714 - api_logger - INFO - Router cargado: /daas
2026-06-02 11:58:25,033 - api_logger - ERROR - Error inesperado en http://localhost:8000/v1/daas/regions/all: 'Regions' object has no attribute 'GetAll'
Traceback (most recent call last):
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 88, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/routing.py", line 660, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/routing.py", line 680, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/routing.py", line 276, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 134, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 120, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 674, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 328, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/public_html/nube_bcknd/app/api/v1/daas.py", line 19, in get_regions_all
    rslt = await regions.GetAll()
                 ^^^^^^^^^^^^^^
AttributeError: 'Regions' object has no attribute 'GetAll'. Did you mean: 'getAll'?
2026-06-02 11:58:49,581 - api_logger - INFO - Router cargado: /test
2026-06-02 11:58:49,582 - api_logger - INFO - Router cargado: /daas
2026-06-02 11:58:49,600 - api_logger - INFO - Router cargado: /test
2026-06-02 11:58:49,600 - api_logger - INFO - Router cargado: /daas
2026-06-02 11:58:55,703 - api_logger - INFO - Router cargado: /test
2026-06-02 11:58:55,703 - api_logger - INFO - Router cargado: /daas
2026-06-02 11:58:55,722 - api_logger - INFO - Router cargado: /test
2026-06-02 11:58:55,722 - api_logger - INFO - Router cargado: /daas
2026-06-02 11:59:23,181 - api_logger - ERROR - Error inesperado en http://localhost:8000/v1/daas/regions/all: Regions.getAll() takes 0 positional arguments but 1 was given
Traceback (most recent call last):
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 88, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/routing.py", line 660, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/routing.py", line 680, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/routing.py", line 276, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 134, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 120, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 674, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 328, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/public_html/nube_bcknd/app/api/v1/daas.py", line 19, in get_regions_all
    rslt = await regions.getAll()
                 ~~~~~~~~~~~~~~^^
TypeError: Regions.getAll() takes 0 positional arguments but 1 was given
2026-06-02 11:59:43,594 - api_logger - INFO - Router cargado: /test
2026-06-02 11:59:43,594 - api_logger - INFO - Router cargado: /daas
2026-06-02 11:59:43,620 - api_logger - INFO - Router cargado: /test
2026-06-02 11:59:43,620 - api_logger - INFO - Router cargado: /daas
2026-06-02 11:59:49,987 - api_logger - ERROR - Error inesperado en http://localhost:8000/v1/daas/regions/all: CloudServicesCrudClient.get_all() missing 1 required positional argument: 'model'
Traceback (most recent call last):
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 88, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/routing.py", line 660, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/routing.py", line 680, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/routing.py", line 276, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 134, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 120, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 674, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 328, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/public_html/nube_bcknd/app/api/v1/daas.py", line 19, in get_regions_all
    rslt = await regions.getAll()
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/public_html/nube_bcknd/app/services/Regions.py", line 8, in getAll
    regions = CloudServicesCrudClient.get_all('regions')
TypeError: CloudServicesCrudClient.get_all() missing 1 required positional argument: 'model'
2026-06-02 12:00:23,195 - api_logger - INFO - Router cargado: /test
2026-06-02 12:00:23,196 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:00:23,217 - api_logger - INFO - Router cargado: /test
2026-06-02 12:00:23,217 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:00:25,545 - api_logger - ERROR - Error inesperado en http://localhost:8000/v1/daas/regions/all: GRPC_CLOUD_SERVICES_DAO_CERT
Traceback (most recent call last):
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 88, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/routing.py", line 660, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/routing.py", line 680, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/routing.py", line 276, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 134, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 120, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 674, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 328, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/public_html/nube_bcknd/app/api/v1/daas.py", line 19, in get_regions_all
    rslt = await regions.getAll()
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/public_html/nube_bcknd/app/services/Regions.py", line 8, in getAll
    client_dao = CloudServicesCrudClient()
  File "/home/gothic/public_html/nube_bcknd/app/grpc/clients/CloudServicesCrudClient.py", line 13, in __init__
    with open(settings.GRPC_CLOUD_SERVICES_DAO_CERT, "rb") as f:
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/pydantic/_internal/_model_construction.py", line 290, in __getattr__
    raise AttributeError(item)
AttributeError: GRPC_CLOUD_SERVICES_DAO_CERT
2026-06-02 12:04:30,525 - api_logger - INFO - Router cargado: /test
2026-06-02 12:04:30,525 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:04:30,544 - api_logger - INFO - Router cargado: /test
2026-06-02 12:04:30,544 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:04:30,735 - api_logger - INFO - Router cargado: /test
2026-06-02 12:04:30,735 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:04:30,754 - api_logger - INFO - Router cargado: /test
2026-06-02 12:04:30,754 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:04:42,107 - api_logger - ERROR - Error inesperado en http://localhost:8000/v1/daas/regions/all: GRPC_CLOUD_SERVICES_DAO_CERT
Traceback (most recent call last):
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 88, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/routing.py", line 660, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/routing.py", line 680, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/routing.py", line 276, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 134, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 120, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 674, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 328, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/public_html/nube_bcknd/app/api/v1/daas.py", line 19, in get_regions_all
    rslt = await regions.getAll()
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/public_html/nube_bcknd/app/services/Regions.py", line 8, in getAll
    client_dao = CloudServicesCrudClient()
  File "/home/gothic/public_html/nube_bcknd/app/grpc/clients/CloudServicesCrudClient.py", line 13, in __init__
    with open(settings.GRPC_CLOUD_SERVICES_DAO_CERT, "rb") as f:
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/pydantic/_internal/_model_construction.py", line 290, in __getattr__
    raise AttributeError(item)
AttributeError: GRPC_CLOUD_SERVICES_DAO_CERT
2026-06-02 12:05:19,855 - api_logger - INFO - Router cargado: /test
2026-06-02 12:05:19,855 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:05:19,878 - api_logger - INFO - Router cargado: /test
2026-06-02 12:05:19,878 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:05:25,328 - api_logger - INFO - Router cargado: /test
2026-06-02 12:05:25,328 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:05:25,341 - api_logger - INFO - Router cargado: /test
2026-06-02 12:05:25,341 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:05:25,529 - api_logger - INFO - Router cargado: /test
2026-06-02 12:05:25,529 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:05:25,549 - api_logger - INFO - Router cargado: /test
2026-06-02 12:05:25,550 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:05:30,783 - api_logger - ERROR - Error inesperado en http://localhost:8000/v1/daas/regions/all: GRPC_CLOUD_SERVICES_DAO_CERT
Traceback (most recent call last):
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 88, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/routing.py", line 660, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/routing.py", line 680, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/routing.py", line 276, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 134, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 120, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 674, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 328, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/public_html/nube_bcknd/app/api/v1/daas.py", line 19, in get_regions_all
    rslt = await regions.getAll()
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/public_html/nube_bcknd/app/services/Regions.py", line 8, in getAll
    client_dao = CloudServicesCrudClient()
  File "/home/gothic/public_html/nube_bcknd/app/grpc/clients/CloudServicesCrudClient.py", line 13, in __init__
    print(settings.GRPC_CLOUD_SERVICES_DAO_CERT)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/pydantic/_internal/_model_construction.py", line 290, in __getattr__
    raise AttributeError(item)
AttributeError: GRPC_CLOUD_SERVICES_DAO_CERT
2026-06-02 12:06:57,413 - api_logger - INFO - Router cargado: /test
2026-06-02 12:06:57,414 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:06:57,433 - api_logger - INFO - Router cargado: /test
2026-06-02 12:06:57,433 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:09:26,909 - api_logger - INFO - Router cargado: /test
2026-06-02 12:09:26,909 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:09:26,935 - api_logger - INFO - Router cargado: /test
2026-06-02 12:09:26,935 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:10:12,337 - api_logger - INFO - Router cargado: /test
2026-06-02 12:10:12,337 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:10:12,359 - api_logger - INFO - Router cargado: /test
2026-06-02 12:10:12,360 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:10:36,721 - api_logger - INFO - Router cargado: /test
2026-06-02 12:10:36,722 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:10:36,751 - api_logger - INFO - Router cargado: /test
2026-06-02 12:10:36,751 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:10:37,461 - api_logger - INFO - Router cargado: /test
2026-06-02 12:10:37,462 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:10:37,484 - api_logger - INFO - Router cargado: /test
2026-06-02 12:10:37,485 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:11:43,884 - api_logger - INFO - Router cargado: /test
2026-06-02 12:11:43,884 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:11:43,926 - api_logger - INFO - Router cargado: /test
2026-06-02 12:11:43,926 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:11:46,852 - api_logger - INFO - Router cargado: /test
2026-06-02 12:11:46,852 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:11:46,875 - api_logger - INFO - Router cargado: /test
2026-06-02 12:11:46,875 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:16:28,465 - api_logger - INFO - Router cargado: /test
2026-06-02 12:16:28,466 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:16:28,489 - api_logger - INFO - Router cargado: /test
2026-06-02 12:16:28,489 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:16:46,546 - api_logger - INFO - Router cargado: /test
2026-06-02 12:16:46,546 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:16:46,566 - api_logger - INFO - Router cargado: /test
2026-06-02 12:16:46,566 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:16:57,880 - api_logger - INFO - Router cargado: /test
2026-06-02 12:16:57,880 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:16:57,902 - api_logger - INFO - Router cargado: /test
2026-06-02 12:16:57,902 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:17:03,430 - api_logger - ERROR - Error inesperado en http://localhost:8000/v1/daas/regions/all: 'dict' object has no attribute 'status'
Traceback (most recent call last):
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 88, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/routing.py", line 660, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/routing.py", line 680, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/routing.py", line 276, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 134, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 120, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 674, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 328, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/public_html/nube_bcknd/app/api/v1/daas.py", line 19, in get_regions_all
    result = await regions.getAll()
             ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/public_html/nube_bcknd/app/services/Regions.py", line 15, in getAll
    if regions.status == "error":
       ^^^^^^^^^^^^^^
AttributeError: 'dict' object has no attribute 'status'
2026-06-02 12:17:31,499 - api_logger - INFO - Router cargado: /test
2026-06-02 12:17:31,500 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:17:31,522 - api_logger - INFO - Router cargado: /test
2026-06-02 12:17:31,522 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:18:11,938 - api_logger - INFO - Router cargado: /test
2026-06-02 12:18:11,938 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:18:11,957 - api_logger - INFO - Router cargado: /test
2026-06-02 12:18:11,957 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:18:20,861 - api_logger - INFO - Router cargado: /test
2026-06-02 12:18:20,861 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:18:20,880 - api_logger - INFO - Router cargado: /test
2026-06-02 12:18:20,881 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:18:23,499 - api_logger - DEBUG - [NotFoundError] http://localhost:8000/v1/daas/regions/all: Modelo 'regions' no encontrado.
2026-06-02 12:19:13,186 - api_logger - INFO - Router cargado: /test
2026-06-02 12:19:13,186 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:19:13,206 - api_logger - INFO - Router cargado: /test
2026-06-02 12:19:13,206 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:19:13,904 - api_logger - INFO - Router cargado: /test
2026-06-02 12:19:13,904 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:19:13,923 - api_logger - INFO - Router cargado: /test
2026-06-02 12:19:13,924 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:19:17,872 - api_logger - DEBUG - [NotFoundError] http://localhost:8000/v1/daas/regions/all: Modelo 'regiones' no encontrado.
2026-06-02 12:19:29,102 - api_logger - INFO - Router cargado: /test
2026-06-02 12:19:29,102 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:19:29,122 - api_logger - INFO - Router cargado: /test
2026-06-02 12:19:29,122 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:20:14,300 - api_logger - INFO - Router cargado: /test
2026-06-02 12:20:14,300 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:20:14,319 - api_logger - INFO - Router cargado: /test
2026-06-02 12:20:14,319 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:20:58,562 - api_logger - INFO - Router cargado: /test
2026-06-02 12:20:58,562 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:20:58,583 - api_logger - INFO - Router cargado: /test
2026-06-02 12:20:58,583 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:21:01,615 - api_logger - DEBUG - [NotFoundError] http://localhost:8000/v1/daas/regions/all: Modelo 'regin' no encontrado.
2026-06-02 12:21:32,772 - api_logger - INFO - Router cargado: /test
2026-06-02 12:21:32,773 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:21:32,792 - api_logger - INFO - Router cargado: /test
2026-06-02 12:21:32,792 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:24:11,205 - api_logger - INFO - Router cargado: /test
2026-06-02 12:24:11,206 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:24:11,225 - api_logger - INFO - Router cargado: /test
2026-06-02 12:24:11,225 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:24:20,739 - api_logger - INFO - Router cargado: /test
2026-06-02 12:24:20,740 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:24:20,760 - api_logger - INFO - Router cargado: /test
2026-06-02 12:24:20,760 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:24:30,566 - api_logger - INFO - Router cargado: /test
2026-06-02 12:24:30,566 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:24:30,585 - api_logger - INFO - Router cargado: /test
2026-06-02 12:24:30,586 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:25:17,360 - api_logger - INFO - Router cargado: /test
2026-06-02 12:25:17,360 - api_logger - INFO - Router cargado: /daas
2026-06-02 12:25:17,379 - api_logger - INFO - Router cargado: /test
2026-06-02 12:25:17,379 - api_logger - INFO - Router cargado: /daas
2026-06-18 13:36:29,202 - api_logger - INFO - Router cargado: /test
2026-06-18 13:36:29,203 - api_logger - INFO - Router cargado: /daas
2026-06-18 13:36:29,241 - api_logger - INFO - Router cargado: /test
2026-06-18 13:36:29,241 - api_logger - INFO - Router cargado: /daas
2026-06-18 13:36:29,460 - api_logger - INFO - Router cargado: /test
2026-06-18 13:36:29,460 - api_logger - INFO - Router cargado: /daas
2026-06-18 13:36:29,487 - api_logger - INFO - Router cargado: /test
2026-06-18 13:36:29,487 - api_logger - INFO - Router cargado: /daas
2026-06-18 13:38:04,811 - api_logger - ERROR - Error inesperado en http://localhost:8000/v1/daas/regions/all: <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.UNAVAILABLE
	details = "failed to connect to all addresses; last error: UNKNOWN: ipv4:127.0.0.1:8440: Failed to connect to remote host: Connection refused"
	debug_error_string = "UNAVAILABLE:failed to connect to all addresses; last error: UNKNOWN: ipv4:127.0.0.1:8440: Failed to connect to remote host: Connection refused"
>
Traceback (most recent call last):
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 88, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/routing.py", line 660, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/routing.py", line 680, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/routing.py", line 276, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 134, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 120, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 674, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 328, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/public_html/nube_bcknd/app/api/v1/daas.py", line 19, in get_regions_all
    result = await regions.getAll()
             ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/public_html/nube_bcknd/app/services/Regions.py", line 14, in getAll
    regions = client_dao.get_all('region')
  File "/home/gothic/public_html/nube_bcknd/app/grpc/clients/CloudServicesCrudClient.py", line 34, in get_all
    return self._response(self.stub.GetAll(req))
                          ~~~~~~~~~~~~~~~~^^^^^
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/grpc/_channel.py", line 1159, in __call__
    return _end_unary_response_blocking(state, call, False, None)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/grpc/_channel.py", line 990, in _end_unary_response_blocking
    raise _InactiveRpcError(state)  # pytype: disable=not-instantiable
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.UNAVAILABLE
	details = "failed to connect to all addresses; last error: UNKNOWN: ipv4:127.0.0.1:8440: Failed to connect to remote host: Connection refused"
	debug_error_string = "UNAVAILABLE:failed to connect to all addresses; last error: UNKNOWN: ipv4:127.0.0.1:8440: Failed to connect to remote host: Connection refused"
>
2026-06-19 18:50:17,937 - api_logger - INFO - Router cargado: /test
2026-06-19 18:50:17,937 - api_logger - INFO - Router cargado: /daas
2026-06-19 18:50:17,976 - api_logger - INFO - Router cargado: /test
2026-06-19 18:50:17,976 - api_logger - INFO - Router cargado: /daas
2026-06-19 18:50:18,187 - api_logger - INFO - Router cargado: /test
2026-06-19 18:50:18,187 - api_logger - INFO - Router cargado: /daas
2026-06-19 18:50:18,219 - api_logger - INFO - Router cargado: /test
2026-06-19 18:50:18,219 - api_logger - INFO - Router cargado: /daas
2026-06-19 18:51:53,235 - api_logger - ERROR - Error inesperado en http://localhost:8989/v1/daas/regions/all: <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.UNAVAILABLE
	details = "failed to connect to all addresses; last error: UNKNOWN: ipv4:127.0.0.1:8440: Failed to connect to remote host: Connection refused"
	debug_error_string = "UNAVAILABLE:failed to connect to all addresses; last error: UNKNOWN: ipv4:127.0.0.1:8440: Failed to connect to remote host: Connection refused"
>
Traceback (most recent call last):
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/middleware/cors.py", line 88, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/routing.py", line 660, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/routing.py", line 680, in app
    await route.handle(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/routing.py", line 276, in handle
    await self.app(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 134, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 120, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 674, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/fastapi/routing.py", line 328, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/public_html/nube_bcknd/app/api/v1/daas.py", line 19, in get_regions_all
    result = await regions.getAll()
             ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gothic/public_html/nube_bcknd/app/services/Regions.py", line 14, in getAll
    regions = client_dao.get_all('region')
  File "/home/gothic/public_html/nube_bcknd/app/grpc/clients/CloudServicesCrudClient.py", line 34, in get_all
    return self._response(self.stub.GetAll(req))
                          ~~~~~~~~~~~~~~~~^^^^^
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/grpc/_channel.py", line 1159, in __call__
    return _end_unary_response_blocking(state, call, False, None)
  File "/home/gothic/public_html/nube_bcknd/venv/lib64/python3.13/site-packages/grpc/_channel.py", line 990, in _end_unary_response_blocking
    raise _InactiveRpcError(state)  # pytype: disable=not-instantiable
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.UNAVAILABLE
	details = "failed to connect to all addresses; last error: UNKNOWN: ipv4:127.0.0.1:8440: Failed to connect to remote host: Connection refused"
	debug_error_string = "UNAVAILABLE:failed to connect to all addresses; last error: UNKNOWN: ipv4:127.0.0.1:8440: Failed to connect to remote host: Connection refused"
>
