none
Can't query documents using AppOnly token - "The label that's applied to this item prevents it from being edited or deleted." RRS feed

  • Question

  • It appears that some change has been rolled out to certain SharePoint Online tenancies that has broken the ability to query documents using an AppOnly access token. This happens for both CSOM and REST queries.

    Queries that were working fine a week ago suddenly started failing, with the error:

    > "The label that's applied to this item prevents it from being edited or deleted. Check the item's label for more details."

    This error makes no sense because:

    1. There are no labels applied to the documents I am trying to query, and
    2. I'm not even trying to edit the items, just query them

    This seems to be only affecting certain tenancies at the moment, but it is affecting all apps that try to query from the affected tenancies (including a simple console app I made to troubleshoot the issue), and affects all files of certain types (Word, Excel, CSV, InfoPath XML, probably others) in all libraries of the affected tenancies.

    Based on this post on Stack Overflow, it looks like at least five other app developers aside from myself are seeing this problem. All of them report the same thing - that their apps were able to query documents fine until a week ago:

    > https://stackoverflow.com/questions/47135206/read-file-in-document-library-the-label-thats-applied-to-this-item-c-sha#comment81367516_47135206

    Is anyone at Microsoft paying attention to this issue or working to fix it? I opened an Office 365 support ticket, but was first told that it was an app-specific problem, and when I thoroughly demonstrated that it wasn't an app specific problem, I was told that there was nothing they could do to fix what is very clearly a breaking change.

    • Edited by James Rishe Saturday, November 11, 2017 2:45 PM
    Saturday, November 11, 2017 4:21 AM

All replies