GithubHelp home page GithubHelp logo

Comments (5)

erwinvanhunen avatar erwinvanhunen commented on June 5, 2024

I will close this issue as the issue as such is not related to the cmdlet functionality. The cmdlet merely uploads the solution using the core library. Effectively the cmdlet is one line of code:

ClientContext.Site.InstallSolution(PackageId.Id, SourceFilePath, MajorVersion, MinorVersion);

However, the Guid is most likely the ID of the field in question.

If you use the cmdlets to connect to the target site, you can retrieve the field in question with:

Get-SPOField -Identity 33e33eca-7712-4f3d-ab83-6848789fc9b6 

In the core library we use the DesignPackage classes to upload and activate the solution. While this most of the time works, it's not a given that it works in every environment or with every solution package, as the DesignPackage classes are specifically targeted toward, as the name says, Design Packages. As those are sandboxed solution packages as such, we found that in our test cases the functionality also works with other sandboxed solution packages.

I recommend you to create an issue in the officedev/pnp-sites-core repository if your issue remains.

from pnp-powershell.

valtynikov avatar valtynikov commented on June 5, 2024

@hanielc did you figure out what was the issue? I'm getting an exact same error message when trying to install a sandbox solution.

from pnp-powershell.

hanielc avatar hanielc commented on June 5, 2024

@valtynikov, no I was not able to figure it out. I ended up using native CSOM code to get it to work.

from pnp-powershell.

MavJutras avatar MavJutras commented on June 5, 2024

This seems to be an issue with many users, is there a place for support as to why this will not work. From the manifest you can pull out the solution id but it reverts to saying that it has an invalid field name and seems to be the same for the two already on this thread.

from pnp-powershell.

MartinHatch avatar MartinHatch commented on June 5, 2024

I was getting this issue when the WSP was already in the Solution Gallery and I was running the PnP function for the first time.

Deleting the WSP so it is uploaded fresh via PnP-PowerShell resolved it.

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.