Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
2 replies
Subscribers
6 subscribers
Views
1682 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
We are seeing errors in our logs for the linktodocument() when the pv of documen
Keith
over 10 years ago
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
0
shiv.sinha
Appian Employee
over 10 years ago
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>)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
shiv.sinha
Appian Employee
over 10 years ago
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.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel