Getting error "ResourceBudgetExceeded" while running Unlock-SPOSensitivityLabelEncryptedFile cmdlet

Sundram Sontirkey 117 Reputation points
2024-08-14T03:39:49.5566667+00:00

Hi,

I have been working on the sensitivity labels for removing and reapplying labels. I got the error while running Unlock-SPOSensitivityLabelEncryptedFile cmdlet.

It was running perfectly without any error, but when we started executing the cmdlet for more files. ( 200+ ) We started getting the error after 100 of files.

User's image

My first thought is some limitation of our trial tenant might be causing this. But I am not sure on this.

Please help me to identify the cause and handling this error.

Thanks a lot for your responses.

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,454 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 40,006 Reputation points Microsoft External Staff
    2024-08-14T08:08:24.1+00:00

    Hi @Sundram Sontirkey,

    The error "ResourceBudgetExceeded" typically indicates that the operation you're attempting to perform has exceeded some resource limit set by the system or service you are using.

    SharePoint Online and Microsoft 365 services have API rate limits to prevent abuse and ensure fair usage. If you're running many operations in a short period, you might hit these limits. You could refer to the following document

    https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-avoid-getting-throttled-or-blocked-in-sharepoint-online#application-throttling


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.