Consolidate invokes - paste nodes from invoked files into main file

Dear all,

I’m trying to solve a quite difficult problem. I would like to consolidate invokes i.e. paste nodes from invoked files into main file. This code will at the end be able to diagnose multiple aspects of a robot.

In order to do that I should
-use the import nodes function (to import from one xaml to another xaml)
-use the append nodes (or replace node) function.

As you can see from my code in attachment, I get a “reference not set to an instance of an object” error.

Maintenance Bot Andreas Test.zip (9.3 KB)

Why? Your help is greatly appreciated.
Thanks
Gennaro

I believe your issue is with code in test1.

Read PDF: Anonymously Hosted DynamicMethods Assembly : Object reference not set to an instance of an object.

You have inConfig as arguments there - and I don’t see inConfig added into argument / read in.

Hi Kemal,

actually you should only open Main, because Test1 and Test 2 are the xml that should be read by Main.

Please run Main :slight_smile:
Many thanks
Gennaro

I did - and Main returned the error because it’s invoking test1 - so I believe your error is coming from test1 (invoked into Main).

Do a quick change to test1 by removing inConfig and hardcode PDF URL and re-run.

PS. I did not check test2.

Hi @Kemal

the Main does not invoke anything, but it just analyses the code of xaml files…

Thanks
Gennaro