Citation errors

Look up citation error codes and how to resolve them.

CitationError extends Error with code and details. Details can include sourceId, citationId, from, to, nodeType, markType, or path. Invalid configuration, source operations, and queries throw.

CodeWhat to check
unknownSourceAdd the source before citing, updating, or removing it.
unknownCitationRefresh the review UI and use a current citation ID.
duplicateSourceIdUpdate the existing source or use a different ID.
unsupportedSelectionSelect a node or text in one textblock, or give the position before a node. Restore only inline citations within one textblock.
markNotAllowedCheck whether the node or an existing mark prevents the citation mark.
sourceMissingLoad the missing source before approving.
unsupportedRevisionInputInspect details.path and use supported JSON data.
missingExtensionUse an editor configured with SmartCitations and subscribe before destroying it.
invalidSourceCheck the source shape, update fields, and revision strategy.
invalidUserSupply a nonempty string ID and optional string name.