Hi ,
Thanks for reaching out to Microsoft Q&A.
Check Parameter Type in Data Flow
- You’re passing
@formatDateTime(utcNow(), 'yyyy-MM-dd HH:mm:ss.fff')
to the data flow. - Ensure the parameter (
p_sysupdate_dt
) in Data Flow Parameters is a string type, asformatDateTime
returns a string.
Ensure Proper Timestamp Conversion
- Your Derived Column Expression
fromUTC(toTimestamp($p_sysupdate_dt, 'yyyy-MM-dd HH:mm:ss.SSS'), 'Asia/Singapore')
$p_sysupdate_dt
is not being interpreted correctly as a timestamp, try:fromUTC(toTimestamp(toString($p_sysupdate_dt), 'yyyy-MM-dd HH:mm:ss.SSS'), 'Asia/Singapore')
- This ensures that the value is explicitly treated as a string before conversion.
Verify Sink Column Data Type
- The sink column must be of type
timestamp
ordatetime
. - If the sink expects
yyyy-MM-dd HH:mm:ss
, tryformat(toTimestamp($p_sysupdate_dt, 'yyyy-MM-dd HH:mm:ss.SSS'), 'yyyy-MM-dd HH:mm:ss')
- If using Synapse/SQL, ensure the column is
DATETIME2(3)
for millisecond precision.
Fix Column Availability Issues in Error Log
- The error DF-EXPR-009 indicates missing columns (
quote_item_id
,region
,form_number
,quote_number
). - This typically happens if:
- Joins or transformations dropped the columns before being referenced.
- The column names were changed in an earlier transformation.
- The source is not connected properly.
- The column names were changed in an earlier transformation.
- Joins or transformations dropped the columns before being referenced.
Fix to Try:
- Check whether the missing columns exist before being referenced.
- Add a Select transformation before the Derived Column and ensure those columns are available. Verify that the schema in the source and sink match.
- Test by Hardcoding a Value
- If issues persist, test by setting a hardcoded timestamp value. If this works, the issue is likely in how
p_sysupdate_dt
is being passed.fromUTC(toTimestamp('2024-03-05 12:00:00.000', 'yyyy-MM-dd HH:mm:ss.SSS'), 'Asia/Singapore')
- Confirm that
p_sysupdate_dt
is a string. - Ensure the timestamp format matches what
toTimestamp()
expects. - Check transformations (especially joins) to ensure required columns exist.
- Test with a hardcoded value to isolate the issue.
Please feel free to click the 'Upvote' (Thumbs-up) button and 'Accept as Answer'. This helps the community by allowing others with similar queries to easily find the solution.