Skip to content
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

fix: add missing source field type #360

Merged
merged 2 commits into from
Jan 9, 2024
Merged

fix: add missing source field type #360

merged 2 commits into from
Jan 9, 2024

Conversation

stdavis
Copy link
Member

@stdavis stdavis commented Jan 9, 2024

Description of Changes

This is to handle a new field type that showed up after DEQ made a schema change. Here's the error message that I hope to solve with it:

DEBUG   01-09 01:46:45       core:   81 c:\forklift\data\hashed\deqquerylayers_temp.gdb\TRI does not exist. creating
WARNING 01-09 01:46:47       core:  284 creating new table: c:\forklift\data\hashed\deqquerylayers_temp.gdb\TRI
ERROR   01-09 01:46:52       core:  164 unhandled exception: 'BigInteger' for crate source: [c:\forklift\warehouse\deq-enviro\scripts\nightly\settings\..\databases\cercla.sde\cercla.Arcserver.PTN_TRI] source_workspace: [c:\forklift\warehouse\deq-enviro\scripts\nightly\settings\..\databases\cercla.sde] destination: [c:\forklift\data\hashed\deqquerylayers_temp.gdb\TRI]
Traceback (most recent call last):
  File "C:\Users\agrc-arcgis\AppData\Local\ESRI\conda\envs\forklift\lib\site-packages\forklift\core.py", line 82, in update
    _create_destination_data(crate, skip_hash_field=change_detection.has_table(crate.source_name))
  File "C:\Users\agrc-arcgis\AppData\Local\ESRI\conda\envs\forklift\lib\site-packages\forklift\core.py", line 286, in _create_destination_data
    _mirror_fields(crate.source, crate.destination)
  File "C:\Users\agrc-arcgis\AppData\Local\ESRI\conda\envs\forklift\lib\site-packages\forklift\core.py", line 476, in _mirror_fields
    add_fields.append([field.name, TYPES[field.type], field.aliasName, field.length])
KeyError: 'BigInteger'
DEBUG   01-09 01:46:52       lift:  106 finished crate 7625 ms
INFO    01-09 01:46:52       lift:  107 result: ('Unhandled exception during update.', "'BigInteger'")

@stdavis stdavis requested a review from steveoh January 9, 2024 16:45
Copy link
Member

@steveoh steveoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stdavis
Copy link
Member Author

stdavis commented Jan 9, 2024

I don't know that we need to support them since we haven't run into any of them yet, but I can add them. It's probably a good idea.

@stdavis stdavis merged commit 64dcae2 into main Jan 9, 2024
1 check passed
@stdavis stdavis deleted the fix/new-field-type branch January 9, 2024 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants