Automate

 View Only
  • 1.  Skip Loop Error

    Posted 09-06-2019 11:50
    ​​Is there a condition that can be added to continue the loop even if there is an error when the loop is running?

    ------------------------------
    Lisa Hardy | SAP Analyst
    Hanesbrands, Inc. | 3365196188
    ------------------------------


  • 2.  RE: Skip Loop Error

    Employee
    Posted 09-06-2019 14:53
    Hi Lisa

    Can you please share a bit more about your use case?   I'm not quite sure we can help you unless we understand more about what you're trying to do.

    For "document postings", i.e. header data with a variable number of line items, you are posting all of it or none of it.  This is as designed, because for example you wouldn't want to post an journal entry with line items missing, or a BOM with key components missing, or an invoice with lines missing.

    But for an initial thought, you could do a validate on the line items, and if there is an error on that line, you could use some type of condition to skip that row.  By default the errors are color coded, but you can swap to strings, like "Err:.....".  (In Studio go to Options -> Logs & Errors -> choose Error prefixes).   You could then use an IF condition that says if the logfield column starts with "Err", skip that row (line item).  But you would have to be sure to validate first before trying to post.  And you would have to deal with those lines that are skipped.  For many SAP postings, it's really important to get all of it posted or none of it.

    Again, please share a bit more detail - tcode and the type of errors you're encountering and want to skip.

    Best Regards,
    Sigrid

    Hope that gives you and idea.

    Best Regards,


    ------------------------------
    Sigrid Kok
    pse | Winshuttle North America
    ------------------------------



  • 3.  RE: Skip Loop Error

    Employee
    Posted 09-07-2019 13:48
    HI Lisa

    No, not be default.  An error will stop the entire object from loading.

    Best Regards,
    Sigrid

    ------------------------------
    Sigrid Kok
    pse | Winshuttle North America
    ------------------------------