We've a script to enable UNSAccountB called TSB_UNSAccountB_Insert. It's a part of a process:
When executed from process in return we get:
<e>2017-08-01 14:34:55 +02:00 - \IDMTEST - VI.JobService.JobComponents.ScriptComponent - 7dff7548-c2fe-4e4f-bf5d-8a5a2b2c1190: Errors occured Optimizing by using the existing connection. [810222] Error executing script 'TSB_UNSAccountB_Enable'. [810025] User accounts: Write permission denied for value "User account is disabled".
When script is executed from Designer\Object Browser everything is OK.
PS. Weird thing is that someday ago it was working fine in a process too.
Public Function TSB_UNSAccountB_Enable(ByVal AccountName As String, ByVal Ident_UNSRoot As String) As Boolean Dim f As ISqlFormatter = Connection.SqlFormatter Dim UNSAccountB As IEntity = Nothing Dim UID_UNSRootB As String = Connection.GetSingleProperty("UNSRootB", "UID_UNSRootB", f.Comparison("Ident_UNSRoot", Ident_UNSRoot, ValType.String, CompareOperator.Equal)) If Session.Source.TryGet( Query.From("UNSAccountB") _ .Where(f.Comparison("AccountName", AccountName, ValType.String, CompareOperator.Equal, FormatterOptions.NonUnicodeLiterals)) _ .Where(f.Comparison("UID_UNSRootB", UID_UNSRootB, ValType.String, CompareOperator.Equal, FormatterOptions.NonUnicodeLiterals)) _ .SelectNonLobs, UNSAccountB ) Then UNSAccountB.PutValue("AccountDisabled", False) Using uow As IUnitOfWork = Session.StartUnitOfWork() uow.Put(UNSAccountB) uow.Commit() End Using Return True End If Return False End Function