The name does not denote a class, a table, or an extended data type
Views (1803)
Hello AX World,
Recently I had a problem. I kept getting a compilation error
"The name [Element name] does not denote a class, a table, or an extended data type"
Sometimes it happens if you reference a non-existing element. It was not the case.
Often it happens when you reference an element that is in the package that you haven't yet referenced in your model parameters. Like described in the post here (link). It was not the case either.
The problem was that I have created an enum extended data type (EDT) and forgot to set Extends property.
Whenever I've used the EDT it gave be the error. Once Extends property have been set, the problem went away.
Be aware and take care!
Recently I had a problem. I kept getting a compilation error
"The name [Element name] does not denote a class, a table, or an extended data type"
Sometimes it happens if you reference a non-existing element. It was not the case.
Often it happens when you reference an element that is in the package that you haven't yet referenced in your model parameters. Like described in the post here (link). It was not the case either.
The problem was that I have created an enum extended data type (EDT) and forgot to set Extends property.
Whenever I've used the EDT it gave be the error. Once Extends property have been set, the problem went away.
Be aware and take care!
This was originally posted here.
*This post is locked for comments