You have an external system where data is exposed through a REST API endpoint. You have created a service-backed record type that connects to this external system, and configured a record data source expression and a sync expression. You have also configured syncing in batches.
When initiating a full sync of the record type for the first time, the sync fails and returns the following error:
“Unable to sync due to an error in the Record Data Source during batch number 1,026.”
After performing a direct query with an API analyzer such as Postman, you see that the external system returns an “416 Undefined” error at 1,026, indicating that there are no more records to be synced.
When the API returns a “416” error, how should you handle this error in the record data source expression and ensure the full sync on the record type completes successfully?