I have a Azure Synapse pipeline which we migrated from DEV environment to our Pre Prod environment. When I execute it via the debug option, the pipeline executes fine. However if I trigger it via 'Trigger Now' or via setting up a trigger the job fails at a particular data flow. This particular data flow uses a cache sink; so I am unable to set 'verbose logging'.
The manual execution and the trigger use the same run time.
Following is the error message that I have been receiving:
{ "errorCode": "BadRequest", "message": "The request failed with status code '"BadRequest"'.", "failureType": "UserError", "target": "Dataflowname ", "details": "" }
I agree with @celaodar. Debug runs the pipeline you see and provides the output on screen. However, trigger runs can be performed only when publishing the pipeline.
I have encountered a similar kind of issue with datatype mismatch between source and sink.
I received "BadRequest" status code like below:
Check the data flow transformations to ensure that they are correct and not causing any data type mismatches or other errors.
I have made necessary changes for the data types for the columns, and the pipeline ran successfully.