Teams won't allow me to attach a file to an assignment

H Vardy (KES Staff) 10 Reputation points
2025-09-08T18:06:18.97+00:00

I get an error message when I try to attach a document to a Teams assignment. I was able to do this before. I have tried in both the browser and the app and also tried uploading the file locally, from One Drive and from Teams in the files section of the channel.

 User's image

Microsoft Teams | Microsoft Teams for education | Assignments | Set assignments
{count} votes

5 answers

Sort by: Most helpful
  1. Alexis-NG 9,355 Reputation points Microsoft External Staff Moderator
    2025-09-08T18:46:25.9166667+00:00

    Hi @H Vardy (KES Staff),

    Thanks for reaching out to Q&A Forum. 

    Based on the error message you received “There was a problem when attaching this file. Please remove and try again” and the context you provided, to help us investigate and resolve this issue, could you please confirm the following:

    1. Does the issue occur for all file types? Try uploading a simple .docx or .pdf under 500MB.
    2. Which account type are you using with your Teams? Is a personal account (@hotmail. @gmail. @outlook.com,...) or a work /school account provided by your organization?
    3. Which system are you currently using (Windows, MacOS....)
    4. Is the issue specific to OneDrive or also local files?
    5. Does the issue occur for all file or just one?
    6. Are other staff or students experiencing the same issue? If yes, you may need to check with your IT admin about a SharePoint or Teams policy issue. 

    Once we have this information, we’ll be better positioned to guide you through the next steps. Please feel free to add any additional information you deem as necessary. Note: Please understand that our initial response does not always resolve the issue immediately. However, with your help and more detailed information, we can work together to find a solution.  Thank you for your patience and your understanding. If you have any questions, please feel free to reach out. 


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. 

    User's image

    0 comments No comments

  2. H Vardy (KES Staff) 10 Reputation points
    2025-09-08T20:42:13.5833333+00:00
    1. It is a PPT that I am trying to upload under 500MB. I have tried other file types and get the same message.
    2. It is a school based account, I am a teacher and 'owner' of the group.
    3. Windows 11
    4. Both
    5. All files
    6. Not sure will check tomorrow.

  3. C Ball 0 Reputation points
    2025-09-11T12:37:07.8466667+00:00

    We have the same issue, but if we make a new channel we are able to make and upload files to Assignments withing that channel

    0 comments No comments

  4. Matt Grimley 0 Reputation points
    2025-09-15T09:25:19.4033333+00:00

    I have a solution from Microsoft Support, but it involves a Powershell Script that i can't see publicly listed (i.e. you might need to raise a ticket and ask for the script).

    The issue was a bug in the Powershell Teams module prior to Version 7.3.1 (which was released in August). If your tenant admin manually created your Edu teams prior to the summer (or since, without updating the powershell Teams module), then you need to run the script.

    The script Microsoft Support gave me (in ticket ID PII Removed) is called TeamSite-GenChanFolderTriggers-wPermAddV7.ps1 and should be run after running this commands:
    Powershell pre-requisit commands
    Install-Module Microsoft.Graph
    Install-Module -Name MicrosoftTeams
    Install-Module -Name Microsoft.Online.SharePoint.PowerShell
    Install-Module -Name ExchangeOnlineManagement
    Connect-MicrosoftTeams
    Connect-ExchangeOnline
    Connect-SPOService -Url https://<YOUR TENANT NAME>-admin.sharepoint.com
    Connect-MgGraph -scopes "SharePointTenantSettings.ReadWrite.All","TeamSettings.Read.All","TeamMember.ReadWrite.All","Directory.ReadWrite.All","Group.ReadWrite.All","Sites.ReadWrite.All","Sites.FullControl.All"

    ~~I've asked my ticket handler if the script is publicly available and if so i will share the link here. Otherwise, get your admin to raise a support ticket and ask for the script.
    ~~
    Update 25/09/25
    Microsoft Support have published the full script here:
    https://support.microsoft.com/en-us/topic/provisioning-classes-at-scale-using-powershell-and-microsoft-graph-3428f18f-ff38-4c46-a696-3318e463cbec#:~:text=Troubleshoot:%20granting%C2%A0permissions%20to%20existing%20class%20sites


  5. Alexis-NG 9,355 Reputation points Microsoft External Staff Moderator
    2025-09-18T16:26:21.3166667+00:00

    Hi @H Vardy (KES Staff),

    I hope everything is running smoothly on your end.

    Just following up on the support thread we've been working through. I’d love to hear any updates you’ve received from your IT department. There are several others are experiencing the same issue, and Matt Grimley has shared some helpful recommendations that could assist your IT team in resolving it.

    If you're still encountering the problem or need help with anything else, feel free to reply to this email, I’m happy to assist further.

    We want to make sure everything is working as expected and that your experience remains uninterrupted.

    Thank you for your patience and understanding throughout the troubleshooting process. 

    I look forward to hearing from you soon.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. 

    User's image

    0 comments No comments

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.