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

  • Could you wrap the document around an if statement and check if the document is null, before creating the linktodocument(). Then it would only create the link if the doc already existed. It would go something like if(isnull(document), <Action when doc is null>, <createlinktodocument>)
  • 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.