question

Hemanth Sai Kumar avatar image
0 Likes"
Hemanth Sai Kumar asked Jason Lightfoot edited

Pull from list on query


Hi Community ,

I have a use case where I am trying quire a custom pull of items from a global list where I have 3 conditions to check if it fails don't pull anything. I am getting error and I am unable to find where my code is going wrong.

Error :

time: 4.000833 exception: FlexScript exception: Could not parse query Select from PartList_feeder WHERE str == st ORDER BY Age Desc at MODEL:/Tools/ProcessFlow/VPI flow/Pull from List>variables/query

time: 4.000833 exception: Exception caught in start() of activity "Pull from List" in process flow "VPI flow". Continuing throw...

time: 4.000833 exception: Exception caught in Executive::processeventinlist().


Below is the snip of my case
1722261228783.png

Any feedback on what SQL Query should I use.

FlexSim 24.1.1
pull from listsql queries
1722261228783.png (272.0 KiB)
· 6
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 Jason Lightfoot commented

You are comparing a field called str with another called st - not the local variables if that's what you inteneded.


To compare the field str with the local variable st you can concatenate the string surrounded by single quotes or pass the st value in as a parameter.

Also note that comparisons in FlexQL can be done with a single =.

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