Hello and welcome to our community! Thanks... Invalid argument Can anyone help?

The actual error is occuring elsewhere in the code, but the try / catch mechanism is kicking in and thwarting your attempt to debug.