Hello,
I'm having an strange issue here. I have a grid showing some documents (they are a rule input variable type).
To get this documents I have a script that gets their ID from database.
The problem is that there is a document with the ID on appian and when I do the tests designing the interface everything seems to work fine with the exact same data. And then on the interface in the record list anything shows but this error in red
I would like to know if there is any other way to get this kind of error when the document exists and it hasn't been deleted.
Thanks,
Discussion posts and replies are publicly visible
The most common approach is to add a null-check on the field that contains the document value and either hide the component, or show an alternative image.
Can you confirm that all of the doc IDs are valid, were "submitted" after being uploaded, and are in a valid Appian Folder? The error you've posted is also the error given if the document() function is tried on a Doc ID that is in an invalid state (was uploaded but never "submitted" on its form), and also if you try to run the function on a value of Zero (0).
Thanks for the response, how do I check the documents state to see if they have been correctly submitted?
The main way, unfortunately, is to do it manually -- like by searching the individual Doc IDs in the Objects tab in Designer, and/or trying to run the "document()" function on them and see whether or not they produce an error.
Thank you!!