We are seeing errors in our logs for the linktodocument() when the pv of documen

We are seeing errors in our logs for the linktodocument() when the pv of document type is null.

I would hope the function could handle this and not create a log error. We do not get an Appian alert.

...

OriginalPostID-124579

OriginalPostID-124579

  Discussion posts and replies are publicly visible

Parents
  • Actually, Keith if you want to check the process variable document to see if it's null without throwing the error. Try this method:

    1. Download the plugin: Content Details by UUID from the Shared Components record.
    2. Use this function on the process variable document to avoid throwing the error message.
    =exact(getcontentobjectdetailsbyid(cons!Document), "No object with this internal name has been found")

    This will instead output the string message "No object with this internal name has been found" instead of the error message.
Reply
  • Actually, Keith if you want to check the process variable document to see if it's null without throwing the error. Try this method:

    1. Download the plugin: Content Details by UUID from the Shared Components record.
    2. Use this function on the process variable document to avoid throwing the error message.
    =exact(getcontentobjectdetailsbyid(cons!Document), "No object with this internal name has been found")

    This will instead output the string message "No object with this internal name has been found" instead of the error message.
Children
No Data