move error message logic and di_record creation into their own methods
move error message logic and di_record creation into their own methods

SalesforceFoundation/Cumulus,SalesforceFoundation/Cumulus,SalesforceFoundation/Cumulus,SalesforceFoundation/Cumulus