<?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: Out of memory exception while saving attachment in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Out-of-memory-exception-while-saving-attachment/m-p/45175#M1469</link>
    <description>Hello &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/38688"&gt;@hkhader&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Unfortunately no. Is there any chance that you can share the specific CSV you're working with? &lt;BR /&gt;&lt;BR /&gt;Have you tried calling the &lt;EM&gt;&lt;STRONG&gt;Get Attachments&lt;/STRONG&gt;&lt;/EM&gt; action instead of the &lt;EM&gt;&lt;STRONG&gt;Save Attachments&lt;/STRONG&gt;&lt;/EM&gt; action and saving the file to disk using the &lt;STRONG&gt;Utility - File Management&lt;/STRONG&gt; VBO?&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>Wed, 09 Nov 2022 15:22:00 GMT</pubDate>
    <dc:creator>ewilson</dc:creator>
    <dc:date>2022-11-09T15:22:00Z</dc:date>
    <item>
      <title>Out of memory exception while saving attachment</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Out-of-memory-exception-while-saving-attachment/m-p/45170#M1464</link>
      <description>Hi,&lt;BR /&gt;I am getting Out of Memory exception while saving the attachment using "Microsoft 365 Outlook" VBO. The attachment is approximately 6 MB.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Halid&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Halid Mohamed Niyaz Abdul&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Nov 2022 08:41:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Out-of-memory-exception-while-saving-attachment/m-p/45170#M1464</guid>
      <dc:creator>hkhader</dc:creator>
      <dc:date>2022-11-02T08:41:00Z</dc:date>
    </item>
    <item>
      <title>RE: Out of memory exception while saving attachment</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Out-of-memory-exception-while-saving-attachment/m-p/45171#M1465</link>
      <description>Hi Halid,&lt;BR /&gt;&lt;BR /&gt;A&amp;nbsp; lot has been written about the infamous OutOfMemory error, but not that I recall when sending email. See also the 'Related content' section at the bottom of this screen.&lt;BR /&gt;&lt;BR /&gt;Also solutions such as GarbageCollection have been suggested before, and seem to have given results in some cases.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;However, I assume most tips provided for on this forum would apply even to your case. While 6Mb may sound rather small to get this error, it is likely the combination of juggling Outlook and the attachment that is the showstopper here.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In our office, our processes never send attachments in email. Instead, we copy the link to the document into our email body. But obviously, this only works when your email is an internal email and where the recipient has access to its location.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Happy coding!&lt;BR /&gt;---------------&lt;BR /&gt;Paul&lt;BR /&gt;Sweden&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Nov 2022 09:20:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Out-of-memory-exception-while-saving-attachment/m-p/45171#M1465</guid>
      <dc:creator>PvD_SE</dc:creator>
      <dc:date>2022-11-02T09:20:00Z</dc:date>
    </item>
    <item>
      <title>RE: Out of memory exception while saving attachment</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Out-of-memory-exception-while-saving-attachment/m-p/45172#M1466</link>
      <description>Hello &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/38688"&gt;@hkhader&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;A few questions for you:&lt;BR /&gt;&lt;BR /&gt;
&lt;OL&gt;
&lt;LI&gt;What version of Blue Prism are you using?&lt;/LI&gt;
&lt;LI&gt;How much memory does your system have (ex. 32MB)?&lt;/LI&gt;
&lt;LI&gt;Is there just one attachment on the email? Are there any embedded images (those are actually treated as attachments too)?&lt;/LI&gt;
&lt;LI&gt;What is the file type of the attachment (ex. PDF)?&lt;/LI&gt;
&lt;LI&gt;Have you tried stepping through the &lt;EM&gt;&lt;STRONG&gt;Save Attachments&lt;/STRONG&gt;&lt;/EM&gt; action to see which stage it's on when the out-of-memory error occurs?&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;
&lt;BR /&gt;​While your attachment may show as 6MB in File Explorer it's actually a bit bigger with the Graph API because the binary content of the file is base64 encoded so that it can be represented in the JSON payload that Graph returns to us. So the actual attachment size is probably close to 8-9MB. Still not huge though by todays standards.&lt;BR /&gt;&lt;BR /&gt;The way the &lt;EM&gt;&lt;STRONG&gt;Save Attachments&lt;/STRONG&gt;&lt;/EM&gt; action works is that it first makes a request to Microsoft to get the attachments for the specific email. Graph returns a JSON payload to us that includes all attachments including any inline images (ex. company logo in the signature). We then convert that raw JSON to a Blue Prism Collection that contains one row for each attachment. That Collection is then passed into a Code stage that performs the actual writing of the attachment(s) to disk.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What I'm trying to understand is whether you're seeing the error during the conversion of the raw JSON to a BP Collection or if it's in the actual writing of the attachments to disk. Does that make sense?&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>Wed, 02 Nov 2022 11:01:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Out-of-memory-exception-while-saving-attachment/m-p/45172#M1466</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-11-02T11:01:00Z</dc:date>
    </item>
    <item>
      <title>RE: Out of memory exception while saving attachment</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Out-of-memory-exception-while-saving-attachment/m-p/45173#M1467</link>
      <description>Hi Eric,&lt;BR /&gt;Thanks for quick reply.&lt;BR /&gt;&lt;BR /&gt;Here are my answers,&lt;BR /&gt;&lt;BR /&gt;
&lt;OL&gt;
&lt;LI&gt;What version of Blue Prism are you using? - &lt;STRONG&gt;6.10.1&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;How much memory does your system have (ex. 32MB)? &lt;STRONG&gt;64 GB, Windows Server&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Is there just one attachment on the email? Are there any embedded images (those are actually treated as attachments too)? &lt;STRONG&gt;One attachment and our company logo in the signature&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;What is the file type of the attachment (ex. PDF)? - &lt;STRONG&gt;CSV&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Have you tried stepping through the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Save Attachments&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;action to see which stage it's on when the out-of-memory error occurs?&amp;nbsp; &lt;STRONG&gt;yes. It failed in ConvertoDataTable&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/OL&gt;
Thanks,&lt;BR /&gt;Halid&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Halid Mohamed Niyaz Abdul&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Nov 2022 11:08:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Out-of-memory-exception-while-saving-attachment/m-p/45173#M1467</guid>
      <dc:creator>hkhader</dc:creator>
      <dc:date>2022-11-02T11:08:00Z</dc:date>
    </item>
    <item>
      <title>RE: Out of memory exception while saving attachment</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Out-of-memory-exception-while-saving-attachment/m-p/45174#M1468</link>
      <description>Hi Eric,&lt;BR /&gt;Any luck on the below issue?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Halid&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Halid Mohamed Niyaz Abdul&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Nov 2022 06:38:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Out-of-memory-exception-while-saving-attachment/m-p/45174#M1468</guid>
      <dc:creator>hkhader</dc:creator>
      <dc:date>2022-11-09T06:38:00Z</dc:date>
    </item>
    <item>
      <title>RE: Out of memory exception while saving attachment</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Out-of-memory-exception-while-saving-attachment/m-p/45175#M1469</link>
      <description>Hello &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/38688"&gt;@hkhader&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Unfortunately no. Is there any chance that you can share the specific CSV you're working with? &lt;BR /&gt;&lt;BR /&gt;Have you tried calling the &lt;EM&gt;&lt;STRONG&gt;Get Attachments&lt;/STRONG&gt;&lt;/EM&gt; action instead of the &lt;EM&gt;&lt;STRONG&gt;Save Attachments&lt;/STRONG&gt;&lt;/EM&gt; action and saving the file to disk using the &lt;STRONG&gt;Utility - File Management&lt;/STRONG&gt; VBO?&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>Wed, 09 Nov 2022 15:22:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Out-of-memory-exception-while-saving-attachment/m-p/45175#M1469</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-11-09T15:22:00Z</dc:date>
    </item>
  </channel>
</rss>

