Skip to Main Content
Centre d’assistance Cognex
LogoLogo

An Unhandled Exception of Type ArgumentException

Workaround for one common cause of ArgumentException in EasyBuilder

15/09/2024

Details

Issue:

EasyBuilder Exception: “An unhandled exception of type ArgumentException occurred in the application's ResultsChanged event handler. The value is not valid for the parameters of the control.” 

Causes:

The problem is that there is a duplicated name of a tool.  The system tries to add an "_1" or "_2" to it to make it unique.  However, this goes beyond the maximum 32-character length and causes the exception.

Resolution:

  • Rename one of the tools.
  • If the job was created in EasyBuilder, you can also switch the view to Spreadsheet and rename the tools there.
  • If they look like they are almost identical, consider deleting one of them.

Ressources connexes