--- title: "Error Message: 'No Metadata Class Defined for Data Contract Object'" slug: "error-no-metadata-class-defined-for-data-contract-object" description: "This article provides a solution for the following error that maybe appear in AX 2012: 'No metadata class defined for data contract object'." tags: ["Error message", "Metadata", "Lasernet Connector ", "AX2012"] updated: 2025-03-27T10:56:12Z published: 2025-03-27T10:56:12Z canonical: "kb.lasernetgroup.com/error-no-metadata-class-defined-for-data-contract-object" --- > ## 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: 'No Metadata Class Defined for Data Contract Object' This article provides a solution for the following error that maybe appear in AX 2012: > [!CAUTION] > Error > > No metadata class defined for data contract object. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-H1ITY7UR.png) This error is caused by custom code and occurs after an upgrade from an older Lasernet Connector version to 4.2.x.x. ### Resolution To correct this, go through all your **LACCustomCode** one by one and change the code according to the following image. This is an example from an older Lasernet Connector version and version 4.2.x.x: ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-9VVD744U.png)