if(a!isNullOrEmpty(fv!row['recordType!AX Vehicle.fields.image']) ,a!EXAMPLE_DOCUMENT_IMAGE(), fv!row['recordType!AX Vehicle.fields.image'])
Hello AppiansI am new to Appian and following the Appian developer learning path I faced an error in "write a maintenance record" of the process model, tried to solve it but in the end, I deleted the project and started a new one and now I am facing this error
"Error Evaluating UI Expression Expression evaluation error at function a!gridField [line 51]: A grid component [label="null"] has an invalid value for "columns". A grid column [label="Image"] has encountered an error. Expression evaluation error at function a!imageField [line 51]: Invalid Content ID"
this error shows up once I add a new Document Image column in the list of the vehicle record type and for some reason, the Acme Auto Solution Application already built has the same error So I guess the problem is not from the expression or the record type Can anyone please help?
Discussion posts and replies are publicly visible
If you are using Document Image, Please check whether the document you are passing as parameter exists in the system.
Insert code snippet if it doesn't resolve your issue.
Thank you for your responseHow can I check?The image attribute of the Vehicle record type already has a value it was working before deleting the project I think it is a dependencies Issue
Please include your code snippet to debug on this more
if(a!isNullOrEmpty(fv!row['recordType!AX Vehicle.fields.image']), a!EXAMPLE_DOCUMENT_IMAGE(), fv!row['recordType!AX Vehicle.fields.image'])
Hey,At least share the grid snip in which you are using the image field.
Below are the things you need to check
1. Check if the Record AX Vehicle exists in the system. If this has been part of the project you have deleted earlier. You need to create a new Record and map it to the Database table (if not deleted)
2. If AX Vehicle Record exists, Check the Data Preview under Data Model tab by opening your record. Data should populate there if exists in the database.
3. Syntax for the EXAMPLE_DOCUMENT_IMAGE seems to be odd. There is no such Appian function. If you are trying to refer a constant you need to use cons!EXAMPLE_DOCUMENT_IMAGE
Hey Thank you for your response
I need to set an image in the image columnbut I am facing an error
The record is mapped and it has data, I can see the data in the Data Previewfor the syntax, I am following the learning path this syntax refers to a default image.
Please check the same data is being populated in the rule input or local variable of the Interface where you are calling this grid. Also if you are calling this interface in another interface or process, Please check the mappings and ensure data is being transmitted into your variables correctly.
I could see the ID's of images (6028,6057..). Please ensure that the documents are present in the system by searching with ID
Thank you againI searched with the IDs and nothing exists so I think this is the problem