Conditional Split fails if value is NULL in SSIS

Your third condition should start with a ISNULL check again before you compare your values. Like the following:

!ISNULL(Source.Id) && !ISNULL(Destination.Id) && Source.Id == Destination.Id

You need to handle every column that can be NULL in your condition. Since you are comparing Id's, another option would be:

(ISNULL(Source.Id) ? 0 : Source.Id) == (ISNULL(Destination.Id) ? 0 : Destination.Id)

If comparing strings, you can replace the zeroes with blank spaces.


Alternatively you can use the following syntax:

REPLACENULL(Source.Id,0) == REPLACENULL(Destination.Id,0)

Tags:

Ssis