• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » [resolved] Custom code putting line breaks in?!

#1 2011-01-21 13:52:31

gabbs
Member
Registered: 2010-03-17
Posts: 20

[resolved] Custom code putting line breaks in?!

I'm using 4.1.2 of open studio, I usually use 4.0.0RC1 as its less buggy but i've inheritted a project written in open studio 4.1.2. I've just written a custom code routine and put it into a tMap like so:

customFunctionsWithVeryLongName.fixEmail(row4.Email)


But when the job runs it gives and error saying it can't find customFunctionsWithVeryLongName class, after looking at the code its putting a carriage return after the class name and therefore breaking the code?!:


// # Vars tables

Var__tMap_3__Struct Var = Var__tMap_3;
Var.var1 = customFunctionsWithVeryLongName
.fixEmail(row4.Email);


I've tried having a tiny class name or very long (as above) to see if that makes a difference but doesn't seem too... any ideas?

Offline

#2 2011-01-21 20:36:52

vgalopin
Talend team
Registered: 2009-04-15
Posts: 442
Website

Re: [resolved] Custom code putting line breaks in?!

Hi gabbs,

1- Make sure your routine is created in your studio
2- Try to enter "routines." and then, do a Ctrl+Space. Check that your routine appears in the list displayed

Let me know if that helped.


Vincent Galopin
US Pre-Sales Consultant
Talend US

Offline

#3 2011-01-27 00:30:33

gabbs
Member
Registered: 2010-03-17
Posts: 20

Re: [resolved] Custom code putting line breaks in?!

Adding the "routines." did the job...

Thanks!

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » [resolved] Custom code putting line breaks in?!

Board footer

Powered by FluxBB