One Star

MD5 cannot be resolved.

Bonjour,
I downloaded and install the MD5 Component into TOS. It is now installed under Code > Routines and I can see its name: "MD5 0.1"
I created a small expression in the Var section of a tMap which goes like this:
StringHandling.UPCASE(MD5.getHashString(Var.tel)) just to try it out.
When I execute my job I get:
Exception in thread "main" java.lang.Error: java.lang.Error: java.lang.Error: Problème de compilation non résolu :
MD5 ne peut pas être résolu
---- which means: (MD5 cannot be resolved)
When I look at the top of the code I cannot see MD5 class being listed:
package emploi___java.neo_slvq_01_bnqversmatchit_0_1;
import routines.Mathematical;
import routines.DataOperation;
import routines.Relational;
import routines.TalendDate;
import routines.TalendDataGenerator;
import routines.Numeric;
import routines.TalendString;
import routines.StringHandling;
import routines.system.*;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.math.BigDecimal;
import java.io.ByteArrayOutputStream;
import java.io.ByteArrayInputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.ObjectOutputStream;
import java.io.ObjectInputStream;
import java.io.IOException;
import java.util.Comparator;
Why is that and what should I do to make it so?
Thanks in advance for your help.
PM
1 REPLY
Community Manager

Re: MD5 cannot be resolved.

Hi
You need to import the custom routine into the job, right click on the job and select 'Setup routine dependencies' option, then import the user routines.
Best regards
Shong
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business