AZF Dataflow error connection CosmosDB

Erica de Graaf-Borkent 0 Reputation points
2025-04-22T11:34:58.58+00:00

User's image

I have created a linked service and the testconnection is succeeded

But when I use this linked service in a dataflow and test the connection I get the following error:
User's image

Error codeDFExecutorUserError

DetailsStatus code 400, "{"error":{"code":"InvalidSubscriptionId","message":"The provided subscription identifier 'resourceGroups' is malformed or invalid."}}"

Does anyone know a solution for this problem?

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

1 answer

Sort by: Most helpful
  1. Dileep Raj Narayan Thumula 0 Reputation points Microsoft External Staff
    2025-04-23T15:11:37.0933333+00:00

    Hi @Erica de Graaf-Borkent , it looks like the issue you are facing with your Dataflow connecting to CosmosDB may be due to an invalid or malformed subscription identifier.

    This usually results from incorrect formatting or a misconfiguration in the linked service. Although you mentioned that the connection test was successful, the error message DFExecutorUserError suggests the problem may lie within the source rather than the linked service itself.

    Please ensure that the linked service is properly configured, particularly the account name and endpoint. If you're using parameters that refer to another linked service, try temporarily removing those parameters to isolate the issue. It may also help to reimport the projection from the source and double-check that the data types in your sink match the schema of your CosmosDB collection. A mismatch in schema is a common cause of such errors.

    Following some best practices can help avoid similar issues in the future: regularly clean up duplicate columns after transformations, use select statements to keep datasets lean, and always apply schema projection at the source, especially when changes occur. If the target CosmosDB collection already exists, make sure its schema is aligned with the sink configuration. Let us know if these steps help resolve the issue.


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.