cancel
Showing results for 
Search instead for 
Did you mean: 

sap.m.PDFViewer display warning message "Could not validate the source of the file...?"

VictorHo
Participant
0 Kudos

Hello everyone,

I'm implementing UI5 app to display PDF file, which is hosted in SAP Application server.

Sometimes, when I open the PDF (using sap.m.PDFViewer), I got this error message, which is confusing to end-user:

I check the response from Backend, but it's not clear how this error comes. This is response from Backend for PDF $value request:

<!doctype html>
<html>
  <body style='height: 100%; width: 100%; overflow: hidden; margin:0px; background-color: rgb(82, 86, 89);'><embed name='DB4BAD04EED41F3C291B8D8265FC822D' style='position:absolute; left: 0; top: 0;' width='100%' height='100%' src='about:blank' type='application/pdf' internalid='DB4BAD04EED41F3C291B8D8265FC822D'></body>
</html><br>

Could someone explain the reason behind this error?

And how shall we fix it? Or at least give more details for the end users?

Thank you.

Accepted Solutions (0)

Answers (0)