Error message when you click "Attendance Transactions" in the Navigation Pane after you upgrade to Microsoft Dynamics GP 9.0: "Unhandled script exception: Wrong number of arguments"


Symptoms


Consider the following scenario:
  • You upgrade to Microsoft Dynamics GP 9.0.
  • You start Microsoft Dynamics GP 9.0.
  • In the Navigation Pane, you click Attendance Transactions in the HR & Payroll Lists section.
In this scenario, you receive the following error message:
Unhandled script exception: Wrong number of arguments passed to system 2808 from script 'VirtualField_AddToWindow'.

Resolution


To resolve this problem, delete a record from the SY07210 table. To do this, follow these steps:
  1. Follow the appropriate step, depending on whether you are using Microsoft SQL Server or Microsoft SQL Server Desktop Engine (MSDE):
    • If you are using SQL Server, start SQL Query Analyzer. To do this, click Start, point to
      Programs, point to Microsoft SQL Server, and then click
      Query Analyzer.
    • If you are using MSDE, start the Support Administrator Console. To do this, click
      Start, point to Programs, point to
      Microsoft Administrator Console, and then click
      Support Administrator Console.
  2. Run the following statement against the DYNAMICS database.
    Delete SY07210 where DICTID = 414
  3. Verify that you do not receive the error message that is mentioned in the "Symptoms" section. To do this, follow these steps:
    1. In the Navigation Pane, click HR & Payroll Lists.
    2. Click Attendance Transactions.