-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ARA-Bauwerk in SIA405 export not handled correctly #177
Labels
bug
Something isn't working
Comments
This check if is not working as expected:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Gives this error:
Ein Fehler trat bei der Ausführung von Python-Code auf:
sqlalchemy.exc.IntegrityError: (psycopg2.errors.ForeignKeyViolation) insert or update on table "abwassernetzelement" violates foreign key constraint "abwassernetzelement_abwasserbauwerkref_fkey" DETAIL: Key (abwasserbauwerkref)=(6157) is not present in table "abwasserbauwerk". (Background on this error at: http://sqlalche.me/e/13/gkpj)
Traceback (most recent call last):
File "C:\PROGRA
1\QGIS3\apps\Python312\Lib\site-packages\sqlalchemy\engine\base.py", line 771, in _commit_impl1\QGIS3\apps\Python312\Lib\site-packages\sqlalchemy\engine\default.py", line 561, in do_commitself.engine.dialect.do_commit(self.connection)
File "C:\PROGRA
dbapi_connection.commit()
psycopg2.errors.ForeignKeyViolation: insert or update on table "abwassernetzelement" violates foreign key constraint "abwassernetzelement_abwasserbauwerkref_fkey"
DETAIL: Key (abwasserbauwerkref)=(6157) is not present in table "abwasserbauwerk".
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users/KAU/AppData/Roaming/QGIS/QGIS3\profiles\qgep161_prerealise/python/plugins\qgepplugin\qgepqwat2ili\qgepqwat2ili\gui_init_.py", line 715, in action_do_export
qgepsia405_export(
File "C:\Users/KAU/AppData/Roaming/QGIS/QGIS3\profiles\qgep161_prerealise/python/plugins\qgepplugin\qgepqwat2ili\qgepqwat2ili\qgepsia405\export.py", line 1196, in qgep_export
abwasser_session.commit()
File "C:\PROGRA
1\QGIS3\apps\Python312\Lib\site-packages\sqlalchemy\orm\session.py", line 1046, in commit1\QGIS3\apps\Python312\Lib\site-packages\sqlalchemy\orm\session.py", line 508, in commitself.transaction.commit()
File "C:\PROGRA
t[1].commit()
File "C:\PROGRA
1\QGIS3\apps\Python312\Lib\site-packages\sqlalchemy\engine\base.py", line 1762, in commit1\QGIS3\apps\Python312\Lib\site-packages\sqlalchemy\engine\base.py", line 1793, in _do_commitself._do_commit()
File "C:\PROGRA
self.connection.commit_impl()
File "C:\PROGRA
1\QGIS3\apps\Python312\Lib\site-packages\sqlalchemy\engine\base.py", line 773, in _commit_impl1\QGIS3\apps\Python312\Lib\site-packages\sqlalchemy\engine\base.py", line 1510, in handle_dbapi_exceptionself._handle_dbapi_exception(e, None, None, None, None)
File "C:\PROGRA
util.raise(
File "C:\PROGRA~1\QGIS3\apps\Python312\Lib\site-packages\sqlalchemy\util\compat.py", line 182, in raise
raise exception
File "C:\PROGRA
1\QGIS3\apps\Python312\Lib\site-packages\sqlalchemy\engine\base.py", line 771, in _commit_impl1\QGIS3\apps\Python312\Lib\site-packages\sqlalchemy\engine\default.py", line 561, in do_commitself.engine.dialect.do_commit(self.connection)
File "C:\PROGRA
dbapi_connection.commit()
sqlalchemy.exc.IntegrityError: (psycopg2.errors.ForeignKeyViolation) insert or update on table "abwassernetzelement" violates foreign key constraint "abwassernetzelement_abwasserbauwerkref_fkey"
DETAIL: Key (abwasserbauwerkref)=(6157) is not present in table "abwasserbauwerk".
(Background on this error at: http://sqlalche.me/e/13/gkpj)
Python-Version: 3.12.6 (main, Sep 7 2024, 18:59:42) [MSC v.1938 64 bit (AMD64)]
QGIS-Version: 3.34.10-Prizren Prizren, 113de9e1
Originally posted by @urskaufmann in QGEP/QGEP#880 (comment)
The text was updated successfully, but these errors were encountered: