question

ejust avatar image
0 Likes"
ejust asked ejust edited

Pull From List Query; ORDER BY rank label not working.

Hi,
Trying to configure my list so that value with the minimum rank gets pulled, however, the pull query keeps pulling the values in FIFO. 1711661699457.png

1711662244461.png

Is there something wrong with my query?

Thanks.

FlexSim 22.2.4
list pull from list
1711661699457.png (27.4 KiB)
1711662244461.png (22.5 KiB)
· 2
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
0 Likes"
Jason Lightfoot answered ejust commented

This is simple error - your list uses "Manual Car wash" while your token.service is "Manual Car Wash" - FlexSim strings are case sensitive.

Also, if you're partitioning the list by the service type then you don't need the WHERE clause in the query.

However if you have CPs that can do multiple service types, then you will want to put all CPs in the same (default) partition of the list then have the where clause find token.service IN value.services (where services is an array of possible services at that position).

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