According to flexsim docs (1), queryItems() only searches for items in the stored state. However, there are some instances in my model where two orders contain the same flowitem, which of course is problematic.
This is the code I use to set slotItems as outbound:
Storage.Slot.Item slotItem = token.SlotItem; slotItem.storageItem.assignedSlot = 0;
token.SlotItem contains one item from a queryItems() array.
If queryItems() is supposed to only search for items in the stored state, and the outbound code is working correctly, I will provide further information about the model to locate the problem.