Tableau replacing backward slash by slash in UNC path - tableau-api

I'm trying to create a Tableau's workbook connected to a CSV file. This file is on another server, in a shared folder. I can access it on Tableau Desktop, but when I publish it on Tableau Server, it doesn't work. My workbook doesn't find my file.
I unchecked Include External File and my shared folder is shared to everyone, so I don't understand why it doesn't work.
My only hint is that I specify my path like
"\\servername\folder\...\"
and Tableau diplay :
"The directory is missing or has been moved: //servername/folder/...".
Have you already seen that issue ? Have you any solutions ?
Note : my file is on a Windows server and Tableau on a Linux one.

You'll need to mount the network shares to a mount point on your Linux Tableau server, then tell Tableau where to find the mount points and their associated UNC path. See this article by Tableau on how to do this.
In short, Windows lets us connect to different disk drives or servers/computers using the C:\ D:\ A:\ \\servername notation. On Linux, every drive and network share is given a "mount point", such as /mnt/flashdrive or /mnt/servername, and you have to explicitly tell it what type of connection it is whereas Windows can try to figure it out for you.

Related

Stop share folder except default share, remote IPC and remote admin

All my windows client have a default share folder like this.
C$
D$
IPC$
ADMIN$
but i want delete or stop share folder except that, how can i delete or stop that share folder except default share folder in Command Line ?
or maybe there is some script i can use in powershell.
Continuing from my comments.
This is not a PowerShell code issue or even cmd.exe. It is a Windows OS config misunderstanding.
As per MS Docs (this talking to WS2K8 but applies to all server and clientside versions):
How to remove administrative shares in Windows Server 2008
https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/remove-administrative-shares
Introduction By default, Windows Server 2008 automatically creates
special hidden administrative shares that administrators, programs,
and services can use to manage the computer environment or network.
These special shared resources aren't visible in Windows Explorer or
in My Computer. However, you can view them by using the Shared Folders
tool in Computer Management. Depending on the configuration of your
computer, some or all of the following special shared resources may be
listed in the Shares folder in Shared Folders:
DriveLetter$: It's a shared root partition or volume. Shared root
partitions and volumes are displayed as the drive letter name appended
with the dollar sign ($). For example, when drive letters C and D are
shared, they're displayed as C$ and D$.
ADMIN$: It's a resource that is used during remote administration of a
computer.
IPC$: It's a resource that shares the named pipes that you must have
for communication between programs. This resource cannot be deleted.
NETLOGON: It's a resource that is used on domain controllers.
SYSVOL: It's a resource that is used on domain controllers.
PRINT$: It's a resource that is used during the remote administration
of printers.
FAX$: It's a shared folder on a server that is used by fax clients
during fax transmission.
Generally, we recommend that you don't modify these special shared resources. However, if you want to remove the special shared
resources and prevent them from being created automatically, you can
do it by editing the registry.
So, if you choose to do this, you can do it via the registry, using cmd.exe or PowerShell cmdlets. Yet, you really need to know the impacts of this if you do.
Again as per MS...
Generally, we recommend that you don't modify these special shared resources

Talend: Using tfilelist to access files from a shared network path

I have a Talend job that searches a directory and then uploads it to our database.
It's something like this: dbconnection>twaitforfile>tfilelist>fileschema>tmap>db
I have a subjobok that then commits the data into the table iterates through the directory and movies files to another folder.
Recently I was instructed to change the directory to a shared network path using the same components as before (I originally thought of changing components to tftpfilelist, etc.)
My question being how to direct it to the shared network path. I was able to get it to go through using double \ but it won't read any of the new files arriving.
Thanks!
I suppose if you use tWaitForFile on the local filesystem Talend/Java will hook somehow into the folder and get a message if a new file is being put into it.
Now, since you are on a network drive first of all this is out of reach of the component. Second, the OS behind the network drive could be different.
I understand your job is running all the time, listening. You could change the behaviour to putting a tLoop first which would check the file system for new files and then proceed. There must be some delta check in how the new files get recognized.

Understanding Tableau File Types better

I have done a lot of research on the file types of tableau but I would still like to know more about some file extensions
What is the relation between twbx and tdsx?
Is twbx file : twb + tde file OR twb+tde+tds file ?
What would be the main difference between tds and tdsx file ?
How to use a tps(preferences) file in tableau workbook?
can all the file extensions be used on server or only some ?
twbx contains the workbook including a copy of all the data that you connected your workbook to, while a tdsx contains connection information to remote data sources (Server IPs, tables, etc) as well as any local data that somebody else wouldn't have access to otherwise (eg. an Excel file on your computer). No dashboards are involved. https://onlinehelp.tableau.com/current/pro/desktop/en-us/export_connection.html
A twbx is a twb with a tde file if you want. Remote and local data is stored within your workbook so that other people can access it https://onlinehelp.tableau.com/current/pro/desktop/en-us/save_savework_packagedworkbooks.html
a tds only includes references to data sources but no actual data, so if you connect to a local excel file and it is not accessible via a network, a colleague of yours won't be able to use this file to get the data. A tdsx includes these datasets so you can share it. https://onlinehelp.tableau.com/current/pro/desktop/en-us/export_connection.html
A tps contains custom colour palettes, how you can use it can be found here: https://onlinehelp.tableau.com/current/pro/desktop/en-us/formatting_create_custom_colors.html
Generally all files that you can connect to with Tableau Desktop can be accessed via the server (assuming that the server can access them, ie. the files or sources are on the network). You might however be required to install additional drivers on the server to access for example SAP BW. These drivers are not contained in the default installation.

How to give File access to Tableau server?

I have a .twb file created using the excel data source that is located in some network file path.
On publishing to server I get this error.
How to resolve this?
I need to provide some access for "Run as user" in my server machine,how could I do that ?
Ensure that when the workbook is created, a connection to the Excel file is created using the full UNC path
Ensure that the Tableau Server Run As user is able to access that file using the UNC path specified in the workbook. An easy way to test this would be to open Windows Explorer as the Run As user, then paste in the UNC path. If the Excel file opens, then you're good to go.
If you still have issues, test access to the file while logged into the Tableau server to make sure there is no firewall or port blocking access from that host. Often Excel isn't installed on servers for security reasons, so the test is not whether Excel opens the file, but whether you can view the contents from the server as the Run As User, even just using the type command at the console.
If you can't get your network access fixed, an alternative is to build and publish extracts to the server. There are multiple ways to accomplish that

Accessing UNC file share with credentials in Perl

I am trying to get a Perl scripts to access a file over UNC path using specified credentials. Is this possible? If not with Perl, what else could I use?
Thanks
-Jesse
Do you have to access many varied paths with differing credentials or just one?
As non-programming solution can you map the network share to a drive letter permananently in Windows before running your perl program?
Check out the module Win32::NetResource it has methods to allow you to connect to Windows network resources, such as drive shares and supply the credentials.
AddConnection(\%NETRESOURCE,$Password,$UserName,$Connection)
Makes a connection to a network resource specified by %NETRESOURCE