Hi,
You are using the correct transformer for the job, are there possibly spaces in the 'duplicates'? you can test that by calculating the lenght of the string.
Here the postcode are made of 4 numeric values and 2 alfanumeric so anything with a lenght bigger than 6 can contain white spaces and anything shorter are not valid postcodes.
Hi,
I agree that the "duplicate" postcodes could contain whitespaces.
In addition, in some countries, a postcode consists of digits and alphabet characters. If your postcode is so, check also case of alphabet. FME is generally case-sensitive when comparing character strings.
Takashi
Hi,
my postcode list does indeed have whitespaces and digits and alphabet
i.e. PL23 4NG. Will I need to remove the whitespace for the duplicate remover to work?
Thanks
Hi,
Not necessarly, it depends if the whitespace between the 3 and 4 in your example is correct.
My initial idea was to remove whitespaces before and after the string so that the duplicateremover can do its work. In case that the whitespces inbetween is correct you could try a regex to remove only the whitespaces before and after the string.
Brilliant, I will try that and let you know if I have any luck - thanks again!
FYI. The AttributeTrimmer can be used to remove leading and trailing excess whitespaces.
Additionally, if there are both uppercase and lowercase postcodes (e.g. "PL23 4NG", "pl23 4ng", "PL23 4ng" ...), consider using the StringCaseChanger to change every character to uppercase.
Hi guys, tried the attribute trimmer before feeding the data through the duplicate remover and it is working perfectly...thank you so much for all your help