How to fix the issue "Client initialization failed. Check if the endpoint is reachable and if your auth token is valid" in azure data flow

Waz Wen Ou 5 Reputation points
2024-01-30T04:33:36.3333333+00:00

Hi I created an Azure data flow that transfer json from json file to cosmos db. The CosmosDbNoSql linked service connects successful. The Blob storage linked service for json file connects successful as well. The data flow is ok without any error. When refreshing data preview in debug the error always display. "Client initialization failed. Check if the endpoint is reachable and if your auth token is valid. More info: https://aka.ms/cosmosdb-tsg-service-unavailable-java" User's image

The link displays the blow content; User's image

It would be appreciated someone can let me know how to do the process in red line or how to the issue as I don't find any details about it. Thanks million.

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,672 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,843 questions
{count} vote

1 answer

Sort by: Most helpful
  1. ShaikMaheer-MSFT 38,456 Reputation points Microsoft Employee
    2024-01-30T09:20:34.26+00:00

    Hi Waz Wen Ou, Thank you for posting query in Microsoft Q&A Platform.

    You mentioned that linked service of cosmosDB connects successfully. You might have used different IR in cosmosDB linked service and different IR in blob storage linked service.
    Kindly try using IR of cosmosDB linked service in blob storage linked service too and see if that helps.

    Please let me know how it goes. 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.