<?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 Any work around to reading exportpackage command output in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Any-work-around-to-reading-exportpackage-command-output/m-p/71567#M24172</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am trying to use AutomateC to export package from Blue Prism (/exportpackage), running it normally works fine. But when I try to redirect output - to read whether the export was successful, either through code (dotnet/python/ps) or on cmd using (&amp;gt; out.txt) it results into error. Is there any workaround other that just not redirecting output.&amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;---&amp;gt; System.IO.IOException: The handle is invalid.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I just want to make sure the exported package is complete package.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Gopal Bhaire&lt;BR /&gt;Senior Software Engineer&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Fri, 08 Apr 2022 11:56:00 GMT</pubDate>
    <dc:creator>GopalBhaire</dc:creator>
    <dc:date>2022-04-08T11:56:00Z</dc:date>
    <item>
      <title>Any work around to reading exportpackage command output</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Any-work-around-to-reading-exportpackage-command-output/m-p/71567#M24172</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am trying to use AutomateC to export package from Blue Prism (/exportpackage), running it normally works fine. But when I try to redirect output - to read whether the export was successful, either through code (dotnet/python/ps) or on cmd using (&amp;gt; out.txt) it results into error. Is there any workaround other that just not redirecting output.&amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;---&amp;gt; System.IO.IOException: The handle is invalid.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I just want to make sure the exported package is complete package.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Gopal Bhaire&lt;BR /&gt;Senior Software Engineer&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Apr 2022 11:56:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Any-work-around-to-reading-exportpackage-command-output/m-p/71567#M24172</guid>
      <dc:creator>GopalBhaire</dc:creator>
      <dc:date>2022-04-08T11:56:00Z</dc:date>
    </item>
    <item>
      <title>RE: Any work around to reading exportpackage command output</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Any-work-around-to-reading-exportpackage-command-output/m-p/71568#M24173</link>
      <description>&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/1694"&gt;@GopalBhaire&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Can you share exactly how you're doing this in Blue Prism? I assume you're using the &lt;EM&gt;&lt;STRONG&gt;Start Process Read Stderr and Stdout&lt;/STRONG&gt;&lt;/EM&gt; action of the &lt;STRONG&gt;Utility - Environment&lt;/STRONG&gt; VBO? ​If so, can you share a screenshot of what you're setting the parameters to?&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Apr 2022 14:57:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Any-work-around-to-reading-exportpackage-command-output/m-p/71568#M24173</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-04-08T14:57:00Z</dc:date>
    </item>
    <item>
      <title>RE: Any work around to reading exportpackage command output</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Any-work-around-to-reading-exportpackage-command-output/m-p/71569#M24174</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/833"&gt;@ewilson&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thanks for your response.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is was done outside Blue Prism, as a script/console app to export package using Blue Prism command line (&lt;STRONG&gt;AutomateC - /exportpackage&lt;/STRONG&gt;) but kept getting the error whenever I tried reading the output/error. Within Blue Prism I tried using the action you mentioned (adding working dir in code) which resulted in same error and finally I also tried the &lt;STRONG&gt;Utility - Blue Prism&lt;/STRONG&gt; from DX exchange which inconviently has no Export Package action, and trying to add and run that action resulted in same error.&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;I just want to read the output of the command to be sure that package is exported without any errors.&lt;/P&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;100%: Saved release
Release: 'Test1 - Release 58' exported to file: 'Test1 - Release 58.bprelease'&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;
&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Gopal Bhaire&lt;BR /&gt;&lt;SPAN&gt;Senior Software Engineer&lt;/SPAN&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Apr 2022 08:51:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Any-work-around-to-reading-exportpackage-command-output/m-p/71569#M24174</guid>
      <dc:creator>GopalBhaire</dc:creator>
      <dc:date>2022-04-11T08:51:00Z</dc:date>
    </item>
    <item>
      <title>RE: Any work around to reading exportpackage command output</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Any-work-around-to-reading-exportpackage-command-output/m-p/71570#M24175</link>
      <description>Hi Gopal,&lt;BR /&gt;&lt;BR /&gt;As you state you're using a script/console app to export this package, the guidance offered in this Knowledge Base article, "&lt;A href="http://portal.blueprism.com/customer-support/support-center#/path/1325330562" target="_blank" rel="noopener"&gt;Why do I get a "handle is invalid" error when using PowerShell?&lt;/A&gt;" may provide some insight into why you're getting this error. There is also a suggestion to change the syntax of your command which may help prevent the error.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Steve Boggs&lt;BR /&gt;Senior Software Support Engineer&lt;BR /&gt;Blue Prism&lt;BR /&gt;Austin, TX&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Apr 2022 21:07:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Any-work-around-to-reading-exportpackage-command-output/m-p/71570#M24175</guid>
      <dc:creator>steven.boggs</dc:creator>
      <dc:date>2022-04-11T21:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Any work around to reading exportpackage command output</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Any-work-around-to-reading-exportpackage-command-output/m-p/118385#M52721</link>
      <description>&lt;P&gt;I know I'm necro'ing this post, but I found the answer in another post, and I confirmed it works for me. I was getting the same classic handle invalid error. I do think it is quite strange for Blue Prism CLI commands to not have been tested against PowerShell, but I wasn't there to see the reason it wasn't so I shall withhold judgement. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The solution is near the bottom of this thread:&amp;nbsp;&lt;A href="https://community.blueprism.com/t5/Product-Forum/Exporting-a-release-using-command-line-through-Azure-DevOps/td-p/101995" target="_blank"&gt;Exporting a release using command line through Azu... - SS&amp;amp;C Blue Prism Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I'll just repeat the solution here just in case that link ever breaks. The solution was to use Start-Process from inside of PowerShell. Note that I specifically wanted to use PowerShell.&lt;/P&gt;&lt;P&gt;So, this works in PowerShell for me:&lt;BR /&gt;Start-Process -Wait -FilePath "C:\Program Files\Blue Prism Limited\Blue Prism Automate\AutomateC.exe" -ArgumentList '/user "&amp;lt;username&amp;gt;" "&amp;lt;password&amp;gt;"', '/dbconname "&amp;lt;dbconName&amp;gt;"', '/exportpackage "&amp;lt;packageName&amp;gt;"', '/release "&amp;lt;customReleaseFileName&amp;gt;"'&lt;BR /&gt;&lt;BR /&gt;Thanks to&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/21404"&gt;@AdityaPradhan&lt;/a&gt;&amp;nbsp;for supplying the answer. PowerShell nearly ruined my day, but now I don't have to cry myself to sleep tonight.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 16:03:25 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Any-work-around-to-reading-exportpackage-command-output/m-p/118385#M52721</guid>
      <dc:creator>david.l.morris</dc:creator>
      <dc:date>2025-01-21T16:03:25Z</dc:date>
    </item>
  </channel>
</rss>

