Page 1 of 1

Precompilation failed as duplicate environmentvariable found

Posted: Fri Mar 08, 2013 1:38 am
by sree123
I have a job that needs a parameter.So I included the parameter in a parameter set and tried executing the job.Even though the parameter is in parameter set,the job aborts in stages wherever this parameter is used.Then I included the parametr in job defi eventhough its defined in parameter set.Then the job shows as "precompilation failed as duplicate environment variable found".

What may be the reason for this?

Thanks and regards .......

Posted: Fri Mar 08, 2013 1:46 am
by prasson_ibm
Hi,
Just remove that parameter from job and try to run.

Posted: Fri Mar 08, 2013 4:20 am
by jerome_rajan
Did you compile the job after adding the parameter to the parameter set?

Posted: Fri Mar 08, 2013 11:54 am
by priyadarshikunal
Which datastage version?? I presume it is 8.7 or later.

Did you migrate it from other version?

Posted: Fri Mar 08, 2013 6:28 pm
by jwiles
As the parameter is already part of a parameter set, there is no need to also add it to the job parameters: you have discovered what will happen when you do so.

What errors did you receive originally? Those are the errors you need to resolve. Perhaps it's how you reference the parameter or the data contained within in?

Regards,

Posted: Sun Mar 10, 2013 10:47 pm
by sree123
Ya i tried to execute the job by removing the parameter.But that time the job is getting aborted.

Posted: Sun Mar 10, 2013 10:48 pm
by sree123
Its DS 8.5......I didn't migrate it from anyother version

Posted: Mon Mar 11, 2013 12:46 am
by nikhil_bhasin
what data-type u gave it to the parameter?
sometimes in 8.7 if u include a single parameter in the job properties and datatype is kept as parameter/set it will not compile, try giving string as data-type to parameter

Posted: Mon Mar 11, 2013 8:26 am
by jwiles
But that time the job is getting aborted
And you have yet to provide us with what that error is. Also, it would be of help to know the value present in the variable and how you reference that variable in your job.

Regards,