In the if activity I have used String.IsNullorEmpty(firstReference.ToString) And I have deleted the assign activity