I have a question regarding REGEX-Matches. I loop through a Datatable which variables are empty sometimes. If they are empty, I get the error code “Object reference not set to an instance of an object” when trying to assign it to a variable. What is a good way to solve this? String.IsNullorEmpty doesn’t work properly.
Thanks a lot
You can try with ISMATCH activity
We can check with the Success Property if there was a match or not
With isNothing(YourVar) we can check if the variable is null or not
You can validate, through the “Result”, if there is a match or not.
You can also put your regex sequence inside a try catch where in the catch you put the variable empty.
Thank you for your answers. Try Catch is a simple and good idea. I solved it this way.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.