Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Vinsari418
New Member

Getting error: Microsoft.Cloud.Platform.Utils.AcquireLockTimeoutException

Hi, we are making REST http calls to PBI, but sometimes we are getting this error:

 

 

{"error":{"code":"GeneralException","message":"Failed to process dataset PostRows","target":"PostRows","details":[{"message":"Exception of type 'Microsoft.Cloud.Platform.Utils.AcquireLockTimeoutException' was thrown."}]}}
Request URI: /v1.0/myorg/groups/HIDDENGUID/datasets/HIDDENGUID/tables/WORKORDER/rows

{"error":{"code":"GeneralException","message":"Failed to process dataset DeleteRows","target":"DeleteRows","details":[{"message":"Exception of type 'Microsoft.Cloud.Platform.Utils.AcquireLockTimeoutException' was thrown."}]}}
Request URI: /v1.0/myorg/groups/HIDDENGUID/datasets/HIDDENGUID/tables/WORKORDER/rows

 


Any idea on what it might be? Thanks! 

5 REPLIES 5
Anonymous
Not applicable

Hi  @Vinsari418 ,

 

I can understand that there is no other sources trying to update the tables, if possible, may you kindly try to configure some retry logic for the "Delete" API that randomly get 500 AcquireLockTimeoutException to further avoid this random error affecting the business in the future?

Retry a failing request - 🙋 Help - Postman Community

How to rerun the same request a few times - 🙋 Help - Postman Community

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Thanks for the reply from lbendlin , please allow me to provide another insight: 

Hi  @Vinsari418 ,

 

This error indicates that there was a timeout while trying to acquire a lock, which prevented the dataset from processing the PostRows request. 

Please kindly check if there's a chance for your HTTP post process to add some retry logic to avoid the one time failure, and if you are posting a large number of rows, consider breaking them into smaller batches. This can reduce the likelihood of lock contention and improve the overall performance of your data load operations.

Another possible root cause is that you need to ensure that the dataset and table you are trying to post rows to are not being updated or processed by another operation simultaneously. This can cause lock contention and result in timeout errors.

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Vinsari418_0-1730287525157.png


i can confirm that there is no other sources trying to update the tables. But i randomly get this 500 AcquireLockTimeoutException. Even when i am trying to delete the rows, which should be empty anyways because i had deleted them previously.

Vinsari418
New Member

Yes 100% no other sources deleting/pushing rows.

lbendlin
Super User
Super User

Is someone else pushing rows into that dataset while you are trying to truncate the table?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.