Assignment 2 Level 3: Error: "For Each Row Object: Object reference not set to an instance of an object

Hello,

I’m having difficulties with my Process file in Uipath Assignment 2 Dispatcher. Every time I debug it gives me an error in the For Each Row activity. Trying to figure out how to get through this and successfully extract my data to the Orchestrator Queue for the Performer. Below I’ve given my variables and arguments and if any one could help it would be greatly appreciated.

Main.xaml (51.8 KB) Process.xaml (14.5 KB)
Generate_Yearly_Report_Dispatcher1.xaml (15.3 KB)

Hello @Dmtrs,
I was unable to check your Dispatcher assignment completely because you only uploaded the individual .xaml files.

Anyway, I would recommend that you double check your data scraping result (Extract Structured data Table) and make sure that you have properly set the Output variable for that data scraping table to dt_Workitems, as it is the variable that’s being used in the For Each row activity.

I’m guessing that the output variable set there is still the ExtractDataTable as it is the default one and you probably forgot to change it to dt_Workitems.

If the Output variable for the data scraping table is already dt_Workitems then I would recommend that you try changing its scope to ProcessTransaction.

If the above recommendations don’t work, then please upload your entire assignment folder so that I can check everything.

Have a great day! :vulcan_salute:

@Dmtrs

As per your screens, I saw that For each is failing as it requires input from the Data scrapped Table, where i believe that scraping is not working and it is not extracting the required results

You can alway try placing the output Datatable activity and check the results are coming or not using message box.

If it is not, I hope it will works once you fix that selector

Hope this helps

Thanks

I did what you suggested and now it’s just looping my first transaction.

Here is my dispatcher
Generate_Yearly_Report_Dispatcher.zip (506.3 KB)

I’m guessing that you forgot to add an increment to your TransactionNumber.

You should have one assign activity placed either in the:

  • Main> General Business Process > Get Transaction Data & after/below the invoked GetTransactionData.xaml

OR

  • Main> General Business Process > Process & after/below the invoked Process.xaml

The assign activity would be responsible for increment of the TransactionNumber by assigning
TransactionNumber = TransactionNumber +1

I’ll try taking a look at your assignment later.

Cheers! :vulcan_salute:

Thanks that helped a lot and now its only doing partial amount of the transactions I need. It’s doing 10/13.

Generate_Yearly_Report_Dispatcher (2).zip (1015.0 KB)

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.