I have a process that runs every night, and sometimes it will repeat multiple times in one night. However, approximately every two weeks, one of my Assign activities will error out saying “String was not recognized as valid DateTime.”
Below is a screenshot of the field I am pulling the date from. I need to pull this date off the screen, remove the forward slashes (using a Replace activity), add one date (using Assign-this is the part that errors), and then use that new date to reenter into the window.
In my Assign activity, I am using the following. This is the activity that causes the error.
I am not familiar with VB, and I got this code from a different topic on the forum. I am not sure why most days this works without error but then it will fail randomly.
Any help you can provide would be greatly appreciated.