Skip to main content
Inspiring
Apr 21, 2025 8:15 AM UTC
Question

getting process error a!fromJson: Invalid index: Cannot index property 'body' of type Text into type Text) (Logic Output) in appian

Hi

Process was getting errored saying the error like a!fromJson: Invalid index: Cannot index property 'body' of type Text into type Text) (Logic Output) in appian in the output of node passing the logic like below 

tointeger(
index(
a!fromJson(
it was integration:rule!UIP_GetQueueItemBy(
OrgsUnitId: 100,
reference: ri!reference (type of rule input reference is text)
).result.body
),
"@odata.count"
)
) > 0

Kindly suggest on this for some instances it was working well for some it was erroring like above

2 replies

stefanhelzle0001
Brainy
Apr 21, 2025 9:12 AM UTC

I assume there is more logic in this "rule!UIP_GetQueueItemBy" to make it return inconsistent data.

Inspiring
Apr 21, 2025 9:50 AM UTC

Thank you for confirmation

It was an integration with defining all connection, query parameter and filters details and response selected as Return raw response body