Microsoft Word Web App: Sorry, there was a problem and we can’t open this document, if this happens again, try opening the document in Microsoft Word.

 

OWA error

 

Error

Sorry, there was a problem and we can’t open this document, if this happens again, try opening the document in Microsoft Word. 

Problem

Office Web App Server logs are located at  C:\ProgramData\Microsoft\OfficeWebApps\Data\Logs\ULS and by going through the logs actual error was identified.

w3wp.exe (0x1CF0) 0x1F78 Office Web Apps WAC Hosting Interaction adhsk Unexpected WOPI CheckFile: Catch-All Failure [exception:Microsoft.Office.Web.Common.EnvironmentAdapters.FileUnknownException: Invalid Host at Microsoft.Office.Web.Apps.Common.WopiDocument.CreateWopiHttpRequest(WopiRequest req, NameValueCollection headers, Stream requestStream, Int32 requestStreamLength, Stream responseStream, Int32 responseStreamLength, AsyncCallback callback, Object state) at Microsoft.Office.Web.Apps.Common.WopiDocument.GetWopiRequestResultWithRetry(Int32 maxSize, MemoryStream ms, WopiRequest wopiRequest) at Microsoft.Office.Web.Apps.Common.WopiDocument.CheckWopiFile()] 1df9c167-143c-4d80-a5ff-a93cc5569a83

Resolution

for communicatin over http the below powershell commands needs to be executed on the SharePoint server

$OWAC = (get-spsecuritytokenserviceconfig)

$OWAC.allowoauthoverhttp = $true

$OWAC.update()

 

Leave a Reply

Your email address will not be published. Required fields are marked *