GithubHelp home page GithubHelp logo

Comments (4)

kilasuit avatar kilasuit commented on June 11, 2024

Hi @hanielc - Is this with a specific list type? I only ask as Minor versions from memory only work with Document Librarys - though I could be wrong on that 😉

Also is this being run against On-Prem or Online?

from pnp-powershell.

hanielc avatar hanielc commented on June 11, 2024

@kilasuit , it happens on custom lists based on the GenericList type on Online. The documentation doesn't mention anything around minor versions. I was able get around it by using the following:

$list = Get-SPOList "MyList"
$list.EnableVersioning = $true
$list.Update()
$ctx.ExecuteQuery()

Should the cmdlet ask for major/minor version? :)

from pnp-powershell.

kilasuit avatar kilasuit commented on June 11, 2024

I've just checked through the code implementation - it's not trying to pass through EnableMinorVersioning that I can see - only allowing the request of setting Major versions.

Perhaps @erwinvanhunen can shed some other light on this.

from pnp-powershell.

erwinvanhunen avatar erwinvanhunen commented on June 11, 2024

This is actually related to the method in the PnP Core library that is being called. It sets the EnableMinorVersions property on the list, regardless of the type. Ryan was right with his assumption that it can only be set on document libraries. I've updated the core library method now and the fix will be in the nuget release we will do later this week. I will close this issue.

from pnp-powershell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.