--- title: "'Function ProdRouteCardController.setRan ... wrong table.'" slug: "error-message-function-prodroutecardcontrollersetrange" description: "Users may receive the following error: 'Function ProdRouteCardController.setRange has been called with the wrong table'." updated: 2025-01-07T14:58:07Z published: 2025-01-07T14:58:07Z canonical: "kb.lasernetgroup.com/error-message-function-prodroutecardcontrollersetrange" --- > ## 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 Message: 'Function ProdRouteCardController.setRange Has Been Called with the Wrong Table' Users may receive the following error when printing the **ProdRouteCard** report from **Lasernet** > **Common** > **Reports**: > [!CAUTION] > Error > > Function ProdRouteCardController.setRange has been called with the wrong table. This error is a standard Dynamics error that is caused by the **ProdRouteCardController** class not finding the **Production order** origin. To resolve this issue, follow these steps: 1. Navigate to **Lasernet** > **Common** > **Reports**. 2. Ensure that **ProdRouteCard** in the **Report name** field is displayed. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/1622713270712.png) 1. Expand the **Archive** tab and locate the **Resend menu item** dropdown. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/1622713482517.png) 1. Click the **Editor** button next to the dropdown menu, click **Delete all**, and then **Clear**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/1622716554777.png) ### Run the Report The report should be running normally when the record itself is run in Dynamics 365. To run this report from the record in Dynamics 365, follow these steps: 1. Navigate to **Production control** > **Production orders** > **All production orders**. 2. Select the record and then click the **Release** option from the Action pane. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/1622714859890(1).png) 1. Click **General**, toggle the **Print route card** button to **Yes**, and select **Setup** to set options for your output distribution method. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/1622715292287.png)