Errors; there are essentially two situations. One where the account number is not right and therefore WSIB can’t find it. The other situation is the company is not eligible due to premiums not being paid, too many safety issues that the WSIB has suspended them etc, "Not eligible for a clearance certificate". Ideally the errors file would distinguish between the two.
Looks like WSIB is now automatically renewing certificates a few days early, so searching for a clearance certificate just before expiry time now returns multiple certificates. The script right now returns the first certificate in the list, which appears to be the current certificate.
The script could be updated to output both certificates.
While testing on a machine with French localization, the lookups were timing out. Possibly the French version on the WSIB website was loading, and the selectors used to continue were different.