Nov 03 2020 07:29 AM
We are using (I believe) the global default of 500 versions for document libraries in SharePoint Online and now we are discovering that the version history is accumulating more than 500 major versions on items in libraries. We have retention policies set for SharePoint sites (do not delete for X years). Is that overriding the version history settings? We have libraries in supporting MSTeams and Communication sites where files are well over the 500 major version limit. 6800+, 7900+
It's kind of insane... I'm not finding the documentation to answer my question very easily. It's also throwing a wrench into backup software that we are trying to run since it doesn't have a setting where it allows us to backup a maximum amount of versions.
Feb 07 2024 04:41 AM
Feb 08 2024 04:33 PM
@N51768 issue is that your retention policy is based on time and versioning is based on how many times you save a document. In office web the documents are saved every 25 seconds so if you have retention based on time it can be a larger file count than versioning limit.
Feb 08 2024 05:33 PM
Feb 12 2024 08:35 AM - edited Feb 12 2024 08:36 AM
For us - the retention policy affects the version history as well. So, limiting the number of versions on the library and attempting to delete specific older versions of a document are not possible with the global retention policies in place. So, the only way to reduce the size would be to delete the document - all the versions would go along with it.
I hit post early and had to edit it.
Feb 12 2024 09:08 AM - edited Feb 12 2024 09:10 AM
@Timothy Balk Undo the retention policy by removing the policy (could take a day or two). Update the versioning limitation; you would have to do this on every library. This will delete the versions BUT you would have to go into each document open it and save it again for the new version limits to take effect (time consuming). This is not achievable by Power Automate so the only way would be to get users involved and have them open and close each document. There is no easy way around this but I am sure Microsoft is working on something. The time it takes to label a document is time-consuming in that automated process. In some cases 48 hours. Leaves some holes in the process of protection and security, even legal holds. If you implement this method then you would have to reapply the policies again.
PowerShell could maybe help in this as well. Maybe release the label, open and close the document, and reapply the label to the file. I have done some amazing things with PowerShell but not sure this would be one that is successful. Depending on how many documents you have to apply this script to, it could take weeks or months to get this completed. Something maybe to look into. Not sure this helps but some ideas.
Feb 12 2024 09:37 AM
Feb 12 2024 10:53 AM