You have an issue with your request body in the ADF copy activity. Verify that pipeline().parameters.source_filter
is indeed a valid JSON string.
You can explicitly convert your JSON object to a string. Here’s how you can do it:
@string(pipeline().parameters.source_filter)
As an alternative approach, you can use a Web Activity to perform the REST API POST request. This can help isolate whether the issue is specific to the Copy Activity. Here’s how you can configure a Web Activity:
- URL: Set the endpoint of your REST API.
- Method: POST
- Headers:
{ "Content-Type": "application/json" }
- Body: Use the same parameter:
@string(pipeline().parameters.source_filter)