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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
SooryaP
Regular Visitor

concurrency lock condition error when writing multiple records to an audit log table simultaneously.

  • Issue: Facing lock condition errors when writing multiple records to an audit log table simultaneously.
  • Setup:
    • One master pipeline invoking multiple child pipelines.
    • Audit log notebook placed in both master and child pipelines.
    • During a child pipeline failure, the notebook activity updates the audit log table in parallel for both child and master pipeline rows.
  • Problem: Despite updates being made as separate rows, lock conditions occur, causing pipeline errors.
  • Attempts to Resolve:
    • Applied partition by.
    • Used update statements.
    • These methods did not resolve the issue in Fabric.

Framed Question:

What are some effective strategies or best practices to avoid lock condition errors when writing multiple records to an audit log table simultaneously in a pipeline setup, especially in a Fabric environment?



2 REPLIES 2
Anonymous
Not applicable

Hi @SooryaP 

Have you resolved this issue? If any of the answers provided were helpful, please consider accepting them as a solution. If you have found other solutions, we would greatly appreciate it if you could share them with us. 

 

Best Regards,
Jing

AndyDDC
Super User
Super User

Hi @SooryaP are you using the Warehouse service?  It uses snapshot isolation and has only table level locking. Concurrent UPDATE statements will likely cause issues. I explain further here:

 

https://www.serverlesssql.com/transaction-isolation-in-fabric-warehouses/

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Fabric Update Carousel

Fabric Monthly Update - October 2025

Check out the October 2025 Fabric update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.