Operation failed because object was locked

scottwadescottwade Posts: 2
edited February 20, 2017 8:41AM in SQL Source Control
I am trying to commit changes to a database (views, procs) to TFS (Visual Studio Online) and getting an error now. Never had an issue before.

The operation failed because an object was locked: $/..... table.sql

Any ideas? I have not enabled any locking also.

Maybe something wrong with corrupted cache?

Comments

  • Hi Scott,

    Sorry to hear you're experiencing this problem. The error message is suggesting that a file in your repository is locked, so I don't think it's referring to SQL Source Control's locking feature - that is for locking objects within the database. It's possible that it might be locked within TFS itself. I'd recommend investigating to see if there's anything odd going on in there that might be preventing you from committing.
    Software Engineer
    Redgate Software
Sign In or Register to comment.