how are you doing it? And what error are you getting? And what release of TS are you running? I have a prod script where it is working, here is a snipit of the one line where it appends the tde.
tabcmd publish G:/Scripts/ServerAdmin/TableauAdminData/xxxxx/WorkTDE/Data/Extracts/extract.tde --name published_datasource_name --append --project default -s servername -u username -p ********
Thank you so much for our reply Jeff ,
i have question on location of the file does this files should be located in Tableau root directory or it can be saved locally or shared folder !
Thank you so much for our reply Glen , yes i am using Tabcmd commands to achieve my task ..
But i am caught up with -- append command ..
the tde needs to be in a location that tabcmd can access it. In my case, we run tabcmd natively within our TS footprint and the tde lives within a sub-directory on our G drive, but it can be anywhere as long as it's accessible.
I tried using your script , but no luck i am still getting an error
Ex, tabcmd publish XXXX.tde --name "Pub Data Source" --append --project default -s Server -u Username -p *******
Only one file i am trying to publish with -- Append flag , not sure why it's saying multiple Items . i am testing this script from Tableau Bin folder directory ..
BTW , My current TS V 9.3.3 ..
I don't know without seeing more info, is your XXXX.tde prefixed by a directory of where this file is located? And is this the only tde in that directory?
I ran the same command on my server (See below), with no issues. Server 9.3.5
D:\Program Files (x86)\Tableau\Tableau Server\9.3\bin>tabcmd publish D:\tableau\datasources\test.tde --name "Pub Data Source" --append --project default -s http://localhost:8000 -u glen -p pxxxxxxxx
===== Continuing previous session
===== Server: http://localhost:8000
===== Username: glen
===== Publishing 'D:\tableau\datasources\test.tde' to the server. This could take several minutes...
===== File successfully published to the server at the following location:
I would start with a basic publish extract to server (use a test tde file). Once that is working, run the same command, but this time add the --append to the end of it. That should work.
Does the bad request consistently happen or only once? If only once, try a couple more times.
Also, are you on a single node deployment, or clustered deployment?
The reason why I ask is because there was a bug early in the 9.2 series that caused me to have to wait until 9.2.6 for it to be fixed. I think the "bad request" looks familiar. It had to do with the --append sporadically failing and is was quite an undertaking to figure out why. It had something to do with the file being uploaded to one of the nodes, but then the actual append to the main source happened on another node and couldn't find the file.
and what does your full tabcmd look like? it seems to have a bunch of spaces in your screenprint.
After changing the code bad request error started popping up .. mine is single node setup ,,
I just erased the file name in Tabcmd , that's why it showing a kind of space ..
how are you generating the tde and can you show the tde?
Is the error that you are seeing when you try to publish an extract to server without the --append?
If so, can you do the following.
1. tabcmd login -s servername -u username -p password
2. confirm that you have successfully connected to the tableau server
3. tabcmd publish testfile.tde --name "testfile" --append --project default (or something similar. Need to confirm that you are able to publish a datasource)
PS I assume that the account that you are logging into Tableau server as has publish rights to the default project?