SAS® Visual Analytics fails to generate a PDF with the message “An error was encountered contacting the server (400)"


Exporting a SAS Visual Analytics report to PDF might fail with the following two errors: 

The export failed to generate a PDF.

and

An error was encountered contacting the server (400)
[object Object]

This problem can occur after you select the Use page size option in the Export PDF dialog box. When you select this option, an invalid paper size is added to the report. Even if you switch to one of the built-in paper sizes (such as Letter or A3), the invalid paper size remains.

Workaround

To circumvent this issue, complete the following steps:

  1. Reopen the Export PDF dialog box.
  2. Select Use page size. 
  3. Adjust the Width and Height values so that they do not use more than one decimal place.
  4. Select the built-in page size that you prefer.
  5. Click Export to print. 

This issue first occurred in SAS® Viya® Stable 2023.02.