I am working in a service where I have two runtime data sources, I will refer to them as X (cardinality-many) and Y (cardinality-one) and they are of the same object class.
I have a for loop that iterates over a data source and in each iteration, I would like to create a new object in X with properties that do not depend on the current data source that I am iterating on. However, I get the error message: Error: Unable to find object in context - Iterator has probably been changed
.
Now that is strange, because that literally happens in the first iteration, and I haven’t modified the iterating data source at all.
Nevertheless, I tried a workaround solution to create an object in Y first then read it to X, but the same error message occurs again.
At this point, I’m just confused. To investigate further, I tried to create an object in Y OUTSIDE the loop and filled the properties with some hardcoded values that do not depend on any other data source - and the exact same error message appears. Note that I’m not even depending on any object in context, I’m just creating a completely new object.
As you can see from the attached image, this is the flow that I’m using now, the disabled create object was to create an object in Y and the one with the error is creating an object in X. Both result in the same error.
I checked the permissions for the object class and I already enabled Create, Read, Update, Delete
.
Does this happen to be a bug?