Troubleshooting
Troubleshoot figure insertion and captions — Reporting Studio
Troubleshoot omitted, duplicated, misplaced, or incorrectly captioned scientific figures, including source revisions, units, rendering fidelity, and accessible descriptions.
Application: Reporting Studio
Related applications: Research / Workspace / Workbench / Research Lab / Library / Citation Studio / Site Intelligence / Research Hub / Platform Core
Classification: Troubleshooting / Figure Insertion and Captions
Audience: Scientific authors, editors, visualization specialists, reviewers, and application developers
Technical level: Intermediate to advanced
Estimated reading time: 17–21 minutes, excluding figure reconstruction and independent testing
Primary acceptance: The rendered and exported figure matches its authorized source artifact and exact revision; quantitative meaning, units, caption, source attribution, and permitted disclosure remain accurate.
Implementation status: Technical guidance; actual integration and production behavior not independently verified.
1. Purpose and diagnostic objective
Scientific figures are evidence-bearing research outputs, not interchangeable illustrations. A successful image upload or an apparently correct chart in an editor does not prove that its underlying data, axes, uncertainty, provenance, or caption are correct. A figure may be current in Workbench but stale in a saved report; a caption may describe a previous model run; or a published PDF may contain a different graphic from the accepted manuscript.
The central diagnostic question is: Does every figure representation correspond to the intended, permitted, scientifically verified artifact and revision, with an accurate caption and accessible explanation?
Distinguish three independent outcomes: technical insertion success, scientific fidelity, and publication authorization. None alone establishes the others.
2. Recognize common symptoms
- A figure placeholder, broken-image icon, or blank panel appears.
- An editor displays a figure, but the saved report loses it after reload.
- A figure renders with a different dataset, model run, or time range than intended.
- A new figure revision exists, but the report still uses the earlier version.
- A caption is missing, attached to the wrong graphic, or numbered incorrectly.
- Axis units, legends, uncertainty intervals, or geographic coordinates are incorrect or missing.
- An image has been stretched, cropped, rasterized, or otherwise changed during export.
- The HTML, PDF, and DOCX exports disagree with the report editor.
- A chart is visible to sighted users but has no suitable alternative text or numeric equivalent.
- A supposedly public report contains a restricted figure, internal path, or confidential source citation.
- A duplicated insertion produces repeated figure references or numbering.
- The figure resolves only for the author, not for authorized reviewers or public readers.
- A source service is unavailable or returns only part of the figure manifest.
- A timed-out insertion may already have committed, making a blind retry unsafe.
3. Classify the failure before changing anything
| Category | Illustrative symptom | First authoritative check |
|---|---|---|
| Resolution | Missing image or unknown artifact | Figure and storage object identifiers |
| Authorization | Works for owner, fails for reader | Object rights and intended audience |
| Revision | Old plot after new computation | Exact source and report revisions |
| Scientific integrity | Unexpected values or units | Data, transformations, figure specification |
| Caption | Wrong number, source, or explanation | Figure-to-caption relationship |
| Rendering | Image clipped or text unreadable | Actual output artifact and renderer |
| Persistence | Figure disappears after refresh | Committed manuscript revision |
| Export | PDF differs from HTML | Export job, input snapshot, output file |
| Disclosure | Restricted visual material publicly accessible | Authorization and public output |
Prioritization: Suspected private-data exposure or material scientific misrepresentation requires containment before cosmetic layout work.
4. Confirm the owning project and figure identity
Establish the correct organization, Workspace project, report identifier, manuscript revision, intended audience, and authorized user role. Resolve the figure using its authoritative identifier rather than filename or caption text alone. Similar filenames may refer to entirely different simulations or updated results.
Record the figure ID, source application, source artifact version, dataset identity, computational run or notebook version, content checksum where available, and any parent figure lineage. Compare those values with the actual embedded reference in the report.
Do not use public support tickets to share private record identifiers that expose sensitive research relationships.
5. Verify the authoritative figure artifact
- Locate the saved figure artifact from the originating application or permitted artifact repository.
- Verify it is complete and readable in its own environment.
- Confirm its dataset, analytic method, software or rendering specification, run identity, and revision.
- Check that its intended scientific comparison is the same as the manuscript requires.
- Record whether the source is approved, draft, withdrawn, superseded, or restricted.
- Only then compare the stored report reference to the authoritative artifact.
A checksum mismatch may indicate a different encoding or export rather than a scientific change. Compare byte integrity only for the same defined artifact representation, then separately verify numerical equivalence and graphical semantics.
6. Diagnose missing figures and broken links
A broken figure may originate from an absent artifact, moved storage key, expired signed URL, unsupported MIME type, missing permissions, bad report reference, unmounted dependency, or export renderer failure.
Check the authoritative storage reference and whether the intended actor can resolve it through the supported access path. Identify whether the problem affects the editor, preview, exported document, or all three. An expired temporary download URL should not be copied into a permanent report as its canonical figure identity.
Do not make a private figure publicly readable to repair a broken link. Resolve the proper rights and publication workflow instead.
7. Diagnose stale and mismatched revisions
Identify four potentially different versions: the underlying data, the figure specification or rendered artifact, the manuscript revision, and the export snapshot. These versions can diverge even when the graphic looks similar.
| Object | Required verification |
|---|---|
| Dataset | Authoritative snapshot or acquisition version |
| Analysis | Code, parameters, model run, transformations |
| Figure | Artifact identifier, revision, and content-integrity reference |
| Report | Embedded figure reference and accepted manuscript revision |
| Export | Input report revision and generated output identity |
Do not silently replace a figure inside an accepted manuscript. Scientific changes require a controlled report revision and reassessment of affected claims.
8. Diagnose inaccurate plotted values
Open the source data and reconcile several representative coordinates, aggregates, and group labels with the visual output. Check units, group assignments, sample counts, filter selections, date bounds, missing-data treatment, smoothing, interpolation, normalization, and numerical rounding. An image that is visually polished may still reflect the wrong calculation.
For a difference between treatment and control, a descriptive calculation is difference = treatment - control. Its scientific interpretation depends on the study design and uncertainty; a nonzero visible difference alone does not establish causality or statistical significance.
When findings change, revisit the associated results text and conclusions rather than correcting only the chart image.
9. Diagnose axes, units, and scales
- Confirm that the axis labels match the plotted variables and units.
- Verify linear, logarithmic, normalized, or transformed scales and their disclosure.
- Check coordinate and time systems where relevant.
- Review whether truncated axes or aspect ratio choices distort the intended comparison.
- Confirm that plotted uncertainty intervals, limits of detection, and reference thresholds are defined.
- Ensure unit conversions are reproducible and not applied twice.
For geospatial figures, also check projection, spatial resolution, boundaries, legend classes, scale bar, and observation date. For time series, distinguish observation timestamps from analysis and publication dates.
10. Diagnose caption content and scientific interpretation
A useful scientific caption should permit readers to identify the figure without reconstructing the entire methods section. It ordinarily includes figure number, scientific subject, variables, units where needed, study population or setting, relevant time and sample scope, explanation of encodings, uncertainty definition, and appropriate source attribution.
Define ambiguous statistical markers and abbreviations. A caption must not infer significance from a visual gap or claim that a model estimate is an observed measurement. When a caption refers to specific values, reconcile those values with the figure’s current revision.
11. Diagnose numbering and cross-reference failures
Figure numbers may change when figures are inserted, moved, deleted, or duplicated. Confirm that all in-text references point to the correct figure and that the sequence follows the document’s numbering convention. A section-level caption or figure list may use a different scheme from continuous numbering; follow the approved document specification.
Verify that the figure object, caption, anchor, and reference remain linked after editor reload and export. Do not renumber accepted report figures manually without checking all downstream references.
12. Verify source attribution and licensing
Determine whether the figure is original, adapted, reproduced with permission, or generated from third-party data. Attribute the scientific source and any required copyright holder or license appropriately. Source attribution for an analysis is not always equivalent to permission to reproduce a third-party graphic.
Check reuse terms, privacy, embargoes, and project rights. A public PDF must not expose a figure merely because it was available to an authenticated author in a private project.
Where references are managed through Citation Studio or Library, verify that the selected canonical source record supports the figure and matches its stated provenance.
13. Diagnose accessibility and text alternatives
Accessibility requires that essential scientific meaning is not available solely through color, visual position, hover, or motion. Check meaningful alternative text, caption content, numerical equivalents for complex figures, appropriate semantics, keyboard operation for interactive graphics, and rendered contrast.
For a complex plot, a short alt description should identify the chart and point toward a detailed accessible explanation or data table. Do not paste a full scientific paper into an image’s alt attribute. Confirm that tables, descriptions, and captions agree numerically with the current figure.
Assess applicable WCAG 2.2 success criteria against the actual web, document, and export implementation; passing image-generation tests is not evidence of full conformance.
14. Diagnose raster, vector, and layout defects
Verify the original and output formats, image dimensions, aspect ratio, labels, fonts, and transformations. Common export faults include blurred raster text, cropped legends, truncated labels, misplaced annotation, incompatible SVG features, missing fonts, and shifted color maps.
Choose an appropriate output format for the scientific use. Vector formats can preserve text and line geometry in some workflows, but may have compatibility and accessibility limitations. High-resolution raster output can be appropriate for other content. Do not assume one format is always scientifically or accessibly superior.
Inspect the rendered artifact at the target display size and in the final document, not just the source plot.
15. Diagnose HTML, DOCX, and PDF differences
| Format | Checks |
|---|---|
| HTML | Image resolution, figure/figcaption structure, alt text, source links, responsive layout, and access controls |
| DOCX | Image anchoring, caption association, cross-references, resizing, text alternatives, and editability expectations |
| Figure rendering, captions, page breaks, text readability, tags or alternative descriptions where supported, and access restrictions |
Record which manuscript revision and figure snapshot were used to produce each export. Re-export only after establishing that the correct approved inputs are selected, and inspect the actual resulting document. A successful export process is not proof of content fidelity.
16. Diagnose persistence and failed saves
After a save, reload the report and compare the embedded figure identity, caption text, position, and manuscript revision. If the figure disappears, determine whether the save was rejected, applied to a different revision, lost in an editor serialization step, or overwritten by a concurrent edit.
Where supported, compare expected revision identifiers and nonsecret request traces. Do not assume that a browser toast or successful HTTP status establishes durable persistence in authoritative storage.
17. Diagnose authorization and tenant-boundary errors
Confirm the user’s permissions for the report and the source artifact separately. A user may be authorized to edit a report without permission to view or publish a restricted dataset or image. Check object-level authorization for retrieval, insertion, preview, export, and publication; tenant isolation must hold for related metadata and thumbnails as well.
Do not solve a permission failure by embedding a long-lived private token, disabling access checks, or copying private content into a publicly readable location.
18. Diagnose partial dependencies and stale caches
Possible dependencies include artifact storage, analysis services, figure conversion tools, document renderers, citation metadata, and publication bridges. A dependency may return an image while omitting provenance or caption metadata, producing a partially correct display.
Check whether the authoritative figure record and rendered file agree. Distinguish browser cache, application cache, CDN cache, export-cache snapshot, and persistent report data. Only invalidate or rebuild the affected approved representation through a supported operation; do not republish unrelated records.
19. Diagnose duplicate insertion and uncertain retries
A timeout can occur after a figure insertion has already been committed. Before repeating a state-changing operation, inspect the authoritative report revision and embedded figure list. Compare the original command or request identifier if the implementation supports it.
Do not blindly retry insertion, replacement, deletion, or export-related publication transitions when idempotency is unknown. Replays should preserve the same outcome for the same accepted command and reject conflicting payloads where the implemented contract requires it.
20. Interpret errors without inventing service contracts
| Category | Likely investigation |
|---|---|
| FIGURE_NOT_FOUND | Figure identity or storage reference |
| FIGURE_ACCESS_DENIED | Actor, project, rights, and tenant scope |
| FIGURE_REVISION_CONFLICT | Source or manuscript expected-version mismatch |
| FIGURE_MANIFEST_INCOMPLETE | Missing required provenance or rendering fields |
| CAPTION_REFERENCE_INVALID | Broken figure-to-caption identity or numbering |
| FIGURE_RENDER_FAILED | Converter, format, font, or resource failure |
| EXPORT_SNAPSHOT_STALE | Export input differs from accepted manuscript state |
| FIGURE_WRITE_OUTCOME_UNKNOWN | Timed-out command requiring read-before-retry |
Actual error names, HTTP semantics, and tracing contracts must be inspected in the deployed application. Use sanitized identifiers; never disclose credentials or private data in public logs or tickets.
21. Reproduce with a synthetic fixture
Before testing a production correction, use a small nonconfidential source fixture in isolated staging. The following example demonstrates a minimal Python consistency check between a source manifest and an embedded figure reference; it is not connected to Reporting Studio.
from dataclasses import dataclass
@dataclass(frozen=True)
class Figure:
figure_id: str
revision: str
data_version: str
units: str
sha256: str
@dataclass(frozen=True)
class EmbeddedFigure:
figure_id: str
revision: str
data_version: str
units: str
sha256: str
caption: str
def inspect_link(source: Figure, embedded: EmbeddedFigure):
failures = []
for field in ("figure_id", "revision", "data_version", "units", "sha256"):
if getattr(source, field) != getattr(embedded, field):
failures.append(f"mismatch:{field}")
if not embedded.caption.strip():
failures.append("caption_missing")
return failures
source = Figure("fig-01", "v2", "data-v4", "kg", "a" * 64)
embedded = EmbeddedFigure(
"fig-01", "v2", "data-v4", "kg", "a" * 64,
"Synthetic measured mass by day (kg)."
)
assert inspect_link(source, embedded) == []
assert inspect_link(source, EmbeddedFigure(
"fig-01", "v1", "data-v4", "kg", "a" * 64, "Outdated caption"
)) == ["mismatch:revision"]
Limitations: This example checks equality of untrusted fixture fields; it does not compute a checksum, verify file bytes, establish actor authority, determine scientific validity, or implement an authoritative storage or publication contract. The code is provided as a reproducible teaching example, not a claim that tests have been run in production.
22. Validate negative and regression cases
| Test case | Expected behavior |
|---|---|
| Valid approved figure | Correct revision, caption, and source identity persist |
| Missing artifact | Controlled failure; no misleading placeholder published |
| Wrong tenant or revoked access | Figure and protected metadata denied |
| Stale figure revision | Conflict exposed; accepted report not silently changed |
| Incorrect numerical values | Scientific validation fails |
| Wrong units or scale | Caption/figure reconciliation fails |
| Missing caption or source | Applicable editorial gate remains incomplete |
| Duplicate insertion | No unintended duplicate on replay |
| Partial storage failure | No false completed-save status |
| Editor reload | Committed figure and caption persist |
| HTML/DOCX/PDF | Figure meaning, caption, and approved revision match |
| Accessibility | Applicable accessible alternatives and controls verified |
| Restricted figure in public report | Public disclosure blocked |
| Backup restoration | Authorized history and restrictions reconstructed |
These are proposed acceptance tests. Do not record them as passed without executed evidence for the actual implementation.
23. Recover without destroying accepted research history
- Contain: Stop unsafe publication or exposure when necessary; preserve the last accepted state.
- Identify: Determine the exact report, figure artifact, revisions, intended audience, and authorizing actor.
- Read before retry: Establish whether any uncertain write operation committed.
- Reconcile: Compare authoritative data, analysis, figure, caption, and embedded reference.
- Correct narrowly: Fix the responsible source or relationship using an approved, reversible operation.
- Revise appropriately: Create a new manuscript revision when scientific content or accepted presentation changes materially.
- Revalidate: Inspect values, units, captions, rights, accessibility, and all supported exports.
- Confirm persistence: Reload the report and inspect the authorized public or reviewer view.
- Record: Preserve nonsecret diagnostic evidence, scientific review outcomes, and remaining issues.
Do not use a database restore as the first response to a broken figure reference. A guarded restore is appropriate only under an approved recovery procedure and must honor privacy and retention restrictions.
24. Document an illustrative incident receipt
{
"schema_version": "report-figure-incident-example-v1",
"classification": "proposed_not_deployed_contract",
"workflow": "figure_insertion_and_captions",
"report_id": "synthetic-report-017",
"figure_id": "synthetic-figure-03",
"symptom": "caption_revision_mismatch",
"checks": {
"actor_authorized": "not_tested",
"source_artifact_exists": "not_tested",
"data_revision_matches": "not_tested",
"figure_revision_matches": "not_tested",
"numeric_values_match": "not_tested",
"units_and_scales": "not_tested",
"caption_and_attribution": "not_tested",
"rights_and_privacy": "not_tested",
"accessible_equivalent": "not_tested",
"saved_revision_persists": "not_tested",
"html_export": "not_tested",
"docx_export": "not_tested",
"pdf_export": "not_tested",
"backup_restore": "not_tested",
"production_runtime": "not_tested"
},
"incident_resolved": false,
"scientific_acceptance": false,
"publication_authorized": false,
"release_decision": "NO_GO"
}
This synthetic record is intended to distinguish tested evidence from assumptions. It is not a verified Reporting Studio schema or audit record.
25. Acceptance criteria
| Criterion | Pass condition |
|---|---|
| Object identity | Correct source figure and intended report resolved |
| Revision integrity | Saved figure, source data, and manuscript versions match approved specification |
| Numerical fidelity | Plotted values reconcile with authoritative calculations |
| Scientific labeling | Units, axes, scales, uncertainty, and legends accurate |
| Caption | Correct number, meaning, scope, and scientific qualifications |
| Source attribution | Provenance and reuse rights accurate |
| Accessibility | Applicable text alternatives, numerical equivalents, and interaction checks pass |
| Persistence | Figure and caption survive reload of the committed report revision |
| Export | HTML, DOCX, PDF outputs (where supported) match accepted content |
| Authorization | Only permitted actors and audiences can access source and output |
| Recovery | Permitted history and restrictions survive supported restore tests |
| Publication gate | Required scientific and institutional approval applies to exact revision |
Decision rule: Mark each criterion Pass, Fail, Not Tested, or Not Applicable. A material failure in scientific values, provenance, confidentiality, or publication authorization prevents release of the affected figure or report.
26. Application ownership and implementation evidence
The intended application boundaries are: Reporting Studio owns manuscript insertion, caption association, and supported exports; Workbench or Research Lab may own reproducible analysis and figures; Library and Citation Studio may provide source identity and citation metadata; Site Intelligence may supply geospatial figure artifacts; Research and Workspace may govern research objects and reviews; Platform Core may enforce trusted identity and permissions; and Research Hub may present approved public outputs. These roles must be verified against the actual repositories and services.
Before calling this article production verified, collect exact owning repository and commit; deployed application and renderer versions; actual figure and caption schema; storage and access contract; UI reproduction; CI and staging results; source-to-render numeric tests; editor-reload and export evidence; private-data negative tests; and backup/rollback acceptance.
27. Technical references
- World Wide Web Consortium (W3C). Web Content Accessibility Guidelines (WCAG) 2.2. https://www.w3.org/TR/WCAG22/.
- W3C Web Accessibility Initiative. Complex Images. https://www.w3.org/WAI/tutorials/images/complex/.
- World Wide Web Consortium (W3C). PROV-O: The PROV Ontology. https://www.w3.org/TR/prov-o/.
- Wilkinson, M.D. et al. (2016). ‘The FAIR Guiding Principles for Scientific Data Management and Stewardship’, Scientific Data, 3, 160018. https://doi.org/10.1038/sdata.2016.18.
- Matplotlib Development Team. Matplotlib documentation. https://matplotlib.org/stable/.
- National Academies of Sciences, Engineering, and Medicine (2019). Reproducibility and Replicability in Science. https://doi.org/10.17226/25303.
- OWASP Foundation. Authorization Cheat Sheet. OWASP authorization guidance.
28. Completion and verification record
Completion criterion: Figure insertion and caption troubleshooting is complete when the correct authorized figure artifact and revision are present; numerical values and visual encodings match verified source evidence; captions and references accurately explain and attribute the graphic; accessibility requirements are appropriately tested; saved and exported report artifacts agree; and the applicable scientific, privacy, and publication gates have passed.
Scientific limitation: A stable figure reference and visually accurate rendering do not establish that the underlying study design, data, modeling assumptions, or causal interpretation are sound. Technical consistency and scientific validity require separate review.
Current implementation status: Diagnostic workflow, synthetic comparison example, revision and export reconciliation, accessibility and privacy requirements, safe recovery, regression matrix, and acceptance receipt documented. No specific Reporting Studio UI control, API route, figure service, or deployed integration has been independently verified through this article.
