unable to compile new method in calss

Severity Code Description Project File Line Suppression State
Error A reference to ‘Dynamics.AX.SourceDocumentationTypes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’ is required to compile this module.

Unfortunately you forgot to provide any context. My guess it that it’s about D365FO and you’re trying to use a type from SourceDocumentationTypes package, but your model doesn’t have any reference to it.

Please make sure you explain your situation properly next time. And always attach a tag with your version (e.g. D365FO or AX 2012). Also, such question belong to the developer forum - I’ll move it there for you.

Hi Martin, I have created a new method in my class, to check if any journal already present or not which return the boolean value. But while building code it gives me above error.

Please see my response above. If my guess of the problem was correct, add the reference to your model. If my guess was wrong, it’s time for you to finally explain your situation.