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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
zas_infinity
New Member

Issue Connecting MongoDB via Cosmos DB in Microsoft Fabric: Intermittent Timeout Errors

I'm using MongoDB as a source, connecting through Azure Cosmos DB for MongoDB. I'm facing an odd issue where I get multiple timeout errors consistently, but after several retries, the connection eventually becomes successful. Each time I run the pipeline, I encounter errors around 3-4 times, and then—almost at random—it connects successfully.

The backend timeout is set to 1200 ms, and this works perfectly fine with Azure Data Factory (ADF) and Mongo Compass. The problem only seems to arise when connecting through Microsoft Fabric.

Here's the error message:

"Type=DnsClient.DnsResponseException,Message=Query 41403 => example-cosmos-mongo-vcore.global.mongocluster.cosmos.azure.com IN TXT on 169.254.0.x:xx timed out or is a transient error.,Source=DnsClient,
Type=System.Net.Sockets.SocketException,Message=A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond,Source=DnsClient,"

 

Has anyone encountered a similar issue or found a workaround? Any help or suggestions would be greatly appreciated!

 

2 REPLIES 2
zas_infinity
New Member

Hi @Anonymous 
thankyou for you response

I tried your suggestion of increasing the time out to 10,000 and even 12,000 as well but the same probelm persists, Moreover I even have tried setting up the mongodb to higher tier but that was also of no use. 

Anonymous
Not applicable

Hi @zas_infinity 

 

You might need to increase the timeout appropriately to avoid frequent timeout errors. Try a greater timeout (e.g. 10,000 ms). You can adjust it based on the actual situation to achieve better reliability.

 

Best Regards,
Jing
Community Support Team

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Fabric Update Carousel

Fabric Monthly Update - October 2025

Check out the October 2025 Fabric update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.