Error 1028 - Primary/Master host needed for OpLog

Last updated on Oct 21, 2022
Error Code 1028
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-05-2022 NA Brought this page under its respective Source documentation folder.
Sep-20-2021 1.72 New document.

Tell us what went wrong