--- title: "Error Executing Code: 'Wrong Argument Type for Function'" slug: "error-executing-code-wrong-argument-type-for-function" description: "This article provides a solution for the following error after upgrading Lasernet Connector: 'Error executing code: Wrong argument type for function'." tags: ["Lasernet Connector ", "Error message", "Upgrade", "AX2012", "Argument"] updated: 2026-02-26T12:58:52Z published: 2026-02-26T12:58:52Z canonical: "kb.lasernetgroup.com/error-executing-code-wrong-argument-type-for-function" --- > ## Documentation Index > Fetch the complete documentation index at: https://kb.lasernetgroup.com/llms.txt > Use this file to discover all available pages before exploring further. # Error Executing Code: 'Wrong Argument Type for Function' This article provides a solution for the following error after upgrading the Lasernet Connector: > [!CAUTION] > Error > > Error executing code: Wrong argument type for function. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-3JTSHSJ5.png) ### Resolution 1. Within AX, select **Lasernet**. 2. Select **Reports**. 3. Mark all SSRS reports. No Lasernet query reports should be selected. 4. In the top menu, click **Stylesheet** and then **Refresh**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-83Q9QIVU.png) ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-KAODY5S6.png) Printing should be available again.