---
title: "Lucid Chart diagram broken during copyPage across Confluence instances"
canonical: "https://support.appfire.com/space/SUPPORT/89134568/Lucid%20Chart%20diagram%20broken%20during%20copyPage%20across%20Confluence%20instances"
format: markdown
---
## Problem Statement

> ℹ️ Lucid Chart diagram is broken when using **copyPage** action to copy pages across Confluence instances.

## Environment

| **Application** | Confluence |
| --- | --- |
| **Version** | Server ( all versions) |
| **App Version** | Confluence CLI ( all versions) |

## Cause

<span style="color: #172b4d">The</span>**<span style="color: #172b4d"> copyPage</span>**<span style="color: #172b4d"> </span><span style="color: #172b4d">action </span><span style="color: #172b4d">copies the storage format from the source page to the target page without any modification. A Lucid Chart diagram uses attachment ID to render the image. This Lucid Chart diagram is created </span><span style="color: #172b4d">i</span><span style="color: #172b4d">n the target instance </span><span style="color: #172b4d">with a different attachment ID.</span>

## Solution

1. <span style="color: #172b4d">Run </span>[<span style="color: #172b4d">getAttachmentList</span>](https://appfire.atlassian.net/wiki/spaces/CSOAP/pages/68458401/Actions#Actions-getAttachment)<span style="color: #172b4d"> on the source </span><u><span style="color: #172b4d">and</span></u><span style="color: #172b4d"> </span><span style="color: #172b4d">target page to get the corresponding attachment IDs for the Lucid Chart file (e.g. myLucidChart.json).</span>
  1. <span style="color: #172b4d">Source page (page ID 1)</span>
  2. <span style="color: #172b4d">Target page (page ID 2)</span>
2. <span style="color: #172b4d">Run</span><span style="color: #172b4d"> </span>[modifyPage](https://appfire.atlassian.net/wiki/spaces/CSOAP/pages/68458401/Actions#Actions-modifyPage)<span style="color: #172b4d"> to update the attachment IDs in the Lucid Chart macro on the target page (page ID 2) where "12345" is the attachment ID from the source page (page ID 1) and "67890" is the attachment ID on the target page (page ID 2).</span>