Skip to content

[BUG] Empty Search Settings when exported via Get-PnPSiteTemplate with configuration #953

@CodingSinceThe80s

Description

@CodingSinceThe80s

Issue

Using Version 2.2.0 of PnP Powershell module
Powershell v 7.3.0

Preparation

Connect-PnPOnline -Url [my-sponline-tenant] -Interactive
The connecting user is site collection administrator, but an external guest user.

Expected behavior

Get-PnPSiteTemplate -Handlers SearchSettings -IncludeSearchConfiguration -Out output-search-handler.xml

Contents of searchconfig.json

{
    "$schema": "https://aka.ms/sppnp-extract-configuration-schema",
        "handlers": [
            "SearchSettings"
        ],
        "searchSettings": {
            "include": true  
        }
    }

Get-PnPSiteTemplate -Configuration C:\path\searchconfig.json -Out output-search-config.xml

I expect the contents of output-search-handler.xml and output-search-config.xml to be identical.

Actual behavior

  1. output-search-handler.xml has correct exported search settings
  2. output-search-config.xml has empty exported search settings

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