03-10-22 01:46 PM
24-10-24 02:34 PM
I am using 32-bit BP version 7.1.2
24-10-24 03:21 PM
@Christer_Tellefsen ok, so an easy "fix" would be to try the true 64-bit release of BP. That's the biggest step towards addressing out-of-memory errors.
You mentioned the lack of a next page link, you will only receive a next page link if there are more attachments on the specific amil item than what Graph can return in its standard response which I think may be 10 to 15 items.
We'll take a look at the code and see if there's anything additional we can do with regards to downloads.
Cheers,
Eric
24-10-24 03:54 PM
@Christer_Tellefsen I was just looking back over you answer, and you mentioned you're calling Get Attachments. You should not be getting an out-of-memory error for that action as it's not returning the actual contents of any of the attachments. That action simply returns the meta data of the attachments on a specific message. How many attachments are there on your test message?
Cheers,
Eric
25-10-24 08:43 AM
Thank you for following up.
We are testing with a single attachment 46 MB, which is also password-protected. When I attempt to access it at this point in the process
I encounter a System.OutOfMemoryException
regards
Christer
25-10-24 02:33 PM
@Christer_Tellefsen that's interesting. This is an exception being thrown when we try to pass the JSON payload, from Graph, into the Newtonsoft DLL in order to parse out the NextLink URL.
There may be an easy resolution to this. Since there's only one attachment, this entire stage can basically be skipped. Open the Code stage and replace the existing code with the following block:
if (json.Contains("@odata.nextLink"))
nextLink = GetNextLinkURI(json);
else
nextLink = "";
The revised Code stage should look like this afterwards:
So it's doing a simply string search to see if there's even a nextLink element in the JSON. If not, it doesn't try to load it.
Cheers,
Eric