Regex Match Help ( Assign: Object reference not set to an instance of an object)

HI All,
I am using screen scraping to pull details from a parcel tracking website.
I have managed to write RegEx expressions for getting most of the information I need.
However, I am facing trouble getting 2 dates from the scraped text.

Even the RegEx builder on UiPath highlights the date. But when I run the robot, the CastIterator on the local variables shows nothing and then the assign activity throws the error.

The RegEx Pattern I have tested on various website that works is below:

(?<=Creation Date)\n.*.\n.*

The sample text is below:

hipment

Addresses

Attributes

Tracking Events

Attachments

ParcelAttachments






 Sequence No.
00000091204771497904
 Carrier
Customs Agency Services 
 Weight
2,22
 Creation Date
2021-07-28
    
 Carton No
00000091204771497904
 Carrier Service
Australia
 Volume
0,022
 Ship Date
2021-07-28
    
 Sender Reference

I will also need the Ship Date to be scraped from the text. It is also giving me the same problem.

I can’t understand why the RegEx builder recognizes the pattern but the robot throws the errors.

@Achal_Desai - Please check this…

Hope this helps…

That Worked!!! Thanks.
It looks like I really need to learn more about RegEx.
Can you recommend any good sources where I could learn about RegEx from the very basics?

@Achal_Desai - Good to know…Once you are done with your testing please mark my post as solution that helps others…

Please refer this page, this would be the nice start…

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