Hello,
I have a requirement where I need to call multiple graphs by passing a parameter, e.g. the location of the input file to the DATA_READER component. I am trying to run the graph through RunGraph component and passing the parameter (location of the input file name) to that graph. However, in the graph’s DATA_READER component, I need to specify the URL of input file name, which should just be a placeholder, telling it that this parameter needs to be passed through RunGraph component. However, when I run the RunGraph component, I get the below error:
Component pre-execute initialization failed. File is unreachable: /u02/clover/cdes/${dataFileIn} caused by: java.io.FileNotFoundException: /u02/clover/cdes/${dataFileIn} (No such file or directory)
This is because I am specifying the file URL in the graph’s DATA_READER as ${dataFileIn}, which is not taken as a placeholder and is being evaluated for a location, which does not resolve to anything. I also tried to externalize the dataFileIn parameter in the RunGraph, but to no avail. Any help will be greatly appreciated.
Here is the code for RunGraph and the graph that I am trying to call from RunGraph:
Please let me know if I have missed some important detail or the code and I will post it.
Thanks!
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>