You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/nautobot/bin/nautobot-server", line 8, in
sys.exit(main())
File "/opt/nautobot/lib/python3.9/site-packages/nautobot/core/cli/init.py", line 52, in main
run_app(
File "/opt/nautobot/lib/python3.9/site-packages/nautobot/core/runner/runner.py", line 297, in run_app
management.execute_from_command_line([runner_name, command, *command_args])
File "/opt/nautobot/lib/python3.9/site-packages/django/core/management/init.py", line 419, in execute_from_command_line
utility.execute()
File "/opt/nautobot/lib/python3.9/site-packages/django/core/management/init.py", line 413, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/opt/nautobot/lib/python3.9/site-packages/django/core/management/base.py", line 354, in run_from_argv
self.execute(*args, **cmd_options)
File "/opt/nautobot/lib/python3.9/site-packages/django/core/management/base.py", line 398, in execute
output = self.handle(*args, **options)
File "/opt/nautobot/lib/python3.9/site-packages/nautobot_netbox_importer/management/commands/import_netbox.py", line 94, in handle
adapter.import_to_nautobot()
File "/opt/nautobot/lib/python3.9/site-packages/nautobot_netbox_importer/diffsync/adapters/netbox.py", line 95, in import_to_nautobot
self._atomic_import()
File "/usr/lib/python3.9/contextlib.py", line 79, in inner
return func(*args, **kwds)
File "/opt/nautobot/lib/python3.9/site-packages/django/db/transaction.py", line 246, in exit
connection.commit()
File "/opt/nautobot/lib/python3.9/site-packages/django/utils/asyncio.py", line 33, in inner
return func(*args, **kwargs)
File "/opt/nautobot/lib/python3.9/site-packages/django/db/backends/base/base.py", line 266, in commit
self._commit()
File "/opt/nautobot/lib/python3.9/site-packages/django/db/backends/base/base.py", line 242, in _commit
return self.connection.commit()
File "/opt/nautobot/lib/python3.9/site-packages/django/db/utils.py", line 90, in exit
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/opt/nautobot/lib/python3.9/site-packages/django/db/backends/base/base.py", line 242, in _commit
return self.connection.commit()
django.db.utils.IntegrityError: inserci��n o actualizaci��n en la tabla ��dcim_locationtype�� viola la llave for��nea ��dcim_locationtype_parent_id_023ca1c8_fk_dcim_locationtype_id��
DETAIL: La llave (parent_id)=(b12f97bf-c17a-5604-8d52-310a2359f97c) no est�� presente en la tabla ��dcim_locationtype��.
Environment
Expected Behavior
Import
Observed Behavior
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/nautobot/bin/nautobot-server", line 8, in
sys.exit(main())
File "/opt/nautobot/lib/python3.9/site-packages/nautobot/core/cli/init.py", line 52, in main
run_app(
File "/opt/nautobot/lib/python3.9/site-packages/nautobot/core/runner/runner.py", line 297, in run_app
management.execute_from_command_line([runner_name, command, *command_args])
File "/opt/nautobot/lib/python3.9/site-packages/django/core/management/init.py", line 419, in execute_from_command_line
utility.execute()
File "/opt/nautobot/lib/python3.9/site-packages/django/core/management/init.py", line 413, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/opt/nautobot/lib/python3.9/site-packages/django/core/management/base.py", line 354, in run_from_argv
self.execute(*args, **cmd_options)
File "/opt/nautobot/lib/python3.9/site-packages/django/core/management/base.py", line 398, in execute
output = self.handle(*args, **options)
File "/opt/nautobot/lib/python3.9/site-packages/nautobot_netbox_importer/management/commands/import_netbox.py", line 94, in handle
adapter.import_to_nautobot()
File "/opt/nautobot/lib/python3.9/site-packages/nautobot_netbox_importer/diffsync/adapters/netbox.py", line 95, in import_to_nautobot
self._atomic_import()
File "/usr/lib/python3.9/contextlib.py", line 79, in inner
return func(*args, **kwds)
File "/opt/nautobot/lib/python3.9/site-packages/django/db/transaction.py", line 246, in exit
connection.commit()
File "/opt/nautobot/lib/python3.9/site-packages/django/utils/asyncio.py", line 33, in inner
return func(*args, **kwargs)
File "/opt/nautobot/lib/python3.9/site-packages/django/db/backends/base/base.py", line 266, in commit
self._commit()
File "/opt/nautobot/lib/python3.9/site-packages/django/db/backends/base/base.py", line 242, in _commit
return self.connection.commit()
File "/opt/nautobot/lib/python3.9/site-packages/django/db/utils.py", line 90, in exit
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/opt/nautobot/lib/python3.9/site-packages/django/db/backends/base/base.py", line 242, in _commit
return self.connection.commit()
django.db.utils.IntegrityError: inserci��n o actualizaci��n en la tabla ��dcim_locationtype�� viola la llave for��nea ��dcim_locationtype_parent_id_023ca1c8_fk_dcim_locationtype_id��
DETAIL: La llave (parent_id)=(b12f97bf-c17a-5604-8d52-310a2359f97c) no est�� presente en la tabla ��dcim_locationtype��.
Steps to Reproduce
1.export data with:
./manage.py dumpdata
--traceback
--format=json
--indent=2
--natural-primary
--natural-foreign
--exclude=extras.ObjectChange
--exclude=extras.Report
--exclude=extras.Script
--exclude=django_rq.Queue
--exclude extras.configcontext
--output=/tmp/netbox_data.json
nautobot-server import_netbox --bypass-data-validation --sitegroup-parent-always-region netbox_data.json
The text was updated successfully, but these errors were encountered: