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
3 replies
Subscribers
8 subscribers
Views
1547 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Strange error using document() No matter the context, I receive the s
charlesa480
Certified Lead Developer
over 9 years ago
Strange error using document()
No matter the context, I receive the same error "Invalid function document".
I've tried fn!document. Stranger still the look ahead search finds document() in the interface editor, and the help info displays at the bottom of the interface editor.
OriginalPostID-183210
OriginalPostID-183210
Discussion posts and replies are publicly visible
0
Vinod Bongoni
Certified Lead Developer
over 9 years ago
The document is not exists in the system with that ID. Appian is displaying this error message when the document is not available in the system.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tyler Criste
Appian Employee
over 9 years ago
There is a known issue with the document() function that it returns that error message when it can't find the document in question. Are you sure that 15015 references a valid document?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 9 years ago
@charlesa If you aren't sure about the existence of a document with the id you are making use of in document() function, I would like to suggest to check the existence of the document by using the function 'isObjectExists' in the plugin 'Check Object Existence' at https://forum.appian.com/suite/tempo/records/type/components/item/i8BCLGOdlMUpdGVqT-RV7oRg74uEGJO5yEbVIpfCClvjR5GoJdMd04FtoBxG_rztQ/view/summary.
If you are sure that the document id is valid, then I would like to suggest to inspect the logs for finding out the root cause for the failure of document function. I hope this wouldn't be a case.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel