Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
08-18-2020 12:25 PM
After migration from 3.5.6 to 4.1:
properties with an invalid value: point({srid:4326, x:-999999999, y:-999999999}) cannot be REMOVEd or SET to NULL.
The -999999999 coordinates are missing values from my data. Cypher now throws an error whenever the nodes with such a property are referenced (e.g. RETURNed).
How can I get rid of these properties? Removing the properties or setting them to NULL fails with the same error as returning them:
Cannot create WGS84 point with invalid coordinate: [-9.99999999E8, -9.99999999E8].
Thanks,
Klaus
08-18-2020 02:45 PM
Hello @klaus.blass
Did you to SET a new Point Object?
Did you try something else than NULL, for example an integer or a string?
Regards,
Cobra
08-19-2020 12:00 AM
Hello Cobra,
I tried now setting it to a valid point, integer or string - always the same error.
Klaus
08-19-2020 12:36 AM
I never seen this type of error.
The next thing I would do is to recreate a database
08-19-2020 12:49 AM
I just tested with the 3.5.6 version of the database:
Everything works fine there. The point() value with the invalid coordinates can be referenced, the node containing the property is returned without any problem, etc.
In 4.1:
if I create a property with point({srid:4326, x:-999999999, y:1.1})
it is accepted and sets the property to point({srid:4326, x:81, y:1.1})
if I set it to point({srid:4326, x:1.1, y:-999999999})
it throws the error:
Cannot create WGS84 point with invalid coordinate: [-9.99999999E8, -9.99999999E8]. Valid range for Y coordinate is [-90, 90].
08-19-2020 01:19 AM
I just check the documentation, can you put x and y in first and srid in last position?
08-19-2020 02:08 AM
I just tried, same thing.
08-19-2020 02:30 AM
Can you try without srid?
08-19-2020 03:17 AM
Same thing.
The problem is that whenever you reference the property or even the node containing it, the query is abandoned with this error in version 4.1.
In 4.1 you cannot create such invalid coordinates, but in 3.5 you could! And migrating to 4.1 leaves you without a method to rectify this situation. The whole node cannot be used any longer.
I think Neo4j developers should look into this, it doesn't seem logical to prevent removing a property with an illegal value. And why does the error occur for the latitude but not for the longitude?
Thanks for your attempts to solve this,
Klaus
08-19-2020 03:34 AM
No problem, I will link them this ticket
08-19-2020 09:38 AM
Thank you, this would be great.
All the sessions of the conference are now available online