An Azure service for ingesting, preparing, and transforming data at scale.
The delay occurs during the cold-start initialization of the Self-Hosted Integration Runtime (SHIR). When the SHIR worker process becomes idle, it is unloaded. On the next pipeline run, SHIR must fully reinitialize the worker process, which includes loading all connector assemblies again, including the SAP ODP connector and SAP .NET Connector (SAP NCo) libraries.
Your logs confirm this behavior. The entry KeepAlive: False, followed by a long pause and then retries to load SAP NCo assemblies, shows that the worker process was recycled and had to reload its plugins. This lifecycle behavior is expected for SHIR and is documented by Microsoft.
The long “silent” gap you see is not caused by Azure Data Factory or SAP. It is caused by endpoint security software (Trend Micro Deep Security / Vision One) scanning DLLs during SHIR startup. When SHIR dynamically loads .NET and native assemblies, antivirus software may intercept and scan these files, which can delay startup by several minutes. This explains why the delay is intermittent and why it appears during SAP NCo loading.
To resolve the issue, antivirus exclusions must be added for the SHIR installation directories and SAP NCo libraries. Once these exclusions are in place and the SHIR service is restarted, the cold-start delay is typically eliminated.
Recommended antivirus exclusions:
C:\Program Files\Microsoft Integration Runtime\
C:\Program Files\Microsoft Integration Runtime\5.0\
C:\Program Files\Microsoft Integration Runtime\5.0\Connectors\
Recommended file exclusions:
sapnco.dll
sapnco_utils.dll
Microsoft.DataTransfer.*.dll
After applying these exclusions, restart the antivirus service and the SHIR service (or reboot the VM).
There is no supported configuration to force SHIR to keep connector assemblies permanently loaded in memory. The correct and supported solution is to prevent antivirus interference during initialization.
The delay happens during SHIR cold-start, not during SAP processing.
SHIR unloading and reloading connectors when idle is expected behavior.
Antivirus scanning is causing the multi-minute delay.
Adding exclusions for SHIR and SAP NCo resolves the issue.
Note: If this didn't resolve please upgrade the SHIR to latest version.
References:
https://learn.microsoft.com/en-us/azure/data-factory/self-hosted-integration-runtime-troubleshoot-guide?tabs=data-factory
https://helpcenter.trendmicro.com/en-us/article/tmka-18608
Hope this helps, Please let us know if you have any questions and concerns.