I am working on a process which has a master excel. This excel contains around 200K+ rows and 50+ columns. The first column is unique for all the row. In the process we are passing the data table to each workflow to get the result.
What I am thinking is to convert the whole data table to a dictionary of key being the unique column and its value being the rest of the data in a list.
But I am facing some issues in creating the dictionary. Need help on it.
I have attached a sample flow that I am working with. Sample.zip (10.6 KB)
Hey @HareeshMR
What I am trying here is to create a dictionary(System.Object, System.Collections.Generic.List<System.Object>).
The keys will have the unique value of the row and the list will contains the rest of the data for the row. This way, it will be more faster to get the data for a unique value compared to iterating through a data table.
So, You need to add the data to a list variable except the key name and then create and initialize a dictionary as dictionary = new dictionary( of object, System.Collections.Generic.List<System.Object>)
Then use add dictionary and assign the key and the list as value which you created above. I hope you are missing something here
Exactly the same thing I have done in my flow but for some reason after adding the values to list, when I assign the list to dictionary I am getting below exception.
Assign: Cannot create an L-value from the given expression with property ‘set_Item’ because the target object is null.
Still not sure what the error is …