cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Python Unable to read Data

I'm trying to read data from python.
Here an example 
cypher = """
MATCH ()-[r:HAS_INVOICE {invoiceId: toInteger($invoice_id)}]->() RETURN r
{ .*} as invoice
"""
row = tx.run(cypher, invoice_id=id).single()
then I receive this error
in from_ordinal
raise ValueError("Ordinal out of range (1..3652059)")
ValueError: Ordinal out of range (1..3652059)

using the same query in Neo4j Browser  with '40624' as invoice_id

I receive only one record as expected

{
  "createdDate": "2022-08-04T18:16:04.989479000",
  "dueDate": "-0001-11-26T00:13:24",
  "invoiceNumber": "135",
  "invoiceState": "PAID",
  "currency": "EUR",
  "invoiceId": 40624,
  "expectedDate": "-0001-11-26T00:13:24",
  "updatedDate": "2022-08-04T18:16:04.989484000",
  "amountGross": "841.8"
}

Where I'm doing something wrong? 

Thank you 

1 ACCEPTED SOLUTION

Solved.

The problem was not due to Driver or something else expectedDate, dueDate are incorrect

Sorry guys 

It's wroking fine now

Regards

 

 

View solution in original post

1 REPLY 1

Solved.

The problem was not due to Driver or something else expectedDate, dueDate are incorrect

Sorry guys 

It's wroking fine now

Regards