Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
billxu
Contributor
Contributor

Talend is not generating "getBytes" for data type "byte[]"

Hello,

Could any body please help on this?

Situation:

  • Using Talend to fetch data from AS400
  • There're some columns having wrong character set settings in AS400
  • Fetching these columns by getString will get unreadable characters or meet a conversion fail error

What I am doing:

  • Edited schema to change the type of these columns from String to byte[]
  • Added auto conversion for converting byte[] to String (by calling a custom routine)
  • Expecting a getBytes call will be added when assigning value of these columns.

 

I expect that there will be a block of code like " rs_tDBInput_1.getBytes " generated by Talend.

But Talend only generates an "if" block with an empty "else" block.

Please refer the attached screenshot.

 

So are there any steps I missed when doing such schema customizing?

Or how to solve this kind of code generating problem?

 

Best regards

Bill

Labels (2)
10 Replies
Anonymous
Not applicable

Hi

I suggest you to open a jira issue on our bugtracker for R&D team to investigate it and discuss directly with developers.

 

Regards

Shong

billxu
Contributor
Contributor
Author

Hello Shong,

 

Sorry for late reply.

I have created jira issue on your bugtracker.

 

It seems that your dev team are working on improving non-free versions only.

Hope this has already been fixed in non-free versions, and if it is possible you may consider apply fixes to free versions as well.

 

Anyway, I am using tJavaRow to fix this bug in my jobs. It's now not bothering me any more.

Thank you!

 

Best regards,

Bill

Anonymous
Not applicable

Hi @Bill Xu​  Thanks for your response, although a bit late. Our developers have responded to you with a request for more information.

billxu
Contributor
Contributor
Author

Hi Shong,

 

Not able to find my reported issue in Jira....

Not shown in "My Open Issue" or "Reported by Me"...

Searched it for about 30mins in all issues, still not found...😥

Anonymous
Not applicable

@Bill Xu​ here is the jira issue, can you confirm you can't see it?

https://jira.talendforge.org/browse/TDI-49926

This issue has been set to 'Talend internal (Only Talend employees will be able to see the issue)'.

 

billxu
Contributor
Contributor
Author

Tried to access it using issue no., but failed with "You can't view this issue"...😓

Anonymous
Not applicable

I am not familiar with JIRA permission issues, let me check with my colleagues internally.

Anonymous
Not applicable

We have changed the security level to 'None', you should be able to view it now. ;)

billxu
Contributor
Contributor
Author

Thank you! I replied the message from your dev team.