# Error code: \[13435\] not master and slaveOk=false

**URL:** <https://community.cdata.com/t/error-code-13435-not-master-and-slaveok-false/375>\
**Category:** Data Sources\
**Tags:** article, mongodb\
**Created:** [September 5, 2023, 7:46pm UTC](https://community.cdata.com/t/error-code-13435-not-master-and-slaveok-false/375 "2023-09-05T19:46:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Florjan\_C](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@Florjan\_C](https://community.cdata.com/u/Florjan_C)\
**Post date:** [September 5, 2023, 7:46pm UTC](https://community.cdata.com/t/error-code-13435-not-master-and-slaveok-false/375/1 "2023-09-05T19:46:13Z")

</div>

This error usually occurs when attempting to read data from a set of secondary servers. Set the driver’s ReplicaSet connection property in the connection string to the set of secondary servers ([https://cdn.cdata.com/help/DGH/cloud/default.htm#RSBMongodb\_p\_ReplicaSet](https://cdn.cdata.com/help/DGH/cloud/default.htm#RSBMongodb_p_ReplicaSet)), and also set the driver’s [SlaveOK](https://cdn.cdata.com/help/DGH/cloud/default.htm%22%20/l%20%22RSBMongodb_p_SlaveOK%22%20/t%20%22_blank) connection property to True. This should allow you to connect and read data from secondary servers.
