[resolved] How to use prejob in a job with enabled log&stat properties

Four Stars

[resolved] How to use prejob in a job with enabled log&stat properties

I used prejob in a job and it was working fine.But when i enabled the log and stats from project properties it is showing warning 
i.e. (`tprejob component found in this job , there must be only one totally,Please check it.`).
Please suggest me ,how to resolve this issue.
Please find the attached screen shot.
Thanks
Seventeen Stars

Re: [resolved] How to use prejob in a job with enabled log&stat properties

Check if you have tPreJob in a joblet probably. This will cover the first tPreJob component.
Where is your screenshot?
Four Stars

Re: [resolved] How to use prejob in a job with enabled log&stat properties

jlolling wrote:
Check if you have tPreJob in a joblet probably. This will cover the first tPreJob component.
Where is your screenshot?

Hello 
yes I called joblet by tprejob in a job.Actually I want to log all jobs event in database by using log and stats project properties.
But it is showing warning when i execute.but when I click on continue it work fine
Moderator

Re: [resolved] How to use prejob in a job with enabled log&stat properties

Hi,

Please show us your whole job design screenshot.

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.
Four Stars

Re: [resolved] How to use prejob in a job with enabled log&stat properties

Hello ,

I am attaching two screen shots of sample job design .
I have enables log and stats setting from project properties.
In one job I have called joblet by using tprejob i.e. (see file- Logging_JobLet_With_Prejob.png)  and it is showing error as I mentioned in my previous post.

But when I called  joblet in jobs flow without using tprejob (See file Logging_JobLet_Without_Prejob) then it was working fine.
However I tried the correct solution but it is not working as per my requirement .
I want to create a framework kind of thing where I can log all jobs error and events with my customize message and flow.
Please suggest me how can I create the above required structure .
I am beginner for  Talend ETL technology.

Thanks!

Seventeen Stars

Re: [resolved] How to use prejob in a job with enabled log&stat properties

Do you have an tPreJob component within your joblet? 
Four Stars

Re: [resolved] How to use prejob in a job with enabled log&stat properties

No there is not any prejob in joblet.
Four Stars

Re: [resolved] How to use prejob in a job with enabled log&stat properties

Please find the screenshot of joblet.

This is just a test joblet.
Seventeen Stars

Re: [resolved] How to use prejob in a job with enabled log&stat properties

Now I have no idea whats wrong here. I would try to build the job new step by step and check when the error occurs.
Four Stars

Re: [resolved] How to use prejob in a job with enabled log&stat properties

I have changed the project setting and enabled `Use statistics ` as shown in screen shot below.
It works fine when I disable the project setting for stat and logs.
Seventeen Stars

Re: [resolved] How to use prejob in a job with enabled log&stat properties

I would contact the support about this issue. You have a support subscription - use it.
Four Stars

Re: [resolved] How to use prejob in a job with enabled log&stat properties

jlolling wrote:
I would contact the support about this issue. You have a support subscription - use it.

ok..Thanks!

2019 GARNER 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

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Have you checked out Talend’s 2019 Summer release yet?

Find out about Talend's 2019 Summer release

Blog

Talend Summer 2019 – What’s New?

Talend continues to revolutionize how businesses leverage speed and manage scale

Watch Now

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog