Search Results for

    Show / Hide Table of Contents

    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.

    1. Create a mapping, a new mapping version and add a repository for table 27.
    2. Create a mapping line for the created repository using the Find line action.

    1. Add Variable Key ErrorText, Variable Value ITEM NOT FOUND and Run Time Before Mapping Line.
    2. Add Variable Key ErrorText, without Variable Value and with Run Time After Record.

    1. Add Codeunit No. 5100957 with Run Time After Mapping Line and Parameter ERROR to the mapping line.

    1. Set a mapping line filter to a not existing item.
    2. If you Process the mapping, you will receive an error.


    Feedback
    Submit feedback for this page .

    In This Article
    Back to top 2025 © COSMO CONSULT - Data protection - Imprint