Hi,
I have a subgraph component in a graph where I am setting certain fields in the input mapping for the subgraph component.
I have a simple lookup which I am using to try and set some dictionary input fields for the subgraph.
Let’s say there is an dictionary input called “uuid” for the subgraph.
The code in my input mapping looks like the following:
function integer transform() {
$out.1.id = dictionary.id;
$out.1.uuid = lookup(uuids_lookup).get("nn").uuid;
return ALL;
}
This is fine and the designer doesn’t complain - however when I apply this and leave editing that component I get the following error in the designer:
Description Resource Path Location Type
Subgraph component cannot be initialized.
Input mapping transformation failed.
Message: Transform failed!
Interpreter runtime exception on line 8 column 58
Caused by: java.lang.NullPointerException -> null
----------------------- CTL2 snippet -----------------------
8: $out.1.uuid = lookup(uuids_lookup).get("nn").uuid;
^^^^^^^^^^
----------------------- CTL2 snippet -----------------------
lookup: "uuids_lookup" returned NULL record for passed arguments
Call arguments:
[1] literal -> "nn"
Unexpected null value. main.grf /cc/graph NN_LG_INFERENCE CloverETL Job Problems
However there is a row in the simple lookup which has “nn” as its key, so why would it be returning null? If use the same thing inside other graph components, there seems to be no issue.
Can I not use a lookup inside a subgraph input mapping?
Cheers,
Aaron