Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
spr654
Creator
Creator

parent child job issues

Hi,

 

I have a parent job that contains a Document (xml node, in fact). I have to pass it to a child job, then treat it, then pass another Document from the child job to the parent job. 

I have tried passing the element as Object. The conversion from Document to Object works, but then, the conversion from Object to document doesn't work. It looks like the conversion from Document to Object converts, in fact, into String. So when in the child job I try this:

 

row1.Element = (Document) context.Element;

 

I get the following exception: Cannot cast from String to Document.

 

Any help is welcome.

 

 

Labels (3)
2 Replies
navds
Creator II
Creator II

Have you tried tConvertType ?
spr654
Creator
Creator
Author

Hi,

 

I have tried tConverttype and other conversions, but nothing worked until I did uncheck "Use an independent process to run subjob". Now I don't even need to convert it. I pass it as Object in the parameters of the tRunJob component, and then, once in the child job, in the tJava component, I just do a cast to Document and it works: 

 

row3.Element = (Document) context.Element;

 

But thanks for your answer.