Sp-dev-docs: The HeaderlessSearchResults ClientSidePageLayoutType fails and can't be used

Created on 9 Jan 2020  路  8Comments  路  Source: SharePoint/sp-dev-docs

Category

  • [ ] Question
  • [ ] Typo
  • [x] Bug
  • [ ] Additional article idea

Expected or Desired Behavior

Using this tutorial : https://docs.microsoft.com/en-us/sharepoint/dev/spfx/building-search-extensions, I should be able to assign a page as my search center and change its type to see the headerless search results page layout type.

Observed Behavior

I can use PnP PowerShell to change the LayoutType using Set-PnPClientSidePage -Identity Results.aspx -LayoutType HeaderlessSearchResults and it goes smoothly. As soon as I access my page though, I get a server error displayes in the SharePoint Error page :

image

Steps to Reproduce

  1. Create a new page in your Site Pages library
  2. Make it the Search Center URL
  3. Assign the HeaderlessSearchResults layout type using Set-PnPClientSidePage -Identity Results.aspx -LayoutType HeaderlessSearchResults
  4. Navigate to this page
spfx-general fixed-next-drop question

Most helpful comment

OK, tracked down the issue. A flight has not finished rolling to 100% of first release / targeted release. We're pushing that along now. I'll post back here when it hits 100% of TR.

All 8 comments

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

Hey Sebastien, can you send me the Tenant URL? I'm trying to look up the error, but I need to start with the tenant. Actually - skip that. That error is generated on the client. If you search the source code for 'pageLayoutType is not a valid module' you should be able to set a breakpoint. Can you tell me what the value of the PageLayoutType variable is?

Tenant : sebastienlevert365
CorrelationId : 31da299f-807d-a000-a089-ea1fb055a42a

And as this is the screen shot from the Error.aspx page, so I don't have much on that page to search for...

I have the same issue, with the same error message.

OK, tracked down the issue. A flight has not finished rolling to 100% of first release / targeted release. We're pushing that along now. I'll post back here when it hits 100% of TR.

This is working for me now, I can use the HeaderlessSearchResults layout. On this layout I see the OOB header visible for a split second before being hidden, is that by design? I would expect to not see a flash of the header at all if it was truly Headerless.

It's resolved on Targeted Release for me also. I agree with you @tdwhite0, this should be seemless and we should not see the flickering effect (or how @patmill likes to say, the rabbit on caffeine). This is still beta / early code, let's hope it gets better for GA!

I had a different issue, also related to the HeaderlessSearchResults, and this page helped so posting it here in case it can be useful. @patmill 's suggestion above to look for the error code helped, but I had to use Fiddler to find the relevant .js file. In the end, my issue was that I hadn't yet set the Search Results Page for the site collection. I've blogged more, in case it's of use to anyone, at https://hilton.giesenow.com/2020-04-29-headerlesssearchresults-cant-show-this-page-with-its-current-layout

Was this page helpful?
0 / 5 - 0 ratings

Related issues

christianbueschi picture christianbueschi  路  3Comments

bengtmoss picture bengtmoss  路  3Comments

waldekmastykarz picture waldekmastykarz  路  3Comments

karishmaTCS picture karishmaTCS  路  3Comments

SteIvanov picture SteIvanov  路  3Comments