{"record":{"id":"33342bcc93e4d368","repo":"gatsbyjs/gatsby","slug":"found-a-duplicate-id-in-wordpress-this-means-you","errorCode":null,"errorMessage":"Found a duplicate ID in WordPress - this means you will have fewer nodes in Gatsby than in WordPress. This will need to be resolved in WP by identifying and fixing the underlying bug with your WP plugins or custom code.","messagePattern":"Found a duplicate ID in WordPress - this means you will have fewer nodes in Gatsby than in WordPress\\. This will need to be resolved in WP by identifying and fixing the underlying bug with your WP plugins or custom code\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/gatsby-source-wordpress/src/steps/source-nodes/fetch-nodes/fetch-nodes-paginated.js","lineNumber":114,"sourceCode":"  if (nodes && nodes.length) {\n    nodes.forEach(node => {\n      const existingId = idSet.has(node.id)\n\n      if (\n        existingId &&\n        // when the since variable is present\n        // we're fetching lists of node updates from WPGQL\n        // in that case we don't need to worry about logging duplicates\n        !(`since` in variables)\n      ) {\n        const existingNode = allContentNodes.find(\n          innerNode => innerNode.id === node.id\n        )\n\n        if (existingNode) {\n          if (!hasLoggedDuplicateMessage) {\n            hasLoggedDuplicateMessage = true\n            helpers.reporter.warn(\n              formatLogMessage(\n                `Found a duplicate ID in WordPress - this means you will have fewer nodes in Gatsby than in WordPress. This will need to be resolved in WP by identifying and fixing the underlying bug with your WP plugins or custom code.`\n              )\n            )\n          }\n\n          if (node?.databaseId && node?.uri && existingNode?.uri) {\n            helpers.reporter.info(\n              formatLogMessage(\n                `Node with ID ${node.databaseId}/${node.id} of type ${node.__typename} was fetched multiple times. This is a WPGraphQL bug where pagination returns duplicate nodes.`\n              )\n            )\n          }\n        }\n      } else {\n        idSet.add(node.id)\n      }\n","sourceCodeStart":96,"sourceCodeEnd":132,"githubUrl":"https://github.com/gatsbyjs/gatsby/blob/e85d62f1779e353eaac1753211629a26d123e26c/packages/gatsby-source-wordpress/src/steps/source-nodes/fetch-nodes/fetch-nodes-paginated.js#L96-L132","documentation":"Error \"Found a duplicate ID in WordPress - this means you will have fewer nodes in Gatsby than in WordPress. This will need to be resolved in WP by identifying and fixing the underlying bug with your WP plugins or custom code.\" thrown in gatsbyjs/gatsby.","triggerScenarios":"Thrown at packages/gatsby-source-wordpress/src/steps/source-nodes/fetch-nodes/fetch-nodes-paginated.js:114 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Audit WordPress content for posts/terms sharing the same global id — commonly caused by a conflicting plugin or custom import creating duplicates","Deactivate recently added plugins that mutate IDs and re-sync","If duplicates are legitimate in WP, deduplicate or fix the exporting code so WPGQL returns unique ids","Re-run sourcing after fixing; nodes missing in Gatsby will then be created"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e85d62f1779e353eaac1753211629a26d123e26c","analyzedAt":"2026-08-26T17:50:09.662Z","contentChangedAt":"2026-08-26T17:50:09.662Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}