SSIS package fails with 'Communication link failure'

Published Oct 20 2020 01:28 AM 10.9K Views
Microsoft

 

“Communication Link Failure” is often due to outdated drivers or poor network configuration settings.

 

Please note OLEDB driver it is not maintained anymore and it is not recommended to use this driver for new development. If however, your business require the use of OLEDB, you should download and install the recent OLEDB provider and make sure you change the provider name in the connection string. Please read more about this here.

 

It is highly recommended to use ADO.NET whenever is possible as it provides more reliability.

 

In this scenario, SSIS packages were used to load data from SQL on-premises to Azure SQL DB. After a while, the bulk insert failed with below errors:

 

Error: 2020-08-25 10:44:08.16
   Code: 0xC0202009
   Source: Extract Location Hierarchy Data to Datamart OLE DB Command [156]
   Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available.  Source: "Microsoft OLE DB Driver for SQL Server"  Hresult: 0x80004005  Description: "Communication link failure".
An OLE DB record is available.  Source: "Microsoft OLE DB Driver for SQL Server"  Hresult: 0x80004005  Description: "TCP Provider: An existing connection was forcibly closed by the remote host.
Error: 2020-08-25 10:44:08.23
   Code: 0xC0047022
   Source: Extract Location Hierarchy Data to Datamart SSIS.Pipeline
   Description: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "OLE DB Command" (156) failed with error code 0xC0202009 while processing input "OLE DB Command Input" (161). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.  There may be error messages posted before this with more information about the failure.
End Error"

 

Note that the same error message might appear also when reconfiguration happen on the SQL DB and SSIS is not aware of retry logic.

 

There are several options to be considered in order to address the above error on client side.

 

1 - Disable TLS_DHE ciphers on client machine

 

Unless you have a specific requirement for a legacy application, disable all the TLS_DHE ciphers, as they are outdated and not recommended to be used.  

 

Option #1 - Follow the steps described in the documentation below:

Applications experience forcibly closed TLS connection errors when connecting SQL Servers in Windows

 

Option #2 - Alternatively, you can download IIS Crypto Tool from here and configure the best practices on your client and server. 

 

Steps to configure best practices:

 

  1. Open IIS Crypto
  2. Click on Best Practices
  3. Go to Cipher Suits > Click on Best Practices Again
  4. Click Apply
  5. Restart the server (so that the changes are applied in the registries)

MelaniaNitu_1-1602280192941.jpeg

 

 

2 - Configure client machine 

 

Step #1 Ensure NIC Drivers are up to date

Step #2 Disable TCP chimney at NIC Level

 

TCP Chimney Offload is a feature that provides capability to offload TCP/IP packet processing from the processor to the network adapters and some other balancing options.  This has been known to cause issues on the SQL Server side causing network errors.  Further information on this can be found in the following blog post as well.

 

TCP Chimney Offload – Possible Performance and Concurrency Impacts to SQL Server Workloads 

 

 Make sure that under Advanced Settings of NIC below options are DISABLED:

  • IPv4 Checksum Offload
  • IPv4 Large Send Offload
  • Checksum Offload
  • Large Send Offload

Steps to disable TCP chimney features at NIC level:

 

  1. Click Start -> Run -> type ncpa.cpl -> click OK
  2. Right-click a network adapter object -> click Properties
  3. Click Configure -> Advanced tab
  4. In the Property list: click receive side scaling -> Disable in the Value list -> OK
  5. In the Property list: click large send offload ->Disable in the Value list-> OK
  6. In the Property list: click ipv4 checksum offload -> Disable in the Value list -> OK
  7. In the Property list: click TCP checksum offload (IPv4) -> Disable in the Value list -> OK

 

The other properties to look for and disable are:

  • Offload Receive IP Checksum
  • Offload Receive TCP Checksum
  • Offload TCP Segmentation
  • Offload Transmit IP Checksum
  • Offload Transmit TCP Checksum

 

Step #3 Configure TCP Chimney Offload, RSS and NetDMA in the operating system.

 

Open an elevated cmd and type below commands.

 

To determine the current status of TCP Chimney Offload and RSS:

netsh int tcp show global

  

To disable TCP Chimney Offload:  

netsh int tcp set global chimney=disabled 

 

 To disable RSS:

netsh int tcp set global rss=disabled

  

To disable NetDMA: 

netsh int tcp set global netdma=disabled 

 

Restart the machine.

 

 3 - Tune SSIS Package

 

Another recommendation to alleviate the connection issue is to actually tune your SSIS package to perform more efficiently. There’s lots of articles around this aspect, but the top settings are DefaultBufferMaxRows, DefaultBufferSize, and Rows per batch settings. However, this needs to be performed over many trials, while capturing logging data and adjusted accordingly. We usually see General Network Errors associated with poor performing packages, that degrade over time because of the data/transactions involved. 

 

This blog gives a quick rundown about tuning your SSIS package for a better performance.

 

Here’s our documentation on top 10 SSIS Best Practices which will also go over different settings you can test.

 

5 Comments
%3CLINGO-SUB%20id%3D%22lingo-sub-1766399%22%20slang%3D%22en-US%22%3ESSIS%20package%20fails%20with%20'Communication%20link%20failure'%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1766399%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%E2%80%9CCommunication%20Link%20Failure%E2%80%9D%20is%20often%20due%20to%20outdated%20drivers%20or%20poor%20network%20configuration%20settings.%3C%2FP%3E%0A%3CP%3EIn%20this%20scenario%20SSIS%20packages%20were%20used%20to%20load%20data%20from%20SQL%20on-premises%20to%20Azure%20SQL%20DB.%20After%20a%20while%2C%20the%20bulk%20insert%20fails%20with%20below%20errors%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3EError%3A%202020-08-25%2010%3A44%3A08.16%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3BCode%3A%200xC0202009%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3BSource%3A%20Extract%20Location%20Hierarchy%20Data%20to%20Datamart%20OLE%20DB%20Command%20%5B156%5D%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3BDescription%3A%20SSIS%20Error%20Code%20DTS_E_OLEDBERROR.%20%26nbsp%3BAn%20OLE%20DB%20error%20has%20occurred.%20Error%20code%3A%200x80004005.%3CBR%20%2F%3EAn%20OLE%20DB%20record%20is%20available.%20%26nbsp%3BSource%3A%20%22Microsoft%20OLE%20DB%20Driver%20for%20SQL%20Server%22%20%26nbsp%3BHresult%3A%200x80004005%20%26nbsp%3BDescription%3A%20%22Communication%20link%20failure%22.%3CBR%20%2F%3EAn%20OLE%20DB%20record%20is%20available.%20%26nbsp%3BSource%3A%20%22Microsoft%20OLE%20DB%20Driver%20for%20SQL%20Server%22%20%26nbsp%3BHresult%3A%200x80004005%20%26nbsp%3BDescription%3A%20%22TCP%20Provider%3A%20An%20existing%20connection%20was%20forcibly%20closed%20by%20the%20remote%20host.%3C%2FPRE%3E%0A%3CPRE%3EError%3A%202020-08-25%2010%3A44%3A08.23%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3BCode%3A%200xC0047022%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3BSource%3A%20Extract%20Location%20Hierarchy%20Data%20to%20Datamart%20SSIS.Pipeline%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3BDescription%3A%20SSIS%20Error%20Code%20DTS_E_PROCESSINPUTFAILED.%20%26nbsp%3BThe%20ProcessInput%20method%20on%20component%20%22OLE%20DB%20Command%22%20(156)%20failed%20with%20error%20code%200xC0202009%20while%20processing%20input%20%22OLE%20DB%20Command%20Input%22%20(161).%20The%20identified%20component%20returned%20an%20error%20from%20the%20ProcessInput%20method.%20The%20error%20is%20specific%20to%20the%20component%2C%20but%20the%20error%20is%20fatal%20and%20will%20cause%20the%20Data%20Flow%20task%20to%20stop%20running.%20%26nbsp%3BThere%20may%20be%20error%20messages%20posted%20before%20this%20with%20more%20information%20about%20the%20failure.%3CBR%20%2F%3EEnd%20Error%22%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThere%20are%20several%20options%20to%20be%20considered%20to%20address%20this%20issue.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH4%20id%3D%22toc-hId--537035119%22%20id%3D%22toc-hId--537035113%22%20id%3D%22toc-hId--537035113%22%20id%3D%22toc-hId--537035113%22%20id%3D%22toc-hId--537035113%22%20id%3D%22toc-hId--537035113%22%3E1%20-%20Disable%20TLS_DHE%20ciphers%20on%20client%20machine%3C%2FH4%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EUnless%20you%20have%20a%20specific%20requirement%20for%20a%20legacy%20application%2C%20disable%20all%20the%20TLS_DHE%20ciphers%2C%20as%20they%20are%20outdated%20and%20not%20recommended%20to%20be%20used.%26nbsp%3B%3CEM%3E%26nbsp%3B%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOption%20%231%3CEM%3E%20-%20%3C%2FEM%3EFollow%20the%20steps%20described%20in%20the%20documentation%20below%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fsupport.microsoft.com%252Fen-us%252Fhelp%252F4557473%252Ferrors-when-applications-try-to-connect-to-sql-server-in-windows%26amp%3Bdata%3D02%257C01%257CMelania.Nitu%2540microsoft.com%257C89fc2fa9b38f47fec7fc08d848e21e72%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637339483302676521%26amp%3Bsdata%3D%252Bleyw0nOMn4lbaqBzH1%252FCm0tS4jfS9HqJwePKOFp84k%253D%26amp%3Breserved%3D0%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EApplications%20experience%20forcibly%20closed%20TLS%20connection%20errors%20when%20connecting%20SQL%20Servers%20in%20Windows%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOption%20%232%20-%26nbsp%3BAlternatively%2C%20you%20can%20download%20IIS%20Crypto%20Tool%20from%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.nartac.com%2FProducts%2FIISCrypto%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehere%3C%2FA%3E%26nbsp%3Band%20configure%20the%20best%20practices%20on%20your%20client%20and%20server.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESteps%20to%20configure%20best%20practices%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EOpen%20IIS%20Crypto%3C%2FLI%3E%0A%3CLI%3EClick%20on%20%3CSTRONG%3EBest%20Practices%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3EGo%20to%3CSTRONG%3E%20Cipher%20Suits%3C%2FSTRONG%3E%20%26gt%3B%20Click%20on%20%3CSTRONG%3EBest%20Practices%3C%2FSTRONG%3E%20Again%3C%2FLI%3E%0A%3CLI%3EClick%20%3CSTRONG%3EApply%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3ERestart%3C%2FSTRONG%3E%20the%20server%20(so%20that%20the%20changes%20are%20applied%20in%20the%20registries)%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22MelaniaNitu_1-1602280192941.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F225623i1AD0E7E8FFA48CDF%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22MelaniaNitu_1-1602280192941.jpeg%22%20alt%3D%22MelaniaNitu_1-1602280192941.jpeg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH4%20id%3D%22toc-hId-1950477714%22%20id%3D%22toc-hId-1950477720%22%20id%3D%22toc-hId-1950477720%22%20id%3D%22toc-hId-1950477720%22%20id%3D%22toc-hId-1950477720%22%20id%3D%22toc-hId-1950477720%22%3E2%20-%20Configure%20client%20machine%26nbsp%3B%3C%2FH4%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EStep%20%231%20Ensure%20NIC%20Drivers%20are%20up%20to%20date%3C%2FP%3E%0A%3CP%3EStep%20%232%26nbsp%3B%3CSPAN%3EDisable%20TCP%20chimney%20at%20NIC%20Level%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ETCP%20Chimney%20Offload%20is%20a%20feature%20that%20provides%20capability%20to%20offload%20TCP%2FIP%20packet%20processing%20from%20the%20processor%20to%20the%20network%20adapters%20and%20some%20other%20balancing%20options.%3CSPAN%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3EThis%20has%20been%20known%20to%20cause%20issues%20on%20the%20SQL%20Server%20side%20causing%20network%20errors.%3CSPAN%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3EFurther%20information%20on%20this%20can%20be%20found%20in%20the%20following%20blog%20post%20as%20well.%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fsql-server-support%2Ftcp-chimney-offload-8211-possible-performance-and-concurrency%2Fba-p%2F315592%22%20target%3D%22_blank%22%3ETCP%20Chimney%20Offload%20%E2%80%93%20Possible%20Performance%20and%20Concurrency%20Impacts%20to%20SQL%20Server%20Workloads%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3BMake%20sure%20that%20under%20Advanced%20Settings%20of%20NIC%20below%20options%20are%20DISABLED%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EIPv4%20Checksum%20Offload%3C%2FLI%3E%0A%3CLI%3EIPv4%20Large%20Send%20Offload%3C%2FLI%3E%0A%3CLI%3EChecksum%20Offload%3C%2FLI%3E%0A%3CLI%3ELarge%20Send%20Offload%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%3ESteps%20to%20disable%20%3C%2FSPAN%3E%3CSPAN%3ETCP%20chimney%20features%20at%20NIC%20level%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EClick%20Start%20-%26gt%3B%20Run%20-%26gt%3B%20type%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3Encpa.cpl%20-%26gt%3B%3C%2FSPAN%3E%26nbsp%3Bclick%20OK%3C%2FLI%3E%0A%3CLI%3ERight-click%20a%20network%20adapter%20object%20-%26gt%3B%20click%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3EProperties%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3EClick%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3EConfigure%20-%26gt%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3EAdvanced%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Etab%3C%2FLI%3E%0A%3CLI%3EIn%20the%20Property%20list%3A%20click%3CSPAN%3E%26nbsp%3Br%3C%2FSPAN%3E%3CSPAN%3Eeceive%20side%20scaling%20-%26gt%3B%3C%2FSPAN%3E%26nbsp%3BDisable%20in%20the%20Value%20list%20-%26gt%3B%20OK%3C%2FLI%3E%0A%3CLI%3EIn%20the%20Property%20list%3A%20click%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3Elarge%20send%20offload%20-%26gt%3B%3C%2FSPAN%3EDisable%20in%20the%20Value%20list-%26gt%3B%20OK%3C%2FLI%3E%0A%3CLI%3EIn%20the%20Property%20list%3A%20click%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3Eipv4%20checksum%20offload%20-%26gt%3B%26nbsp%3B%3C%2FSPAN%3EDisable%20in%20the%20Value%20list%20-%26gt%3B%20OK%3C%2FLI%3E%0A%3CLI%3EIn%20the%20Property%20list%3A%20click%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3ETCP%20checksum%20offload%20(IPv4)%20-%26gt%3B%26nbsp%3B%3C%2FSPAN%3EDisable%20in%20the%20Value%20list%20-%26gt%3B%20OK%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20other%20properties%20to%20look%20for%20and%20disable%20are%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EOffload%20Receive%20IP%20Checksum%3C%2FLI%3E%0A%3CLI%3EOffload%20Receive%20TCP%20Checksum%3C%2FLI%3E%0A%3CLI%3EOffload%20TCP%20Segmentation%3C%2FLI%3E%0A%3CLI%3EOffload%20Transmit%20IP%20Checksum%3C%2FLI%3E%0A%3CLI%3EOffload%20Transmit%20TCP%20Checksum%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EStep%20%233%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3EConfigure%20TCP%20Chimney%20Offload%2C%20RSS%20and%20NetDMA%20in%20the%20operating%20system.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOpen%20an%20elevated%20cmd%20and%20type%20below%20commands.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20determine%20the%20current%20status%20of%20TCP%20Chimney%20Offload%20and%20RSS%3A%3C%2FP%3E%0A%3CPRE%3Enetsh%20int%20tcp%20show%20global%3C%2FPRE%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ETo%20disable%20TCP%20Chimney%20Offload%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%3Enetsh%20int%20tcp%20set%20global%20chimney%3Ddisabled%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FPRE%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3ETo%20disable%20RSS%3A%3C%2FP%3E%0A%3CPRE%3Enetsh%20int%20tcp%20set%20global%20rss%3Ddisabled%3C%2FPRE%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ETo%20disable%20NetDMA%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%3Enetsh%20int%20tcp%20set%20global%20netdma%3Ddisabled%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FPRE%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ER%3C%2FSPAN%3E%3CSPAN%3Eestart%20the%20machine.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH4%20id%3D%22toc-hId-143023251%22%20id%3D%22toc-hId-143023257%22%20id%3D%22toc-hId-143023257%22%20id%3D%22toc-hId-143023257%22%20id%3D%22toc-hId-143023257%22%20id%3D%22toc-hId-143023257%22%3E%3CSPAN%3E%26nbsp%3B3%20-%20Tune%20SSIS%20Package%3C%2FSPAN%3E%3C%2FH4%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EAnother%20recommendation%20to%20alleviate%20the%20connection%20issue%20is%20to%20actually%20tune%20your%20SSIS%20package%20to%20perform%20more%20efficiently.%20There%E2%80%99s%20lots%20of%20articles%20around%20this%20aspect%2C%20but%20the%20top%20settings%20are%20DefaultBufferMaxRows%2C%20DefaultBufferSize%2C%20and%20Rows%20per%20batch%20settings.%20However%2C%20this%20needs%20to%20be%20performed%20over%20many%20trials%2C%20while%20capturing%20logging%20data%20and%20adjusted%20accordingly.%20We%20usually%20see%20General%20Network%20Errors%20associated%20with%20poor%20performing%20packages%2C%20that%20degrade%20over%20time%20because%20of%20the%20data%2Ftransactions%20involved.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EThis%26nbsp%3B%3CA%20href%3D%22http%3A%2F%2Fumashanthan.blogspot.com%2F2014%2F04%2Fhow-to-optimize-performance-of-ssis-2012.html%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Eblog%3C%2FA%3E%26nbsp%3Bgives%20a%20quick%20rundown%20about%20tuning%20your%20SSIS%20package%20for%20a%20better%20performance.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EHere%E2%80%99s%20our%20documentation%20on%20top%2010%20SSIS%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Ffr-ca%2Farchive%2Fblogs%2Fsqlcat%2Ftop-10-sql-server-integration-services-best-practices%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EBest%20Practices%3C%2FA%3E%26nbsp%3Bwhich%20will%20also%20go%20over%20different%20settings%20you%20can%20test.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1766399%22%20slang%3D%22en-US%22%3E%3CP%3ESSIS%20failure%20when%20loading%20data%20to%20Azure%20SQL%20Database%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1834626%22%20slang%3D%22en-US%22%3ERe%3A%20SSIS%20package%20fails%20with%20'Communication%20link%20failure'%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1834626%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20ran%20into%20infrequent%20connections%20errors%20from%2Fto%20our%20PaaS%20databases%20with%20SSIS.%20There%20is%20not%20much%20information%20to%20be%20found%20on%20the%20internet%2C%20but%20after%20switching%20to%20the%20newest%20MSOLEDBSQL%20drivers%2C%20we've%20not%20seen%20the%20connection%20errors%20anymore.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20connection%20error%20due%20to%20scaling%20the%20Azure%20SQL%20DB%20was%20of%20course%20still%20there.%20Any%20idea%20how%20to%20work%20around%20that%3F%20The%20SSIS%20packages%20are%20still%20iaas%2C%20thus%20via%20the%20job%20agent%20we%20simply%20wait%201%20minute%2C%20then%20start%20again.%20But%20with%20long%20running%20packages%20this%20is%20a%20time%20loss.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1834936%22%20slang%3D%22en-US%22%3ERe%3A%20SSIS%20package%20fails%20with%20'Communication%20link%20failure'%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1834936%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F461632%22%20target%3D%22_blank%22%3E%40MelaniaNitu%3C%2FA%3E%26nbsp%3BThe%20transient%20network%20errors%20are%20gone%2C%20very%20content%20with%20that.%20Never%20found%20out%20where%20that%20came%20from%2C%20part%20of%20the%20deal%20when%20using%20cloud%20resources%20I%20guess%20(or%20something%20internal%20on%20our%20side%2C%20who%20knows).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%20when%20scaling%20a%20database%2C%20at%20a%20certain%20point%20the%20open%20connections%20are%20killed%20and%20SSIS%20cannot%20recover%20from%20that...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E...%20but%20while%20writing%20this%20I%20realize%20that%20I%20should%20test%20this%20also%20with%20the%20new%20drivers.%20I%20am%20not%20sure%20I%20saw%20that%20error%20after%20we%20started%20using%20the%20new%20drivers.%20And%20since%20we%20have%20batch%20windows%2C%20we%20often%20scale%20before%20and%20after%20the%20SSIS%20executions%2C%20so%20it%20does%20not%20happen%20often%20that%20a%20package%20is%20running%20during%20a%20scale%20operation.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1834987%22%20slang%3D%22en-US%22%3ERe%3A%20SSIS%20package%20fails%20with%20'Communication%20link%20failure'%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1834987%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F461632%22%20target%3D%22_blank%22%3E%40MelaniaNitu%3C%2FA%3E%26nbsp%3Bthanks%20for%20that.%20We%20are%20following%20the%20retry%20approach%20via%20the%20job%20agent.%20I%20was%20hoping%20that%20another%20setting%20within%20the%20SSIS%20package%20or%20driver%20would%20solve%20it%2C%20but%20it%20is%20what%20it%20is%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Version history
Last update:
‎Oct 20 2020 08:52 AM
Updated by: