[BUG]Set-PnPPage -Title property doesn't work properly #2670
              
                Unanswered
              
          
                  
                    
                      Mengting233
                    
                  
                
                  asked this question in
                General
              
            Replies: 1 comment
-
| I copied the SiteName column and change the copied column name to "Title" Now it works. I guess the SiteName column has problem in the csv.But I have refered $Site.SiteName in the Write-host, there is no problem. 
 Where $Site.SiteName Works: | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am running a for each loop for the two items in the csv below.

When I refer Title to $Site.Fastighetnr the Title of the home page can be updated. But when I refer to $Site.SiteName the Title of the home pace cannot be updated. Is it because the site name has so many special texts?
Doesn't work:
Set-PnPPage -Identity "Home" -Title $Site.SiteName -LayoutType SingleWebPartAppPage -Publish:$true -CommentsEnabled:$falseWorks:
Set-PnPPage -Identity "Home" -Title $Site.Fastighetnr -LayoutType SingleWebPartAppPage -Publish:$true -CommentsEnabled:$falseWorks if I put the texts directly for -Title:
Set-PnPPage -Identity "Home" -Title "2809 - Kärra 26:5" -LayoutType SingleWebPartAppPage -Publish:$true -CommentsEnabled:$falseBeta Was this translation helpful? Give feedback.
All reactions