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

Certified Senior Developer

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.

  Discussion posts and replies are publicly visible