Simple lookup in subgraph input mapping not working

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

Hi,

In order to resolve your issue please provide me with the following.

1. Your graph with its externalized dependencies (metadata, etc.). Please feel free to remove any sensitive information.
2. Version of your CloverETL Designer.
3. Whole run log containing the error. I need to see the whole stack trace.

If you don’t want to use this forum to share the information, you can use our [email=support@cloveretl.com:3q5mkd0w]support email[/email:3q5mkd0w].

Best regards,