Attachments not getting added to SharePoint

Manan 0 Reputation points
2026-11-27T07:23:19.56+00:00

I am facing an issue with attachments in a Canvas App connected to a SharePoint list.

The files are successfully added in Power Apps and the form submits without any errors, but the attachments do not appear in SharePoint. .txt files are working correctly, while other file types, such as Excel files, are not being saved.

I have tried several troubleshooting steps but have not been able to resolve the issue.

Any help or suggestions would be greatly appreciated.

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments

2 answers

Sort by: Most helpful
  1. Julie Huynh 4,780 Reputation points Independent Advisor
    2026-11-27T09:44:06.6733333+00:00

    Dear @Manan ,

    Good day! Welcome to Microsoft Q&A forum!

    Thank you for providing the details.

    To better understand the issue, could you please help clarify the following:

    1. Does the issue occur only with Excel files, or do other file types (such as PDF, Word, or image files) also fail to upload?
    2. Is the Attachments feature enabled in the SharePoint list settings?
    3. Are you seeing any error messages or warnings in Power Apps or SharePoint when uploading the affected files?
    4. Does the issue affect all users or only specific users?
    5. Are the affected files significantly larger than the .txt files that upload successfully?

    As an initial troubleshooting step, you may want to:

    • Verify that attachments are enabled in the SharePoint list settings

    User's image

    User's image

    • Test with different file types (for example, PDF, DOCX, XLSX, and PNG) to determine whether the behavior is specific to Excel files
    • Try uploading a file with a simple filename to rule out any naming-related issues
    • Review the attachment control and form configuration in the Canvas App to ensure attachments are being passed correctly to the SharePoint list when the form is submitted
    • Test with a newly created SharePoint list to see whether the issue is specific to the current list configuration

    Once you provide the additional details above, I can better determine whether the issue is related to the SharePoint list settings, attachment restrictions, or the Canvas App configuration.

    Kindly let me know when there are updates or if you need further assistance. Any updates you’re able to share would be really helpful.

    Thank you for your time and patience.

    Was this answer helpful?

    0 comments No comments

  2. AI answer

    2026-11-27T07:24:52.5266667+00:00

    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:

    1. Select the form and confirm DataSource is the SharePoint list.
    2. Select Edit fields → Add field → Attachments if the attachment card is missing.
    3. Keep the generated attachment card binding intact.
    4. Set the Save button’s OnSelect to:
    SubmitForm(EditForm1)
    
    1. Add a label below the button and set Text to:
    EditForm1.Error
    
    1. 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.

    Modern Attachments control outside a form

    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:

    1. 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^
    2. Attach it directly to the same list item through SharePoint.
    3. 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

    1. Types of files that cannot be added to a list or library | Microsoft Support
    2. Attachments control in Power Apps
    3. EditForm, NewForm, SubmitForm, ResetForm, and ViewForm functions
    4. Attachments modern control in canvas apps (preview)
    5. SharePoint limits
    6. Fix SharePoint Online sync problems | Microsoft Support
    7. Debug canvas apps by using Live monitor and Trace
    8. Create an effective support request
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.