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 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...

Leave a Reply

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

%d bloggers like this: