<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Pull from list on query in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/pull-from-list-on-query/m-p/13601229#M94892</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P id="isPasted"&gt;You are comparing a field  called str with another called st - not the local variables if that's what you inteneded.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Also note that comparisons in FlexQL can be done with a single =.&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 29 Jul 2024 14:08:27 GMT</pubDate>
    <dc:creator>jason_lightfoot_adsk</dc:creator>
    <dc:date>2024-07-29T14:08:27Z</dc:date>
    <item>
      <title>Pull from list on query</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/pull-from-list-on-query/m-p/13601228#M94891</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 24.1.1 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;BR /&gt;Hi Community ,&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Error :&lt;/P&gt;
 &lt;P id="isPasted"&gt;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&amp;gt;variables/query&lt;/P&gt;
 &lt;P&gt;time: 4.000833 exception: Exception caught in start() of activity "Pull from List" in process flow "VPI flow". Continuing throw...&lt;/P&gt;
 &lt;P&gt;time: 4.000833 exception: Exception caught in Executive::processeventinlist().&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Below is the snip of my case&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1722261228783.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1524806i5663C133DD20BED9/image-size/large?v=v2&amp;amp;px=999" role="button" title="1722261228783.png" alt="1722261228783.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN id="isPasted" style="color: rgb(51, 51, 51); font-family: ;"&gt;Any feedback on what SQL Query should I use.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 29 Jul 2024 13:39:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/pull-from-list-on-query/m-p/13601228#M94891</guid>
      <dc:creator>ddtsk</dc:creator>
      <dc:date>2024-07-29T13:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Pull from list on query</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/pull-from-list-on-query/m-p/13601229#M94892</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P id="isPasted"&gt;You are comparing a field  called str with another called st - not the local variables if that's what you inteneded.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Also note that comparisons in FlexQL can be done with a single =.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 29 Jul 2024 14:08:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/pull-from-list-on-query/m-p/13601229#M94892</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2024-07-29T14:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Pull from list on query</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/pull-from-list-on-query/m-p/13601230#M94893</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi @Jason&lt;BR /&gt;Thanks for the Prompt Reply,&lt;BR /&gt;I tried changing the string into single quote and now I am getting a new error&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Error&lt;/STRONG&gt;&lt;/P&gt;
 &lt;P id="isPasted"&gt;time: 4.000833 exception: Exception caught in start() of activity "Pull from List" in process flow "VPI flow". Continuing throw...&lt;/P&gt;
 &lt;P&gt;time: 4.000833 exception: Exception caught in Executive::processeventinlist().&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN id="isPasted" style="color: rgb(51, 51, 51); font-family: ;"&gt;Any feedback on what SQL Query should I use.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 29 Jul 2024 14:22:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/pull-from-list-on-query/m-p/13601230#M94893</guid>
      <dc:creator>ddtsk</dc:creator>
      <dc:date>2024-07-29T14:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Pull from list on query</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/pull-from-list-on-query/m-p/13601231#M94894</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;PRE&gt;"SELECT * FROM PartList_feeder WHERE str='"+st+"' ORDER BY Age DESC"&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 29 Jul 2024 15:39:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/pull-from-list-on-query/m-p/13601231#M94894</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2024-07-29T15:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Pull from list on query</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/pull-from-list-on-query/m-p/13601232#M94895</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/43980/hemanth-sai-kumar-31101999.html" nodeid="43980"&gt;@Hemanth Sai Kumar&lt;/A&gt;, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.&lt;/P&gt;&lt;P&gt;If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 01 Aug 2024 17:26:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/pull-from-list-on-query/m-p/13601232#M94895</guid>
      <dc:creator>logan_gold</dc:creator>
      <dc:date>2024-08-01T17:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Pull from list on query</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/pull-from-list-on-query/m-p/13601233#M94896</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi Logan,&lt;BR /&gt; Thank you for the follow up on the above error, I tried writing the below syntax by &lt;A rel="user" href="https://answers.flexsim.com/users/226/jason.l.html" nodeid="226"&gt;@Jason Lightfoot&lt;/A&gt; I am still getting the same error.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1722574658949.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1524802iD010C48F241FC494/image-size/large?v=v2&amp;amp;px=999" role="button" title="1722574658949.png" alt="1722574658949.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1722572949203.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1524803iEBF7FD5DD8D0EDDA/image-size/large?v=v2&amp;amp;px=999" role="button" title="1722572949203.png" alt="1722572949203.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 02 Aug 2024 04:59:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/pull-from-list-on-query/m-p/13601233#M94896</guid>
      <dc:creator>ddtsk</dc:creator>
      <dc:date>2024-08-02T04:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Pull from list on query</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/pull-from-list-on-query/m-p/13601234#M94897</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/43980/hemanth-sai-kumar-31101999.html" nodeid="43980"&gt;@Hemanth Sai Kumar&lt;/A&gt; Jason has demonstrated how to compose a string. Please assign this string into a string variable. You insert this string variable into your query. If you add this string directly into your query method, then the string ends by second occuring double quotation mark and a plus sign and a second string is not a correct parameter setting for a query method. You can parse only ONE string into this method.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 02 Aug 2024 05:08:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/pull-from-list-on-query/m-p/13601234#M94897</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2024-08-02T05:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: Pull from list on query</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/pull-from-list-on-query/m-p/13601235#M94898</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi,&lt;BR /&gt; I tried creating a local string ptt and I used that in query instead of calling str, I hope my syntax is correct now, I am still unable to return 1st str that satisfies both the conditions. &lt;span class="lia-inline-image-display-wrapper" image-alt="1722578171319.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1524804i4141082C10E43706/image-size/large?v=v2&amp;amp;px=999" role="button" title="1722578171319.png" alt="1722578171319.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 02 Aug 2024 05:59:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/pull-from-list-on-query/m-p/13601235#M94898</guid>
      <dc:creator>ddtsk</dc:creator>
      <dc:date>2024-08-02T05:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Pull from list on query</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/pull-from-list-on-query/m-p/13601236#M94899</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;PRE&gt;string querystr = "SELECT • FROM PartList_feeder.part WHERE str="+st+" ORDER BY Age DESC" 

retum Table.query (querystr);&lt;/PRE&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/43980/hemanth-sai-kumar-31101999.html" nodeid="43980"&gt;@Hemanth Sai Kumar&lt;/A&gt;,  you are allowed to parse one string consisting of one opening and one closing double quotation mark into a query method. &lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 02 Aug 2024 07:17:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/pull-from-list-on-query/m-p/13601236#M94899</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2024-08-02T07:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Pull from list on query</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/pull-from-list-on-query/m-p/13601237#M94900</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;But within the statement we are comparing a string literal which needs to be within its own quotes or apostrophes, otherwise the SQL interpreter considers it a fieldname.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 02 Aug 2024 10:29:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/pull-from-list-on-query/m-p/13601237#M94900</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2024-08-02T10:29:48Z</dc:date>
    </item>
  </channel>
</rss>

