The error you are encountering with the assert transformation in your Azure Data Factory flowlet appears to be related to how dynamic content expressions are processed in the assert description. Specifically, it seems that the pipeline is unable to resolve the column references within the assert transformation's dynamic expression, leading to the "No code found for stream" error.
Double-check the concat()
function and ensure it is correctly formatted.
concat('Validation failed for record with col1: ', toString(col1), ' and col2: ', toString(col2))
If any column (col1
, col2
, etc.) can be null
, use coalesce()
or handle nulls explicitly to prevent runtime errors.
Verify that the columns (col1
, col2
...) used in the assert description are accessible in the assert transformation.
If a column is derived or transformed earlier in the data flow, make sure its lineage is intact. This could involve:
- Explicitly passing the column downstream.
- Checking for schema drift if the column originates from a schema-drift-enabled source.
Use a simpler expression in the assert description to isolate the issue. For example:
concat('Validation failed for col1 = ', toString(col1))