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

PictureThumbnailURL is null in the web part but return by the Search API #3746

Open
londify opened this issue May 16, 2024 · 2 comments
Open
Labels
bug Something isn't working Needs: Author Feedback Awaiting response from the original poster of the issue. Needs: Triage Needs investigation and repro

Comments

@londify
Copy link

londify commented May 16, 2024

Version used
Ex: 4.11.1

Describe the bug
Trying to get the image preview to work. Using PictureThumbnailURL in the PreviewImageUrl slot. However when I go to debug mode the value for is always NULL. When I search for the document using the REST API, I can see that there is a value for PictureThumbnailURL.

To Reproduce
Detailed steps to reproduce the behavior:

Add PictureThumbnailURL to selected properties in search results web part
change to debug mode
Notice that the value for the property is null

PNP Search Results - Thumbnail NULL

Search for the file via the rest API in a browser.
Property PictureThumbnailURL has a value
Expected behavior
The PictureThumbnailURL property should render a value in the search results web part
PNP Search Results - Thumbnail From REST API

Screenshots
PNP Search Results - Thumbnail NULL
PNP Search Results - Thumbnail From REST API

**Desktop **

Browser: Microsoft edge
Additional context
Had a search call with Microsoft as the value returned via the search API for PictureThumbnailURL would give an access denied error when putting it in the browser. That is now rectified after doing a full crawl on the affected libraries.

@wobba wobba added the Needs: Triage Needs investigation and repro label May 25, 2024
@kasperbolarsen kasperbolarsen added the Needs: Author Feedback Awaiting response from the original poster of the issue. label Aug 5, 2024
@kasperbolarsen
Copy link
Collaborator

kasperbolarsen commented Aug 5, 2024

using isDocument:1 xlsx as query I get a value in PictureThumbnailURL , both in the debug layout and in the Network tab in Developer tools.

Can you verify if the issue still exists, and provide a sample that shows the issue

@ERTVZ
Copy link

ERTVZ commented Aug 6, 2024

I had the same issue 2 months ago. I used {{item.PictureThumbnailURL}} instead of {{slot item @root.slots.PreviewImageUrl}} to make it work. No idea if the issue still exists as my "solution" did the trick for me.

@wobba wobba added the bug Something isn't working label Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Needs: Author Feedback Awaiting response from the original poster of the issue. Needs: Triage Needs investigation and repro
Projects
None yet
Development

No branches or pull requests

4 participants