Power Automate
InvalidTemplate — Cannot 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
- Check if you are passing a JSON string instead of an actual JSON object. Use the json() expression to parse it.
- 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 →