Issue connecting to On Premise server File system from Data Factory Linked Services

Balswam 10 Reputation points
2023-06-25T07:20:37.7633333+00:00

Linked Service connection to On-Premise file system fails. Below is the error message

The value of the property '' is invalid: 'Access to XX.X.X.X is denied, resolved IP address is XX.X.X.X, network type is OnPremise'.

Access to XX.X.X.X is denied, resolved IP address is XX.X.X.X, network type is OnPremise

Activity ID: 9c8cfdd4-f9e0-4788-a3ec-00809d82f81c.

Here is the event viewer log from the On-Premise server. Pipeline has been failing for the last 3 days.

message: TestConnection failed, error message: 'Type=Microsoft.DataTransfer.SecurityValidation.Exceptions.HostValidationException,Message=Access to XX.X.X.X is denied, resolved IP address is XX.X.X.X, network type is OnPremise,Source=Microsoft.DataTransfer.SecurityValidation,StackTrace=   at Microsoft.DataTransfer.SecurityValidation.HostValidator.HandleDisallowedHostWithLogging(Action`1 writeLog, Boolean throwException, Tuple`3 args, Boolean isOnPrem)
   at Microsoft.DataTransfer.SecurityValidation.HostValidator.IsAllowedHost(String host, NetworkType networkType, Boolean enableLocalMachineAccessFromOnPremise, Action`1 writeAccessDeniedLog, Action`1 writeDnsFailureLog, Boolean throwExceptionUponValidationFailure)
   at Microsoft.DataTransfer.SecurityValidation.HostValidator.IsAllowed(String hostOrUri, NetworkType networkType, Boolean enableLocalMachineAccessFromOnPremise, Action`1 writeAccessDeniedLog, Action`1 writeDnsFailureLog, Boolean throwExceptionUponValidationFailure)
   at Microsoft.DataTransfer.Common.HostValidationRuntimeCommonHelper.ValidateHostWithLogging(String host, Guid jobId, Guid activityId, ComputeType computeType, Boolean enableLocalMachineAccessFromOnPremise, Boolean disableLocalFolderPathValidation, Boolean throwExceptionUponValidationFailure, Boolean supportLocalFolderPathValidation, Boolean shouldValidateFolderPath)
   at Microsoft.DataTransfer.Runtime.FileServerConnectionSettings..ctor(IDictionary`2 properties, Boolean skipHostValidation)
   at Microsoft.DataTransfer.Runtime.FileServerConnection..ctor(IDictionary`2 properties)
   at Microsoft.DataTransfer.Runtime.FileServerConnector.CreateConnection(IDictionary`2 properties)
   at Microsoft.DataTransfer.Runtime.Provider.HybridRuntimeConnection.Initialize(ConnectionSetting connectionSettings, PluginRegistration plugins, String dataFactoryName, String dataFactoryId, String dataFactoryRegionAbbrev, String linkedIRCredential, AzureCloudType azureCloudType, String miStoreVersion, DataTransferCredentials credentials)
   at Microsoft.DataTransfer.Runtime.Provider.HybridRuntimeConnection..ctor(ConnectionSetting connectionSettings, PluginRegistration plugins, IMemoryLimit memoryLimit, String dataFactoryName, String dataFactoryId, String dataFactoryRegionAbbrev, String linkedIRCredential, AzureCloudType azureCloudType, String miStoreVersion, DataTransferCredentials credentials)
   at Microsoft.DataTransfer.TransferTask.InteractiveTaskFactoryV2.ConnectorTestConnection(ConnectionSetting connectionSetting, TestConnectionV2Response response)
   at Microsoft.DataTransfer.TransferTask.InteractiveTaskFactoryV2.TestConnection(TestConnectionV2Request request, TestConnectionV2Response response, CancellationToken token)
   at Microsoft.DataTransfer.TransferTask.InteractiveTask`2.Execute(),'.
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,624 questions
{count} votes

1 answer

Sort by: Most helpful
  1. PRADEEPCHEEKATLA 90,641 Reputation points Moderator
    2023-06-27T08:02:29.41+00:00

    @Balswam - Thanks for additional details.

    According to the offical documentation, the latest SHIR has a security fix that has been changed and does not allow access to local files by default.

    User's image

    You must run .\dmgcmd.exe -DisableLocalFolderPathValidation to disable the setting for more details, refer to Set up an existing self-hosted IR via local PowerShell

    User's image

    User's image

    For more details, refer to Access denied to server in File System Linked Service in Data Factory.

    Hope this helps. Do let us know if you any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    3 people found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.