Synapse Copy data activity POST issue

Giri, Seshu 26 Reputation points
2022-09-06T22:09:00.323+00:00

I am using Copy data activity to call an API which returns a string. I am using POST method with 'Request Body'. I am getting error code 2200 and here is the request body. Please see the screen print and let me know how to fix it.

{  
"Variables": [  
    {  
        "VARName": "EmpCode",  
        "VARValue": "123"  
    }  
]  
}  

Error I am getting

{  
    "errorCode": "2200",  
    "message": "Failure happened on 'Source' side. ErrorCode=JsonInvalidDataFormat,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Error occurred when deserializing source JSON file ''. Check if the data is in valid JSON object format.,Source=Microsoft.DataTransfer.ClientLibrary,''Type=Newtonsoft.Json.JsonReaderException,Message=Unexpected character encountered while parsing value: <. Path '', line 0, position 0.,Source=Newtonsoft.Json,'",  
    "failureType": "UserError",  
    "target": "Copy data1",  
    "details": []  
}  

238320-image.png

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
{count} votes

1 answer

Sort by: Most helpful
  1. Bhargava-MSFT 31,361 Reputation points Microsoft Employee Moderator
    2022-09-12T21:55:30.897+00:00

    Hello @Giri, Seshu ,

    Per my research, this error occurs when the storage account name is incorrect. Can you please validate the account name from your end again?

    Error:
    The remote name could not be resolved: 'mystorageaccount.dfs.core.windows.net',Source=System,

    0 comments No comments

Your answer

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