<?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: Utility - File Management - Web Client Issue in Digital Exchange</title>
    <link>https://community.blueprism.com/t5/Digital-Exchange/Utility-File-Management-Web-Client-Issue/m-p/97959#M3033</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/50233"&gt;@Devi_PratyushaN&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is hard to say without capturing more error detail. For that, I suggest modifying the Download File action in the VBO to gain some additional insight.&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;Add a Data Item (Text) named "Exception"&lt;span class="lia-inline-image-display-wrapper" image-alt="35643.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35671i5EEA13121C7EA83C/image-size/large?v=v2&amp;amp;px=999" role="button" title="35643.png" alt="35643.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;Add the &lt;STRONG&gt;Exception &lt;/STRONG&gt;data item as an &lt;STRONG&gt;output &lt;/STRONG&gt;parameter for the &lt;STRONG&gt;Download File&lt;/STRONG&gt; code stage&lt;/P&gt;
&lt;DIV class="media" style="overflow: hidden"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35644.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35672i39943695524BD942/image-size/large?v=v2&amp;amp;px=999" role="button" title="35644.png" alt="35644.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;
&lt;/P&gt;&lt;P&gt;Edit the code stage to capture exception details when failures occur&lt;/P&gt;
&lt;DIV class="media" style="overflow: hidden"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35645.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35676i124BB1ACD4F138A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="35645.png" alt="35645.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;P&gt;
&lt;PRE class="language-vbnet"&gt;&lt;CODE&gt;Try
    Using wc As New System.Net.WebClient()
        wc.DownloadFile(Url, Path)
    End Using
Catch ex As Exception
    
    If ex.InnerException IsNot Nothing Then
        ExceptionMessage = ex.Message + Environment.NewLine + "Inner Exception: " + ex.InnerException.Message
    Else
        ExceptionMessage = ex.Message
    End If
End Try&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/P&gt;&lt;P&gt;
&lt;/P&gt;&lt;P&gt;Make sure to add the Exception data item as an output parameter on the End stage for the action, so you can access it in your Process that calls this action.&lt;/P&gt;
&lt;DIV class="media" style="overflow: hidden"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35646.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35677iD2F2E93EF14A97B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="35646.png" alt="35646.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;
&lt;/P&gt;&lt;P&gt;When a failure occurs, this data item should contain the exception message and details, viewable in your Process session log that should help diagnose further.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Jun 2023 16:23:24 GMT</pubDate>
    <dc:creator>charliekovacs</dc:creator>
    <dc:date>2023-06-14T16:23:24Z</dc:date>
    <item>
      <title>Utility - File Management - Web Client Issue</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Utility-File-Management-Web-Client-Issue/m-p/97956#M3030</link>
      <description>&lt;P class="MsoNormal" style="line-height: normal"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: &amp;quot;Times New Roman&amp;quot;, serif"&gt;Hi All,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="line-height: normal"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: &amp;quot;Times New Roman&amp;quot;, serif"&gt;Facing below given error while using the action -&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: &amp;quot;Times New Roman&amp;quot;, serif"&gt;Utility - File Management - Download File&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="line-height: normal"&gt;&lt;B&gt;&lt;SPAN style="font-size: 12.0pt; font-family: &amp;quot;Times New Roman&amp;quot;, serif"&gt;ERROR: Internal : Could not execute code stage because exception thrown by code stage: An exception occurred during a WebClient request&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="font-size: 12.0pt; font-family: &amp;quot;Times New Roman&amp;quot;, serif"&gt;, while running the automation in some specific machines from control room. This issue is not occurring in debug mode and is working fine in other machines.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;Please let me know, why is this error being faced only during unattended runs&lt;/P&gt;
&lt;P class="MsoNormal"&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 10:24:11 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Utility-File-Management-Web-Client-Issue/m-p/97956#M3030</guid>
      <dc:creator>Devi_PratyushaN</dc:creator>
      <dc:date>2023-06-06T10:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Utility - File Management - Web Client Issue</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Utility-File-Management-Web-Client-Issue/m-p/97957#M3031</link>
      <description>&lt;P&gt;Hi Devi,&lt;/P&gt;
&lt;P&gt;I can suggest checking the value of the &lt;CODE&gt;[Destination Path]&lt;/CODE&gt; parameter in the session logs for these failed executions. It needs to be a complete filepath (including the name of the file to be downloaded) such as &lt;CODE&gt;C:\MyFolder\MySubFolder\MyImage.png&lt;/CODE&gt;. All of the folders need to exist (&lt;CODE&gt;MyFolder&lt;/CODE&gt; and &lt;CODE&gt;MySubfolder&lt;/CODE&gt;) - if any are missing or if no file is specified (&lt;CODE&gt;MyImage.png&lt;/CODE&gt;) then the VBO will give you this error.&lt;/P&gt;
&lt;P&gt;If the &lt;CODE&gt;[Destination Path]&lt;/CODE&gt; values look okay, I would suggest checking if those locations are writeable (permissions, disk space) and maybe try an alternative location as a test on these failing machines.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 16:10:54 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Utility-File-Management-Web-Client-Issue/m-p/97957#M3031</guid>
      <dc:creator>charliekovacs</dc:creator>
      <dc:date>2023-06-06T16:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Utility - File Management - Web Client Issue</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Utility-File-Management-Web-Client-Issue/m-p/97958#M3032</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/2629"&gt;@charliekovacs&lt;/a&gt; - The destination path is given with file name and extension. It is working fine in debug mode or attended run. But when the same process is triggered through Control room, this issue is being faced.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 08:20:22 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Utility-File-Management-Web-Client-Issue/m-p/97958#M3032</guid>
      <dc:creator>Devi_PratyushaN</dc:creator>
      <dc:date>2023-06-07T08:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Utility - File Management - Web Client Issue</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Utility-File-Management-Web-Client-Issue/m-p/97959#M3033</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/50233"&gt;@Devi_PratyushaN&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is hard to say without capturing more error detail. For that, I suggest modifying the Download File action in the VBO to gain some additional insight.&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;Add a Data Item (Text) named "Exception"&lt;span class="lia-inline-image-display-wrapper" image-alt="35643.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35671i5EEA13121C7EA83C/image-size/large?v=v2&amp;amp;px=999" role="button" title="35643.png" alt="35643.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;Add the &lt;STRONG&gt;Exception &lt;/STRONG&gt;data item as an &lt;STRONG&gt;output &lt;/STRONG&gt;parameter for the &lt;STRONG&gt;Download File&lt;/STRONG&gt; code stage&lt;/P&gt;
&lt;DIV class="media" style="overflow: hidden"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35644.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35672i39943695524BD942/image-size/large?v=v2&amp;amp;px=999" role="button" title="35644.png" alt="35644.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;
&lt;/P&gt;&lt;P&gt;Edit the code stage to capture exception details when failures occur&lt;/P&gt;
&lt;DIV class="media" style="overflow: hidden"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35645.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35676i124BB1ACD4F138A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="35645.png" alt="35645.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;P&gt;
&lt;PRE class="language-vbnet"&gt;&lt;CODE&gt;Try
    Using wc As New System.Net.WebClient()
        wc.DownloadFile(Url, Path)
    End Using
Catch ex As Exception
    
    If ex.InnerException IsNot Nothing Then
        ExceptionMessage = ex.Message + Environment.NewLine + "Inner Exception: " + ex.InnerException.Message
    Else
        ExceptionMessage = ex.Message
    End If
End Try&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/P&gt;&lt;P&gt;
&lt;/P&gt;&lt;P&gt;Make sure to add the Exception data item as an output parameter on the End stage for the action, so you can access it in your Process that calls this action.&lt;/P&gt;
&lt;DIV class="media" style="overflow: hidden"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35646.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35677iD2F2E93EF14A97B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="35646.png" alt="35646.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;
&lt;/P&gt;&lt;P&gt;When a failure occurs, this data item should contain the exception message and details, viewable in your Process session log that should help diagnose further.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 16:23:24 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Utility-File-Management-Web-Client-Issue/m-p/97959#M3033</guid>
      <dc:creator>charliekovacs</dc:creator>
      <dc:date>2023-06-14T16:23:24Z</dc:date>
    </item>
  </channel>
</rss>

