Error: The DocumentContent field is required

Hi,

I have used this action a lot.
Now I get an error on creating a new one.
"The DocumentContent field is required."
I get file content from a SharePoint library.
I tried using "Get File Content" and "Get File Content Using Path".
Both give the same error.
Please help me with this.

Thank you,
Faramarz

Hello, @Farsami,

Please share the flow screenshots in Edit mode.

Best regards,
Petr Bushuev
Plumsail team

Hi Petr,

Thank you for looking into this

Hello, @Farsami,

So, I guess the error happens on the step when you pass the content of the document to Convert DOCX to PDF action?

image

Are you trying to pass an array there?

Could you share the error screenshot as well?

Best regards,
Petr
Plumsail team

Hi Petr,

Thank you for replying back.
As you can see I gave the file content which was returned by Fet File Content
The error code is
{
"request": {
"url": "/flow/v1/Documents/jobs/Docx2Pdf",
"traceId": "0HM8KKPD0GL31:0000048B"
},
"error": {
"code": "System.ArgumentException",
"message": "The DocumentContent field is required.",
"date": "2021-05-11T19:54:12.0192416Z"
}
}

Faramarz

I had a similar issue with a plugin on Forms recently. It had been working fine. Nothing had changed except that I hadn't logged in to it for a couple of weeks. When I came back in it had lost the connection to the plugin.

I ended up having to delete and re-add the action using the plugin.

2 Likes

Hi Petr,

The Flow was working but after 3 weeks of not using that, it gives the same error.
It seems to be the same for other users @Newstartech.
That's really frustrating.
Any suggestion?

Thank you,
Faramarz

Hello @Farsami,

I tried the action Convert DOCx to PDF but didn't get any errors. it should work ok, now, also please try to read the action to the flow and let me know if the issue persists after that.

Best regards,
Petr
Plumsail team

Hi Petr,

Generally, the Action works. my Flow worked a while but after a while, it gives an error.
It is really frustrating.
Can this issue be escalated to know what's going on. I think you can check the background log.

Thank you,
Faramarz

Hello @Farsami! I am sorry for the late reply. I would advise you to try the following:

  • edit the flow, empty the "Document content" field, save the flow, add the required file content again, save the flow; if it didn't help
  • try to wrap the file content into the "base64()" expression:

  • add an action before the "Convert DOCX to PDF" and save as a file the same file content that you try to convert, check the saved file and ensure that it can be open without issues (i.e. the file content is proper),
  • if the file is alright, try to recreate the flow from scratch,
  • if none helped, contact [email protected], refer to this topic and provide a sample file on which the issue can be reproduced.

I get the same error even the "Create docx block" output has the DocumentContent section
image

Hi @B_G,

I just tried the Create DOCx action and it worked as expected:

Please try again and if the issue persists share screenshot with your flow in Edit mode and how do you pass the content to the action.

Best regards,
Petr
Plumsail team