thybag / PHP-SharePoint-Lists-API

A simple PHP API to make working with SharePoint lists easy.
MIT License
184 stars 95 forks source link

Trouble Accessing Online List - Fatal error: List does not exist. #152

Closed jeffreykarbowski closed 5 years ago

jeffreykarbowski commented 5 years ago

Hello, thank you for your efforts!

Your API seems to be working, and when I use getLists(); it returns:

[5]=> array(75) { ["doctemplateurl"]=> string(0) "" ["defaultviewurl"]=> string(56) "/sites/ConciergeService/Lists/ProviderList/AllItems.aspx" ["mobiledefaultviewurl"]=> string(0) "" ["id"]=> string(38) "{1D5C77F1-8CC6-4101-92B0-FB19F103AEF2}" ["title"]=> string(18) "Care Provider List" ["description"]=> string(0) "" ["imageurl"]=> string(36) "/_layouts/15/images/itgen.png?rev=45" ["name"]=> string(38) "{1D5C77F1-8CC6-4101-92B0-FB19F103AEF2}" ["basetype"]=> string(1) "0" ["featureid"]=> string(36) "00bfea71-de22-43b2-a848-c05709900100" ["servertemplate"]=> string(3) "100" ["created"]=> string(17) "20190123 18:34:03" ["modified"]=> string(17) "20190305 11:50:29" ["lastdeleted"]=> string(17) "20190226 20:14:49" ["version"]=> string(3) "111" ["direction"]=> string(4) "none" ["thumbnailsize"]=> string(0) "" ["webimagewidth"]=> string(0) "" ["webimageheight"]=> string(0) "" ["flags"]=> string(9) "545263624" ["itemcount"]=> string(3) "857" ["anonymouspermmask"]=> string(1) "0" ["rootfolder"]=> string(0) "" ["readsecurity"]=> string(1) "1" ["writesecurity"]=> string(1) "1" ["author"]=> string(1) "6" ["eventsinkassembly"]=> string(0) "" ["eventsinkclass"]=> string(0) "" ["eventsinkdata"]=> string(0) "" ["emailalias"]=> string(0) "" ["webfullurl"]=> string(23) "/sites/ConciergeService" ["webid"]=> string(36) "22ff1308-9095-4772-bd10-dcca4e9a5d5f" ["sendtolocation"]=> string(0) "" ["scopeid"]=> string(36) "9d17779a-9c91-4f3a-bb45-78217e79de99" ["majorversionlimit"]=> string(1) "0" ["majorwithminorversionslimit"]=> string(1) "0" ["workflowid"]=> string(0) "" ["hasuniquescopes"]=> string(5) "False" ["nothrottlelistoperations"]=> string(5) "False" ["hasrelatedlists"]=> string(0) "" ["followable"]=> string(5) "False" ["acl"]=> string(0) "" ["flags2"]=> string(2) "16" ["rootfolderid"]=> string(36) "cbb1c747-4b4f-4bb6-a5c3-2620f7847e00" ["compliancetag"]=> string(0) "" ["complianceflags"]=> string(1) "0" ["usermodified"]=> string(17) "20190227 18:37:43" ["listschemaversion"]=> string(3) "106" ["aclversion"]=> string(0) "" ["allowdeletion"]=> string(4) "True" ["allowmultiresponses"]=> string(5) "False" ["enableattachments"]=> string(5) "False" ["enablemoderation"]=> string(5) "False" ["enablerequestsignoff"]=> string(4) "True" ["enableversioning"]=> string(5) "False" ["hasexternaldatasource"]=> string(5) "False" ["hidden"]=> string(5) "False" ["multipledatalist"]=> string(5) "False" ["ordered"]=> string(5) "False" ["showuser"]=> string(4) "True" ["enablepeopleselector"]=> string(5) "False" ["enableresourceselector"]=> string(5) "False" ["enableminorversion"]=> string(5) "False" ["requirecheckout"]=> string(5) "False" ["throttlelistoperations"]=> string(5) "False" ["excludefromofflineclient"]=> string(5) "False" ["canopenfileasync"]=> string(4) "True" ["enablefoldercreation"]=> string(5) "False" ["irmenabled"]=> string(5) "False" ["irmsyncable"]=> string(5) "False" ["isapplicationlist"]=> string(5) "False" ["preserveemptyvalues"]=> string(5) "False" ["stricttypecoercion"]=> string(5) "False" ["enforcedatavalidation"]=> string(5) "False" ["maxitemsperthrottledoperation"]=> string(4) "5000" }

But, when I try read("ProviderList"); or read("{1D5C77F1-8CC6-4101-92B0-FB19F103AEF2}"); or read("Care Provider List"); I get:

Fatal error: Uncaught Exception: Error (soap:Server) Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.,more=Detailed: List does not exist. The page you selected contains a list that does not exist. It may have been deleted by another user.

Can someone point me in the right direction? Thanks!