Skip to main content
abdurrahimi5760
January 19, 2023
Question

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

  • January 19, 2023
  • 0 replies
  • 0 views

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.