Hi Team,I am beginner for this and when i am trying to create interface as per given exercise facing below error:Interface Definition: Expression evaluation error at function a!forEach [line 3]: Error in a!forEach() expression during iteration 22: Expression evaluation error at function a!imageField [line 10]: Invalid Content IDPlease find screenshot and expression. Expression Rule a!queryRecordType( recordType: 'recordType!{391041f9-2ab5-47c8-aec1-305635d10c72}Maintenance', fields: { 'recordType!{391041f9-2ab5-47c8-aec1-305635d10c72}Maintenance.relationships.{c63442fb-89ae-4fd3-be56-1b5aadab0874}vehicle', 'recordType!{391041f9-2ab5-47c8-aec1-305635d10c72}Maintenance.relationships.{c63442fb-89ae-4fd3-be56-1b5aadab0874}vehicle.relationships.{85df0a35-5cc8-448b-95fc-ac0791c484b1}category', 'recordType!{391041f9-2ab5-47c8-aec1-305635d10c72}Maintenance.relationships.{c63442fb-89ae-4fd3-be56-1b5aadab0874}vehicle.relationships.{a0b52700-f420-4ded-a70b-9a9f3b824ae0}condition', 'recordType!{391041f9-2ab5-47c8-aec1-305635d10c72}Maintenance.relationships.{c63442fb-89ae-4fd3-be56-1b5aadab0874}vehicle.relationships.{58dd509b-7075-4405-b225-f52865ae23d5}status' }, filters: a!queryLogicalExpression( operator: "AND", filters: { a!queryFilter( field: 'recordType!{391041f9-2ab5-47c8-aec1-305635d10c72}Maintenance.fields.{fda5af99-cdb9-4b2b-8097-208dff1d9872}status', operator: "=", value: "Scheduled" ) }, ignoreFiltersWithEmptyValues: true ), pagingInfo: a!pagingInfo( startIndex: 1, batchSize: 100 )).dataInterface Expression:a!localVariables( local!scheduledMaintenanceRequest: rule!INT_getScheduledMaintenance(), a!forEach( items: local!scheduledMaintenanceRequest,expression: a!cardLayout( contents: { a!sideBySideLayout( items: { a!sideBySideItem( item: a!imageField( label: "Image", labelPosition: "COLLAPSED", images: { a!documentImage( document: if( condition: a!isNotNullOrEmpty(fv!item['recordType!{391041f9-2ab5-47c8-aec1-305635d10c72}Maintenance.relationships.{c63442fb-89ae-4fd3-be56-1b5aadab0874}vehicle.fields.{715947c2-2751-4682-a008-0bd0e48cb2c1}image']), valueIfTrue: fv!item['recordType!{391041f9-2ab5-47c8-aec1-305635d10c72}Maintenance.relationships.{c63442fb-89ae-4fd3-be56-1b5aadab0874}vehicle.fields.{715947c2-2751-4682-a008-0bd0e48cb2c1}image'], valueIfFalse: a!EXAMPLE_DOCUMENT_IMAGE() ) ) }, size: "MEDIUM", isThumbnail: false, style: "STANDARD" ), width: "MINIMIZE" ), a!sideBySideItem( item: a!richTextDisplayField( labelPosition: "COLLAPSED", value: { a!richTextHeader( text: fv!item['recordType!{391041f9-2ab5-47c8-aec1-305635d10c72}Maintenance.relationships.{c63442fb-89ae-4fd3-be56-1b5aadab0874}vehicle.fields.{f3fc2878-09d8-4176-bf82-5af8f7320519}year'] &" "& fv!item['recordType!{391041f9-2ab5-47c8-aec1-305635d10c72}Maintenance.relationships.{c63442fb-89ae-4fd3-be56-1b5aadab0874}vehicle.fields.{1a2c6566-65e6-4a1a-81be-c5279df93e58}make'] &" "& fv!item['recordType!{391041f9-2ab5-47c8-aec1-305635d10c72}Maintenance.relationships.{c63442fb-89ae-4fd3-be56-1b5aadab0874}vehicle.fields.{54a50af6-a063-472e-b5ba-9fc93343f383}model'], size: "MEDIUM" ), a!richTextItem( text: a!richTextItem( text: fv!item['recordType!{391041f9-2ab5-47c8-aec1-305635d10c72}Maintenance.fields.{7516c5ab-28fe-4da1-a477-94f6f3d04518}issue'] ) ) } ) ) } ) }, height: "AUTO", style: "NONE", shape: "ROUNDED", marginBelow: "STANDARD" )))
Discussion posts and replies are publicly visible
I would suggest to debug this code. Replace the image field component with a text field and only display the document id (Appian Id) in the value field. Vaildate if the Ids corresponds to valid appian doc ids.