FileNotFoundInStorageException with MergeMultiplePDFs

1
When we attempt to merge a set of files using the MergeMultiplePDFs java action from CommunityCommons we get the following error: "com.mendix.storage.FileNotFoundInStorageException File not found in Amazon S3 for key '0'. Status code: 403.  com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.storage.FileNotFoundInStorageException: File not found in Amazon S3 for key '0'. Status code: 403. at com.mendix.basis.component.InternalCoreBase.execute(InternalCoreBase.java:418)"   Some things I've already discovered: - We can download all the seperate files directly by navigating through the application but somehow this java-action is not able to retrieve them. - This happens every time (tested four times so far) with this specific set of files. Other similar sets of files have been merged with no problem many times already. - We know we have a filled list of files. From the previous microflow logic we know that the number of files being merged is greater than 1.   Is this a known error within Mendix? Is there a solution/workaround?
asked
1 answers
0

Hello Sjoerd,

 

Probably you've already thought about that, and i've never ran into the same problem, but being that in S3 and as you said that you can download those files separately, is your app going into an out of memory during that action? Or could those files being so huge that the connection is rejected in the middle of the process?

In the past, i've already had a problem when consuming data from S3, which was i couldn't retrieve more that 50K rows, and the process was being stoped in that moment, and i'm not sure if you could face the same issue in this case, or something similar to that.

 

I know that it's not the help that you wanted, but if you can't find a solution, try to see with the team responsible for the S3 to try to understand the limitations that you have and see if they match with what you're trying to do,

 

Another workaround could be, in case you have for example 5 files, trying to do it in different set to detect if it's only one giving you problems, or another idea could be to create a process to run it in batches and store it in your app and then treat it in mendix with the connection to S3 already closed.

 

Hope it helps,

Rui Cunha

answered