I am trying to establish a relation between two objects, using an object currServiceLineObject and an objectId transportObjectId:
I get this error in return, showing that the where clause is invalid
Any help would be appreciated!
I am trying to establish a relation between two objects, using an object currServiceLineObject and an objectId transportObjectId:
I get this error in return, showing that the where clause is invalid
Any help would be appreciated!
Could you add a print
block right before the Add Object Relations
to make sure the error is coming from there?
The custom code blocks I’m using are printing to the console behind the scenes, these should be sufficient as print blocks?
I added pre and post print statements before and after the relation is set
And here are the results, pre is printed but post is never reached:
Thank you, it is a bit of an overkill to use Custom Code just for printing. The print block would do the same thing.
The problem I believe is with the children connector. It expects a collection of objects (I think). Try wrapping transportObjectId
into a list.
Thank you!
I agree that it’s a bit of an overkill, right now I’m printing many other values so having a separate area in the console that I can quickly view to find a value is helpful
And wrapping the transportObjectId into a list worked! Thank you for the quick responses