Page 1 of 1

Unable to add node with the same nodeId of a deleted node

Posted: 20 Jun 2019, 11:39
by alberto.piovan
Hi,
I am using .NET SDK 3.0.0 with .NET Framework 4.7.2.
In my server application I have successfully removed an object node using the relative method of the node manager

Code: Select all

DeleteNode(RequestContext context, NodeId nodeId, bool deleteTargetReferences)


If then I try to add a new object with the same NodeId of the previously removed node using:

Code: Select all

CreateObject(RequestContext context, CreateObjectSettings settings)
an exception is thrown because the requested NodeId already exists.

Have I to do other operations before adding the new node?

Thank you,
Alberto Piovan

Re: Unable to add node with the same nodeId of a deleted node

Posted: 17 May 2021, 09:28
by sudhapc
Hi ,

i am also facing the same issue did you find any solution ?

Re: Unable to add node with the same nodeId of a deleted node

Posted: 17 May 2021, 12:49
by Support Team
Hello,

we assume that the delete operation was not completed properly. Please check the returned StatusCode of the DeleteNode() function for more information.

Re: Unable to add node with the same nodeId of a deleted node

Posted: 18 May 2021, 10:13
by sudhapc
Thank you.
posting my solution for reference.
it was throwing baduseraccessdenied status code
enabling the access by overriding hasaccesstodeletenode in node manager solved the issue