ADF is failing for special characters in copy activity

Raja 86 Reputation points
2021-11-12T04:32:17.097+00:00

Hi Team,
We've a ADF pipeline written which pulls information from 'Salesforce' as source in the form of 'select query' and saves the records in the form of files in ADLS container.
It's been working perfectly for long time, but recently it started failing with error,

Operation on target Save data in container failed: Failure happened on 'Source' side. ErrorCode=UserErrorOdbcOperationFailed,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=ERROR [HY000] [Microsoft][Salesforce] (209) JSON parsing error: The surrogate pair in string is invalid.,Source=Microsoft.DataTransfer.ClientLibrary.Odbc.OdbcConnector,''Type=System.Data.Odbc.OdbcException,Message=ERROR [HY000] [Microsoft][Salesforce] (209) JSON parsing error: The surrogate pair in string is invalid.,Source=Microsoft Salesforce ODBC Driver,'    

We haven't made any changes in the ADF pipeline and neither on the salesforce side anything has changed.
What we noticed is, there some data coming which has some special characters due to which it is failing.

This happens at the copy activity. We have a very simple copy activity,

148666-image.png

148714-image.png

We are sure that this problem we are seeing is due to special characters in the data. These special characters are valid and expected to be there, we cannot remove them.
What can be done here? how to fix this issue?

Any help is highly appreciated.

Thanks

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,661 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ShaikMaheer-MSFT 38,551 Reputation points Microsoft Employee Moderator
    2021-11-15T10:00:36.713+00:00

    Hi @Raja ,

    Thank you for posting query in Microsoft Q&A Platform.

    Since your workflow was working fine but suddenly breaking with error, I suspect this may be driver issue because of some invalid characters in data. This may needs deeper investigation. I encourage you to have a support ticker for this to get deeper investigation and resolution.

    Below is the link which explains how to create support ticket in Azure.
    https://learn.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request

    Feel free to share your support ticket details. So that I can internally also escalate for quicker resolution. Thank you.


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.