Troubleshoot Azure Data Factory and Azure Synapse Analytics connectors
APPLIES TO: Azure Data Factory Azure Synapse Analytics
Tip
Try out Data Factory in Microsoft Fabric, an all-in-one analytics solution for enterprises. Microsoft Fabric covers everything from data movement to data science, real-time analytics, business intelligence, and reporting. Learn how to start a new trial for free!
This article describes how to troubleshoot connectors in Azure Data Factory and Azure Synapse Analytics.
Connector specific problems
You can refer to the troubleshooting pages for each connector to see problems specific to it with explanations of their causes and recommendations to resolve them.
- Azure Blob Storage
- Azure Cosmos DB (including Azure Cosmos DB for NoSQL connector)
- Azure Data Lake (Gen1 and Gen2)
- Azure Database for PostgreSQL
- Azure Files storage
- Azure Synapse Analytics, Azure SQL Database, and SQL Server
- DB2
- Delimited text format
- Dynamics 365, Dataverse (Common Data Service), and Dynamics CRM
- FTP, SFTP and HTTP
- Hive
- Oracle
- ORC format
- Parquet format
- REST
- Salesforce and Salesforce Service Cloud
- SharePoint Online list
- XML format
General copy activity errors
The errors below are general to the copy activity and could occur with any connector.
Error code: JreNotFound
Message:
Java Runtime Environment cannot be found on the Self-hosted Integration Runtime machine. It is required for parsing or writing to Parquet/ORC files. Make sure Java Runtime Environment has been installed on the Self-hosted Integration Runtime machine.
Cause: The self-hosted IR can't find Java Runtime. Java Runtime is required for reading particular sources.
Recommendation: Check your integration runtime environment, see Use Self-hosted Integration Runtime.
Error code: WildcardPathSinkNotSupported
Message:
Wildcard in path is not supported in sink dataset. Fix the path: '%setting;'.
Cause: The sink dataset doesn't support wildcard values.
Recommendation: Check the sink dataset, and rewrite the path without using a wildcard value.
FIPS issue
Symptoms: Copy activity fails on a FIPS-enabled self-hosted IR machine with the following error message:
This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.
Cause: This error might occur when you copy data with connectors such as Azure Blob, SFTP, and so on. Federal Information Processing Standards (FIPS) defines a certain set of cryptographic algorithms that are allowed to be used. When FIPS mode is enabled on the machine, some cryptographic classes that copy activity depends on are blocked in some scenarios.
Resolution: Learn why we’re not recommending “FIPS Mode” anymore, and evaluate whether you can disable FIPS on your self-hosted IR machine.
Alternatively, if you only want to bypass FIPS and make the activity runs succeed, do the following:
Open the folder where Self-hosted IR is installed. The path is usually C:\Program Files\Microsoft Integration Runtime <IR version>\Shared.
Open the diawp.exe.config file and then, at the end of the
<runtime>
section, add<enforceFIPSPolicy enabled="false"/>
, as shown here:Save the file, and then restart the Self-hosted IR machine.
Error code: JniException
Message:
An error occurred when invoking Java Native Interface.
Cause: If the error message contains "Cannot create JVM: JNI return code [-6][JNI call failed: Invalid arguments.]", the possible cause is that JVM can't be created because some illegal (global) arguments are set.
Recommendation: Log in to the machine that hosts each node of your self-hosted integration runtime. Check to ensure that the system variable is set correctly, as follows:
_JAVA_OPTIONS "-Xms256m -Xmx16g" with memory bigger than 8G
. Restart all the integration runtime nodes, and then rerun the pipeline.
Error code: GetOAuth2AccessTokenErrorResponse
Message:
Failed to get access token from your token endpoint. Error returned from your authorization server: %errorResponse;.
Cause: Your client ID or client secret is invalid, and the authentication failed in your authorization server.
Recommendation: Correct all OAuth2 client credential flow settings of your authorization server.
Error code: FailedToGetOAuth2AccessToken
Message:
Failed to get access token from your token endpoint. Error message: %errorMessage;.
Cause: OAuth2 client credential flow settings are invalid.
Recommendation: Correct all OAuth2 client credential flow settings of your authorization server.
Error code: OAuth2AccessTokenTypeNotSupported
Message:
The toke type '%tokenType;' from your authorization server is not supported, supported types: '%tokenTypes;'.
Cause: Your authorization server is not supported.
Recommendation: Use an authorization server that can return tokens with supported token types.
Error code: OAuth2ClientIdColonNotAllowed
Message:
The character colon(:) is not allowed in clientId for OAuth2ClientCredential authentication.
Cause: Your client ID includes the invalid character colon (
:
).Recommendation: Use a valid client ID.
Error code: ManagedIdentityCredentialObjectNotSupported
Message:
Managed identity credential is not supported in this version ('%version;') of Self Hosted Integration Runtime.
Recommendation: Check the supported version and upgrade the integration runtime to a higher version.
Error code: QueryMissingFormatSettingsInDataset
Message:
The format settings are missing in dataset %dataSetName;.
Cause: The dataset type is Binary, which is not supported.
Recommendation: Use the DelimitedText, Json, Avro, Orc, or Parquet dataset instead.
Cause: For the file storage, the format settings are missing in the dataset.
Recommendation: Deselect the "Binary copy" in the dataset, and set correct format settings.
Error code: QueryUnsupportedCommandBehavior
Message:
The command behavior "%behavior;" is not supported.
Recommendation: Don't add the command behavior as a parameter for preview or GetSchema API request URL.
Error code: DataConsistencyFailedToGetSourceFileMetadata
Message:
Failed to retrieve source file ('%name;') metadata to validate data consistency.
Cause: There is a transient issue on the sink data store, or retrieving metadata from the sink data store is not allowed.
Error code: DataConsistencyFailedToGetSinkFileMetadata
Message:
Failed to retrieve sink file ('%name;') metadata to validate data consistency.
Cause: There is a transient issue on the sink data store, or retrieving metadata from the sink data store is not allowed.
Error code: DataConsistencyValidationNotSupportedForNonDirectBinaryCopy
Message:
Data consistency validation is not supported in current copy activity settings.
Cause: The data consistency validation is only supported in the direct binary copy scenario.
Recommendation: Remove the 'validateDataConsistency' property in the copy activity payload.
Error code: DataConsistencyValidationNotSupportedForLowVersionSelfHostedIntegrationRuntime
Message:
'validateDataConsistency' is not supported in this version ('%version;') of Self Hosted Integration Runtime.
Recommendation: Check the supported integration runtime version and upgrade it to a higher version, or remove the 'validateDataConsistency' property from copy activities.
Error code: SkipMissingFileNotSupportedForNonDirectBinaryCopy
Message:
Skip missing file is not supported in current copy activity settings, it's only supported with direct binary copy with folder.
Recommendation: Remove 'fileMissing' of the skipErrorFile setting in the copy activity payload.
Error code: SkipInconsistencyDataNotSupportedForNonDirectBinaryCopy
Message:
Skip inconsistency is not supported in current copy activity settings, it's only supported with direct binary copy when validateDataConsistency is true.
Recommendation: Remove 'dataInconsistency' of the skipErrorFile setting in the copy activity payload.
Error code: SkipForbiddenFileNotSupportedForNonDirectBinaryCopy
Message:
Skip forbidden file is not supported in current copy activity settings, it's only supported with direct binary copy with folder.
Recommendation: Remove 'fileForbidden' of the skipErrorFile setting in the copy activity payload.
Error code: SkipForbiddenFileNotSupportedForThisConnector
Message:
Skip forbidden file is not supported for this connector: ('%connectorName;').
Recommendation: Remove 'fileForbidden' of the skipErrorFile setting in the copy activity payload.
Error code: SkipInvalidFileNameNotSupportedForNonDirectBinaryCopy
Message:
Skip invalid file name is not supported in current copy activity settings, it's only supported with direct binary copy with folder.
Recommendation: Remove 'invalidFileName' of the skipErrorFile setting in the copy activity payload.
Error code: SkipInvalidFileNameNotSupportedForSource
Message:
Skip invalid file name is not supported for '%connectorName;' source.
Recommendation: Remove 'invalidFileName' of the skipErrorFile setting in the copy activity payload.
Error code: SkipInvalidFileNameNotSupportedForSink
Message:
Skip invalid file name is not supported for '%connectorName;' sink.
Recommendation: Remove 'invalidFileName' of the skipErrorFile setting in the copy activity payload.
Error code: SkipAllErrorFileNotSupportedForNonBinaryCopy
Message:
Skip all error file is not supported in current copy activity settings, it's only supported with binary copy with folder.
Recommendation: Remove 'allErrorFile' in the skipErrorFile setting in the copy activity payload.
Error code: DeleteFilesAfterCompletionNotSupportedForNonDirectBinaryCopy
Message:
'deleteFilesAfterCompletion' is not support in current copy activity settings, it's only supported with direct binary copy.
Recommendation: Remove the 'deleteFilesAfterCompletion' setting or use direct binary copy.
Error code: DeleteFilesAfterCompletionNotSupportedForThisConnector
Message:
'deleteFilesAfterCompletion' is not supported for this connector: ('%connectorName;').
Recommendation: Remove the 'deleteFilesAfterCompletion' setting in the copy activity payload.
Error code: FailedToDownloadCustomPlugins
Message:
Failed to download custom plugins.
Cause: Invalid download links or transient connectivity issues.
Recommendation: Retry if the message shows that it's a transient issue. If the problem persists, contact the support team.
General connector errors
Error code: UserErrorOdbcInvalidQueryString
Message:
The following ODBC Query is not valid: '%'.
Cause: You provide a wrong or invalid query to fetch the data/schemas.
Recommendation: Verify your query is valid and can return data/schemas. Use Script activity if you want to execute non-query scripts and your data store is supported. Alternatively, consider to use stored procedure that returns a dummy result to execute your non-query scripts.
Error code: FailToResolveParametersInExploratoryController
Message:
The parameters and expression cannot be resolved for schema operations. …The template function 'linkedService' is not defined or not valid.
Cause: The service has limitation to support the linked service which references another linked service with parameters for test connection or preview data. For example, passing a parameter from a Key Vault to a linked service may occur the issue.
Recommendation: Remove the parameters in the referred linked service to eliminate the error. Otherwise, run the pipeline without testing connection or previewing data.
Related content
For more troubleshooting help, try these resources:
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for