on 06-13-2022 3:49 PM
Hello,
I am stuck in very unfamiliar situation in terms of reading a JSON array (with approx. 400 objects and each object with 3-4 attributes) in my nodeJS application. Using sap/hana-client: 2.6.61 and JSON Collections HANA HDI
Looking for help !
{
..
..
"matchingRecords": [{\"id\": \"20226131546121\", \"xId\": \"20226131334926521\", \"xVId\": \"20226131334924775\"}, {\"id\": \"202261315461213\", \"xId\": \"20226131334926521\", \"xVId\": \"20226131334924775\"}...]
..
..
}
Can you post your SQL query that's used to select matchingRecords? A likely problem is that you're returning what's described as an NVARCHAR(5000) column on the server in your query, so we only reserve 5000 * 4 (UTF-8 expansion) + 1 (NULL byte) bytes for the column on the driver (giving a total length of 20001).
To fix this, you can likely CAST("matchingRecords" AS CLOB) which will indicate to the server metadata to return a longer data type for the client to bind to.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.