Hello,
we use the RelinkDocumentOperation rpc function to change the links in our tree to account for new predecessorLinkRef changes.
The rpc operation first creates a new link then deletes the old one hence creating new link refs. To keep the predecessorLinkRefs up to date with the newly created links we have a map that maps the old link refs to the new link refs. We use a forEach loop to call the rpc function on every link that has to be modified. The predecessorLinkRefs of the links are changed to the link ids of the result of the RelinkDocumentOperation.
We get the error “Missing predecessor Link” when doing this. Why could that be the case? To my understanding the new link should exist when referencing it later. Is this a timing problem? Could this be caused by a racing condition? What could i do to prevent this error or how would i implement it in a way that takes the newly created links into consideration?