In Azure Data Factory (ADF), when using a Copy activity, the mapping section expects the data types to match the schema defined for the sink. The error you are encountering, "Expression of type: 'Array[Any]' does not match the field: 'value'. Expected type is 'String'," indicates that the Copy activity is interpreting the array as a string rather than maintaining it as an array.
To resolve this issue, you need to ensure that the variable you are passing is correctly formatted and that the target schema in your sink can accept an array type. If the sink expects a string, you will need to convert the array to a string format (e.g., JSON string) before passing it.
If you want to maintain the array structure, you might need to consider using a Data Flow instead of a Copy activity, as Data Flows provide more flexibility for transforming and handling complex data types, including arrays.
References: