# Import view.json with generated objects

**URL:** <https://forum.inductiveautomation.com/t/import-view-json-with-generated-objects/92522>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [June 28, 2024, 8:36am UTC](https://forum.inductiveautomation.com/t/import-view-json-with-generated-objects/92522 "2024-06-28T08:36:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Delfien\_De\_Witte](https://avatars.discourse-cdn.com/v4/letter/d/45deac/32.png) [@Delfien\_De\_Witte](https://forum.inductiveautomation.com/u/Delfien_De_Witte)\
**Post date:** [June 28, 2024, 8:36am UTC](https://forum.inductiveautomation.com/t/import-view-json-with-generated-objects/92522/1 "2024-06-28T08:36:28Z")

</div>

I want to import a view with all generated objects (for example valves, DI's, AI's, ...) in stead of dragging and dropping (and renaming the embedded view) for each object separate. In the export of the view I change the view.json with the generated objects. But if I import this again with this objects, it's an 'unknown' screen, maybe because the thumbnail.png is the old one? Has someone advice on this?  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/c/3ceb2deefc78d37dfa0c3bfaa0636458266c5044.png)

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [June 28, 2024, 12:14pm UTC](https://forum.inductiveautomation.com/t/import-view-json-with-generated-objects/92522/2 "2024-06-28T12:14:40Z")

</div>

How are you modifying the files?  
Like this, or with some extral program?

> [@Editing or Creating a Perspective View via Script](https://forum.inductiveautomation.com/t/editing-or-creating-a-perspective-view-via-script/50511):
>
> In case this helps anyone, here’s how you can modify (or create) a Perspective View (or any non-binary resource really) via script. You can call this from any gateway scope, including from a Perspective Button action. Note: the gateway only checks for file updates to resources every 5mins, so you won’t see changes in your client until then, but they will come through automatically. projectName = '' # e.g. 'AwesomeProject' viewPath = '' # e.g. 'Testing/View to Modify' from com.inductiveautomat…

Its definlty not about the thumbnail. but the gateway/designer do take some time to update these files if changed. Try restarting the gateway and designer to see if the changes went through.  
If a restart doesnt help than your file is maybe badly constructed, see if there are any logs

---

<div class="post-metadata">

**Author:** ![Nick\_Wilson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nick_wilson/32/80663_2.png) [@Nick\_Wilson](https://forum.inductiveautomation.com/u/Nick_Wilson)\
**Post date:** [June 28, 2024, 2:08pm UTC](https://forum.inductiveautomation.com/t/import-view-json-with-generated-objects/92522/3 "2024-06-28T14:08:34Z")

</div>

If you're getting an "unable to get the view config" error, then there's something wrong with the view.json file that you're importing.

I'd definitely run a system.project.requestScan() after importing that file. It will refresh all project resources, including your view.json.

> **[system.project.requestScan | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-project/system-project-requestScan)**
>
> Requests a manual scan of the projects directory in order to refresh projects and their resources.

[![](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/a/5a45d4da31e92478d2956a10ff060da57d3f5e6c.jpeg "Ignition Features: Scanning The Projects Directory") ](https://www.youtube.com/watch?v=LsDbOGm9frk)

---

<div class="post-metadata">

**Author:** ![Delfien\_De\_Witte](https://avatars.discourse-cdn.com/v4/letter/d/45deac/32.png) [@Delfien\_De\_Witte](https://forum.inductiveautomation.com/u/Delfien_De_Witte)\
**Post date:** [June 28, 2024, 7:15pm UTC](https://forum.inductiveautomation.com/t/import-view-json-with-generated-objects/92522/4 "2024-06-28T19:15:50Z")

</div>

Modifying/Generating the view.json file with generation tool. But started to add 1 object. Now I just exported a project and then adjusted a name "" and imported the same file again followed with the system.project.requestScan (to be sure there are no faults in the json file). The name is not changing. I'm just changing the view.json now and import =\> This project has already the following: .... =\> Overwrite All

---

<div class="post-metadata">

**Author:** ![Delfien\_De\_Witte](https://avatars.discourse-cdn.com/v4/letter/d/45deac/32.png) [@Delfien\_De\_Witte](https://forum.inductiveautomation.com/u/Delfien_De_Witte)\
**Post date:** [June 28, 2024, 7:21pm UTC](https://forum.inductiveautomation.com/t/import-view-json-with-generated-objects/92522/5 "2024-06-28T19:21:57Z")

</div>

Found this solution: It’s probably easier to do do piecemeal modifications entirely from the designer. Shift + Right Click a view node and you can copy/paste the view JSON directly. Thanks
