<?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 Checking success of export to CSV in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/checking-success-of-export-to-csv/m-p/13486736#M5116</link>
    <description>&lt;P&gt;&lt;I&gt;[ FlexSim 18.2.0 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Is there a way to test if an export to CSV was successful?&lt;BR /&gt;&lt;BR /&gt;We have discovered that if the user has the CSV file open when they try and overwrite it from FlexSim using the exporttable command, FlexSim continues without any kind of warning. Is there a way to validate that the export was successful? I tried returning the value of exporttable, but it is always 0 regardless of whether it succeeds or not.&lt;BR /&gt;&lt;BR /&gt;Ideally, we would want to be able to check if the export failed, and display a warning message to the user if this was the case.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Dec 2018 00:28:09 GMT</pubDate>
    <dc:creator>jeremy_r</dc:creator>
    <dc:date>2018-12-07T00:28:09Z</dc:date>
    <item>
      <title>Checking success of export to CSV</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/checking-success-of-export-to-csv/m-p/13486736#M5116</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 18.2.0 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Is there a way to test if an export to CSV was successful?&lt;BR /&gt;&lt;BR /&gt;We have discovered that if the user has the CSV file open when they try and overwrite it from FlexSim using the exporttable command, FlexSim continues without any kind of warning. Is there a way to validate that the export was successful? I tried returning the value of exporttable, but it is always 0 regardless of whether it succeeds or not.&lt;BR /&gt;&lt;BR /&gt;Ideally, we would want to be able to check if the export failed, and display a warning message to the user if this was the case.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Dec 2018 00:28:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/checking-success-of-export-to-csv/m-p/13486736#M5116</guid>
      <dc:creator>jeremy_r</dc:creator>
      <dc:date>2018-12-07T00:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Checking success of export to CSV</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/checking-success-of-export-to-csv/m-p/13486737#M5117</link>
      <description>&lt;P&gt;Could you try using the FlexScript Code Profile? Just an idea..&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="16275-flexsim-code-profile.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1498284iEFFC6E933AA999EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="16275-flexsim-code-profile.png" alt="16275-flexsim-code-profile.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Dec 2018 17:42:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/checking-success-of-export-to-csv/m-p/13486737#M5117</guid>
      <dc:creator>tanner_p</dc:creator>
      <dc:date>2018-12-07T17:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Checking success of export to CSV</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/checking-success-of-export-to-csv/m-p/13486738#M5118</link>
      <description>&lt;P&gt;I'm not sure how this helps. How do you use the code profile to detect if the export was successful?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 01:31:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/checking-success-of-export-to-csv/m-p/13486738#M5118</guid>
      <dc:creator>jeremy_r</dc:creator>
      <dc:date>2018-12-10T01:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Checking success of export to CSV</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/checking-success-of-export-to-csv/m-p/13486739#M5119</link>
      <description>&lt;P&gt;You can check if FlexSim has permission to write to it by using the file API in FlexSim:&lt;/P&gt;&lt;PRE&gt;int success = fileopen(fileName, "a"); // open in append mode
if (success) {
    fileclose();
} else {
    print("Could not open file ", fileName);
}
exporttable(...);&lt;/PRE&gt;&lt;P&gt;It should catch whether exporttable will be able to actually write to the file.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 09:56:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/checking-success-of-export-to-csv/m-p/13486739#M5119</guid>
      <dc:creator>JordanLJohnson</dc:creator>
      <dc:date>2018-12-11T09:56:02Z</dc:date>
    </item>
  </channel>
</rss>

