## The problem
Issue Azure/azure-sdk-for-python#37251 (closed, 22 comments): - **Package Name**: azure.search.documents - **Package Version**: 11.6.0b4 - **Operating System**: OSX, version: 14.6.1 - **Python Version**: 3.9.6 **Describe the bug** When attempting to use the azure-search-documents SDK, the encryption key provided is not accepted due to a type mismatch. The SDK does not handle the type correctly, leading to a failure during deserialization when creating the data source connection. As according to the Microsoft documentation, SearchResourceEncryptionKey object is passed, but an error arises, where an iterable type is expected for encryption key.

## What fixed it
This was a bug in azure-search-documents 11.6.0b4: SearchResourceEncryptionKey raised a 'not iterable' error when creating a data source connection because the SDK mishandled the encryption key type. Fix: upgrade azure-search-documents to 11.6.0b5 (shipped 2024-09-19), the reporter confirmed the issue resolved on the new pre-release. If you see type errors around SearchResourceEncryptionKey, check your package version first.