<?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/86466#M37316</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/86466#M37316</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/86466#M37316</guid>
      <dc:creator>PvD_SE</dc:creator>
      <dc:date>2020-02-06T07:27:00Z</dc:date>
    </item>
  </channel>
</rss>

