You are not logged in.

Unanswered posts

#1 2011-03-16 17:53:10

txvincent
Member
42 posts

tJava_1 Component returning TalendString and TalendDate error

I have a map with a component called t_Java_1.  I am getting the follow errors when I run it.

TalendString cannot be resolved
TalendDate cannot be resolved


tJava_1 Component Code
***********************

// Get file name.
String fileName = (String)globalMap.get("tFileList_2_CURRENT_FILES");

// Parser logic to get the date from the file name.

int dotIndex = fileName.indexOf('.');
String loadDateStr = fileName.substring(dotIndex - 8, dotIndex);
Date loadDate = TalendDate.parseDate("yyyyMMdd", loadDateStr);

The file name is called JPM_BANK_CORR_20101128.txt

Thanks in advance for your help.

Offline

#2 2011-03-17 03:48:29

alevy
Member
1922 posts

Re: tJava_1 Component returning TalendString and TalendDate error

This is a bug.  You need to close the job, then right-click the job, select "Setup routine dependencies" and add the system routines.

Offline

Board footer