<?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: Command line doesn't work with Blue prism in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Command-line-doesn-t-work-with-Blue-prism/m-p/112629#M50458</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a powershell script which use a some DDLs from an application. It works when I execute the script manually with a CMD.&lt;/P&gt;&lt;P&gt;But&amp;nbsp;it doesn't work when I launched it with Blue Prism with AutomateC.exe (Start Process) and I have the error message :&amp;nbsp;&lt;SPAN&gt;"An attempt was made to load a program with an incorrect format. (Exception from&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;HRESULT: 0x8007000B)".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Other important information : the Blue Prism is install in C: drive but the DLLs are in another drive K:.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jul 2024 08:11:23 GMT</pubDate>
    <dc:creator>leogarp</dc:creator>
    <dc:date>2024-07-25T08:11:23Z</dc:date>
    <item>
      <title>Command line doesn't work with Blue prism</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Command-line-doesn-t-work-with-Blue-prism/m-p/112538#M50420</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to execute with Blue prism a powershell script by using the CMD.&lt;/P&gt;&lt;P&gt;It works when I launch the script with the CMD manually. But it doesn't work when I want to execute the script in CMD with Blue prism.&lt;/P&gt;&lt;P&gt;I have the error message :"An attempt was made to load a program with an incorrect format. (Exception from&lt;BR /&gt;HRESULT: 0x8007000B)".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help me, please ?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 12:34:54 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Command-line-doesn-t-work-with-Blue-prism/m-p/112538#M50420</guid>
      <dc:creator>leogarp</dc:creator>
      <dc:date>2024-07-23T12:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Command line doesn't work with Blue prism</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Command-line-doesn-t-work-with-Blue-prism/m-p/112544#M50422</link>
      <description>&lt;P&gt;We'll need more information on what you're trying to do. Google suggests that error code relates to a 32/64bit clash.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 16:04:15 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Command-line-doesn-t-work-with-Blue-prism/m-p/112544#M50422</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2024-07-23T16:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Command line doesn't work with Blue prism</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Command-line-doesn-t-work-with-Blue-prism/m-p/112551#M50427</link>
      <description>&lt;P&gt;The error HRESULT: 0x8007000B typically indicates a mismatch between the bitness of the application you're trying to run and the operating system. For example, trying to run a 32-bit application on a 64-bit system, or vice versa.&lt;/P&gt;&lt;P&gt;Here are some steps to troubleshoot and fix this issue:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Ensure Matching Bitness&lt;/STRONG&gt;&lt;BR /&gt;Verify that the PowerShell script and any dependent modules or DLLs are compiled for the same architecture (either 32-bit or 64-bit). If you're on a 64-bit system, ensure you're using the 64-bit version of PowerShell.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. Run 64-bit PowerShell&lt;/STRONG&gt;&lt;BR /&gt;By default, the Command Prompt might be running the 32-bit version of PowerShell. To explicitly run the 64-bit version, you can use the full path to the 64-bit PowerShell executable:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;cmd&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File "C:\path\to\your\script.ps1"&lt;/P&gt;&lt;P&gt;For the 32-bit version, you can use:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;cmd&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -File "C:\path\to\your\script.ps1"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3. Check Script and Dependencies&lt;/STRONG&gt;&lt;BR /&gt;Ensure that any DLLs or external dependencies your PowerShell script uses are also the correct bitness. Mixing 32-bit and 64-bit binaries can cause this error.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4. Check Environment Variables&lt;/STRONG&gt;&lt;BR /&gt;Sometimes, environment variables might point to the incorrect version of a required library. Make sure all relevant environment variables are set correctly for the bitness you're using.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;5. Recompile Dependencies&lt;/STRONG&gt;&lt;BR /&gt;If you have control over the source of any DLLs or external dependencies, recompile them for the correct architecture.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example Command&lt;/STRONG&gt;&lt;BR /&gt;Here's how you can run your script using the 64-bit version of PowerShell from the Command Prompt:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;cmd&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "C:\path\to\your\script.ps1"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 06:54:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Command-line-doesn-t-work-with-Blue-prism/m-p/112551#M50427</guid>
      <dc:creator>Parthiban_Viatris24</dc:creator>
      <dc:date>2024-07-24T06:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Command line doesn't work with Blue prism</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Command-line-doesn-t-work-with-Blue-prism/m-p/112629#M50458</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a powershell script which use a some DDLs from an application. It works when I execute the script manually with a CMD.&lt;/P&gt;&lt;P&gt;But&amp;nbsp;it doesn't work when I launched it with Blue Prism with AutomateC.exe (Start Process) and I have the error message :&amp;nbsp;&lt;SPAN&gt;"An attempt was made to load a program with an incorrect format. (Exception from&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;HRESULT: 0x8007000B)".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Other important information : the Blue Prism is install in C: drive but the DLLs are in another drive K:.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 08:11:23 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Command-line-doesn-t-work-with-Blue-prism/m-p/112629#M50458</guid>
      <dc:creator>leogarp</dc:creator>
      <dc:date>2024-07-25T08:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Command line doesn't work with Blue prism</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Command-line-doesn-t-work-with-Blue-prism/m-p/112637#M50462</link>
      <description>&lt;P&gt;Try placing the required reference DLL files in the Blue Prism folder. By default, this is where the Blue Prism Library DLL files are referenced.&lt;/P&gt;&lt;P&gt;C:\Program Files\Blue Prism Limited\Blue Prism Automate\&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 08:52:25 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Command-line-doesn-t-work-with-Blue-prism/m-p/112637#M50462</guid>
      <dc:creator>Parthiban_Viatris24</dc:creator>
      <dc:date>2024-07-25T08:52:25Z</dc:date>
    </item>
  </channel>
</rss>

