The operation could not complete because a record in the Company table was locked by another user

TallyHo
Member Posts: 417
Hi,
Using BC140, pretty much standard configuration.
I'm busy importing a company into a database using Import-NAVData in powershell.
The importing came to a halt because of a time-out was reported from the sql server.
Now, when I check the company's in my database, I can see the newly imported company is there.
But, I want to remove it, because I do not trust it. (Importing came to a halt due to an error).
Now, every action I perform returns the same error:
'The operation could not complete because a record in the Company table was locked by another user. Please retry the activity.'
I tried:
Servicetier restart
Compiling the companytable as admin with force
Remove-NAVCompany -CompanyName TheCompany -Force -ForceImmediateDataDeletion -ServerInstance BC140
Sync-NAV tenant -Force
Starting the RTC (does not wok
The SQL database is on a server. I cannot rely on a backup (it is not a 'real' problem, because it is a test database).
But, I'd like to know is there anyway to fix this without drastic measures? In case it happens in a live situation.
Some powershell or SQL command perhaps?
Help is appreciated!
Using BC140, pretty much standard configuration.
I'm busy importing a company into a database using Import-NAVData in powershell.
The importing came to a halt because of a time-out was reported from the sql server.
Now, when I check the company's in my database, I can see the newly imported company is there.
But, I want to remove it, because I do not trust it. (Importing came to a halt due to an error).
Now, every action I perform returns the same error:
'The operation could not complete because a record in the Company table was locked by another user. Please retry the activity.'
I tried:
Servicetier restart
Compiling the companytable as admin with force
Remove-NAVCompany -CompanyName TheCompany -Force -ForceImmediateDataDeletion -ServerInstance BC140
Sync-NAV tenant -Force
Starting the RTC (does not wok
The SQL database is on a server. I cannot rely on a backup (it is not a 'real' problem, because it is a test database).
But, I'd like to know is there anyway to fix this without drastic measures? In case it happens in a live situation.
Some powershell or SQL command perhaps?
Help is appreciated!
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions