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 Microsoft 365 Junction, Speaker, Author, Learner, Developer, Passionate Techie. Certified Professional Workshop Facilitator / Public Speaker. Believe in knowledge sharing. Around 20+ years of total IT experience and 17+ years of experience in SharePoint and Microsoft 365 services Please feel free me to contact for any SharePoint / Microsoft 365 queries. I am also very much interested in behavioral (life changing) sessions like motivational speeches, Success, Goal Setting, About Life, How to live Life etc. My book - Microsoft 365 Power Shell hand book for Administrators and Beginners and 100 Power Shell Interview Questions - https://www.amazon.in/Microsoft-Administrators-Beginners-Interview-Questions/dp/9394901639/ref=tmm_pap_swatch_0?_encoding=UTF8&qid=1679029081&sr=8-11

You may also like...

Leave a Reply

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