question

Jeff-7237 avatar image
0 Votes"
Jeff-7237 asked EchoDu-MSFT commented

SharePoint Online versioning disabled automatically on large library

We have a large document library with about 1.4 million records. I'd say on average each doc has about 5 versions however, only the list (meta) data changes. Never the actual document. This doc library keeps turning it's versioning off every time I turn it on. Usually overnight. Although it was once per week not too long ago and has gotten progressively worse over time.

We've contacted MS Support and after about 2 weeks of attempts, it is still not fixed. Most of their advise revolved around using PowerShell to set versioning and testing on other libraries. One interesting find was that versioning is working on all other doc libraries on all sites. It seems to only be this large library that has the issue. They ran out of ideas and we are not told to decrease the size of the library is the only option.

Has anyone else ran into this issue? Any ideas how to overcome it and keep versioning on indefinitely?

More info:
This is a plain vanilla doc library. No doc control or retention policies are enabled.
About 30 content types with 35 unique fields.
Add about 10k docs per day.
15 indexed fields.

office-sharepoint-online
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

EchoDu-MSFT avatar image
0 Votes"
EchoDu-MSFT answered EchoDu-MSFT commented

Hello @Jeff-7237 ,

Welcome to Q&A Forum!

According to your description, it seems to be caused by the large Document library.

Have you tried using PowerShell commands to turn on Versioning feature?

If not, please run the below PnP PowerShell script as an admin:

 #Set Parameters
 $SiteURL="https://xxxx.sharepoint.com/sites/sitename"
 $LibraryName = "Documents"
     
 #Connect to PnP Online to the Site
 Connect-PnPOnline -Url $SiteURL -UseWebLogin
     
 #Enable Versioning
 Set-PnPList -Identity $LibraryName -EnableVersioning $True
    
 #Enable Minor Versions
 #Set-PnPList -Identity $LibraryName -EnableVersioning $True -EnableMinorVersions $True
    
 #Set Limits on Versions
 #Set-PnPList -Identity "Documents" -EnableVersioning $True -EnableMinorVersions $True -MajorVersions 500 -MinorVersions 100

Since you have opened a Microsoft customer support service, it is recommand to continue contacting the MS Support Engineer to show your concerns or doubts.

Thanks,
Echo Du
=======================================
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.




· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @Jeff-7237 ,

Is there anything else I can help with regarding this issue?

You can comment us at any time and we will continue to follow up.

Thanks,
Echo Du

0 Votes 0 ·