Skip to main content

Error message during Compiling: 'The variable is not of the type CLASS' - Knowledgebase / AX2012 - Formpipe Support Portal

Error message during Compiling: 'The variable is not of the type CLASS'

Authors list

This article describes a solution for the following compilation error that can appear in AX 2012:

The variable is not of the type CLASS

Version 4.1.x.x and newer


Older versions


Resolution

This occurs if you have added an element with a custom code, but deleted the custom code class afterward. e.g. LACCustomCode3.

Version 4.1.x.x or newer

In the LAC class LACValueSource_CustomCode / newCustomCode uncomment the line with the missing LACCustomCodeX.

Older versions:

1. In the LAC class LACValueSource_CustomCode / construct uncomment the line with the missing LACCustomCodeX.

2. Save and compile only that class.

Helpful Unhelpful

Share