I saw an other topic having the same problem, but even with deleting the brackets, the error still appears.
I don't understand why does it work correctly with the first flow, but not with the second one ?
I am currently on a Trial version, maybe the use is limited to one flow ?
The trial version has the same functionality as the full one, no limitations.
When you run it on the test SharePoint I see this number in the apply to each section
Thank you for your answer. Yes, it seems that the problem is on the "Apply to each" Loop. I made two other flows focused on this step, one on the Test Sharepoint, and the other on the real Sharepoint.
Is there a parameter (depending on the Sharepoint server) that restrict the use of this loop ? I can't figure out why there is this difference on two identical flows.
Let me know if you have a solution for this.
Thank you for your help ! I finally figured out the problem, which comes from the Get files (properties) action, as you suggested.
Depending on the Sharepoint server, this action must be configured to work correctly :
The real Sharepoint has an important amount of documents, whereas the Test Sharepoint does'nt have that much, so I put the 'Include Nested Items' to "No". Even though I restrict the files to one folder, I must make this configuration.
After that, the flow recognizes the 3 pdf files in my folder, and merge them.
There is an other parameter that could also fix the problem, it's the "Top count", when there is more than 100 files concerned by the action. This parameter can be changed up to 5000.
Hello, for my case, I am merging 3 PDFs. No nested documents. Using the same tutorial as the original author. used compose to just log the outputs after get file. The iteration of apply to each is working but it still throws the same error
"The converter 'Plumsail.Actions.Api.Services.Json.TypeConverters.FlowListByteArrayConverter' read too much or not enough. Path: $.documentsContents | LineNumber: 0 | BytePositionInLine: 285505."
I started working without me doing any changes to the flow. So I don't know what exactly the issue was. If you want to look more into it, I would happily provide the work flow.
Please make sure you collected only PDF files from the SharePoint folder. There could be some other files, like images or documents, etc. I see no filter in the Get files action.
In most cases, the array probably contains non-pdf files.
What is the error message? I only see the ActionFailed message without the details on the screenshot.
Hi,
Was this resolved? I have a similar setup merging PDF files created by the Plumsail 'Create document from XLSX template' action and I get the error: 'Merge_PDF' failed: The converter 'Plumsail.Actions.Api.Services.Json.TypeConverters.FlowListByteArrayConverter' read too much or not enough. Path: $.documentsContents | LineNumber: 0 '
I tested the scenario when two XLSX files were created from templates, converted to PDF and then merged. It worked ok, and I can't confirm that there is a general issue or bug with the Merge PDF action at the moment
Could you try saving the generated PDF files individually and share them with us for testing?
Please also include a screenshot of your flow with all the details.
You can send the information to our HelpDesk at support@plumsail.com with a reference to the thread.
Thanks Petr,
I think part of the issue us that I am trying to create a report that will have a dynamic number of pages based on the number of images that are being imported into the report.
I have the Create from XLSX action within a Do Until container and after the create append the file contents to an array. After the Do Until I have then been using the 'advanced' JSON mode of the Merge PDF to insert the array of pages for it to merge, but that's where I seem to be having issues.
Testing it with only 2 pages and using the basic method for merging as you outlined I can successfully get the pages to merge.
I have also tried your suggestion of saving as individual files during the Do Until loop but then I need to bring them back into the flow and add to an array again for merging and this causes the same error.
To advise further on the matter, I'll need to check your flow screenshots and the generated PDF files. Please also share a screenshot with the error message.
Could you send the information to our HelpDesk at support@plumsail.com with a reference to the thread?