Can we pass partition key as a parameter in a generic/dynamic azure dataflow.

Batta, Uha Kanakavalli 0 Reputation points
2023-10-05T08:43:06.7+00:00

Operation on target Load Entity failed: Operation on target Load Entity failed: {"StatusCode":"DFExecutorUserError","Message":"Job failed due to reason: com.microsoft.dataflow.Issues: DF-TX-114 - Key partitioning does not allow computed columns - [564 737],\nsource(\n) ~> DLExtract,EXE-0001,Dataflow cannot be analyzed as a graph\nDF-TX-114 - Key partitioning does not allow computed columns - [564 737],EXE-0001,Dataflow cannot be analyzed as a graph,\nsource(\n) ~> DBExtract\nDF-TX-114 - Key partitioning does not allow computed columns - EXE-0001,Dataflow cannot be analyzed as a graph,\nInsertRows sink(\n) ~> Insert2DB,[564 737]\nDF-TX-114 - Key partitioning does not allow computed columns - \nMarkasUpdate sink(\n) ~> Update2DB,EXE-0001,Dataflow cannot be analyzed as a graph,[564 737]","Details":""}

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.
4,382 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,570 questions
Azure Data Lake Analytics
{count} votes

1 answer

Sort by: Most helpful
  1. Suba Balaji 11,186 Reputation points
    2023-10-05T12:43:54.4466667+00:00

    Hi Batta, Uha Kanakavalli

    There is a limitation in Key Paritioning in data flow. It doesnt allow dynamic expressions in key field.

    If you want to use such dynamic expressions, you can use a derived column and use that in the paritition key field. But not directly on the key field.

    Below thread discusses a similar issue where we use data flow parameter for key column.

    https://stackoverflow.com/questions/75225600/azure-data-factory-dataflow-error-key-partitioning-does-not-allow-computed-colu

    Below are my test data.

    Screenshot 2023-10-05 at 6.11.08 PM

    If i try to use month(toDate(date)) in the partition key column directly, i am getting same error as yours. So I add a derived column and then use the expression there as follows.

    Screenshot 2023-10-05 at 6.11.20 PM

    Screenshot 2023-10-05 at 6.11.34 PM

    Please check and let us know for any question.

    Thanks

    1 person found this answer helpful.