Error 1028 - Primary/Master host needed for OpLog

Error Code 1028
Applies To Generic MongoDB and MongoDB Atlas
Category Communication
Error Message Text(s) Failed to fetch all the hostnames for the cluster as the database host specified is that of a shard or a replica set. Please specify the parent hostname in the format, {hostname}.

Potential Causes

  • The Database Host specified is that of a shard or a replica set. The primary/master host must be mentioned while setting up the connection.

Suggested Actions

  • Verify that the hostname entered in the Configure your Source page has the primary/master hostname.

  • If MongoDB version 4.0 or above is used, select Change Streams as the Pipeline mode.

  • Invite another team member with the required privileges to set up the Pipeline. Read Inviting and Moderating Team Members.


Revision History

Refer to the following table for the list of key updates made to this page:

Date Release Description of Change
Sep-20-2021 1.72 New document.
Last updated on 22 Sep 2021