I recently got an error message stating that a user doesn't have permission to a certain document that's displaying in a grid. We write all our Appian doc ids to a table so while debugging I got the documentId of the document that was causing the error and searched for it in design/objects using the documentId and was on unable to find the document. I also search by the document name but found nothing as well. What's strange is that the document() function gets all the document properties and the grid that's displaying shows the document for admin users without any issues. My plan was to update the permissions of the document in design but I'm unable to find it. Thoughts?
Error message:
Error Evaluating UI ExpressionExpression evaluation error [evaluation ID = X] in rule 'X' (called by rule 'X') at function a!gridField_19r1 [line 11]: User Does Not Have Rights to Perform this Operation
Discussion posts and replies are publicly visible
Hi Jamal Case, that definitely seems like a security problem (your user that does not have access to that document). You are probably not saving that document in your application.
You should search for it in your main Objects Tab. You can even search by ID if you already have it (change it the loop menu in close Name or description.
I've already search the docId by the "UUID or ID" filter in the objects tab and still didn't find the document. Null results was return.
Are you a system administrator? Does your user have the necessary permissions to view that document or KC in which that document is being created?
Yes, my personal account is a system administrator. When I search for the document in the objects tab, it doesn't show up but when I use the document() function, I'm able to retrieve all the properties of the doc.
Are you able to find the KC of the document using document(cons!TEST_DOC,"knowledgeCenterId")? Can you search for that KC by ID?
knowledgeCenterId returns null results as well.
Try creating a sample interface using design\interface, and creating a component with a documentDownloadLink, then see if it will let you DL the document from that, assuming you have the correct doc ID. Then I'd try global object search by name.
I was unable to fine the document in the global search.