Unable to see preview thumbnail images in SharePoint online

%3CLINGO-SUB%20id%3D%22lingo-sub-1211741%22%20slang%3D%22en-US%22%3EUnable%20to%20see%20preview%20thumbnail%20images%20in%20SharePoint%20online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1211741%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20folks%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20I%20set%20Banner%20Image%20URL%20in%20SharePoint%20Online%20modern%20site%20page%20using%20MS%20Flow%2C%20preview%20thumbnail%20images%20are%20not%20shown%20in%20carousel%2Fpage%20cards.%20It%20works%20perfectly%20fine%20when%20I%20set%20the%20Banner%20image%20manually.%26nbsp%3BI%20tried%20with%20action%20%22Send%20HTTP%20Request%20to%20SharePoint%22%20and%20%22Update%20Item%22%20to%20update%20banner%20image%20URL%2C%20but%20problem%20still%20persists.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22MS.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F175515i41F04B097DCB3CFD%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22MS.jpg%22%20alt%3D%22MS.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20tried%20to%20troubleshoot%20the%20issue%20and%20found%20that%2C%20URL%20for%20thumbnail%20images%20gives%20out%20400%20bad%20request%20error.%20Format%20of%20thumbnail%20image%20URL%20is%20like%20-%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fxxxxxxxxxxxxxxxxxx.sharepoint.com%2F_api%2Fv2.0%2FsharePoint%3A%2Fsites%2Fxxxxxxx%2Fxxxxxxx%2Fxxxxxxxxxxx.jpg%3A%2FdriveItem%2Fthumbnails%2F0%2Fc400x99999%2Fcontent%3FpreferNoRedirect%3Dtrue%26amp%3BclientType%3DmodernWebPart%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fxxxxxxxxxxxxxxxxxx.sharepoint.com%2F_api%2Fv2.0%2FsharePoint%3A%2Fsites%2Fxxxxxxx%2Fxxxxxxx%2Fxxxxxxxxxxx.jpg%3A%2FdriveItem%2Fthumbnails%2F0%2Fc400x99999%2Fcontent%3FpreferNoRedirect%3Dtrue%26amp%3BclientType%3DmodernWebPart%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESample%20Error%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%7B%22error%22%3A%7B%22code%22%3A%22generalException%22%2C%22message%22%3A%22%5BOneDrive.Media.Streams%5D%20e%3A%5C%5Csource%5C%5Crepos%5C%5Cmediaprocessingcomponents2%5C%5Cstreams%5C%5Cstreamonuriimpl.cpp(647)%20***%20HTTP%20400%20***%5Cr%5Cn***%20RAWURL%20***%5Cr%5Cnhttps%3A%2F%2Fxxxxxxxxxxxxxxxxxxxx.sharepoint.com%2F_api%2Fv2.0%2Fsharepoint%3Asites%2Fxxxxxxxx%2Fxxxx%2Fxxxxx.jpg%3A%2FdriveItem%2Fversions%2FPublished%2Fstreams%2Fcontent_preview_T0002560.0.0%2FstreamContent%3FVroomTakeover%3D1%5Cr%5Cn***%20RAWHEADERS%20***%5Cr%5CnHTTP%2F1.1%20400%20Bad%20Request%5Cr%5CnCache-Control%3A%20private%5Cr%5CnDate%3A%20Thu%2C%2005%20Mar%202020%2016%3A56%3A03%20GMT%5Cr%5CnTransfer-Encoding%3A%20chunked%5Cr%5CnContent-Type%3A%20application%2Fjson%5Cr%5CnP3P%3A%20CP%3D%5C%22ALL%20IND%20DSP%20COR%20ADM%20CONo%20CUR%20CUSo%20IVAo%20IVDo%20PSA%20PSD%20TAI%20TELo%20OUR%20SAMo%20CNT%20COM%20INT%20NAV%20ONL%20PHY%20PRE%20PUR%20UNI%5C%22%5Cr%5CnServer%3A%20Microsoft-IIS%2F10.0%5Cr%5CnX-SharePointHealthScore%3A%201%5Cr%5CnX-VroomVersion%3A%202.0%5Cr%5CnX-AspNet-Version%3A%204.0.30319%5Cr%5CnSPRequestGuid%3A%20xxxxx-xxxx-xxxx-xxxx-xxxxxxx%5Cr%5Cnrequest-id%3A%20xxxxx-xxxx-xxxx-xxxx-xxxxxxx%5Cr%5CnMS-CV%3A%20nzvcz9HwAKB8ffPrECsbjw.0%5Cr%5CnStrict-Transport-Security%3A%20max-age%3D31536000%5Cr%5CnX-FRAME-OPTIONS%3A%20SAMEORIGIN%5Cr%5CnX-Powered-By%3A%20ASP.NET%5Cr%5CnMicrosoftSharePointTeamServices%3A%2016.0.0.19819%5Cr%5CnX-Content-Type-Options%3A%20nosniff%5Cr%5CnX-MS-InvokeApp%3A%201%3B%20RequireReadOnly%5Cr%5Cn%5Cr%5Cn***%20RAWBODY%3A%5Cr%5Cn%7B%5C%22error%5C%22%3A%7B%5C%22innerError%5C%22%3A%7B%5C%22code%5C%22%3A%5C%22apiNotFound%5C%22%7D%2C%5C%22code%5C%22%3A%5C%22invalidRequest%5C%22%2C%5C%22message%5C%22%3A%5C%22API%20not%20found%5C%22%7D%7D%5Cr%5Cn***%20END%20***%200x80004005%20Unspecified%20error.%5Cr%5Cn%5BOneDrive.Media.Streams%5D%20e%3A%5C%5Csource%5C%5Crepos%5C%5Cmediaprocessingcomponents2%5C%5Cstreams%5C%5Cstreamonuriimpl.cpp(1695)%20The%20stream%20is%20in%20a%20fatal%20error%20state%20and%20can%20no%20longer%20be%20used.%200x80004005%20Unspecified%20error.%5Cr%5Cn%5BOneDrive.Media.Streams%5D%20e%3A%5C%5Csource%5C%5Crepos%5C%5Cmediaprocessingcomponents2%5C%5Cstreams%5C%5Cstreamonuriimpl.cpp(1563)%200x80004005%20Unspecified%20error.%5Cr%5Cn%5BOneDrive.Media.Streams%5D%20e%3A%5C%5Csource%5C%5Crepos%5C%5Cmediaprocessingcomponents2%5C%5Cstreams%5C%5Cstreamonuriimpl.cpp(1988)%200x80004005%20Unspecified%20error.%22%2C%22innererror%22%3A%7B%22code%22%3A%22Web_400BadRequest%22%7D%7D%7D%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20help%20me%20to%20resolve%20this%20issue.%20Please%20let%20me%20know%20if%20you%20need%20more%20details%20from%20me.%3C%2FP%3E%3CP%3EThanks%20in%20advance.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1211741%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Flow%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1212248%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20see%20preview%20thumbnail%20images%20in%20SharePoint%20online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1212248%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F575361%22%20target%3D%22_blank%22%3E%40Akshay9720%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20don't%20have%20a%20solution%20but%20I%20am%20in%20a%20similar%20situation%20where%20I%20receive%20a%26nbsp%3B%3CSPAN%3E400%20bad%20request%20error%20using%20the%20SharePoint%20HTTPS%20action%20in%20Power%20Automate.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDid%20you%20post%20on%20the%20Power%20Automate%20community%20site%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20hope%20this%20helps.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENorm%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1212294%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20see%20preview%20thumbnail%20images%20in%20SharePoint%20online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1212294%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F575361%22%20target%3D%22_blank%22%3E%40Akshay9720%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EQuick%20update%2C%20I%20fixed%20it%20on%20my%20end.%20Share%20the%20send%20HTTPS%20request%20action%20config%20and%20I%20will%20try%20to%20assist%20as%20I%20can.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENorm%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1222143%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20see%20preview%20thumbnail%20images%20in%20SharePoint%20online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1222143%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F111382%22%20target%3D%22_blank%22%3E%40Norman%20Young%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20tried%20two%20actions%20to%20set%20BannerImageUrl.%20one%20is%20with%20%22Update%20item%22%20action%20as%20below.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22MS1.jpg%22%20style%3D%22width%3A%20615px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F176351iA98EA6EEE132B1C1%2Fimage-dimensions%2F615x453%3Fv%3D1.0%22%20width%3D%22615%22%20height%3D%22453%22%20title%3D%22MS1.jpg%22%20alt%3D%22MS1.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnother%20with%20%22Send%20Http%20Request%20to%20SharePoint%22%20action%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22MS.jpg%22%20style%3D%22width%3A%20924px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F176352i1856BD00D219003F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22MS.jpg%22%20alt%3D%22MS.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20find%20below%20JSON%20body%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CEM%3E%7B%22__metadata%22%3A%7B%22type%22%3A%22SP.Data.SitePagesItem%22%7D%2C%22SnapImageURL%22%3A%7B%22__metadata%22%3A%20%7B%20%22type%22%3A%20%22SP.FieldUrlValue%22%20%7D%2C%20%22Description%22%3A%20%22%40%7Bvariables('AttachmentURL')%7D%22%2C%20%22Url%22%3A%20%22%40%7Bvariables('AttachmentURL')%7D%22%7D%2C%22Title%22%3A%22%40%7Bvariables('NameToBeUsedInTitle')%7D%22%2C%22OData__AuthorBylineId%22%3A%7B%22__metadata%22%3A%7B%22type%22%3A%22Collection(Edm.Int32)%22%7D%2C%22results%22%3A%5B%40%7Bvariables('AuthorId')%7D%5D%7D%2C%22BannerImageUrl%22%3A%7B%22__metadata%22%3A%20%7B%20%22type%22%3A%20%22SP.FieldUrlValue%22%20%7D%2C%20%22Description%22%3A%20%22%40%7Bvariables('AttachmentURL')%7D%22%2C%20%22Url%22%3A%20%22%40%7Bvariables('AttachmentURL')%7D%22%7D%2C%22LayoutWebpartsContent%22%3A%22%40%7Bvariables('LayoutHTMLContent')%7D%22%7D%3C%2FEM%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1387580%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20see%20preview%20thumbnail%20images%20in%20SharePoint%20online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1387580%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F575361%22%20target%3D%22_blank%22%3E%40Akshay9720%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20fantastic.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWould%20you%20mind%20sending%20all%20the%20process%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hello folks,

 

When I set Banner Image URL in SharePoint Online modern site page using MS Flow, preview thumbnail images are not shown in carousel/page cards. It works perfectly fine when I set the Banner image manually. I tried with action "Send HTTP Request to SharePoint" and "Update Item" to update banner image URL, but problem still persists.

MS.jpg

I tried to troubleshoot the issue and found that, URL for thumbnail images gives out 400 bad request error. Format of thumbnail image URL is like - 

https://xxxxxxxxxxxxxxxxxx.sharepoint.com/_api/v2.0/sharePoint:/sites/xxxxxxx/xxxxxxx/xxxxxxxxxxx.jp...

 

Sample Error:

 

 

{"error":{"code":"generalException","message":"[OneDrive.Media.Streams] e:\\source\\repos\\mediaprocessingcomponents2\\streams\\streamonuriimpl.cpp(647) *** HTTP 400 ***\r\n*** RAWURL ***\r\nhttps://xxxxxxxxxxxxxxxxxxxx.sharepoint.com/_api/v2.0/sharepoint:sites/xxxxxxxx/xxxx/xxxxx.jpg:/driveItem/versions/Published/streams/content_preview_T0002560.0.0/streamContent?VroomTakeover=1\r\n*** RAWHEADERS ***\r\nHTTP/1.1 400 Bad Request\r\nCache-Control: private\r\nDate: Thu, 05 Mar 2020 16:56:03 GMT\r\nTransfer-Encoding: chunked\r\nContent-Type: application/json\r\nP3P: CP=\"ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI\"\r\nServer: Microsoft-IIS/10.0\r\nX-SharePointHealthScore: 1\r\nX-VroomVersion: 2.0\r\nX-AspNet-Version: 4.0.30319\r\nSPRequestGuid: xxxxx-xxxx-xxxx-xxxx-xxxxxxx\r\nrequest-id: xxxxx-xxxx-xxxx-xxxx-xxxxxxx\r\nMS-CV: nzvcz9HwAKB8ffPrECsbjw.0\r\nStrict-Transport-Security: max-age=31536000\r\nX-FRAME-OPTIONS: SAMEORIGIN\r\nX-Powered-By: ASP.NET\r\nMicrosoftSharePointTeamServices: 16.0.0.19819\r\nX-Content-Type-Options: nosniff\r\nX-MS-InvokeApp: 1; RequireReadOnly\r\n\r\n*** RAWBODY:\r\n{\"error\":{\"innerError\":{\"code\":\"apiNotFound\"},\"code\":\"invalidRequest\",\"message\":\"API not found\"}}\r\n*** END *** 0x80004005 Unspecified error.\r\n[OneDrive.Media.Streams] e:\\source\\repos\\mediaprocessingcomponents2\\streams\\streamonuriimpl.cpp(1695) The stream is in a fatal error state and can no longer be used. 0x80004005 Unspecified error.\r\n[OneDrive.Media.Streams] e:\\source\\repos\\mediaprocessingcomponents2\\streams\\streamonuriimpl.cpp(1563) 0x80004005 Unspecified error.\r\n[OneDrive.Media.Streams] e:\\source\\repos\\mediaprocessingcomponents2\\streams\\streamonuriimpl.cpp(1988) 0x80004005 Unspecified error.","innererror":{"code":"Web_400BadRequest"}}}

 

Please help me to resolve this issue. Please let me know if you need more details from me.

Thanks in advance.

4 Replies

Hi@Akshay9720,

 

I don't have a solution but I am in a similar situation where I receive a 400 bad request error using the SharePoint HTTPS action in Power Automate.

 

Did you post on the Power Automate community site?

 

I hope this helps.

 

Norm

 

@Akshay9720,

 

Quick update, I fixed it on my end. Share the send HTTPS request action config and I will try to assist as I can.

 

Norm

@Norman Young 

 

I tried two actions to set BannerImageUrl. one is with "Update item" action as below.

MS1.jpg

 

Another with "Send Http Request to SharePoint" action

MS.jpg

 

Please find below JSON body:

 

{"__metadata":{"type":"SP.Data.SitePagesItem"},"SnapImageURL":{"__metadata": { "type": "SP.FieldUrlValue" }, "Description": "@{variables('AttachmentURL')}", "Url": "@{variables('AttachmentURL')}"},"Title":"@{variables('NameToBeUsedInTitle')}","OData__AuthorBylineId":{"__metadata":{"type":"Collection(Edm.Int32)"},"results":[@{variables('AuthorId')}]},"BannerImageUrl":{"__metadata": { "type": "SP.FieldUrlValue" }, "Description": "@{variables('AttachmentURL')}", "Url": "@{variables('AttachmentURL')}"},"LayoutWebpartsContent":"@{variables('LayoutHTMLContent')}"}

@Akshay9720 

 

This is fantastic.

 

Would you mind sending all the process?

 

Thanks :)