Hi,
I am a beginner to development in AX 7. So I apologize if this is something I should know. I wanted to create an entity to extract some data from AX 7. I created a solution and project and then added an entity using the Wizard. I wanted to start simple so I added the InvenTable and EcoResProduct.
When I build the project I get the following error:
Error A reference to 'Dynamics.AX.Ledger, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' is required to compile this module.
Now I did some digging and see that I could import some of the references under C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions. Most of the references referred to in the warnings are there, however the Dynamics.AX.Ledger, from the error, is not.
Did i miss installing some library?
Thanks in Advance
Michael Morin
*This post is locked for comments
You can check this link
dhruvrthakar.blogspot.com/.../how-to-fix-error-reference-is-required.html
If the post is helpful in that it provides the solution, please mark as Verified to help other members.
Hi Gopal,
You need to update your model parameters and add a reference to ' ContactPerson ' package.
Hi Andre,
Its also working for me.
Regards
Arun
Hi all,
while working on Dynamics 365 - O report i come up with same error.
I encounter this error while build gets completed (Project consist of SSRS report object).
error "A reference to 'Dynamics.AX.ContactPerson, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' is required to compile this module".
I have run and competed Build and DB-Sync in VS.
Hi Andre,
I faced exactly same error while i was creating a custom entity to export released products along with some additional fields from products. Your suggestion helped me here, in my case a 'Currency' package was missing. I have referred that and error went out. Thanks!
That was exactly it. Under the model references there was a Ledger option. I checked it and everything builds.
Thank for you help.
Hi Michael,
You need to check how you created your model. In this case you would need to have an extension model and add more referenced models. I guess a ledger model should be referenced.
Using the Dynamic AX menu in VS you can update the model properties to add models as reference.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,232 Super User 2024 Season 2
Martin Dráb 230,064 Most Valuable Professional
nmaenpaa 101,156