Skip to content

[BUG] Request-PnPReIndexWeb stopped working #4924

Open
@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 17 and after the execution it is still 17.

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 ""

# for testing only 1 Web
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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions