cancel
Showing results for 
Search instead for 
Did you mean: 

AI Core secret does not match '^[a-z0-9\\-\\.]+$' - 'name'

Cocquerel
Active Contributor
0 Kudos

When creating a generic secret either with either web API or python SDK, I'm getting the following error:
'MY_GENERIC_SECRET' does not match '^[a-z0-9\\-\\.]+$' - 'name'
Status Code: 400, Request ID:None
It looks like it is doing the opposite check it should do for the name. From the documentation, the secret name is written without hyphens to make it simple to consume as a Unix environment variable later. It is written in capitals as is convention. (see https://help.sap.com/docs/sap-ai-core/sap-ai-core-service-guide/create-generic-secret?locale=en-US )
Capture d’écran 2024-03-25 085521.jpg

Accepted Solutions (1)

Accepted Solutions (1)

AndreasForster
Product and Topic Expert
Product and Topic Expert
0 Kudos

Even though the documentation mentions capitals, have you tried with a name that is only in lower case?

If that's also failing, another test to narrow this down, would be to create the secret through the UI. This blog has an example https://community.sap.com/t5/technology-blogs-by-sap/sap-ai-core-scheduling-sap-hana-machine-learnin...

Answers (0)