1 of 1 people found this helpful
first login your tabcmd and then use for the following
tabcmd export "Q1Sales/Sales_Report" --csv -f "Weekly-Report"
tabcmd export -t Sales "Sales/Sales_Analysis" --pdf -f "C:\Tableau_Workbooks\Weekly-Reports"
tabcmd get "/views/Finance/InvestmentGrowth.pdf" -f "Q1Growth.pdf"
1 of 1 people found this helpful
Try this way
Put the code below in a notepad:
cd C:\Program Files\Tableau\Tableau Server\8.2\bin
tabcmd login -s http://path_server.com:8000/ -u user -p password
tabcmd get "/views/dayprod_07072015/DayProductionJuly2015?:iid=1.pdf" -f "Location Development\Day_Production_July.pdf"
While saving use .bat format.
Then Simply Run.
Please select the view carefully.
may be this link can also help:
Thanks for the tips, guys.
However, they did not work
When I try to use the EXPORT command, I get the message 500 "Internal Server Error"
And also, when I try to use GET with the view I want succeeded by .pdf, I get the same message.
The strange thing is, I am running those commands with a user that is an administrator on Tableau, so it should allow all kinds of permissions.
Any suggestions? Thanks!
Set your PATH environmental variable to point to the tabcmd folder.
In the command lines below, words in italics need to be replaced with your specific values.
At the command line prompt try this (assuming you are in the Default site):
tabcmd login -s http://yourTableauServer.com -u yourLogOnID -p yourPassword
If the report is in a different Site then use this instead:
tabcmd login -s http://yourTableauServer.com -t yourSite -u yourLogOnID -p yourPassword
Now do this:
tabcmd export "VORSaleInProgress/VORAgingReport" --fullpdf
Login/password commands are global options so you could do everything in one line -- ignore the line break in this, it should be typed in as one long line (exclude "-t yourSite" if you are using the Default site):
tabcmd export "VORSaleInProgress/VORAgingReport" --fullpdf -s http://yourTableauServer.com -t yourSite -u yourLogOnID -p yourPassword
Make sure you are using the right tabcmd list. Since you are using version 8.2 you want to be looking at the product manual for 8.2.
add --pdf on command line
Option (short) Option (long) Argument Description
The name and extension to use for the saved file Saves the file with the given filename.
View only. Export the view’s data in CSV format. View only. Export as a PDF.
View only. Export as an image in PNG format.
Workbook only. Export as a PDF. The workbook must have been published with Show Sheets as Tabs enabled.
Sets the page orientation of the exported PDF. If not specified, its Tableau Desktop setting will be used.
unspecified, letter, legal, note folio, tabloid, ledger, statement, executive, a3, a4, a5, b4, b5, quatro
Sets the page size of the exported PDF. Default is
Number of pixels Sets the width. Default is 800 px.
Number of pixels Sets the height.Default is 600 px.
You should use double dash - - pdf see the example from documentation.
I had the sames issue with a "Not Found" error. The problem for me was I had installed the tabcmd tool from online rather getting it from my server. If you pull down the .exe it could resolve your issue. It was hard to figure out because I was able to sign in successfully but when I tried to read/write anything I got a "Not Found" error.
Also, you don't need "views" in your string when exporting to PDF, just the workbookname/viewname no spaces.
Good Luck and hope I helped.
Thanks for replying, Christina!
In my case, I installed the tabcmd tool directly from the server folder, (C:\Program Files (x86)\Tableau\Tableau Server\9.0\extras\TabcmdInstaller-x86.exe), and i am using that same notation workbookname/viewname ("VORSaleInProgress" being the workbook name and "VORAgingReport" being the view name).
Any more tips?
Hmm....I'm not sure...did you:
1. ensure the file destination path is correct
2. ensure you are spelling the workbook and view name exactly as they appear on the server without spaces
3. ensure that you're workbooks are published to the server and that they are in the default project, otherwise you have to specify the project name by --project projectName or -r projectName
4. If you want the entire workbook you have to use --fullpdf otherwise --pdf will only give you the view
Sorry, that's all I can think of right now. If you figure it out please let us know!
Take a look at the logs
For tabcmd log, search on disk for tabcmd.log and session info tabcmd-session.xml
Should be located on this folder C:\Users\%USERNAME%\AppData\Local
Hope this helps.
What happens if you exclude the port number? Do you really need it?