error log file

since we are not able to import multilple entities at a time so we create a interface table for that so after creating interface table we need to map the data to their related entities. i want to create the error logging system during mapping the data. so that i can check that what is the error duirng the mapping. so how to create error log file for that,please give the detailed procedure.
1 answers

You need to create your own error logs. Create a new entity Errorlogs and a new entity ErrorlogDetails. In the Errorlogs make a attribute that holds the total number of errors. With every import make a new Errorlog. Now when you trigger the microflow that does the import and validations make sure that every time you want to log an error, create a new ErrorlogDetails with the specifics of the error (and make sure that the reference is set to the ErrorLog) and add one to the total number of errors.

This way you have all the errors after the import to your disposal.

Good luck,