system.collections.generic.IEnumerable<system.text.regularexpressions.match> not taken my varibale scope

system.collections.generic.IEnumerable<system.text.regularexpressions.match> not taken my varibale scope

any one help

thanks
shaik

Hi @shaik.muktharvalli1

Please change the data type for MSISDN Matches

Regards

which one I have to taken , can you help @vrdabberu

if I have taken matchcollection it got wrong output , so :neutral_face:

please help

thanks
shaik

@shaik.muktharvalli1,

Change the data type of variable MSSIDN_Matches to System.Text.RegulerExpression.MatchCollection

Thanks,
Ashok :slight_smile:

Hi @shaik.muktharvalli1

Change the data type of the variable as below

image

Hope it helps!!

getting same error @pravallikapaluri

thanks
shaik

Hi @shaik.muktharvalli1

Please use the browse for types for that variable and then use the below

System.Collections.Generic.IEnumerable

After typing this you will get an dropdown

Select the System.Text.RegularExpressions.Match

Now click ok

Regards

I have selected correct data type @vrdabberu but getting error for those Matches varibales.

I have tried matchcollections but getting wrong output

please help

thanks
shaik

Have you changed anything from the code I have provided? @shaik.muktharvalli1

Regards

@shaik.muktharvalli1
Try using find matching patterns activity

No @vrdabberu

In local code working fine but in VM getting error particular Matches varibales

Regex.Matches is returning a MatchCollection
So MSSIDN_Matches
has to be of DataType:
System.Text.RegulerExpression.MatchCollection

When other Datatype is needed then we would have to convert it

I have tried MatchCollections getting wrong output

Thanks
shaik

this we would doubt, as the return is as mentioned.
What was done in detail. Please share with us the Variable definition of MSSIDN_Matches

HI @shaik.muktharvalli1

Remove the entire syntax and re-type it and let me know the update.

Regards

Ok @vrdabberu

Will update EOD sir

Thanks
Shaik

1 Like

Hi @vrdabberu

getting this error

please give solution what I have to do

thanks
shaik

Hi @shaik.muktharvalli1

Please check whether System.Text.RegularExpressions is present in imports panel.

Regards

yes present @vrdabberu

Can you please tell me the studio version that you are using in VM? @shaik.muktharvalli1

Regards