question

DhruvilDave-8114 avatar image
0 Votes"
DhruvilDave-8114 asked brtrach-MSFT answered

Provided key is not a valid CognitiveServices type key for the region of your search service.

I am working on azure search service and created indexer, indexes and skillsets. My system was working for last 2 months but i am getting error for last 3 days when indexer is run . It is giving me this error

124480-screenshot-2021-08-19-at-114722-am.png

I tried to find this error online but there was not any help on this error.
I checked that all my services are in US_EAST region.


As you can see in image it is not giving any error/warning but it is failing each time.

124498-screenshot-2021-08-19-at-115148-am.png


azure-cognitive-search
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

brtrach-MSFT avatar image
0 Votes"
brtrach-MSFT answered

@DhruvilDave-8114 We are sorry to hear you are encountering this error.

The last time we encountered this error, the solution was to correct the skillset key that was being used. Can you please double check that?

Skillsets are typically created either through the Import data portal option or through REST API. Please verify which method you are implementing.

If you are utilizing REST API, verify that your payload matches the following syntax.

https://docs.microsoft.com/rest/api/searchservice/create-skillset

  "cognitiveServices": {
    
     "@odata.type": "#Microsoft.Azure.Search.CognitiveServicesByKey",
    
     "description": "/subscriptions/5cb3cf34-4222-4971-8a5d-5c5093a78fff/resourceGroups/cognitive/providers/Microsoft.CognitiveServices/accounts/wagcogeastus",
    
     "key": "425dea31<suppressed>fd1257435"
    
   },

If you're implanting the above payload structure and it still fails or you are using the import data portal option, please describe what kind of cognitive services you are using.

We hope this resolves this issue. If not, please reply back so we can further assist you.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.