RPA Devloper Foundation - Data Manipulation Practice 8 - Extract Email address with Regex

I’m working through this exercise and I am getting an error in the “For Each” object: “For Each: Object reference not set to an instance of an object.”

What am I doing wrong?

1 Like

What is your TypeArgument set to? It should be set to System.Text.RegularExpressions.Match

Yep - that’s what I have

Could you upload your workflow so we can take a look? It’s hard to troubleshoot using just a screenshot.

Here’s an example if you want to compare instead: RegExMatchesTest.xaml (7.1 KB)

Attached my workflowPractive 8 - Extract Email with Regex.xaml (7.5 KB)

FoundEmailMatches was never assigned so that’s why you get the error.

It should be:

1 Like

Hi NCheah. Could you try TypeArgument is set to Object

Thank you! This was it!

1 Like

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