# Neo4j desktop - Initialization error: TypeError: Cannot read property 'name' of undefined

**URL:** <https://community.neo4j.com/t/neo4j-desktop-initialization-error-typeerror-cannot-read-property-name-of-undefined/13198>\
**Category:** Desktop\
**Tags:** neo4j-desktop\
**Created:** [December 29, 2019, 12:04am UTC](https://community.neo4j.com/t/neo4j-desktop-initialization-error-typeerror-cannot-read-property-name-of-undefined/13198 "2019-12-29T00:04:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![manish\_giri\_me](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/manish_giri_me/32/2279_2.png) [@manish\_giri\_me](https://community.neo4j.com/u/manish_giri_me)\
**Post date:** [December 29, 2019, 12:04am UTC](https://community.neo4j.com/t/neo4j-desktop-initialization-error-typeerror-cannot-read-property-name-of-undefined/13198/1 "2019-12-29T00:04:43Z")

</div>

Two days back, I deleted some unused projects from Neo4j Desktop (to create more space to load my next dataset). Today, when I tried to start up Neo4j Desktop again, I get this error -

 ![Screen Shot 2019-12-28 at 6 28 23 PM](https://us1.discourse-cdn.com/flex021/uploads/neo4jcommunity/original/2X/d/d1894321dfe0fffabf09ea4c36f001cfd5716de4.png)

I tried restarting Neo4j Desktop several times, and each time, it's the same thing.

I checked the "developer tools" tab, and there is a whole bunch of stuff in the console. I put all of it in this [gist](https://gist.github.com/Manish-Giri/9231a6236ed4dc0f4073e68c8765ef75), if it helps.

Here's the relevant portion of the console which has this error message -

 ![Screenshot 2019-12-28 18 43 23](https://us1.discourse-cdn.com/flex021/uploads/neo4jcommunity/original/2X/2/28f68335560cae3ceed31b53bd2ed7a9313ddbee.png)

There are **several** questions on stack overflow where people report the exact same issue. Here's one from [SO](https://stackoverflow.com/questions/48998760/neo4j-initialization-error-typeerror-cannot-read-property-name-of-undefined) where Michael Hunger said on **March 1, 2018** that it was a known bug and it would be resolved in the next release.

Other reported issues - [1](https://stackoverflow.com/questions/50153885/neo4j-error-win-10-initialization-error-typeerror-cannot-read-property-n), [2](https://stackoverflow.com/questions/49878591/neo4j-initialization-error-typeerror-cannot-read-property-name-of-undefined), [3](https://stackoverflow.com/questions/49198296/neo4j-desktop-error-on-open-cannot-read-property-name-of-undefined)

The problem is that the suggested solution involves deleting this path - `~/Library/Application Support/Neo4j Desktop` and reinstalling Neo4j Desktop. I cannot do a reinstall since my thesis is on Neo4j, and all of my data (~around 400GB) is already on neo4j desktop. It also took me months to load all the datasets.

~~I'm hesitant to delete that folder even, in case it causes loss of data.~~ I cannot delete the `~/Library/Application Support/Neo4j Desktop` folder, because the folder size is ~400GB, approximately the same size as my datasets, so obviously my data is all in that folder.

I would appreciate any help, since I really need to finish loading my next dataset, where each relationship takes several hours to load, as it is.

- Neo4j version: 3.5.14
- Operating system: macOS Catalina
- Neo4j Desktop version: 1.2.3

---

<div class="post-metadata">

**Author:** ![elaine\_rosenber](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/elaine_rosenber/32/27409_2.png) [@elaine\_rosenber](https://community.neo4j.com/u/elaine_rosenber)\
**Post date:** [December 30, 2019, 2:14pm UTC](https://community.neo4j.com/t/neo4j-desktop-initialization-error-typeerror-cannot-read-property-name-of-undefined/13198/2 "2019-12-30T14:14:14Z")

</div>

Hello Manish,

My recommendation would be to:

1. Stop the database.
2. Copy the contents of the database folder somewhere for safe-keeping. (In Neo4j Desktop, you can go to Manage -\> Open Folder (for the database you are working on)
3. In the Finder window, navigate to the data/databases folder and copy the entire database folder.
4. Copy the contents of the graph.db folder somewhere for safe-keeping. (Important! This your backup!)
5. Uninstall Neo4j Desktop.
6. Reinstall Neo4j Desktop
7. Create a new local graph in a project.
8. Start the graph (this will create a new graph.db folder)
9. Stop the graph.
10. Copy the backup graph.db over the graph.db folder you just created.
11. Start the graph.

Hopefully, this will enable you to start fresh with your saved database.

Elaine

---

<div class="post-metadata">

**Author:** ![manish\_giri\_me](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/manish_giri_me/32/2279_2.png) [@manish\_giri\_me](https://community.neo4j.com/u/manish_giri_me)\
**Post date:** [December 31, 2019, 3:18am UTC](https://community.neo4j.com/t/neo4j-desktop-initialization-error-typeerror-cannot-read-property-name-of-undefined/13198/3 "2019-12-31T03:18:24Z")

</div>

Hello Elaine,

Thank You for responding to my post. The problem is regarding this step -

> [@elaine\_rosenber](#):
>
> (In Neo4j Desktop, you can go to Manage -\> Open Folder (for the database you are working on)

I can't even get to this point in Neo4j Desktop, because as soon as it starts up, I get the error screen. Here, I made a [video](https://www.dropbox.com/s/a8064oj1u33i3f4/Screen%20Recording%202019-12-30%20at%2010.03.45%20PM.mov?dl=0) to show you the problem more specifically.

I can manually naviagate to `Library/Application Suport/Neo4j Desktop/Application/neo4jDatabases` in Finder, and all my databases are in there, but each database is named with a code, such as `database-xxxxx-xxxx-xxxx-xxxx`, and without neo4j desktop, there is no way of knowing which of my database created through neo4j desktop corresponds to which `database-xxxxx` folder in `neo4jDatabases` (unless there is a trick to this I'm not aware of).

---

<div class="post-metadata">

**Author:** ![elaine\_rosenber](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/elaine_rosenber/32/27409_2.png) [@elaine\_rosenber](https://community.neo4j.com/u/elaine_rosenber)\
**Post date:** [December 31, 2019, 2:33pm UTC](https://community.neo4j.com/t/neo4j-desktop-initialization-error-typeerror-cannot-read-property-name-of-undefined/13198/4 "2019-12-31T14:33:25Z")

</div>

Since you cannot start Neo4j Desktop, I recommend that you copy ALL of the database folders somewhere for starters.

Is it possible for you to determine which folders to ignore because they have not been used in a while?

To figure out which database you want to save is to open a terminal window and navigate to the `bin` folder of a database, then type ./neo4j start

This will start the database and then you can access it in a Web browsers via localhost:7474 where you can see if it is the database you are interested in.

Then stop the database: ./neo4j stop

Then I would uninstall Neo4j Desktop, delete all files, and re-install and place the database of interest in the databases folder as graph.db.

Elaine
