Skip to main content
abdurrahimi5760
Known Participant
Jan 19, 2023 3:40 PM UTC
Question

An error occurred while executing a save: Could not cast from List of Dictionary to Dictionary. Details: CastInvalid

Problem and Solution ---> Received this error when I tried to compare two variables values, one is of dictionary of data eg: { category: "vehicle", type: "car" }  and other list of dictionary data eg: {{ category: "vehicle", type: "car" }}.

This double curly braces in the 2nd example introduced this error, when I tried to match the value with 1st example. Hence, made the change accordingly by adding append function to the 1st example.

Used append like the below code.