Unable to merge pdf from sharpoint library

Hi, guys
I am trying to merge a few pdf files stored on a sharepoint library following the guide but i alwayl fail to achive it
It seems its a encoded base64 issue.

I explain the step by step

Initialize a array variable

loop through sharepoint library
append to array the content file (base64(content))

outside the loop merge PDF

The problem is always the same
The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters

Can you help me, please!.

Error: The converter 'Plumsail.Actions.Api.Services.Json.TypeConverters.FlowListByteArrayConverter' read too much or not enough. Path: $.documentsContents | LineNumber: 0 | BytePositionInLine: 555094.

Hello @Haydee,

  1. Please check that the library provides only PDF files. It might happen that there are also other type of files and they are attached to the PDF array.

  2. Make sure to select File content in the append action

image

  1. Use any online base64 validator to make sure that the array is correct. For example, this one.

Best regards,
Petr
Plumsail team