cancel
Showing results for 
Search instead for 
Did you mean: 

Python Unable to read Data

rinaldo_bonazzo
Node Clone
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

rinaldo_bonazzo
Node Clone

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

rinaldo_bonazzo
Node Clone

Solved.

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

Sorry guys 

It's wroking fine now

Regards

 

 

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

On November 16 and 17 for 24 hours across all timezones, you’ll learn about best practices for beginners and experts alike.