Find else Error
- How can I get an error when a record is not found?
In this example, we're creating a mapping that throws an error when a record is not found.
- Create a mapping, a new mapping version and add a repository for table 27.
- Create a mapping line for the created repository using the Find line action.
- Add Variable Key ErrorText, Variable Value ITEM NOT FOUND and Run Time Before Mapping Line.
- Add Variable Key ErrorText, without Variable Value and with Run Time After Record.
- Add Codeunit No. 5100957 with Run Time After Mapping Line and Parameter ERROR to the mapping line.
- Set a mapping line filter to a not existing item.
- If you Process the mapping, you will receive an error.
Feedback
Submit feedback for this page .