Scenario:
- I am building a custom flow to fetch files from FTP, parse them into a different format, and process them.
- Each file contains multiple purchase orders (POs) that I lookup in NetSuite (one-to-many relationship).
- If an error occurs during processing, I throw an error using
postResponse
and attach the file name for debugging purposes.
Issue:
- I retrieve the file name by adding
{{record.fileName}}
in the data URI and using apreSave
hook as per the Celigo documentation. - However, the same file name is being attached to all errors, instead of the specific file name for each record.
Goal:
Attach the correct file name to each error for accurate debugging.