MetricSign
EN|NLRequest Access
Medium severitydata source

Power BI Refresh Error:
DF-Cosmos-ResourceNotFound

What does this error mean?

The ADF Mapping Data Flow Cosmos DB connector could not find the target database or container. The database name or container name specified in the data flow source or sink does not exist in the Cosmos DB account.

Common causes

  • 1The database or container name in the data flow source/sink settings is misspelled or uses incorrect casing (Cosmos DB names are case-sensitive)
  • 2The container was deleted or renamed in the Azure portal after the data flow was built
  • 3The data flow targets a different Cosmos DB account via the linked service, and the expected database/container does not exist in that account

How to fix it

  1. 1In the Azure portal, go to your Cosmos DB account → Data Explorer and confirm the exact database and container names.
  2. 2Open the data flow in ADF Studio and compare the database and container names in the source or sink settings against what appears in Data Explorer — correct any spelling or casing differences.
  3. 3If the container was intentionally deleted, recreate it with the correct partition key before re-running the data flow.
  4. 4Test connection the linked service to confirm the account itself is still accessible.

Frequently asked questions

Are Cosmos DB database and container names case-sensitive?

Yes — 'Users' and 'users' are different containers in Cosmos DB. Verify the exact case of database and container names in Data Explorer.

What happens if I accidentally delete a Cosmos DB container?

The container and all data are deleted. If continuous backup was enabled, restore via the Azure portal under 'Backups'.

Can this error occur if my linked service points to the wrong account?

Yes. If the linked service URI points to a different Cosmos DB account that doesn't have the expected database or container, you get this error even if the name is correctly spelled.

Official documentation: https://learn.microsoft.com/en-us/azure/data-factory/data-flow-troubleshoot-guide

Other data source errors