Dear SeinaL,
Good day! Thank you for posting in Microsoft Community.
From your description, it seems like the error prompts randomly when your users try to edit and save the excel files in the desktop app to SharePoint.
Based on the error messages you're getting, we’d suggest you try these steps to check the outcomes:
- Move the file to root folder if it’s under in subfolders to make sure the path is not too long. For your reference: Error message when you open or save a file in Microsoft Excel: "Filename is not valid" - Microsoft Support
- Rename the file to a shorter name and delete the special characters if appeared in the file name. For your reference: Restrictions and limitations in OneDrive and SharePoint - Microsoft Support
It is also recommended to copy the file into a new excel and reupload it to SharePoint, check if the same problem will occur.
If the scenario above is not consistent with yours, you can also post back and point that. At the same time, to better understand your situation, could you please provide the information below?
- May I know the version of the Office app on both working and non-working devices? To check version information, open any Office app, such as Excel, click File>Account, check for the info mentioned under Product.
- Do the users encounter the same error on other files?
Your cooperation is highly appreciated.
Best Regards,
Rhoda| Microsoft Community Moderator