This article provides solutions to common issues you might encounter when using Smart Ingest.
If you still need help, you can contact Iterable technical support or your customer success manager for assistance.
NOTE
To learn how to review a sync's history and check for errors, read Monitoring Smart Ingest Syncs.
# In this article
# Errors from a data source
Troubleshooting information specific to your data source is available in its source connection guide.
# Errors from Iterable
# Fewer records in Iterable than synced
If you see a discrepancy between the number of records that have passed through your sync and the number of records displaying in Iterable, check your data set for duplicates. Smart Ingest automatically skips both duplicates when they share the same primary key, so the number of records in Iterable might be less than the number of records in your data model if your sync unintentionally contains duplicates.
# New columns don't appear in field mapping
If you add a column to your data warehouse table, view, or SQL query after you create a sync, the column appears in the model's Preview Results but not in the source field list on the Configuration tab. Field mapping lists only the columns that are saved to the model, so you must save the model after previewing it.
For full instructions on adding a new column, read Editing and Testing a Smart Ingest Sync.
# Sync error codes
This list is not exhaustive. If you need help with a specific error code, contact Iterable technical support.
# 400 - Request does not have the same data types as the data previously submitted
Here’s an example error message where the field value being synced to a user’s profile doesn’t have a data type that’s compatible with the destination field.
{ "msg": "Project 00000: The request does not have the same data types as the data previously submitted, or the input value is not within the correct range. Field 'date_field' already exists for type 'user' and has a data type of 'date' but possible types 'string, keyword' in the request.", "code": "RequestFieldsTypesMismatched", "params": { "validationErrors": { "date_field": { "incomingTypes": ["string", "keyword"], "expectedType": "date", "category": "user", "offendingValue": ["2023-04-19 12:15:30", "0000-00-00 00:00:00"], "_type": "UnexpectedType" } } } }
The first value in the offendingValue array is associated with the first
record in the batch sent to Iterable. The second value in the array is the value
causing the issue. One instance of this value ("0000-00-00 00:00:00") causes
the entire batch of records being sent to Iterable to fail.
To resolve the error, check for instances of ("0000-00-00 00:00:00") in the
date_field column of your data model and replace these values with null or a
valid date.
# 401 - Disabled API key or insufficient privileges
If a sync fails with the following error, the API key that Smart Ingest uses to connect to your Iterable project is disabled or doesn't have the required permissions.
Example error message:
401 - { "msg": "Disabled API key or insufficient privileges", "code": "BadApiKey", "params": { "ip": "198.51.100.11", "endpoint": "/api/users/getFields", "apiKeyIdentifier": "342342", "apiKeyType": "ServerSide" } }
You can't fix this error yourself. Contact Iterable technical support or your customer success manager, and include the sync name and the full error message.
# 413 - Request Entity Too Large
If you see this error, it means that there are so many records in your sync that the request size exceeds the maximum limit. To resolve this error, try lowering the batch size in your sync configuration.
This is possible for the following sync types:
- User
- Event