Skip to content

pnp.provisioning: WebPartType DocumentEmbed uses wrong parameter #1204

@stefknoe

Description

@stefknoe

If you create a template from an aspx-site with the "DocumentEmbed" webpart inside the created xml-file uses a wrong parameter to point to the correct file. Uploading this xml file with "Invoke-PnPSiteTemplate" to a target site collection leads to an error that don't let you create a new site based on this xml definition from the template catalog.

Image

If you click on "use this template" the new site cannot be created

Image

After checking the calls made by opening a normal page with this webpart from the site-pages library with the calls made from the template-catalog I saw that the working call is using the document-id(?) of the linked file, while the the template uses a path to the file.

Image

After changing this in the xml file created by the pnp.provisioning engine from path to document-id and pushing it again to the target site I could create a new site from the template.

Image

So I think to make this webpart working again the pnp.provisioning engine has to export the document-id(?) instead of the path.

Best regards
stefan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions