1 Reply Latest reply on Feb 22, 2018 7:56 AM by Jeff Strauss

    Issue Exporting Tableau report to PDF

    sudhakar reddy

      Hello All,

       

      I'm facing below error exporting the workbook to PDF .

       

      tabcmd login -s https://xyz.com -t xyz -u xyz -p xyz

       

      tabcmd export "Sales/Sales_Analysis" --fullpdf --pagesize a3 --pagelayout landscape --width 1200 -f "C:\Tableau_Workbooks\Weekly-Reports.pdf"

       

      Same syntax seems to be working fine for other environment but facing the issue with only one Environment Server.

       

      java.lang.reflect.InvocationTargetException

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

      java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

      sorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:497)

              at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner

      .java:53)

              at java.lang.Thread.run(Thread.java:745)

      Caused by: java.lang.OutOfMemoryError: Java heap space

              at java.util.Arrays.copyOf(Arrays.java:3332)

              at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.

      java:137)

              at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractString

      Builder.java:121)

              at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:569

      )

              at java.lang.StringBuilder.append(StringBuilder.java:190)

              at org.apache.commons.io.output.StringBuilderWriter.write(StringBuilderW

      riter.java:143)

              at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:2370)

              at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:2348)

              at org.apache.commons.io.IOUtils.copy(IOUtils.java:2325)

              at org.apache.commons.io.IOUtils.copy(IOUtils.java:2273)

              at org.apache.commons.io.IOUtils.toString(IOUtils.java:1041)

              at org.apache.commons.io.IOUtils.toString(IOUtils.java:1066)

              at com.tableausoftware.tabcmd.http.HttpRequest.responseToOutput(HttpRequ

      est.java:363)

              at com.tableausoftware.tabcmd.http.HttpRequest.getResponseString(HttpReq

      uest.java:288)

              at com.tableausoftware.tabcmd.VizqlSession.<init>(VizqlSession.java:118)

       

       

              at com.tableausoftware.tabcmd.commands.Export.getPDFResponse(Export.java

      :189)

              at com.tableausoftware.tabcmd.commands.Export.export(Export.java:139)

              at com.tableausoftware.tabcmd.commands.Export.execute(Export.java:89)

              at com.tableausoftware.tabcmd.Tabcmd.run(Tabcmd.java:158)

              at com.tableausoftware.tabcmd.Tabcmd.main(Tabcmd.java:78)

       

      If any one ever came across this error message . please suggest what need to be done to debug the issue.

       

      Thanks ,

      Sudhakar Reddy