Level 3 training Exercise 2 problem with Datatable arguments filtering and assign

Hi Guys,

I can assign the select to a datarow array right? because my workflow fails when I do.

I created a variable WIList an array of DataRows

When I try to assign

image

image

It faults (I was debugging and in the output pane)

image

This is within the init block of the main workflow

Main.xaml (57.4 KB)

The reason that this wasn’t working was because my datatable varriable dtworkitems was null as my Extract Structured Data activity wasn’t working because the default value of the datatable variable your Extract Structured Data activity outputs to, needs to be New System.Data.DataTable

You may forget to add the default when you create your own datatable variable (Extract Structured Data creates one for you with the correct default but I think in the walkthrough it suggests you create your own and it’s easy to forget the default value, why do we need to put a default in, I don’t know!)