Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
r_Gao
Frequent Visitor

MongoDB Atlas for Pipeline Connection Options in URL

Hi!
Today i tried to include options in my MongoDB Atlas for Pipeline Connection in Microsoft Fabric because i require to read data from an analytics node. However when I include it in my url and test the connection in my copy activity it fails with the error message: The server url '<server>/?readPreferenceTags=nodeType:ANALYTICS&readPreference=secondary' is invalid, options are not allowed in url.  Is there a way to do this?  

 

Screenshot 2024-10-29 at 1.58.37 PM.png



3 REPLIES 3
r_Gao
Frequent Visitor

So in this case do we have no choice but to make connections on the primary node? This is a huge issue for us as we do not want to degrade performance of the mongo database while doing our reads. 

If this is important to you please consider voting for an existing idea or raising a new one at https://ideas.fabric.microsoft.com

v-kongfanf-msft
Community Support
Community Support

Hi @r_Gao ,

 

The connection string format used for MongoDB Atlas in the replication activity does not appear to support including options such as readPreferenceTags directly in the URL.Power BI may restrict certain options in the connection URL to simplify configuration, and adding parameters may result in validation errors.


Refer to the following documentation on configuring connection information:

vkongfanfmsft_0-1730256869174.png

 

Best Regards,
Adamk Kong

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

November Update

Fabric Monthly Update - November 2024

Check out the November 2024 Fabric update to learn about new features.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.