<?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: Workflow Powershell Script Works in Designer but not Gallery in Alteryx Server Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Workflow-Powershell-Script-Works-in-Designer-but-not-Gallery/m-p/716584#M8281</link>
    <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/213452"&gt;@discoverable1&lt;/a&gt;&amp;nbsp;Could you try to debug your Powershell script by writing something out to a text file at each logical point in your script? This is to check the point of failure if any.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may also want to review the following article:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.alteryx.com/t5/Alteryx-Server-Knowledge-Base/How-to-enable-COM-object-on-the-server/ta-p/493509" target="_self"&gt;https://community.alteryx.com/t5/Alteryx-Server-Knowledge-Base/How-to-enable-COM-object-on-the-server/ta-p/493509&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Feb 2021 03:57:35 GMT</pubDate>
    <dc:creator>clarab</dc:creator>
    <dc:date>2021-02-11T03:57:35Z</dc:date>
    <item>
      <title>Workflow Powershell Script Works in Designer but not Gallery</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Workflow-Powershell-Script-Works-in-Designer-but-not-Gallery/m-p/713763#M8259</link>
      <description>&lt;P&gt;I have a batch file in my workflow that runs a tabcmd command to export as csv to a folder "A". Then a powershell script that selects the columns I want, reorders them, and moves it to another folder "B". I then have another powershell script to convert that csv file to excel and move it to the final folder "C".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the workflow in designer, it works perfectly. However, when I publish it to gallery and run it, only the tabcmd script (to folder "A") and first powershell script (from "A" to "B") works. The last one doesn't do what it's supposed to - it doesn't move it to the final folder (from "B" to "C"). I don't get an error in Gallery however, it says the workflow was successful. What could be my issue? It doesn't make sense to me how the workflow shows successful in both designer and gallery but where the powershell script works just fine in designer but not gallery. Please see attached for powershell script (--- to omit proprietary data)&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 20:59:40 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Workflow-Powershell-Script-Works-in-Designer-but-not-Gallery/m-p/713763#M8259</guid>
      <dc:creator>discoverable1</dc:creator>
      <dc:date>2021-02-04T20:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow Powershell Script Works in Designer but not Gallery</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Workflow-Powershell-Script-Works-in-Designer-but-not-Gallery/m-p/715446#M8262</link>
      <description>&lt;P&gt;Anyone? &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 01:45:17 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Workflow-Powershell-Script-Works-in-Designer-but-not-Gallery/m-p/715446#M8262</guid>
      <dc:creator>discoverable1</dc:creator>
      <dc:date>2021-02-09T01:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow Powershell Script Works in Designer but not Gallery</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Workflow-Powershell-Script-Works-in-Designer-but-not-Gallery/m-p/715479#M8263</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/213452"&gt;@discoverable1&lt;/a&gt;&amp;nbsp;, is the SharedDriveFolderPath accessible on the server?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any Run As user set in the System Settings or on the Alteryx Service? If not, is there any workflow credentials used on the workflow. If this is none too, then the local system account is being used here which does not have the rights to access the shared drive. In this case, set a Run As account with the permissions to access the path.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may want to check this &lt;A title="How Workflow Credentials Work on a Private Gallery" href="https://community.alteryx.com/t5/Alteryx-Server-Knowledge-Base/How-Workflow-Credentials-Work-on-a-Private-Gallery/ta-p/176171" target="_blank" rel="noopener"&gt;How Workflow Credentials Work on a Private Gallery&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 03:24:07 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Workflow-Powershell-Script-Works-in-Designer-but-not-Gallery/m-p/715479#M8263</guid>
      <dc:creator>clarab</dc:creator>
      <dc:date>2021-02-09T03:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow Powershell Script Works in Designer but not Gallery</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Workflow-Powershell-Script-Works-in-Designer-but-not-Gallery/m-p/715527#M8264</link>
      <description>&lt;P&gt;Gallery uses a service account id, and no workflow credentials are used on the workflow. I've checked the folder permissions and the service account id has full access to all the folders necessary. Tabcmd command runs and puts the file in a share drive folder. Then powershell scripts runs to select certain columns from that csv and saves that new csv in a folder one level up. Then powershell script runs to convert that csv to excel and save in a subfolder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As mentioned before, it works locally in designer as my account. The gallery workflow works up until the csv to excel powershell conversion. I've also tried changing the destination path to the same folder as the selected columns csv location and it still doesn't work, so I don't think it is a permission issue.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 07:05:16 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Workflow-Powershell-Script-Works-in-Designer-but-not-Gallery/m-p/715527#M8264</guid>
      <dc:creator>discoverable1</dc:creator>
      <dc:date>2021-02-09T07:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow Powershell Script Works in Designer but not Gallery</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Workflow-Powershell-Script-Works-in-Designer-but-not-Gallery/m-p/716584#M8281</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/213452"&gt;@discoverable1&lt;/a&gt;&amp;nbsp;Could you try to debug your Powershell script by writing something out to a text file at each logical point in your script? This is to check the point of failure if any.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may also want to review the following article:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.alteryx.com/t5/Alteryx-Server-Knowledge-Base/How-to-enable-COM-object-on-the-server/ta-p/493509" target="_self"&gt;https://community.alteryx.com/t5/Alteryx-Server-Knowledge-Base/How-to-enable-COM-object-on-the-server/ta-p/493509&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 03:57:35 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Workflow-Powershell-Script-Works-in-Designer-but-not-Gallery/m-p/716584#M8281</guid>
      <dc:creator>clarab</dc:creator>
      <dc:date>2021-02-11T03:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow Powershell Script Works in Designer but not Gallery</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Workflow-Powershell-Script-Works-in-Designer-but-not-Gallery/m-p/717815#M8300</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/213452"&gt;@discoverable1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A vanilla install of Powershell, like you'd find on a server doesn't have the required libraries to read/write MS Office files.&amp;nbsp; The libraries would normally get installed once MS Office is installed, something that &lt;A href="https://support.microsoft.com/en-us/topic/considerations-for-server-side-automation-of-office-48bcfe93-8a89-47f1-0bce-017433ad79e2" target="_self"&gt;MS doesn't support or recommend on a server&lt;/A&gt;.&amp;nbsp; Vanilla PS can write csv files, though.&amp;nbsp; Maybe your csv to excel power shell script is silently failing because of the missing libraries.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This raises the the question of why you're calling PS scripts at all.&amp;nbsp; The operations that you're performing, selecting and reordering columns and saving to different formats and locations can all be accomplished in the main workflow without requiring PS scripts&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Feb 2021 15:54:44 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Workflow-Powershell-Script-Works-in-Designer-but-not-Gallery/m-p/717815#M8300</guid>
      <dc:creator>danilang</dc:creator>
      <dc:date>2021-02-13T15:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow Powershell Script Works in Designer but not Gallery</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Workflow-Powershell-Script-Works-in-Designer-but-not-Gallery/m-p/766128#M8895</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am experiencing similar issues. Were you able to get the powershell script working on alteryx server?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 20:21:10 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Workflow-Powershell-Script-Works-in-Designer-but-not-Gallery/m-p/766128#M8895</guid>
      <dc:creator>Nikita-Puniani</dc:creator>
      <dc:date>2021-05-28T20:21:10Z</dc:date>
    </item>
  </channel>
</rss>

