a!imageField( label: "", labelPosition: "ABOVE", images: { a!documentImage( document: ri!Vehicle['recordType!{691ee044-4a47-4798-bd87-7f96ca362496}AX Vehicle.fields.{6927f3f6-187b-457b-a2b3-ee2ff6970659}vehicleImage'] ) }, size: "MEDIUM", isThumbnail: false, style: "STANDARD" )
I'm building a process model that displays maintenance request. In that I'm trying to add Vehicle details View interface in the column but after doing that I'm getting the above error. How should I fix this ?
Discussion posts and replies are publicly visible
Hello Kishore,
The reason for this issue is as the error message indicates: the 'vehicle image' record field doesn't have any documents (i.e., it holds a null value). To address this, you should incorporate a null check to handle the situation.
a!imageField( images: if( a!isNullOrEmpty(ri!doc), {}, { a!documentImage(document: ri!doc) } ) )
It worked! Thanks