Split using Date as a condition not working in mapping data flow

AJ 0 Reputation points
2023-11-08T20:25:45.21+00:00

Hi,

I am running a data flow that separates the incoming data based on when the record was created. However, split condition does not give any true results when using date as a filter

User's image

User's image

The data in the column placement_startdate is valid and is in date format, being sourced from mysql

User's image

I tried switching from split condition to filter condition and still it doesn't work. I am at a loss what could be causing this.

TIA

tagging SatishBoddu-MSFT @KranthiPakala-MSFT @PRADEEPCHEEKATLA-MSFT

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,521 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Amira Bedhiafi 22,616 Reputation points
    2023-11-10T18:57:06.4266667+00:00

    You might be correct. If the placement_startdate column in your Azure Data Factory data flow is already in a date format, you might not need to use toDate for your comparison. The toDate function typically converts a string or a numeric type to a date type. If placement_startdate is already a date, this conversion would be redundant and could potentially cause issues.

    Instead, try using the condition directly like this:

    placement_startdate >= '2023-08-01'
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.