HI I'm getting an error while creating a form
Could not display interface. Please check definition and inputs. Interface Definition: Expression evaluation error at function a!imageField [line 60]: The image at index 1 in an image gallery component [label=""] has an invalid value for "document". "document" must not be null.
Please help me
Discussion posts and replies are publicly visible
As clearly mentioned in the error, the document id is null. Please check your code and make sure the document id will be there.
Hi, as Deepak said it is very clearly mentioned that the document ID passed is null one more thing here when using these types of components always try to apply to check whether the document passed is not null and the document ID passed is valid.
I'm a beginner can you please tell me how to resolve this error . I have created a Supervisor Form everything is working fine . But when I am trying to approve this form in process model it is showing this error.
Can you please share the code snippet and process variables screenshot the id which you are passing to the image filed is not valid or null.
Check this out .
a!imageField( images: if( isnull( ri!vehicle['recordType!{5f29c334-b8fd-43d7-aaf3-a50d45b1e0da}AS Vehicle.fields.{adfda79b-f400-47eb-a452-6dc179fd4c6d}vehicleImage'] ), {}, a!documentImage( document: ri!vehicle['recordType!{5f29c334-b8fd-43d7-aaf3-a50d45b1e0da}AS Vehicle.fields.{adfda79b-f400-47eb-a452-6dc179fd4c6d}vehicleImage'] ) ) )
Thank you Ujjwal your code helped me to clear my error
But 1 problem getting this error in process variable I've tried multiple times but not able to rectify this error
ERROR An error occurred while evaluating expression: =localize("de","","fr_CA","","ru","","sv","","pt","","ko","","el","","it","","fr_FR","","es","","ar","","zh_HK","","en_GB","","en_US",tostring(rule!AX_NewVehicleDisplayName(cancel: pv!cancel, vehicle: pv!vehicle)),"ja","","es_MX","","zh_CN","","pl","","nl","") (Expression evaluation error in rule 'ax_newvehicledisplayname': )
Share the snippet of the rule.
Code Snippet of AX_NewVehicleDisplayName ? or any other ?
Yes for this rule.