Delete marked objects without Exclusive mode



The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Interested
Rating: 30
Joined: Oct 27, 2011
Company: Abaco Soluciones S.A.

According to the platform help it should be possible, but I still got error that I need to run DeleteObjects in exclusive mode. Could someone plese help me with that.

Internal help is not that clear:

Quote
The reference integrity is checked in the Version8_3_2 compatibility mode or in the compatibility mode with a lower version, the exclusive mode must be set up.

How do I need to arrange parameters to make it possible to run in non-exclusive mode? (I still need to check reference integrity with this o with some other function before deletion)

Thanks for your help

Edited: Alexey Gerasimov - May 31, 2017 10:18 PM
 
#2
People who like this:0Yes/0No
Active user
Rating: 2
Joined: Nov 24, 2011
Company:

Maybe you need set up compatibility mode in the configuration properties(in the bottom configuration properties list) in configuration mode?

 
#3
People who like this:0Yes/0No
Administrator
Rating: 10
Joined: Nov 3, 2011
Company: 1C Company

Alexey, I checked the built-in help and found a typo: it is Version8_3_4, not Version8_3_2.

What's your compatibility mode? If it is Version8_3_3, you'll still get the error and it is the correct behavior. Please try compatibility mode Version 8_3_4 or later.

 
#4
People who like this:0Yes/0No
Interested
Rating: 30
Joined: Oct 27, 2011
Company: Abaco Soluciones S.A.

I have version 8.3.6 compatibility mode set. Still get an error

upd ate

I have tested with 8.3.9 compatibility mode off:

{DataProcessor.DeleteMarkedObjects.ManagerModule(110)}: Exclusive mode must be se t
Raise ErrorMessage;

Edited: Alexey Gerasimov - Jun 01, 2017 03:20 PM
 
#5
People who like this:0Yes/0No
Administrator
Rating: 10
Joined: Nov 3, 2011
Company: 1C Company

Oh... please give us some time to investigate this.

 
#6
People who like this:0Yes/0No
Interested
Rating: 30
Joined: Oct 27, 2011
Company: Abaco Soluciones S.A.

Hello!
Do you have any news?

 
#7
People who like this:0Yes/0No
Administrator
1C:Professional
Rating: 10
Joined: Jun 25, 2013
Company: 1C Company

Hello!

No, we're still working on it.

1C Company support team
 
#8
People who like this:0Yes/0No
Administrator
1C:Professional
Rating: 10
Joined: Jun 25, 2013
Company: 1C Company

Hello, Alexey Gerasimov,

We've found a mistake in the Syntax Assistant. In your case, exclusive mode is required and it doesn't depend on compatibility mode. We'll fix the documentation ASAP.

1C Company support team
 
#9
People who like this:0Yes/0No
Interested
Rating: 30
Joined: Oct 27, 2011
Company: Abaco Soluciones S.A.

So there is no way I can delete market objects without exclusive mode?? It is very difficult for installation with at least 10 users. Someone always leave computer in sleep mode or just open screen.. so there is no good time to object deletion. And I do not want anybody with interactive delete rights.

 
#10
People who like this:0Yes/0No
Administrator
1C:Professional
Rating: 10
Joined: Jun 25, 2013
Company: 1C Company

Take a look at Deletion of Marked Objects data processor in Subsystems Library (not the standard one in the platform), it allows you to delete objects in non-exclusive mode.
The solution there avoids using the DeleteObjects method but instead opens a transaction for each object, deletes the object, looks up for deadlinks, and commits the transaction if no deadlinks are found.

1C Company support team
 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)