I have a variable called FullName in my SSIS package. The variable has the following values:
Medix Borrowdale
Greenwood Bulawayo
Medix Angwa
The first word in the values above represents the Pharmacy name and the second the Branch name. For example Medix is the Pharmacy name and Borrowdale is the Branch name.
I am using the following expression in a derived column to create new columns based on the FullName variable. For example, to have the Branch name column i use the following expression:
TOKEN(@[User::FullName], " ", 2)
So for Medix Borrowdale this gives Branch column as "Borrowdale" which is correct. However, for Greenwood Bulawayo the branch names comes out as "wood Bulawayo" instead of Bulawayo. This happens when the Pharmacy name is more than 5 characters long.
What could be going wrong and what is the solution?
↧