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

Power Automate - Error - An entry without a type name was found, but no expected type was specified.
Power Automate - Error - An entry without a type name was found, but no expected type was specified.

Hi All,

Greetings for the day!!!

Today new issue and solution!

Background

  • We have simple Power Automate to query to the SharePoint online list using REST API
  • We are using “Send an HTTP request to SharePoint” action
  • We need to get the all items from SharePoint list
  • For testing purpose we are fetching first (1) item only as shown in below fig
  • Send an HTTP request to SharePoint” action is getting failed
 Power Automate - Calling REST API for accessing list items
fig : Power Automate – Calling REST API for accessing list items

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: 020bd035-1b2e-4fbb-9e54-bd0bbcf7dc03
serviceRequestId: d4925ba0-a03d-1000-85bc-385e7e9faa7c

Body
{
“status”: 400,
“message”: “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.\r\nclientRequestId: 020bd035-1b2e-4fbb-9e54-bd0bbcf7dc03\r\nserviceRequestId: d4925ba0-a03d-1000-85bc-385e7e9faa7c”,
“source”: “https://knowledgejunction1.sharepoint.com/sites/Demo/_api/web/lists/getbytitle(‘UpdatePerson_PowerAutomate’)/items(1)”,
“errors”: [
“-1”,
“Microsoft.SharePoint.Client.InvalidClientQueryException”
]
}

fig : Power Automate – Error – An entry without a type name was found, but no expected type was specified.

Solution / Cause

  • This is the error because wrong value in metadata properties in body of action “Send an HTTP request to SharePoint
  • Value for the metadata attribute is SP.Data.<ListName>ListItem i.e. – ListItemEntityTypeFullName
  • Our List title is get updated but not ListItemEntityTypeFullName and that the issue
  • We can get correct ListItemEntityTypeFullName by using REST API –

/_api/web/lists/getbytitle('updateperson')/ListItemEntityTypeFullName 

https://knowledgejunction1.sharepoint.com/sites/Demo/_api/web/lists/getbytitle('updateperson')/ListItemEntityTypeFullName 

  • Use the correct ListItemEntityTypeFullName and respective action will get successfully executed

Thanks for reading !!! Please feel free to discuss / suggestions / share thoughts !!!

HAVE A GREAT TIME AHEAD !!! LIFE IS BEAUTIFUL 🙂

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.

Discover more from Microsoft 365

Subscribe now to keep reading and get access to the full archive.

Continue reading