<?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 SQL INSERT INTO Global Table Errors in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/sql-insert-into-global-table-errors/m-p/13561421#M63772</link>
    <description>&lt;P&gt;&lt;I&gt;[ FlexSim 22.2.1 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I'm developing a procedure to populate a global table using the 'INSERT INTO' statement. For testing I have a simple global table with all data assigned as numbers...&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1662497628819.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1512730i3D87ED02273FDB66/image-size/large?v=v2&amp;amp;px=999" role="button" title="1662497628819.png" alt="1662497628819.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;When I run the following statement in the script console..&lt;/P&gt;
 &lt;PRE&gt;Table.query("INSERT INTO RackVolumeTable2 (Rack, Bay, Level, Slot, Volume) VALUES ($1, $2, $3, $4, $5)",  1, 2, 3, 4, 5.11);&lt;/PRE&gt;
 &lt;P&gt;I get the following error..&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1662497134543.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1512731iBA15E36DE57A5168/image-size/large?v=v2&amp;amp;px=999" role="button" title="1662497134543.png" alt="1662497134543.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;When I run the statement in debug mode, I get this error..&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1662497224820.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1512732i90A12DB194841B3B/image-size/large?v=v2&amp;amp;px=999" role="button" title="1662497224820.png" alt="1662497224820.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;I've tried just inserting a single value but get same errors. I believe the statement is constructed correctly as any variation will result in parsing errors.&lt;/P&gt;
 &lt;P&gt;Per documentation, the "INSERT INTO" is supported. What is the issue?? Thanks - Stan&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 06 Sep 2022 20:55:49 GMT</pubDate>
    <dc:creator>stan_e_davis</dc:creator>
    <dc:date>2022-09-06T20:55:49Z</dc:date>
    <item>
      <title>SQL INSERT INTO Global Table Errors</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/sql-insert-into-global-table-errors/m-p/13561421#M63772</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 22.2.1 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I'm developing a procedure to populate a global table using the 'INSERT INTO' statement. For testing I have a simple global table with all data assigned as numbers...&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1662497628819.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1512730i3D87ED02273FDB66/image-size/large?v=v2&amp;amp;px=999" role="button" title="1662497628819.png" alt="1662497628819.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;When I run the following statement in the script console..&lt;/P&gt;
 &lt;PRE&gt;Table.query("INSERT INTO RackVolumeTable2 (Rack, Bay, Level, Slot, Volume) VALUES ($1, $2, $3, $4, $5)",  1, 2, 3, 4, 5.11);&lt;/PRE&gt;
 &lt;P&gt;I get the following error..&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1662497134543.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1512731iBA15E36DE57A5168/image-size/large?v=v2&amp;amp;px=999" role="button" title="1662497134543.png" alt="1662497134543.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;When I run the statement in debug mode, I get this error..&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1662497224820.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1512732i90A12DB194841B3B/image-size/large?v=v2&amp;amp;px=999" role="button" title="1662497224820.png" alt="1662497224820.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;I've tried just inserting a single value but get same errors. I believe the statement is constructed correctly as any variation will result in parsing errors.&lt;/P&gt;
 &lt;P&gt;Per documentation, the "INSERT INTO" is supported. What is the issue?? Thanks - Stan&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 06 Sep 2022 20:55:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/sql-insert-into-global-table-errors/m-p/13561421#M63772</guid>
      <dc:creator>stan_e_davis</dc:creator>
      <dc:date>2022-09-06T20:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: SQL INSERT INTO Global Table Errors</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/sql-insert-into-global-table-errors/m-p/13561422#M63773</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;STRONG&gt;Concatenate the values into the SQL string rather than using parameters.&lt;/STRONG&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 06 Sep 2022 21:57:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/sql-insert-into-global-table-errors/m-p/13561422#M63773</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2022-09-06T21:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: SQL INSERT INTO Global Table Errors</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/sql-insert-into-global-table-errors/m-p/13561423#M63774</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Thanks Jason. That worked...&lt;/P&gt;
 &lt;PRE&gt;Table.query("INSERT INTO RackVolumeTable2 (Rack, Bay, Level, Slot, Volume) VALUES ( " + 1 + ", " + 2 + ", " + 3 + ", " + 4 + ", " + 5.11 + ")");&lt;/PRE&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 06 Sep 2022 22:25:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/sql-insert-into-global-table-errors/m-p/13561423#M63774</guid>
      <dc:creator>stan_e_davis</dc:creator>
      <dc:date>2022-09-06T22:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: SQL INSERT INTO Global Table Errors</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/sql-insert-into-global-table-errors/m-p/13561424#M63775</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;Great!  And if you need to insert strings just put apostrophes around the string.&lt;/DIV&gt;</description>
      <pubDate>Tue, 06 Sep 2022 22:28:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/sql-insert-into-global-table-errors/m-p/13561424#M63775</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2022-09-06T22:28:07Z</dc:date>
    </item>
  </channel>
</rss>

