-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)
Evan Carroll
  • 65,432
  • 50
  • 254
  • 507
Thirumal
  • 2,548
  • 3
  • 16
  • 24

1 Answers1

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)
ypercubeᵀᴹ
  • 99,450
  • 13
  • 217
  • 306
Thirumal
  • 2,548
  • 3
  • 16
  • 24