Problem with Building Projects

Highlighted
Five Stars

Problem with Building Projects

Hello guys, we have a Problem. Im in Talend Version 7.0.1.20180411_1414. When i try to build my talend project and have more than one job under the project then one zip gets generated but its empty. Do you know that problem?


Accepted Solutions
Highlighted
Moderator

Re: Problem with Building Projects

Hello,

By default, when a Job is built, all the required jars are included in the .bat or .sh command. For a complex Job that involves many Jars, the number of characters in the batch command may exceed the limitation of command length on certain operating systems. To avoid failure of running the batch command due to this limitation, before building your Job, go to Window > Preferences, select Talend > Import/Export, and then select the Add classpath jar in exported jobs check box to wrap the Jars in a classpath.jar file added to the built Job.

Let us know if you can export multiple jobs within a folder.

Best regards

Sabrina

 

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

View solution in original post


All Replies
Highlighted
Moderator

Re: Problem with Building Projects

Hello,

By default, when a Job is built, all the required jars are included in the .bat or .sh command. For a complex Job that involves many Jars, the number of characters in the batch command may exceed the limitation of command length on certain operating systems. To avoid failure of running the batch command due to this limitation, before building your Job, go to Window > Preferences, select Talend > Import/Export, and then select the Add classpath jar in exported jobs check box to wrap the Jars in a classpath.jar file added to the built Job.

Let us know if you can export multiple jobs within a folder.

Best regards

Sabrina

 

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

View solution in original post

Highlighted
Five Stars

Re: Problem with Building Projects

That was what my problem solved. Thank you very much!

Highlighted
Moderator

Re: Problem with Building Projects

Hello,

Great it works. Thanks for your feedback and please feel free to post your issue on forum.

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Highlighted
Five Stars

Re: Problem with Building Projects

Ooops we just went over another error!

 

When we do what you mentioned earlier the default context properties dont get used! 

 

The local context variables are used in the multiple jobs under the project!

 

What can we do here?

Highlighted
Moderator

Re: Problem with Building Projects

Hello,

Did you follow up this online document about:TalendHelpCenter:Building Jobs to build your jobs?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Highlighted
Five Stars

Re: Problem with Building Projects

Yeah we worked like in that script, but our context variables used inside the job dont get used. 

 

We export the job to run it under a server task scheduler and there the Default.context file (Default.properties) isnt used. The local set context defaults are used instead.

Highlighted
Three Stars

Re: Problem with Building Projects

Hi Sabrina,

 

on my local Talend instance, I have defined an context variable like this:

tosContextBug4.PNG

Part of the variable is "TST"
To check the value of the variable, I did a "System.out.println" in a tFlexJava:
tosContextBug3.PNG
The part "TST" in the context variable then is replaced with with "LIV" by our CI-Server and deployed to our interface server:
tosContextBug.PNG

But executing the batch file on our interface server, the "System.out.println" still displays the "TST"-value:

tosContextBug2.PNG

 

 

So I think, the values in the context.properties-File are not recognized.

Highlighted
Moderator

Re: Problem with Building Projects

Hello,

Are you able to create your context variables in the repository?

Please have a look at this article about:https://community.talend.com/t5/How-Tos-and-Best-Practices/How-to-Create-Context-Variables-in-the-Re...

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog