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!
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
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”
]
}

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 🙂
You must be logged in to post a comment.