question

CSN avatar image
0 Likes"
CSN asked Ryan Clark commented

Question about Storage.system.queryItems

Hi,

I've been testing the Kiva scenario. I have used the following FlexScript to find all items in the FloorStorage.But I could only find one item (actually there were five in FloorStorage ).

1642487838642.png

When i redefine the query parameter inside 'find Item'activity (From [Any Item] to [WHERE item.slot.slotItems.length > 0 ]). It can find all items correctly.

1642487882284.png

I'm so confused about this .Please help.

Thanks a lot.


StorageQueryFlagsAllItems_V2022.0.fsm

FlexSim 22.0.0
queryitems
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered Jason Lightfoot commented

I'm pretty sure the Find Item activity only finds one item by default - there is a clue to this in the manual where it states that when there is a list of queries it will stop evaluating them when the first item is found.

· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.