Add checks for data quality issues and logging of failed records.
Add checks for data quality issues and logging of failed records.