question

Shinya O avatar image
0 Likes"
Shinya O asked Jacob W2 commented

Storage system queryItems behavior

Hi,

The code below should return the number of all items in storage, but the behavior seems to change when "Find Item" query in the processing flow is executed with "Any Item".

  1. return Storage.system.queryItems("").length;

In this model, initially 10 items enter Bay=1, at 10 seconds it searches for one item with Bay=1, and at 20 seconds it searches for one arbitrary item.

After that, When I run that code I expect it to return 8, but it returns 1.

Is my understanding correct?

Thanks in advance.queryItems.fsm

1717036012103.png

FlexSim 24.1.0
storage systemfinditemqueryitems
1717036012103.png (257.0 KiB)
queryitems.fsm (41.8 KiB)
· 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.

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

Looks like the same issue described in the post linked below.

Question about Storage.system.queryItems - FlexSim Community

· 5
5 |100000

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

Lucas Hermant avatar image
0 Likes"
Lucas Hermant answered Jacob W2 commented

Hi,

I encountered the very same issue described here on a large scale model. I have a lot of very complex queries in this model. This issues makes it really hard to make sure everything works as expected. I discovered the fix by testing a manuel query to check that my activities FindItem were performing as expected.

Is is a very disturbing issue that makes me doubt that flexsim queries are performing as expected.

Could it be possible to fix this issue please ?

· 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.