<?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: Error while running .bat file on Alteryx server in Alteryx Server Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Error-while-running-bat-file-on-Alteryx-server/m-p/834451#M9664</link>
    <description>&lt;P&gt;I am able to run my own BAT file, but I had to write the code and place the BAT file in the temp folder. This is for an app that I've published to my company's Gallery. The app always creates a BAK file in the destination folder, so I created a temporary BAT file that deletes that BAK file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As seen here, I have:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;A subroutine that generates the code in the BAT file&lt;/LI&gt;&lt;LI&gt;An Output Data tool that creates the BAT file in the temp folder&lt;/LI&gt;&lt;LI&gt;A Run Command tool that runs the BAT file&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/206647iB7D2C5377E2D4D84/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the config of my Output Data:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled2.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/206649i34B97C64D98796AB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Untitled2.png" alt="Untitled2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is for the Run Command tool:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled3.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/206651i67F2AEBCA663C425/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Untitled3.png" alt="Untitled3.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Oct 2021 11:49:01 GMT</pubDate>
    <dc:creator>Peachyco</dc:creator>
    <dc:date>2021-10-14T11:49:01Z</dc:date>
    <item>
      <title>Error while running .bat file on Alteryx server</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Error-while-running-bat-file-on-Alteryx-server/m-p/630244#M7216</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to trigger an event using .bat file in alteryx workflow.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works fine on desktop.&lt;/P&gt;&lt;P&gt;But while running on gallery , its throwing an error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;" The external program "_externals\1\abc.bat" returned an Error code 1'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Harsh&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 08:10:41 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Error-while-running-bat-file-on-Alteryx-server/m-p/630244#M7216</guid>
      <dc:creator>harsha384</dc:creator>
      <dc:date>2020-09-08T08:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error while running .bat file on Alteryx server</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Error-while-running-bat-file-on-Alteryx-server/m-p/630246#M7217</link>
      <description>&lt;P&gt;I believe for security reasons, Alteryx won't let you run bat files (or anything using Windows Run command) from the server.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 08:16:01 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Error-while-running-bat-file-on-Alteryx-server/m-p/630246#M7217</guid>
      <dc:creator>tonypreece</dc:creator>
      <dc:date>2020-09-08T08:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error while running .bat file on Alteryx server</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Error-while-running-bat-file-on-Alteryx-server/m-p/630285#M7218</link>
      <description>&lt;P&gt;Any solution to it?&amp;nbsp; Is there any way i can resolve it? I have to use .bat file&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 10:03:59 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Error-while-running-bat-file-on-Alteryx-server/m-p/630285#M7218</guid>
      <dc:creator>harsha384</dc:creator>
      <dc:date>2020-09-08T10:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error while running .bat file on Alteryx server</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Error-while-running-bat-file-on-Alteryx-server/m-p/833488#M9639</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/3622"&gt;@harsha384&lt;/a&gt;&amp;nbsp;did you get the solution? if so please share it here, and would really helpful as I'm currently facing the same issue.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 14:48:16 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Error-while-running-bat-file-on-Alteryx-server/m-p/833488#M9639</guid>
      <dc:creator>Akshu2020</dc:creator>
      <dc:date>2021-10-12T14:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error while running .bat file on Alteryx server</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Error-while-running-bat-file-on-Alteryx-server/m-p/834451#M9664</link>
      <description>&lt;P&gt;I am able to run my own BAT file, but I had to write the code and place the BAT file in the temp folder. This is for an app that I've published to my company's Gallery. The app always creates a BAK file in the destination folder, so I created a temporary BAT file that deletes that BAK file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As seen here, I have:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;A subroutine that generates the code in the BAT file&lt;/LI&gt;&lt;LI&gt;An Output Data tool that creates the BAT file in the temp folder&lt;/LI&gt;&lt;LI&gt;A Run Command tool that runs the BAT file&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/206647iB7D2C5377E2D4D84/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the config of my Output Data:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled2.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/206649i34B97C64D98796AB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Untitled2.png" alt="Untitled2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is for the Run Command tool:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled3.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/206651i67F2AEBCA663C425/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Untitled3.png" alt="Untitled3.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 11:49:01 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Error-while-running-bat-file-on-Alteryx-server/m-p/834451#M9664</guid>
      <dc:creator>Peachyco</dc:creator>
      <dc:date>2021-10-14T11:49:01Z</dc:date>
    </item>
  </channel>
</rss>

