cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
jublair
Regular Visitor

Cosmos DB connector does not work on DirectQuery when updating data source

We currently have a table in PBI connected to Spark that we're looking to change to Cosmos DB. While I can successfully connect to Cosmos DB for a new table, when I run the exact same connection on an existing table (i.e. by copy-pasting the Advanced Editor code from the working table to the existing table), I get the error that the import is not supported by DirectQuery mode. Why might this be happening?

2 ACCEPTED SOLUTIONS

Accepted Solutions
Community Support
Community Support

Re: Cosmos DB connector does not work on DirectQuery when updating data source

Hi @jublair,

 

Please check if you previously connect to Spark in DirectQuery mode. From this document, you can see Cosmos DB is not supported in DirectQuery mode. If Spark data source is using DirectQuery mode, please change it to Import mode, then copy and paste the Power Query for Cosmos DB. 

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

jublair
Regular Visitor

Re: Cosmos DB connector does not work on DirectQuery when updating data source

Yep - all good. Thanks!

View solution in original post

5 REPLIES 5
Community Support
Community Support

Re: Cosmos DB connector does not work on DirectQuery when updating data source

Hi @jublair,

 

Please check if you previously connect to Spark in DirectQuery mode. From this document, you can see Cosmos DB is not supported in DirectQuery mode. If Spark data source is using DirectQuery mode, please change it to Import mode, then copy and paste the Power Query for Cosmos DB. 

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

jublair
Regular Visitor

Re: Cosmos DB connector does not work on DirectQuery when updating data source

Hi Qiuyun,

 

Thanks for the info! I'll consider another solution for DirectQuery.

 

Cheers,

 

Julian

Community Support
Community Support

Re: Cosmos DB connector does not work on DirectQuery when updating data source

Hi @jublair,

 

May I know if the issue is resolved now? 

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
jublair
Regular Visitor

Re: Cosmos DB connector does not work on DirectQuery when updating data source

Yep - all good. Thanks!

View solution in original post

Community Support
Community Support

Re: Cosmos DB connector does not work on DirectQuery when updating data source

Hi @jublair,

 

Thank you for your update. As the issue is resolved now, I will close this thread. Smiley Happy

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Announcing the New Spanish Forum

Announcing the New Spanish Forum

Do you need help in Spanish? Check out our new Spanish community section.

April 2020 Community Highlights

April 2020 Community Highlights

Info on our Super Users, MBAS content and badges, and updates to our support articles. - Read the full Community Highlights.

MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

Top Solution Authors
Top Kudoed Authors