<?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 Mainframe path with %userprofile% in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Mainframe-path-with-userprofile/m-p/62648#M15717</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;We're switching Mainframe applications where the new one happens to be installed in the Document folder. As the Documents folder has a path like&amp;nbsp; c:\users\MyUserProfile\Documents\... and includes my user profile, we seem to have an issue defining the path to the new application. The old application ran from c:\Program files\... and posed as such never any problems launching. But with the new application we seem to need a dynamic path to get the MyUserProfile bit in place.&lt;BR /&gt;&lt;BR /&gt;When we will run the new application objects in production, MyUserProfile obviously needs to be replaced by RpaUserProfile, preferably in a dynamic fashion. So we need to find a solution to make the VBO for the new application work in development as well as in production.&lt;BR /&gt;&lt;BR /&gt;I got tipped to replace&amp;nbsp;MyUserProfile with %userprofile%, making the path look like c:\users\%userprofile%\Documents\... . While BP apparently accepts that path in the Application Modeller in 'Path to session file', the application does not launch. Instead it crashes with message "Error - Failed to launch application - Launch failed: Error from ConnectToHostOrSession: File is in untrusted location."&lt;BR /&gt;&lt;BR /&gt;It is unclear to me if BP manages to replace %userprofile% with MyUserProfile and crashes for some other reason ('untrusted location') or that it is indeed value %userprofile% that is disliked by BP.&lt;BR /&gt;&lt;BR /&gt;Notes:&lt;BR /&gt;- I did search the BP portal document section as previous questions on this subject pointed there. However, my particular challenge was not handled there.&lt;BR /&gt;- Installing the new Mainframe application in the c:\Program files\... folder would obviously solve my problem, but for some reason seems not possible in this environment.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Questions:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;1. How can I define the path in 'Path to session file' in my application modeller &lt;STRONG&gt;including a user profile&lt;/STRONG&gt;?&lt;BR /&gt;2. If the above cannot be done, in what other direction should I proceed investigations?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for any contributions!&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Happy coding!&lt;BR /&gt;Paul&lt;BR /&gt;Sweden&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Thu, 06 Feb 2020 07:27:00 GMT</pubDate>
    <dc:creator>PvD_SE</dc:creator>
    <dc:date>2020-02-06T07:27:00Z</dc:date>
    <item>
      <title>Mainframe path with %userprofile%</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Mainframe-path-with-userprofile/m-p/62648#M15717</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;We're switching Mainframe applications where the new one happens to be installed in the Document folder. As the Documents folder has a path like&amp;nbsp; c:\users\MyUserProfile\Documents\... and includes my user profile, we seem to have an issue defining the path to the new application. The old application ran from c:\Program files\... and posed as such never any problems launching. But with the new application we seem to need a dynamic path to get the MyUserProfile bit in place.&lt;BR /&gt;&lt;BR /&gt;When we will run the new application objects in production, MyUserProfile obviously needs to be replaced by RpaUserProfile, preferably in a dynamic fashion. So we need to find a solution to make the VBO for the new application work in development as well as in production.&lt;BR /&gt;&lt;BR /&gt;I got tipped to replace&amp;nbsp;MyUserProfile with %userprofile%, making the path look like c:\users\%userprofile%\Documents\... . While BP apparently accepts that path in the Application Modeller in 'Path to session file', the application does not launch. Instead it crashes with message "Error - Failed to launch application - Launch failed: Error from ConnectToHostOrSession: File is in untrusted location."&lt;BR /&gt;&lt;BR /&gt;It is unclear to me if BP manages to replace %userprofile% with MyUserProfile and crashes for some other reason ('untrusted location') or that it is indeed value %userprofile% that is disliked by BP.&lt;BR /&gt;&lt;BR /&gt;Notes:&lt;BR /&gt;- I did search the BP portal document section as previous questions on this subject pointed there. However, my particular challenge was not handled there.&lt;BR /&gt;- Installing the new Mainframe application in the c:\Program files\... folder would obviously solve my problem, but for some reason seems not possible in this environment.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Questions:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;1. How can I define the path in 'Path to session file' in my application modeller &lt;STRONG&gt;including a user profile&lt;/STRONG&gt;?&lt;BR /&gt;2. If the above cannot be done, in what other direction should I proceed investigations?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for any contributions!&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Happy coding!&lt;BR /&gt;Paul&lt;BR /&gt;Sweden&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Feb 2020 07:27:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Mainframe-path-with-userprofile/m-p/62648#M15717</guid>
      <dc:creator>PvD_SE</dc:creator>
      <dc:date>2020-02-06T07:27:00Z</dc:date>
    </item>
    <item>
      <title>RE: Mainframe path with %userprofile%</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Mainframe-path-with-userprofile/m-p/62649#M15718</link>
      <description>Sorry, I misunderstood the issue. Don't know how to help with that one.&lt;CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: line-through;"&gt;%userprofile%&lt;/SPAN&gt;&lt;/CODE&gt;&lt;SPAN style="text-decoration: line-through;"&gt; expands to c:\users\&amp;lt;username&amp;gt;. Try using &lt;CODE&gt;%userprofile%\Documents\...&lt;/CODE&gt; instead of &lt;CODE&gt;c:\users\%userprofile%\Documents\...&lt;/CODE&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Nicholas Zejdlik&lt;BR /&gt;RPA Developer&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Feb 2020 15:53:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Mainframe-path-with-userprofile/m-p/62649#M15718</guid>
      <dc:creator>NicholasZejdlik</dc:creator>
      <dc:date>2020-02-06T15:53:00Z</dc:date>
    </item>
    <item>
      <title>RE: Mainframe path with %userprofile%</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Mainframe-path-with-userprofile/m-p/62650#M15719</link>
      <description>Do you have the option to input the path on the launch or attach navigate stage?&lt;BR /&gt;This essentially overrides the path (if any given) in the app model and because you can input that into your object it is dynamic. Therefore using the Get User Name action you can build the path to the document folder depending on what profile is running the object/process.&lt;BR /&gt;We use this successfully with IBM Personal Communicator (COM API).&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;James Cox-Schembri&lt;BR /&gt;RPA Developer&lt;BR /&gt;HSBC&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Feb 2020 15:23:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Mainframe-path-with-userprofile/m-p/62650#M15719</guid>
      <dc:creator>JamesCox-Schemb</dc:creator>
      <dc:date>2020-02-07T15:23:00Z</dc:date>
    </item>
    <item>
      <title>RE: Mainframe path with %userprofile%</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Mainframe-path-with-userprofile/m-p/62651#M15720</link>
      <description>&lt;P&gt;Hi James,&lt;/P&gt;
&lt;P style="text-align: left;"&gt;Thanks for your answer! &lt;BR /&gt;&lt;BR /&gt;We do indeed have this option on the Launch action that has a &lt;EM&gt;Path&lt;/EM&gt; parameter. The help text states: "&lt;EM&gt;The parameters supplied in the Application Modeller wizard may be optionally overridden in this call&lt;/EM&gt;". Assuming this statement also applies to the path, this sounds like it might do the trick and we'll definitely test it.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Happy coding!&lt;BR /&gt;Paul&lt;BR /&gt;Sweden&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Feb 2020 12:56:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Mainframe-path-with-userprofile/m-p/62651#M15720</guid>
      <dc:creator>PvD_SE</dc:creator>
      <dc:date>2020-02-10T12:56:00Z</dc:date>
    </item>
    <item>
      <title>RE: Mainframe path with %userprofile%</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Mainframe-path-with-userprofile/m-p/62652#M15721</link>
      <description>&lt;P&gt;In our company we use IBM Mainframe. We avoided using the Username of the logged in user in the path and used a solution like this instead:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;our file location:&lt;/STRONG&gt;&lt;BR /&gt;%Appdata%\IBM\Personal Communications\host.ws&lt;/P&gt;
&lt;P&gt;%Appdata% is usually a path like ⇒ C:\Users\&lt;EM&gt;{insert username}\AppData\Roaming&lt;BR /&gt;&lt;BR /&gt;it contains the username of the logged in user automatically. so you could use a&amp;nbsp; .bat file to start an application that is stored relatve to the user folder and do something like this:&lt;BR /&gt;&lt;CODE&gt;cmd.exe&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;cd %appdata%&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;cd ..&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;cd ..&lt;BR /&gt;myfile.exe&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Marco Matuttis&lt;BR /&gt;Robot Process Automation Developer&lt;BR /&gt;INTER Krankenversicherung AG&lt;BR /&gt;Mannheim&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Feb 2020 13:34:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Mainframe-path-with-userprofile/m-p/62652#M15721</guid>
      <dc:creator>MarcoMatuttis1</dc:creator>
      <dc:date>2020-02-10T13:34:00Z</dc:date>
    </item>
    <item>
      <title>RE: Mainframe path with %userprofile%</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Mainframe-path-with-userprofile/m-p/62653#M15722</link>
      <description>Hi Marco,&lt;BR /&gt;&lt;BR /&gt;Thanks for your contribution. &lt;BR /&gt;&lt;BR /&gt;As said, we'll be trying James' proposal first as it is fully parameter driven. We'll keep yours handy in case an alternative solution is required.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Happy coding!&lt;BR /&gt;Paul&lt;BR /&gt;Sweden&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Feb 2020 05:51:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Mainframe-path-with-userprofile/m-p/62653#M15722</guid>
      <dc:creator>PvD_SE</dc:creator>
      <dc:date>2020-02-11T05:51:00Z</dc:date>
    </item>
  </channel>
</rss>

