cancel
Showing results for 
Search instead for 
Did you mean: 

UAA Service creation error

0 Kudos

Hi,

I am trying to create an UAA service with xs command applying -c option and getting the parsing error, seems like xs can't find the file and treats it like a JSON string:

hanadb:/hana/shared/HDB/xs> xs cs xsuaa default nodjs01-uaa -c xs-security.json

Creating service "nodjs01-uaa"... FAILED: Error parsing service broker parameters (must be JSON format): Unrecognized token 'xs': was expecting ('true', 'false' or 'null') at [Source: xs-security.json; line: 1, column: 3]

What are the prerequisites?

I did everything according to HANA_Developer_Guide and tried other options like: ./xs-security.json, full path, using XSA_ADMIN and another user.

HANA Version: 2.0 SPS01

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Do you in fact have a file in the path where you are executing this command called xs-security.json. What are the contents of your xs-security.json file?

Answers (2)

Answers (2)

0 Kudos

I copied the file to other folder and started xs command from it with the option -c ./xs-security.json and it worked.

0 Kudos

I created the file in WEBIDE in the root folder of an MTA. I can see it in the application folder as root OS user.

And I start xs command as SIDadm user from its home directory where there is no xs-security.json. I can't go to the application folder as SIDadm OS user - no rights. Do I need to have the file in a folder where I start xs command from?

Content:

{ "xsappname" : "example_node01", "scopes" : [ { "name" : "$XSAPPNAME.Display", "description" : "display" } ], "role-templates" : [ { "name" : "Viewer", "description" : "View all records", "scope-references" : [ "$XSAPPNAME.Display" ] } ] }