Excel files are not inherently blocked by SharePoint, so first correct the attachment save path for the control type in use, then check the modern control’s file-type filter and surface any hidden submission error.^1^
1. Identify the attachment control and use its supported save method
Select the attachment control in Power Apps Studio → Tree view.
Classic Attachments control
The classic control must be the Attachments field inside an Edit form. Upload and deletion do not persist until that form is saved.^2^
Verify:
- Select the form and confirm DataSource is the SharePoint list.
- Select Edit fields → Add field → Attachments if the attachment card is missing.
- Keep the generated attachment card binding intact.
- Set the Save button’s OnSelect to:
SubmitForm(EditForm1)
- Add a label below the button and set Text to:
EditForm1.Error
- Set the form’s properties:
OnSuccess = Notify("Form submitted successfully", NotificationType.Success)
OnFailure = Notify(EditForm1.Error, NotificationType.Error)
SubmitForm sets the form’s Error and ErrorKind properties and runs OnFailure when SharePoint rejects a submission.^3^
After saving, reopen the list item directly in SharePoint and verify that the attachment persisted. Do not rely on the file remaining visible in the control, because that can represent a staged, unsaved addition.
The modern control is currently documented as preview and supports saving a SharePoint attachment table using Patch.^4^
For an existing selected item, use the documented pattern, replacing the example names:
IfError(
Patch(
Requests,
RequestsGallery.Selected,
{Attachments: Attachments1.Attachments}
); true,
Notify(
"Attachments couldn't be saved. " & FirstError.Message,
NotificationType.Error
),
Notify("Attachments saved.", NotificationType.Success)
)
Keep the selected record unchanged while attachments are unsaved. After running the formula, reopen that item in SharePoint and verify the file.
2. Check the Excel-specific filter
If this is the modern control, inspect its AcceptedFileTypes property. It is a single-column table of permitted extensions. For example:
[".txt", ".xls", ".xlsx", ".xlsm", ".xlsb"]
Alternatively, remove an unintended restrictive value if all suitable file types should be selectable. Also inspect:
- MaxAttachmentSize — per-file size in MB.
- MaxAttachments — number of files allowed.
- DisplayMode — must be
DisplayMode.Edit.
These control limits are separate from limits enforced by the data source.^4^
SharePoint list-item attachments have a 250 MB per-file limit.^5^
3. Isolate the app from SharePoint
Test with a small local workbook named Test.xlsx:
- Download or save it to the device first, rather than selecting it from OneDrive or another cloud location. The classic control might not attach cloud-stored files correctly.^2^
- Attach it directly to the same list item through SharePoint.
- Attach the same file through the app.
Interpretation:
- Direct SharePoint upload succeeds, app fails: inspect the control configuration, save formula, form error, and Monitor trace.
- Both fail: investigate SharePoint or organizational security policy.
- Only larger workbooks fail: compare the file size against both
MaxAttachmentSize and SharePoint’s 250 MB list-attachment limit.
As a secondary isolation test, use a short filename without < > : " | ? * / \. Microsoft’s filename guidance documents these as illegal SharePoint characters, although that article primarily addresses synchronization rather than list-item attachments.^6^
4. Capture the rejected request
If the error label remains blank, run Live monitor immediately before reproducing the failure and inspect the SharePoint connector operation, response status, and error body. Live monitor records network calls, data operations, and errors.^7^
If Microsoft Support is needed, include the trace, affected extension and size, control type, save formula, session ID, and exact reproduction steps.^8^
References
- Types of files that cannot be added to a list or library | Microsoft Support
- Attachments control in Power Apps
- EditForm, NewForm, SubmitForm, ResetForm, and ViewForm functions
- Attachments modern control in canvas apps (preview)
- SharePoint limits
- Fix SharePoint Online sync problems | Microsoft Support
- Debug canvas apps by using Live monitor and Trace
- Create an effective support request