<?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: Is it possible to query an array of pointers? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/is-it-possible-to-query-an-array-of-pointers/m-p/13621850#M96030</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/15372678"&gt;@jason_lightfoot_adsk&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;yes, many of them reported the same issues. However, as you mention it is hard to replicate exactly after the software is closed, so a mention is usually followed by some comment like "one of those things with FlexSim..."&lt;BR /&gt;What I can add is that:&lt;/P&gt;&lt;P&gt;- using ill-formed clauses in queries as code in activities (e.g. custom code activities) usually causes this type of problem, often a complete crash with the abortion of the application (FlexSim) by the OS. Sometimes a simple typo on the name of a column table or label will cause this.&lt;/P&gt;&lt;P&gt;- if FlexSim is not aborted, the SQL engine might start behaving inapropriately&lt;/P&gt;&lt;P&gt;- one factor that often triggers these problems is when one uses a breakpoint and, by mistake (?), changes the code without first finishing the process execution&lt;/P&gt;&lt;P&gt;None of the items above is a sure cause for the observed effects, but those are the common reports I observed.&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;</description>
    <pubDate>Fri, 09 May 2025 13:26:01 GMT</pubDate>
    <dc:creator>guiroehe</dc:creator>
    <dc:date>2025-05-09T13:26:01Z</dc:date>
    <item>
      <title>Is it possible to query an array of pointers?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/is-it-possible-to-query-an-array-of-pointers/m-p/13616837#M95963</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I wonder if FlexSim does allow to query an array of pointers (no reason why not), and how.&lt;/P&gt;&lt;P&gt;I tried to do a simple example with an array&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;A = [/ptr1, /ptr2]&lt;/LI-CODE&gt;&lt;P&gt;However,&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Table itemsInformation = Table.query("SELECT $2 AS [item], $3 AS [myProperty]  FROM $1 ", A, $iter(1), $iter(1).myProperty);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Returns an array with null pointers in the first column, despite returning the correct label values in the second.&lt;/P&gt;&lt;P&gt;Is there something I am missing, please?&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 20:12:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/is-it-possible-to-query-an-array-of-pointers/m-p/13616837#M95963</guid>
      <dc:creator>guiroehe</dc:creator>
      <dc:date>2025-05-06T20:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to query an array of pointers?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/is-it-possible-to-query-an-array-of-pointers/m-p/13617812#M95983</link>
      <description>&lt;P&gt;I would instead use:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Table t=Table.query("SELECT $2 as item, item.myProperty FROM $1",A,$iter(1));&lt;/LI-CODE&gt;
&lt;P&gt;or you could have:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Table t=Table.query("SELECT Object, Object.myProperty FROM Objects() WHERE Object IN $1",A);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have null pointers then that suggests the items have been deleted since the query was run.&amp;nbsp; You might prefer to record a unique id for each flowitem.&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 11:15:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/is-it-possible-to-query-an-array-of-pointers/m-p/13617812#M95983</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2025-05-07T11:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to query an array of pointers?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/is-it-possible-to-query-an-array-of-pointers/m-p/13619537#M96002</link>
      <description>&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/flexsim-forum/how-to-query-an-array/td-p/13528257" target="_blank" rel="noopener"&gt;How to query an array&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 07:16:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/is-it-possible-to-query-an-array-of-pointers/m-p/13619537#M96002</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2025-05-08T07:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to query an array of pointers?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/is-it-possible-to-query-an-array-of-pointers/m-p/13621163#M96018</link>
      <description>&lt;P&gt;Hello, &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/15372678"&gt;@jason_lightfoot_adsk&lt;/a&gt; and &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17307626"&gt;@joerg_vogel_HsH&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;It turns out there is some type of memory leak on FlexSim's SQL engine. All solutions you presented (and mine as well) work.&lt;/P&gt;&lt;P&gt;However, once there is a fail on a SQL statement (typo, ill formed string, ...) the engine stops behaving correctly.&lt;/P&gt;&lt;P&gt;I tried your solutions and they did not work at first. Once I closed all FlexSim instances and re-opened FlexSim, lo and behold, all versions worked fine.&lt;/P&gt;&lt;P&gt;Thank you for your attention.&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 03:08:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/is-it-possible-to-query-an-array-of-pointers/m-p/13621163#M96018</guid>
      <dc:creator>guiroehe</dc:creator>
      <dc:date>2025-05-09T03:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to query an array of pointers?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/is-it-possible-to-query-an-array-of-pointers/m-p/13621671#M96027</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/15959811"&gt;@guiroehe&lt;/a&gt;&amp;nbsp;, this is something that I have observed right from the beginning, when SQL has been introduced as a feature. It is hard to get any attention to this problem, because a valid clause works after opening a new session. Once an error occurs many valid clauses are causing new errors. And when you send in a model, it isn’t faulty at all. It is a sequence of steps that leads to this bug. Thank you for your description here.&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 11:13:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/is-it-possible-to-query-an-array-of-pointers/m-p/13621671#M96027</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2025-05-09T11:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to query an array of pointers?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/is-it-possible-to-query-an-array-of-pointers/m-p/13621675#M96028</link>
      <description>&lt;P&gt;Gui has this been reported/recorded elsewhere by a member of the team?&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 11:18:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/is-it-possible-to-query-an-array-of-pointers/m-p/13621675#M96028</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2025-05-09T11:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to query an array of pointers?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/is-it-possible-to-query-an-array-of-pointers/m-p/13621850#M96030</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/15372678"&gt;@jason_lightfoot_adsk&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;yes, many of them reported the same issues. However, as you mention it is hard to replicate exactly after the software is closed, so a mention is usually followed by some comment like "one of those things with FlexSim..."&lt;BR /&gt;What I can add is that:&lt;/P&gt;&lt;P&gt;- using ill-formed clauses in queries as code in activities (e.g. custom code activities) usually causes this type of problem, often a complete crash with the abortion of the application (FlexSim) by the OS. Sometimes a simple typo on the name of a column table or label will cause this.&lt;/P&gt;&lt;P&gt;- if FlexSim is not aborted, the SQL engine might start behaving inapropriately&lt;/P&gt;&lt;P&gt;- one factor that often triggers these problems is when one uses a breakpoint and, by mistake (?), changes the code without first finishing the process execution&lt;/P&gt;&lt;P&gt;None of the items above is a sure cause for the observed effects, but those are the common reports I observed.&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 13:26:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/is-it-possible-to-query-an-array-of-pointers/m-p/13621850#M96030</guid>
      <dc:creator>guiroehe</dc:creator>
      <dc:date>2025-05-09T13:26:01Z</dc:date>
    </item>
  </channel>
</rss>

