Issue in uipath assignment 2 "Generate Yearly Reports"


I am working on second assignment “Generate Yearly Reports”. While running performer section, I am getting error in regular expression portion under extract vendor information workflow. It is trying to pick tax id but throwing error in regex. Please help to debug.

It looks like you’re passing variable Input to the regular expression instead of the tax id. In either case, the Input variable is not assigned at this point in the code, which causes the error.

@aravind_sairaman - please check the Get Text activity selector. Capture only the tax id and do the variable substring

TaxIDText.Split(Environment.NewLine.ToCharArray)(0).Substring("TaxID: ".Length)

<webctrl idx='1' tag='P' />

Make a variable to receive the 3 text lines values.

mystringArray = GetTextValue.Split(Environment.NewLine.ToArray,StringSplitOptions.RemoveEmptyEntries)

Then to receive the TaxID you just has to call the myStrinArray in this way


you also can get the other two values if needed like this:


Try this:

taxID = StrVendorInformationGetText.Split(":“c)(1).Trim().Split(” "c)(0)