apache-ageopencypher

Error while loading edges from CSV file in Apache-AGE, Errors says: Label_id must be 1 .. 65535


I am using this query to load edges from a CSV file in agload_test_graph, this graph is already being created.

SELECT load_edges_from_file('agload_test_graph', 'has_city',
     '/home/kamleshk/age_installation/age-viewer/sample/DIRECTED[person&movie].csv');

The content of the CSV files is:

enter image description here

But it return error: Label_id must be 1 .. 65535

What mistake Am I doing?


Solution

  • You need to provide the IDs of both the start and end nodes, like this:

    start_id, start_vertex_type, end_id, end_vertex_type
    153     , City             , 3     , Country
    

    Make sure you've created the nodes first. Example files can be viewed here