-1

Getting Error (Invalid input 'Q': expected 't/T') while executing matching cypher query in Neo4j.

MATCH (company:COMPANY {name:'`X'SQUIRE COMMUNICATIONS PRIVATE LIMITED'}), 
      (cin:CORPORATE_IDENTIFICATION_NUMBER {number:'U64202TN2001PTC048084'}) 
CREATE (company)-[:IDENTIFIED_BY]-> (cin)
2

The problem is single quote (') in the data. To resolve use double quote instead of single quote(").

MATCH (company:COMPANY {name:"`X'SQUIRE COMMUNICATIONS PRIVATE LIMITED"}), 
      (cin:CORPORATE_IDENTIFICATION_NUMBER {number:'U64202TN2001PTC048084'}) 
CREATE (company)-[:IDENTIFIED_BY]-> (cin)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.