Skip to content

[BUG] Request-PnPReIndexWeb stopped working #5248

@Tetronic

Description

@Tetronic

Reporting an Issue or Missing Feature

Running "Request-PnPReIndexWeb" does not increase the property bag value "vti_searchversion" of my connected SPO Web.

Expected behavior

I would expect that the value of the property bag key "vti_searchversion" would increase, as it is, when I manually do the reindex via the UI (under site settings -> Search and offline availability)

Actual behavior

The property bag value does not increase. Before the execution it was 19 and after the execution it is still 19.
To check this, I used the command "Get-PnPPropertyBag" after I connected to the web via "Connect-PnPOnline":
The relevant line of the "Get-PnPPropertyBag" - output is:
vti_searchversion 19

I even disconnected and reconnected via "Connect-PnPOnline", but it still gives me the vti_searchversion 19.

Steps to reproduce behavior

`

$SiteURL = "xxx"
$AppID = "xxx"

function DoFullCrawlForCurrentWeb() {

try{

Request-PnPReIndexWeb

Write-Host "Current Web is marked for Full Crawl" -ForegroundColor Green

}
catch {
write-host -f Red "Error at marking Current Web!" $_.Exception.Message
}

}

Connect-PnPOnline -URL $SiteURL -Interactive -ClientId $AppID

$WebsCollection = Get-PnPSubWeb -Recurse -IncludeRootWeb

ForEach ($Web in $WebsCollection) {

Write-Host "Processing Web: "$Web.Url -ForegroundColor Blue

Connect-PnPOnline -URL $Web.Url -Interactive -ClientId $AppID

DoFullCrawlForCurrentWeb
Write-Host ""

break

}
`

What is the version of the Cmdlet module you are running?

3.1.0

Which operating system/environment are you running PnP PowerShell on?

  • Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions