Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CodingSinceThe80s opened this issue Dec 20, 2023 · 2 comments

Comments

@CodingSinceThe80s
Copy link

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
@nils-a
Copy link
Contributor

nils-a commented Jan 29, 2024

@nils-a
Copy link
Contributor

nils-a commented Feb 9, 2024

This issue can be closed when pnp/powershell#3741 is made available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants