Power Automate – resolving error – An entry without a type name was found, but no expected type was specified. To allow entries without type information, the expected type must also be specified when the model is specified.

Hi All,
Greetings for the day!!!
Today new issue and solution 🙂
Details / Background
- In one of our Power Automate we were using action – “Send an HTTP request to SharePoint“. We have very good article on calling SharePoint REST API from Power Automate – https://knowledge-junction.in/2022/07/12/power-platform-power-automate-calling-sharepoint-rest-api/
- Using the action “Send an HTTP request to SharePoint” we are trying to add user to respective group
- And our action details looks like

- But on execution of flow / testing of flow we were getting the error
- Flow was failing
Issue / Error
An entry without a type name was found, but no expected type was specified. To allow entries without type information, the expected type must also be specified when the model is specified.
clientRequestId: d63e273b-c736-4ebf-8e4e-4d809203f6c8
serviceRequestId: 739a6da0-3038-1000-ba71-a74eefe1ab99

Solution
- It was small silly mistake 🙂
- In the body of an action we have specified “metadata” as
{
"_metadata":{"type":'SP.User'},
'LoginName':'@{triggerOutputs()?['body/user/Claims']}'
}
- Please notice here we have underscore (“_”) before “metadata” keyword
- By mistake I only specified one underscore (“_”), those should be two
- As we specified two underscore (“_”) before “metadata” and tested flow, it went well. Flow executed successfully 🙂
- Corrected code as below
{
"__metadata":{"type":'SP.User'},
'LoginName':'@{triggerOutputs()?['body/user/Claims']}'
}
References
- Frequently used REST APIs – Part 1 – https://knowledge-junction.in/2022/09/01/frequently-used-rest-apis-part-1/
- Power Platform : Power Automate – calling SharePoint REST API – https://knowledge-junction.in/2022/07/12/power-platform-power-automate-calling-sharepoint-rest-api/
Thanks for reading !! If its worth at least reading once, kindly please like and share !!! SHARING IS CARING 🙂
Enjoy the beautiful life !! Have a FUN !! HAVE A SAFE LIFE !! TAKE CARE 🙂
You must be logged in to post a comment.