Power Automate

InvalidTemplateCannot Convert Primitive Value

The template validation failed: "Cannot convert a primitive value to the expected type 'Object'".

Root cause

You passed a simple string or number to an action input that requires a JSON object or array.

How to fix it

  1. Check if you are passing a JSON string instead of an actual JSON object. Use the json() expression to parse it.
  2. Ensure the dynamic content you selected is an Object, not a String property.

Decode any M365 error

Paste an unfamiliar error message into the interactive decoder — it searches every code in this catalog and explains the cause in plain English.

Open the Error Decoder →