on 05-05-2015 10:46 AM
Hi,
I had run Hana initial load successfully. When I try to create a user, it gives the below error
"SAP DBTech JDBC: [257] (at 29): sql syntax error: zero-length delimited identifier""": line 1 col 29 (at pos 29)
java.lang.Throwable: SAP DBTech JDBC: [257] (at 29): sql syntax error: zero-length delimited identifier""": line 1 col 29 (at pos 29)
"
Anybody has any idea how to fix it?
Thank you very much.
Hi Oktay - have you checked if SAP note 2118228 - Creation of user in HANA fails due to JDBCDriverException can fix the issue ?
Thanks
Chris
Product Support
SAP AGS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The SQL statement used in the SAP HANA connector is something like (code taken from 72 SP7):
CREATE USER
$FUNCTION.custom_imdb_generateUserName(%MSKEYVALUE%)$$
PASSWORD $FUNCTION.sap_core_getPassword(%MX_ENCRYPTED_PASSWORD%)$$
The problem could be caused by either of the two functions returning an empty string.
To check, you could implement your own custom tracing function like:
function Z_TRACE(Par) { uWarning(Par); return Par; }
Then add a reference to this script to the job containing the above SQL statement, and finally modify the toDatabase pass by wrapping the original SQL code with a call to Z_TRACE, so it would finally look like:
$FUNCTION.Z_TRACE(
CREATE USER
$FUNCTION.custom_imdb_generateUserName(%MSKEYVALUE%)$$
PASSWORD $FUNCTION.sap_core_getPassword(%MX_ENCRYPTED_PASSWORD%)$$
)$$
The result of this modification will be that the SQL statement used by SAP IDM at runtime will be logged as a warning message, so you can see exactly what's wrong with it.
From the error message and specifically the column number 29 mentioned there, I assume that sap_core_getPassword returns an empty string in your case.
Best regards,
Lambert
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
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.