two thoughts come to mind.
- Are you publishing via the script to the accurate project? It's possible that you inadvertantly have the datasource in multiple projects and maybe your dashboard is pointing at the wrong one. This could be true for site as well, but more doubtful.
- Something is cached. Try adding ?:refresh=yes to your dashboard URL to see if this helps.
I have just a few Data Sources published. So it is easy to see I have no duplicates.
Tableau Server is run by the account MYCORP\svcTableau, this account is Server Administrator, and also used by Windows Task Scheduler to run the update script ( which contains the --username MYCORP\svcTableau, --password-file, --name --project and --description parameters ).
When I use Tableau Desktop to read the new TDE file, all data is up-to-date. When using TD to create a new workbook by connecting to TS and selecting the "just updated" Data Source I get old data. Only by running the script myself the data gets uploaded into the Data Source.
BTW should I use --overwrite or --replace ?
I always use --overwrite so I'm not sure what --replace even does.