Error: TypeCastError On Enum Field Type
Issue
When syncing to an Asana enum field, the sync fails with the following error:
TypeCastError: Empty input (after ) at line 1, column 1 [parse.c:1259] in '...
Environment
Activations destination: Asana
Resolution
To resolve this issue:
- Use the Asana Get a workspace's custom fields API endpoint to retrieve the
gidvalues for your custom enum fields. - Identify the applicable value and use its
gidinstead of its text name. For example:- Incorrect:
New - Correct:
1216568319166467
- Incorrect:
- Update your source table to include a column with the valid
gid. - In Data Configuration, map the new
gidcolumn in your source data to the enum field in Asana. - Click Update, then select Run Now to run the sync again.
Cause
This issue occurs because the Asana API requires an enum option's gid as the identifier, not the drop-down menu text name.