# Importing imagelink not working

**URL:** <https://community.bloomreach.com/t/importing-imagelink-not-working/1353>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [August 22, 2019, 12:45pm UTC](https://community.bloomreach.com/t/importing-imagelink-not-working/1353 "2019-08-22T12:45:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![binaykumar.singh](https://avatars.discourse-cdn.com/v4/letter/b/cdc98d/32.png) [@binaykumar.singh](https://community.bloomreach.com/u/binaykumar.singh)\
**Post date:** [August 22, 2019, 12:45pm UTC](https://community.bloomreach.com/t/importing-imagelink-not-working/1353/1 "2019-08-22T12:45:52Z")

</div>

Hi  
I am trying to import documents with imagelink compound type node. below is my imagelink node json. Image is also available in cms but when I am importing whole document  
I am not able to see the image in imported documents. please suggest what am I missing here.

imagelink node:  
{  
“name” : “myproject:imagelink”,  
“primaryType” : “hippogallerypicker:imagelink”,  
“mixinTypes” : [],  
“properties” : [ {  
“name” : “hippo:facets”,  
“type” : “STRING”,  
“multiple” : true,  
“values” : []  
}, {  
“name” : “hippo:values”,  
“type” : “STRING”,  
“multiple” : true,  
“values” : [“/content/gallery/myproject/banners/modern-quilted-cushion-header.jpg”]  
}, {  
“name” : “hippo:docbase”,  
“type” : “STRING”,  
“multiple” : false,  
“values” : [“/content/gallery/myproject/banners/modern-quilted-cushion-header.jpg”]  
}, {  
“name” : “hippo:modes”,  
“type” : “STRING”,  
“multiple” : true,  
“values” : []  
} ],  
“nodes” : []  
}

---

<div class="post-metadata">

**Author:** ![woonsanko](https://avatars.discourse-cdn.com/v4/letter/w/b5a626/32.png) [@woonsanko](https://community.bloomreach.com/u/woonsanko)\
**Post date:** [August 22, 2019, 1:27pm UTC](https://community.bloomreach.com/t/importing-imagelink-not-working/1353/2 "2019-08-22T13:27:35Z")

</div>

Hi,

You should import the binary images before importing the documents which reference the binary images, like the example demo scenario in Content-EXIM demo project:

- [https://bloomreach-forge.github.io/content-export-import/index.html#Demo\_Application\_with\_Hippo\_CMS\_12](https://bloomreach-forge.github.io/content-export-import/index.html#Demo_Application_with_Hippo_CMS_12)

Binary images are separate entities from documents themselves, so the former must be imported before the latter.

Regards,

Woonsan

---

<div class="post-metadata">

**Author:** ![binaykumar.singh](https://avatars.discourse-cdn.com/v4/letter/b/cdc98d/32.png) [@binaykumar.singh](https://community.bloomreach.com/u/binaykumar.singh)\
**Post date:** [August 22, 2019, 2:26pm UTC](https://community.bloomreach.com/t/importing-imagelink-not-working/1353/3 "2019-08-22T14:26:23Z")

</div>

Thank you woonsanko for your response. I am referencing existing images available in below mentioned path.

> [@binaykumar.singh](#):
>
> /content/gallery/myproject/banners/modern-quilted-cushion-header.jpg

But its not showing the image in document.

Thanks  
Binay

---

<div class="post-metadata">

**Author:** ![woonsanko](https://avatars.discourse-cdn.com/v4/letter/w/b5a626/32.png) [@woonsanko](https://community.bloomreach.com/u/woonsanko)\
**Post date:** [August 22, 2019, 4:00pm UTC](https://community.bloomreach.com/t/importing-imagelink-not-working/1353/4 "2019-08-22T16:00:03Z")

</div>

You also need to run “Cleaning Hippo Mirror Docbase Values” script after importing documents:

- [https://bloomreach-forge.github.io/content-export-import/tutorials-clean-mirror-docbase.html](https://bloomreach-forge.github.io/content-export-import/tutorials-clean-mirror-docbase.html)

Some background:

- Internally image reference compound nodes nested in the document variant node contains a JCR UUID to link to the image node.
- While exporting, it converts the internal UUID to path in JSON because the UUIDs cannot be compatible if you import the content into a different brXM env. e.g, test env to acct, acct to prod, etc.
- When importing, the image reference compound nodes still have the paths instead of UUID.
- Therefore, you run `Cleaning Hippo Mirror Docbase Values` script to convert the interim paths into mapped UUIDs. More info at [https://bloomreach-forge.github.io/content-export-import/index.html#Keep\_it\_simple\_stupid](https://bloomreach-forge.github.io/content-export-import/index.html#Keep_it_simple_stupid).

Regards,

Woonsan

---

<div class="post-metadata">

**Author:** ![binaykumar.singh](https://avatars.discourse-cdn.com/v4/letter/b/cdc98d/32.png) [@binaykumar.singh](https://community.bloomreach.com/u/binaykumar.singh)\
**Post date:** [August 23, 2019, 4:49am UTC](https://community.bloomreach.com/t/importing-imagelink-not-working/1353/5 "2019-08-23T04:49:23Z")

</div>

Thank you very much. This was it.
