# Error while moving app to another instance: Unable to read properties of undefined (reading 'message')

Hi all

I am encountering an issue while attempting to migrate my application between two instances. Here are the details:

Current Process:
- Exported the app as JSON from Instance A using "Export to JSON"
- Attempted to import in the new instance (instance B) using "From JSON/ZIP" option under the create app button

Error Message Received:
"Failed import: Unable to read properties of undefined (reading 'message')"

Could you share me the guidance on resolving this error or share the correct procedure for migrating apps between instances?

When I attempted to import the app back into Instance A (the original instance), the process worked without any issues.

Great thanks,
Blue

Hey BlueL!

The two most common issues that occur here:

  • resources need to be named consistently across the environments or imports won't work
  • if you're using modules, those need to be imported first in order not to break cross-linking

On a different note best practice here would be setting up source control and migrating resources, apps, modules with that mechanism instead of doing it manually.

Hope that helps!

Hi @stefancvrkotic
Yes, I have already imported my module into those instances and just revised the resource name. However, the same error message still appears when I try to import my app. :sob:

Here is the error message:
image
I can send you my json files if needed. T . T

In addition, source control is not suitable for my situation since my current app is built on a free instance, and I want to move it to one with a business license. Neither instance has an enterprise license...

Hey @BlueL! Thanks for reaching out.

In addition to the potential issues that @stefancvrkotic mentioned, it's also possible that you are missing Query Library queries. On another note, do both instances in question live in the Retool cloud? Or is either self-hosted?

Feel free to send me the JSON export of the app that you're trying to move and I'll take a look!