This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Script Error: Employees: Write permission denied for value "Disabled permanently".

I have this script which throws "Employees: Write permission denied for value "Disabled permanently"." error during execution. What I'm missing?


Public Function CCC_InActivatePerson(
    ByVal UID_Person As String) As String
	Dim Person As ISingleDbObject = Connection.CreateSingle("Person", UID_Person)
	Person.PutValue("IsInActive", 1)
	Person.PutValue("XMarkedForDeletion", 0)
	Return String.Empty

End Function

  • do you get the same Error with viadmin ? if not then it has something to do with your systemuser permissions (just for IsInactive attribute)
    but it guess it is not possible to set the XMarkedForDeletion with objectlayer