Medium severitydata source
Power BI Refresh Error:
DF-Cosmos-IdPropertyMissed
What does this error mean?
The ADF Mapping Data Flow Cosmos DB sink requires an 'id' property on every document being written, but the incoming data stream does not contain a column named 'id' or the column contains null values.
Common causes
- 1The incoming data stream does not have a column named 'id' (case-sensitive) — Cosmos DB requires this exact property name as the document identifier
- 2An upstream Select or Derived Column transformation renamed the id column to something else (e.g., 'document_id' or 'Id' with a capital I)
- 3The id column exists in the stream but contains null values for some rows, which Cosmos DB rejects
How to fix it
- 1Enable data flow Debug mode and preview the incoming stream at the Cosmos DB sink — check whether a column named exactly 'id' is present and populated.
- 2If the id column has a different name, add a Derived Column transformation before the sink to create a column named 'id' with the appropriate value.
- 3If the id values need to be generated (e.g., for new documents), add a Derived Column transformation with an expression like uuid() to generate a unique id per row.
- 4If the id column exists but contains nulls, add a Filter transformation to exclude null-id rows or a Derived Column to set a default id value.
Frequently asked questions
Official documentation: https://learn.microsoft.com/en-us/azure/data-factory/data-flow-troubleshoot-guide