Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
04-16-2020 02:11 AM
Hello,
I am getting a really strange error and cant find a solution for it.
Neo.ClientError.Statement.SyntaxError
Invalid input 'P': expected 'm/M' or 't/T' (line 2, column 3 (offset: 2))
"REPLACE(ProductLocation._productionTypeId, 'CS-'','')"
My Code ist basically just:
MATCH(p:ProductLocation)
REPLACE(p._productionTypeId, "CS-","")
RETURN p LIMIT 1
It is really weird, Thank you for your help in advance
Nils
Solved! Go to Solution.
04-16-2020 08:29 AM
Hi @nils.hahn
If your requirement is to update the property value then you need to set that
eg.
MATCH(p:ProductLocation)
set p._productionTypeId = REPLACE(p._productionTypeId, "CS-","")
RETURN p LIMIT 1
04-16-2020 08:29 AM
Hi @nils.hahn
If your requirement is to update the property value then you need to set that
eg.
MATCH(p:ProductLocation)
set p._productionTypeId = REPLACE(p._productionTypeId, "CS-","")
RETURN p LIMIT 1
04-16-2020 09:47 AM
Thanks a lot, that worked! Damn that I missed that.
All the sessions of the conference are now available online