D365 Model not visible in Modal references (ModalA unable to reference ModalB)

Hi Friends,

Could you please help me with this. I have 2 models created in Ax. They have there own tables and classes in them.

Now I want to reference Modal A to Madal B.

Step 1:

I went to Dynamics 365 tab in VS and clicked Model Refernce.

When I select Modal A and tried to click " Next ", It showed all modals except my Modal B.

I am unable to refernece ModelB to Modal A with Standard microsoft approach.

Could you please tell how this can be resolved.

Just FYI, I opened Discriptor file to modify something from backend but I am unable to do that.

Thanks

Can you describe your packages, please? Maybe both models are in the same package, or the package containing model B is not actually called Model B.

Dear Martin, I am sorry for the late reply. Thanks a lot for your response. Let me check further and update you.

Thank you

HI Martin

I have total 5 models. Four of my models are in “Solution 1” and only One model is in “Solution 2”.

I am unable to reference Model A in Soltion1 to ModelB in solution 2.

I think I am confused with Package definition. I am assuming the Model itself is a package ( sitting backend in AOS folder in K disk.)

Each of my model has separate folder in K disk (5 modals I have, so 5 packages in AOS folder).

Can you please correct me how I can create a separate package for each model if I did something wrong.

I am still unable to reference ModalA to ModalB. Could you tell what steps I need to follow to resolve this problem?

Thanks

A package contains one or more models. The usual approach is having just one model per package, but I didn’t know whether it was your case or not. Both are represented by folders on disk - a package folder contains model folders.

When you create a new model, you get a dialog where you choose if you want to create a new package or use an existing package.

I’m not sure what you mean by Solution 1 and Solution 2. If you mean Visual Studio solutions, they don’t contain models. They contain projects and projects are associated with models. Maybe you’re trying to find a project name in the list of packages…

Thanks, Martin. Actually I rechecked and I found a separate package for each model and that does not have an issue.

Also Regarding solutions, Yes, you are correct, I mean them as Visual studio solutions.

My problem still exists even after multiple refreshments etc., I clearly see my models in Model view of AOT.

But some of the models are not visible while I am trying to reference them.

They are visible in few models only and I am not sure why that is happening.

Anyhow, That’s ok I will try to figure out this. Thanks a lot.

I can only guess, without more information from you.

My guess is: Model B already has a reference to Model A and trying to add a reference from Model A to Model B is wrong and therefore the system doesn’t allow you to do that. You would end up with something that can’t be compiled - before building Model A, Model B would have to be built, but before that, Model A would have to be built and so on…

Sure Martin, We appreciate your response.