@RobPi-8032 Based on the error message you received, it seems like there might be an issue with the format of the data being transferred from PostgreSQL to Azure AI Search service.
To correctly map fields from PostgreSQL to fields defined as StringCollection in the Azure Search Index, you need to ensure that the data being transferred is in the correct format. Specifically, the data needs to be in a JSON array format. Here are some steps you can follow to ensure that the data is in the correct format:
- Ensure that the data type on the Search Index side is set to 'StringCollection' - Collection(Edm.String).
- Ensure that the data being transferred from PostgreSQL is in a JSON array format. For example, if you have a field called "tags" that is defined as a StringCollection in the Azure Search Index schema, the data being transferred should look something like this: "tags": ["tag1", "tag2", "tag3"]
- When mapping the columns from PostgreSQL to the corresponding fields in the AI Search index, manually enter the column name in the textbox, or via editing the pipeline JSON.
If you have followed these steps and are still encountering the 'BadRequest' error, it might be helpful to check the Azure Search service logs for more information on the error.