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
fix(import): Handle tuple index out of range errors and external ID
conversion
This commit fixes the 'tuple index out of range' errors that were
occurring when importing data with external ID fields. The issue was
caused by:
1. Incorrect filtering of external ID fields that prevented them from
being processed for conversion 2. Improper handling of JSON-RPC
exceptions that contained IndexError information 3. Missing conversion
of external ID references to actual database IDs
Changes made:
- Allow external ID fields (ending with '/id') to pass through the
initial filtering step - Add proper conversion of external ID references
to database IDs before record creation - Handle empty external ID values
correctly by converting them to False - Improve error handling for
JSON-RPC exceptions that contain IndexError information - Add specific
handling for 'tuple index out of range' errors in the import process -
Add logging for debugging external ID conversion process
These changes ensure that external ID fields are properly converted and
that tuple index errors are gracefully handled, preventing crashes
during import.
Fixes#123
0 commit comments