I don't get it.
I had this expression and it didn't work.
IF @LocationName <> NULL AND
@Latitude <> NULL AND
@Longitude <> NULL AND
@Zoom <> NULL AND
@MapTypeId <> NULL
BEGIN
...
END
I changed it to this expression.
IF @LocationName Is NOT NULL AND
@Latitude Is NOT NULL AND
@Longitude Is NOT NULL AND
@Zoom Is NOT NULL AND
@MapTypeId Is NOT NULL
BEGIN
...
END
And it worked...
WTH?