SOLVED
Home

Why would OData return that a list does not exist?

%3CLINGO-SUB%20id%3D%22lingo-sub-482179%22%20slang%3D%22en-US%22%3EWhy%20would%20OData%20return%20that%20a%20list%20does%20not%20exist%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-482179%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%20I%20have%20a%20list%20in%20the%20Sharepoint%20root%20called%20%3CSTRONG%3EEmployee%20Directory1%3C%2FSTRONG%3E.%20I%20build%20the%20Odata%20query%20according%20to%20the%20documentation%20but%20got%20this%20message.%26nbsp%3B%20I%20am%20starting%20to%20think%20that%20I%20need%20to%20enable%20Odata%20REST%20calls%20in%20SharePoint%20Admin%2C%20but%20I%20don't%20know%20where.%20I%20use%20Odata%20before%20in%20other%20sites%20and%20never%20had%20this%20issue.%20Did%20I%20miss%20anything%3F%3C%2FP%3E%3CP%3EThanks!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20876px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F110183i4642E5567739F2E2%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22ListDoesNotExist.gif%22%20title%3D%22ListDoesNotExist.gif%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-482179%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-482923%22%20slang%3D%22en-US%22%3ERe%3A%20Why%20would%20OData%20return%20that%20a%20list%20does%20not%20exist%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-482923%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F8793%22%20target%3D%22_blank%22%3E%40Paul%20Mather%3C%2FA%3E%26nbsp%3Bthanks.%20I%20later%20found%20out%20that%20the%20customer%20changed%20the%20list%20title.%20I%20had%20to%20go%20back%20Site%20Content%20and%20look%20at%20the%20original%20name%20by%20inspecting%20the%20URL%20link%20of%20the%20list.%20The%20function%20.getbytitle()%20requires%20the%20original%20name%20of%20the%20list%20and%20not%20what%20the%20customer%20decided%20to%20change%20it%20later.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20this%20OData%20query%20would%20have%20helped%20as%20well%20and%20I%20intend%20to%20use%20it%20next%20time.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20so%20much.%3C%2FP%3E%3CP%3E%3CSPAN%3E%7BSharePoint%20site%20URL%7D%2F_api%2Fweb%2Flists%3F%24Select%3DTitle%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-482878%22%20slang%3D%22en-US%22%3ERe%3A%20Why%20would%20OData%20return%20that%20a%20list%20does%20not%20exist%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-482878%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F185633%22%20target%3D%22_blank%22%3E%40Jose%20Zaldivar%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20is%20a%20SharePoint%20query%20so%20it%20might%20be%20best%20to%20post%20in%20the%20SharePoint%20community%20rather%20than%20Project%20but%20I%20will%20try%20to%20help%20here.%3C%2FP%3E%0A%3CP%3EIs%20Employee%20Directory1%20the%20correct%20list%20Title%3F%20If%20you%20use%20the%20following%20query%20do%20you%20see%20%22Employee%20Directory1%22%20listed%3A%26nbsp%3B%7BSharePoint%20site%20URL%7D%2F_api%2Fweb%2Flists%3F%24Select%3DTitle%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPaul%3C%2FP%3E%3C%2FLINGO-BODY%3E
Jose Zaldivar
New Contributor

Hi, I have a list in the Sharepoint root called Employee Directory1. I build the Odata query according to the documentation but got this message.  I am starting to think that I need to enable Odata REST calls in SharePoint Admin, but I don't know where. I use Odata before in other sites and never had this issue. Did I miss anything?

Thanks!

 

ListDoesNotExist.gif

2 Replies

Hello @Jose Zaldivar 

 

This is a SharePoint query so it might be best to post in the SharePoint community rather than Project but I will try to help here.

Is Employee Directory1 the correct list Title? If you use the following query do you see "Employee Directory1" listed: {SharePoint site URL}/_api/web/lists?$Select=Title

 

Paul

Solution

@Paul Mather thanks. I later found out that the customer changed the list title. I had to go back Site Content and look at the original name by inspecting the URL link of the list. The function .getbytitle() requires the original name of the list and not what the customer decided to change it later. 

 

But this OData query would have helped as well and I intend to use it next time.

 

Thanks so much.

{SharePoint site URL}/_api/web/lists?$Select=Title

 

Related Conversations