Skip to main content
Question

Gravity Forms to One Drive file upload fails "invalid request"?

  • October 31, 2024
  • 3 replies
  • 43 views

Hi, we are trying to set up a Gravity Forms to One Drive sync we have every step working including creating a unique folder for each GF submission. 

Each GF submission will have 5 separate files submitted as part of the submission.

The file upload step keeps failing with the following error:

Failed to create a file in OneDrive. The app returned "Invalid request".

We get this error for single file and multiple file upload attempts.

The multiple file upload is configured with a , and space between each file as per the Zapier instructions.

Frustratingly the Zapier suggestions for “fixing” this is we are leaving the file name field empty but according the to the Zapier documentation:

“The "File Name" field in the "Upload File" step for OneDrive is optional. By default, the file will use the same name and extension as the original file being uploaded.” 

This seems to be contradictory - our preference is to have the file upload with the original file name and extension.

If anyone has a suggestion or has resolved a similar issue I’d appreciate the input.

Zaps steps for reference:

 

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

3 replies

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • October 31, 2024

Hi @proweb.services 

Couple issues:

  1. Variable values from Gravity Forms may not be properly formatted URLs
    1. You would need to add Zap steps to reformat each of those links.
      1. Most efficient way is with 1 Code step: https://zapier.com/apps/code/help
  2. The File field expects 1 file
    1. Help link about using files in Zaps: https://zapier.com/help/create/basics/send-files-in-zaps
  3. If you are trying to upload multiple files, then try one of these options:
    1. Paths: https://help.zapier.com/hc/en-us/articles/8496288555917
      1. 1 Path for each file to upload
    2. Looping: https://zapier.com/apps/looping/help
      1. Iterate thru each file to upload
    3. Successive upload steps (5)
      1. Depends if there will always be a value for each of the 5

 

 


Thanks @Troy Tessalone , I’ll review those options.

Cheers,

Peter Scott


ken.a
Forum|alt.badge.img+6
  • Zapier Staff
  • November 1, 2024

That’s awesome @proweb.services!

Please let us know if you’re still running into the same issue here. We’re happy to help further! 🤗