PDF Merge invalid input parameter due to missing source file links
When you get an invalid input parameter error and you suspect that this is due to some missing source file links, please try the troubleshooting steps below:
Please open your API Logs and expand the call to see the Request POST Body
. Check if the url
param's value starts with a comma and/or some source file links are missing, this can be fixed by making sure that only existing links are passed to the PDF Merger engine.
Zapier
To make sure that only existing source file links are passed to the PDF Merger, please add the Code by Zapier
action before the PDF.co PDF Merger.
- Please look up
Code by Zapier
and choose theRun JavaScript
event. - In the
Input Data
field, enter akey name
such askey1
on the left and thesource file url
on the right. - Kindly copy-paste the following code in the
Code
field and test trigger.
const object = {
key1: inputData['key1'],
key2: inputData['key2']
};
const nonEmptyValues = Object.values(object)
.filter(value => value)
.join(", ");
output = {nonEmptyValues};
- In the PDF.co PDF Merger setup, please replace the existing source file links with the
Non-Empty Values
from the previous step.
If this doesn't resolve the issue, please contact our customer support.