Hello, all.
In the property of Find Slot activity, I set the query to "ORDER BY/ Distance from Object."
However, when I ran the simulation, an exception occurred. The message is as follows.
time: 10.859958 exception: SQL Evaluation Exception: FlexScript exception thrown in evaluation of code. Code is: ((param(1).as(Storage.Slot).location.project(param(2).as(Storage.Slot).storageObject,model())) - (param(3).as(Object).location.project(param(4).up,model()))).magnitude. Forwarding throw. time: 10.859958 exception: SqlQuery - FlexScript Exception in: ORDER BY (slot.location.project(slot.storageObject, model()) - $1.as(Object).location.project($1.up, model())).magnitude ASC
I think it is because the query assumes that $1 contains token.item, but the default $1 contains token.
Thank you.