|
Error reporting for data loading is not consistent among FOLIO endpoints. The Ansible tasks that load data need to be able to distinguish between a duplicate record (which should not be an error in an idempotent load script) and malformed data, both of which may result in a 422 (unprocessable entity) error. Some endpoints will report a 400 for a duplicate record. The current module-sample-data task reports "changed" if the endpoint reports a 2XX and "unchanged" if the endpoint reports a 400 or 422. This is not granular enough to catch mismatches between the sample data and the schema.
For performance reasons, it is not practical to check for the existence of every sample record before loading, so some level of error message parsing should be added to the role.
|