Hi,
I am receiving an error when I try to clear out a person field using Sent an HTTP Request to SharePoint. It is a SharePoint Library.
The error is:
A type named 'SP.Data.TestListListItem' could not be resolved by the model. When a model is available, each type name must resolve to a valid type.
The person field is SOL
Does anyone know what I am doing wrong?
Thank you
Solved! Go to Solution.
Hi @Anonymous,
The Error that you met is caused by the wrong SP.ListNamelListItem, did you have renamed your List name in the past time?
If you have done, you can use the following link to get the ListEntityTypeFullName:
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous,
The Error that you met is caused by the wrong SP.ListNamelListItem, did you have renamed your List name in the past time?
If you have done, you can use the following link to get the ListEntityTypeFullName:
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Lin Tu,
Thank you for your help. It is a new document library I just built to troubleshoot and I named it TestList
Unfortunately when I try this
/_api/web/lists/getbytitle(‘TestList’)?$select=ListItemEntityTypeFullName
after the site, I receive this error.
Hi @Anonymous,
I can reproduce your problem with the wrong list name, your issue probably caused by the error list name:
You could refer to this blog to get the XML data of a SharePoint list, then get the correct list name:
Getting-xml-data-from-a-sharepoint-list-the-easy-way
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
ok, it works perfectly. Thank you.
My last struggle was with the List vs the Library. The SP.Data is TestListItem for a Library but it is TestListListItem if it's a Custom List. One more List 🙂
Anyway, Lin Tu, your solution
_api/lists/getbytitle('TestList')?$select=ListItemEntityTypeFullName
shows me the exact SP.Data list name.
Thank you so much! You made my day!!!!