on 2025 Jan 08 4:29 AM
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
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
45 | |
9 | |
8 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.