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.

fig : Power Automate - using an action "Send an HTTO request to SharePoint" - POST request - adding user to SharePoint group - error - flow failed
fig : Power Automate - using an action "Send an HTTO request to SharePoint" - POST request - adding user to SharePoint group - error - flow failed

Hi All,

Greetings for the day!!!

Today new issue and solution 🙂

Details / Background

fig : Power Automate - using an action "Send an HTTO request to SharePoint" - POST request - adding user to SharePoint group
fig : Power Automate – using an action “Send an HTTO request to SharePoint” – POST request – adding user to SharePoint group
  • 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

fig : Power Automate - using an action "Send an HTTO request to SharePoint" - POST request - adding user to SharePoint group - error - flow failed
fig : Power Automate – using an action “Send an HTTO request to SharePoint” – POST request – adding user to SharePoint group – error – flow failed

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

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 🙂

Prasham Sabadra

LIFE IS VERY BEAUTIFUL :) ENJOY THE WHOLE JOURNEY :) Founder of Knowledge Junction and live-beautiful-life.com, Author, Learner, Passionate Techie, avid reader. Certified Professional Workshop Facilitator / Public Speaker. Scrum Foundation Professional certificated. Motivational, Behavioral , Technical speaker. Speaks in various events including SharePoint Saturdays, Boot camps, Collages / Schools, local chapter. Can reach me for Microsoft 365, Azure, DevOps, SharePoint, Teams, Power Platform, JavaScript.

You may also like...

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: