Skip to main content
April 22, 2022
Question

Appian Developer course 【Exercixe8: Process Modeling 101,Part 1】got error

  • April 22, 2022
  • 4 replies
  • 0 views

Hi, Everyone

I am new to appian and now i'm doing appian developer course exercise.
【Appian Developer (Course) of Exercixe8: Process Modeling 101,Part 1 】
(No.11)I got this error and why this error occur i don' understand.Please reference below of image.

I checked AX_GetVehicleByID constant and tested .Test Output result please reference below of image.

Can anyone help me !!!!!

Thanks .

4 replies

harshitb6843
April 22, 2022

Try passing the value in the key-value pair (make it a habit) i.e.
vehicleId: 1

And next thing is to cast the array into a single value. Use the below code to cast your output. 

cast(
  typeof(type!yourCDTName),
  
)

girlc0001Author
April 26, 2022

Resolved my problem.
I tried this step.
(1)At first time when i created constant object i did not set parameter. So recreate constant object and set parameter.

Thank for you reply.

daisym0005
April 24, 2022

Try making use of For Each func and pass value .

it will help in getting all data .Example

a!foreach(items: index(yourqueried data,"data",1,null), expression:cast( typeof(type!your cdt name just type rest appian will help),fv!item)

if want for all just remove 1 .

girlc0001Author
April 26, 2022

Resolved my problem.
I tried this step.
(1)At first time when i created constant object i did not set parameter. So recreate constant object and set parameter.

Thank for you reply.