cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in XSJS query execution

rishav54
Active Contributor
0 Kudos
74

Hi All,

Recieved the error 500 conn.executeQuery is not a function.

While following the module, SAP HANA XS Advanced, Creating a Node.js Module

 

Whole other application is running fine. 

but only with /xsjs/hdb.xsjs extension to url facing this issue.

Thanks

 

View Entire Topic
HakanHaslaman
Product and Topic Expert
Product and Topic Expert
0 Kudos

The error typically occurs due to a mismatch in the database client API usage. In SAP HANA XS Advanced with Node.js, ensure that you are using the hdb module properly, as conn.executeQuery is no longer valid in the updated client as I know. Try using conn.exec(sql, callback) or conn.prepare for parameterized queries.

Double-check your database connection setup in your hdb.xsjs file to ensure compatibility with XS Advanced, and verify the configuration of your @SAP/hana-client and dependencies in package.json to match the module requirements.