KNOWLEDGE BASE

Tableau Server Error "Internet communication error: Failure when receiving data from the peer" Refreshing a Salesforce Extract


Published: 12 Jun 2017
Last Modified Date: 14 Sep 2017

Issue

When you try to refresh a Salesforce extract on Tableau Server, the following error occurs:
 
com.tableausoftware.nativeapi.dll.TableauException: Internet communication error: Failure when receiving data from the peer

Environment

  • Tableau Server 10.1.5, 10.2.1
  • Salesforce

Resolution

Use a .tdc file to increase the buffer size of the Salesforce connection. This will affect ALL Salesforce connections made on Tableau Server:
1. Open a new document in a text editor.
2. Enter information similar to the following:
<?xml version='1.0' encoding='utf-8' ?>
<connection-customization class='salesforce' enabled='true' version='10.2'>
<vendor name='salesforce' />
<driver name='salesforce' />
<customizations>
<!-- The valid value is between 32 to 1024 -->
<customization name='sf-total-requestor-buffer-size-in-mb' value='1024' />
</customizations>
</connection-customization>
Version = The highest version of Tableau the .tdc file will be applied to. For example, if version is set to '10.1' in the .tdc file, a Salesforce connection established on Tableau Server version 10.2 will not have the customizations applied. However, a connection established in Tableau Server version 10.0 will, since the version is less than the version specified in the .tdc file.
 
3. Save the file with a .tdc extension -- for example, salesforce.tdc -- and place it in one of the following locations:
Place the .tdc file in the bin folder:
C:\Program Files\Tableau\Tableau Server\[version]\bin
Or in the vizqlserver\Datasources folder:
C:\ProgramData\Tableau\Tableau Server\data\tabsvc\vizqlserver\Datasources
 

 

Cause

This behavior is related to a known issue with ID 653952 which is currently under investigation.
 

Additional Information

Important: Tableau does not test or support TDC files. These files should be used as a tool to explore or occasionally address issues with your data connection. Creating and maintaining TDC files requires careful manual editing, and there is no support for sharing these files.
 
  • A .tdc file must be placed on each computer running vizqlserver or backgrounder (if applicable for extract refreshes).
  • The bin directory is checked first, and then the Datasources directory.
  • A .tdc file in the Datasources directory will override one in the bin directory.
  • A backup does not back up .tdc files.
  • A restore deletes existing .tdc files.
  • A .tdc file in the bin folder will not be retained across an upgrade because the bin directory is removed during uninstall.
  • A .tdc file in the Datasources folder will not be retained across upgrades because a restore is part of the upgrade process.
Did this article resolve the issue?