Skip to main content
Inspiring
Feb 26, 2024 1:59 PM UTC
Question

Getting Expression error like An error occurred while applying the context for the MDS FBM Case related action [identifier=1,356]. Details: Could not cast from Check_testRequest?list to Dictionary. Details: CastInvalid

Hi 

In Record related action context i have passed like this  to get request id details from query 

rule!Cust_QE_getRequest(
requestId:rf!requestId,
returnCastedData: true
)

when i am trying to access related action getting error like below could you please suggest on this

An error occurred while applying the context for the MHK Data Case related action [identifier=1,356]. Details: Could not cast from Check_testRequest?list to Dictionary. Details: CastInvalid

5 replies

konduruc733182
Inspiring
Feb 26, 2024 3:33 PM UTC

Hello [mention:d2329cbf3ade4de5b8122d425883af31:e9ed411860ed4f2ba0265705b8793d05] 

You will have to make sure the output that the expression rule is returning and the context (Which would be defined in your Process as a Parameterized variable) are of same type.

Inspiring
Feb 26, 2024 3:56 PM UTC

Thank you Chaitanya

The query rule is returning output in the form of list and process variable type was CDT which is parameterized 

konduruc733182
Inspiring
Feb 27, 2024 8:05 AM UTC

You were able to fix the issue?

harshitb6843
Brainy
Feb 27, 2024 8:12 AM UTC

What version of Appian are you using? They deprecated rf! and introduced rv!