Skip to content

Neo4j bulk import fails: No label was specified for the node index in 'id:ID' #245

@c4jquick

Description

@c4jquick

Using csvs and bash script exported from ftm export-neo4j-bulk i am getting errors when importing into Neo4j Desktop

any ideas? @pudo

versions

macOS 26.3.1 (25D2128)
Neo4j Desktop 2 Version 2.1.3 (2.1.3)
followthemoney==4.3.3

java env from dbms in desktop instance:
openjdk version "21.0.8" 2025-07-15 LTS
OpenJDK Runtime Environment Zulu21.44+17-CA (build 21.0.8+9-LTS)
OpenJDK 64-Bit Server VM Zulu21.44+17-CA (build 21.0.8+9-LTS, mixed mode, sharing)
neo4j-admin 2025.11.2

export script

ftm export-neo4j-bulk works fine, creates folder w/ csvs/script

the generated neo4j_import.sh script has the following problem w/ neo4j im using. think this is for an older version but easily fixable. i can make a pr if ur interested in using this cmd format

# works
neo4j-admin database import incremental <db name> --force ...
# original 
neo4j-admin import --database=graph.db ...

fully fixed script

desktop="/Users/dardanus/Library/Application Support/neo4j-desktop"
export JAVA_HOME="$desktop/Application/Cache/runtime/zulu21.44.17-ca-jdk21.0.8-macosx_aarch64/"
$desktop/Application/Data/dbmss/dbms-04e69e6f-cb15-42a6-a26e-908bc7d09d77bin/neo4j-admin \
        database import incremental pep \
        --force --verbose \
        --id-type=STRING \
        --relationships=_links.csv \
        --nodes=_nodes.csv \
        --nodes=RealEstate.csv \
        --relationships=Ownership.csv \
        --nodes=Vehicle.csv \
        --nodes=Person.csv \
        --nodes=LegalEntity.csv \
        --relationships=Payment.csv \

import errors

the import starts ok but fails immediately with this error: No label was specified for the node index in 'id:ID'

also seems to be related to a null str (Cannot invoke "String.length()" because "str" is null) but i cant find any nulls in the csv, just blank strings

doesnt matter if i do full or incremental, same error

example node

"id:ID",":LABEL","caption","name","amount","address","alias","amountEur","amountUsd","country","createdAt","currency","description","keywords","modifiedAt","notes","previousName","program","publisher","publisherUrl","retrievedAt","sourceUrl","summary","topics","weakAlias","wikidataId","wikipediaUrl"
"entity:000044504e4b03630baf82dc4114f4c16f613e3d.d0833ede83bff05a9d59d559d70f801bc83c5d82","Thing;Asset;Value","something","asdfasdf","10000.0","","","","","","","","123 fake st","","","","","","","","","","","","","",""

notice the label value is ; sep but i think it should be : sep. even after fixing i get the same error

full trace attached neo4j-admin-exception-trace-2026-03-11.06.13.51.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions