Skip to content

Find why a form attachment fails in an approval

First find whether the flow failed while fetching the file or while creating the approval. Check the exact action error and the file name and content supplied to that action. Then test the approval from the recipient’s view: a successful run does not by itself prove the right file opens.

What you need

For a workflow owner whose approval flow fails or sends an unusable form attachment.

  • A safe test file and its expected name, size and contents.
  • The form upload reference and the flow run history with the failed action.
  • A test approver who can check the approval and report what opens.

Trace an uploaded file through to an approver

  1. Submit one harmless test file and record the response and run IDs. Locate the uploaded file using the reference returned by the form.
  2. Inspect the file retrieval action. Confirm that it returned the expected file content, not just a link or file name, and note any access error.
  3. Inspect the approval action input and its exact error. Check its documented attachment fields; an email attachment object is not automatically interchangeable with an approval attachment object.
  4. Send a test approval to the intended role. Have the recipient open the file and confirm its contents. Record where it appeared, the result and any access issue.

The email worked; the approval did not

Synthetic test data. The same sample PDF is sent once by email and once through an approval.

Scroll the table to see all columns.

Compare the steps, not just the final run status
StepObserved resultNext check
Fetch sample.pdfFile content returnedCompare expected file name and content
Email actionFile opensRecord as email evidence only
Approval actionRejected attachment inputInspect approval action fields and error
Approver open testNot yet possibleRetest after the approval is created

The email result proves only that the email copy opened. The approval failed before the recipient could review it, so inspect that action’s input and rerun the approval test.

What to hand over

A trace listing the first failing action, its error, the intended file and the result of an approver’s open test.

Limitation. Attachment handling depends on the connector, action and recipient access. Microsoft documents that email attachments over 5 MB are accessed through the Approvals page; verify the current limits and experience for your setup.

Next step

Bring a redacted error, a harmless sample file and the intended approval path for a workflow review.

Discuss this workflow with Shadyy

Sources