Anyone can figure out whats wrong with my project

image
what does this mean?

Can you tell us what you are using the assign activity? @zumaho

Check out this blog for reference

image

im not entirely sure im just following a video, think its something like assigning the value to the data table.

The exception basically means you are trying to use an object to doesn’t exist because it hasn’t been created yet.

In your screenshot that either means the row object or the iemMatch object doesn’t exist.
You can add a breakpoint on that activity and look at the locals window to discover which. From there you can fix it by making sure that the objects are set to a value.

To explain it another way, you are telling it to do something with a row, but which row? If that object doesn’t exist yet then it doesn’t know which row to work with.

1 Like

Hi @zumaho

  1. Use Build data table activity

Keep 2 columns Field and value

image

  1. Use For each row in data Table

  2. Use Assign activity

row("Value") = System.Text.RegularExpressions.Regex.Match(YourString,"(?<=INVOICE\n\n)\S.*").Tostring

Do like this for all the rows and check it

1 Like

looks like the regex matches was empty / has not found a value

When relating to your other posts maybe the pattern has no match and you should enhance
(we mentioned the \r\n for windows line break handling)

In general you can do the rnd within the immediate panel:
Understanding the 6 Debugging Panels of UiPath in the easiest way possible! - News / Tutorials - UiPath Community Forum

and check / prototyping the regex directly:
[CheatSheet] - System.Text.RegularExpressions | RegEx - News / Tutorials - UiPath Community Forum

1 Like