A Microsoft file hosting and synchronization service.
Dear @Srikanth Pettem,
Thank you for reaching out to Microsoft Q&A forum.
I understand you're experiencing an issue with syncing certain files on OneDrive. As a forum moderator, I genuinely wish I could directly access your account or delve into the backend systems to diagnose and fix this for you. However, our role here is limited to providing general guidance and solutions that can be applied by users.
From my research, it seems the issue may be related to organizational security restrictions rather than a technical failure in the OneDrive app itself. While standard office documents typically sync without issue, files with extensions like .jar (Java Archive) and .groovy (script files) are often flagged as "restricted extensions" by IT departments due to their executable nature.
To better understand whether the file type is the cause, I’d like to ask: when you mention that the files aren’t syncing, do you see any specific error messages such as “An administrator has blocked this file type” or “This file is in use by another program”? Or do the files simply not sync at all without an error message?
Here’s a step-by-step way to check if the file extension is the blocker:
- Copy one of your .jar files to your desktop.
- Rename the file to test.txt.
Move it back into your OneDrive folder.
If test.txt syncs without any issues, it confirms that your organization’s security settings are blocking the .jar extension.
Alternative Workarounds:
- For backup purposes: If you need to store these files for backup, try compressing your project folder into a .zip file. Most organizations will allow .zip files, even if they contain restricted file types.
- For source code and development-related files: Microsoft recommends using platforms like GitHub or Azure DevOps instead of OneDrive for storing files such as .groovy or source code. OneDrive is not optimized for high-frequency file changes or complex folder structures (e.g., node_modules or target folders) that are common in software development.
If these files are essential to your workflow, your IT department may be able to make an exception to the ExcludedFileExtensions policy in the SharePoint Admin Center for your user group.
I hope this information is helpful. Please follow these steps and let me know if it works for you. Thank you for your patience and understanding. If you have any questions or need further assistance, please feel free to share them in the comments so I can continue to support you. I'm looking forward to your reply.
If the answer is helpful, please click "Accept Answer" and kindly upvote it.
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.