03-10-22 01:46 PM
a month ago
I am using 32-bit BP version 7.1.2
a month ago
@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
a month ago
@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
a month ago
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
a month ago
@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