Having a hard time in following the UiDemo Walkthrough from Level 3. Not sure why i am getting the below error when i do a test. Attaching the files, would be glad if someone can look and help on this.
From the screenshot, looks like you were running the workflow from _Test.xaml file which contains a couple of invokes to other workflow files, the arguments have no values passed on to them and thatâs the reason you are seeing the NullReferenceException.
Please try running it from Main.xaml file unless you were testing the invoked files, then pass the argument values.
Thanks for the Reply @PD2,
Yes, I have been testing the workflow from _Test.xaml file. I have been invoking 2 Workflow from this file i.e. InitAllSettings.xaml & InitAllApplications.xaml.
Look like as you mentioned i missed to pass in_Config Dictionary arguments for both the invoked workflows. However i am again stuck at the next step.
InitAllApplications.xaml workflow has an Open Application activity where i am passing the filename. When i pass the file as the actual path of my file then all seems to be working fine, however when i pass the filename as âin_Config(âUiDemoPathâ).ToStringâ as mentioned under the guide, i am again getting an error which states as below:
âInvoke workflow file: Open application âUIDemo (1).exe UiDemoâ : The system cannot find the file specified. (Exception from HRESULT: 0x80070002)â
I donât see any problem with the path under orchestrator. Not sure why its not taking it.
Ok, So I figured out the issue with the path now. However there is another issue related to passing of arguments between 2 invoked workflows.
I have 2 workflows under my _Test.xaml which invokes âInitAllSettings.xamlâ & âInitAllApplications.xamlâ workflows. I am storing âin_Configâ from âInitAllSettings.xamlâ & storing it under a local variable âConfigâ. So till here all looks fine.
Then I am passing the same Config variable to an in argument of âInitAllApplication.xamlâ workflow, however looks like no data is passed to the another workflow.
Due to no data being passed from the Config dictionary variable to the 2nd workflow, i am not able to pass the filepath to my âOpen Applicationâ activity.
Hi, I am doing the UiDemo prac and i did not get the point where the âThe in_Credential argument should have the in_Credential value.â. What does this mean, should i need to create a local variable in the login xaml where I am importing these arguements. If so what is the purpose of this variable
(i am a beginner)
It works fine for InitAllSetting.xaml but I got stuck with InitAllApplications.xaml.
The reason is that I canât open the UIDemo application because it has as argument : FileName : inConfig(âUiDemoPathâ).ToString.
This path is correctly retrieved from the Orchestrator in InitAllSetting.xaml however. But the output argument of the latter (out_Config) isnât pass to the input argument of InitAllApplications.xaml (in_Config) by RunAllTest.xaml
If you at the Invoke Test file activity inside RunAllTests, you will see that no arguments is pass to the called workflow. Why?
The only way to fix would be to define a default value for the path I guess