Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

Importing models from a development environment to my local VM

(0) ShareShare
ReportReport
Posted on by 404

pastedimage1679827305208v1.pngHello everyone, i am trying to import model from a dev env to my local  VM, but when i finish import using CMD , i refreshed models in visual studio. when i do full build for the models imported, i get 10 errors.

Here are the errors i am getting:

  • Severity Code Description Project File Line Suppression State
    Error at Microsoft.Dynamics.AX.Framework.Database.Tools.SyncEngine..ctor(String metadataDirectory, String sqlConnectionString, SyncOptions options) 0
  • Severity Code Description Project File Line Suppression State
    Error at Microsoft.Dynamics.AX.Framework.Database.Tools.SyncEngine.Run(String metadataDirectory, String sqlConnectionString, SyncOptions options) 0
  • Severity Code Description Project File Line Suppression State
    Error at Microsoft.Dynamics.AX.Metadata.Storage.ErrorReportingHelper.ThrowMetadataReadCrossAssemblyDuplicateException[T](IList`1 artifactNames, IDictionary`2 modulesToArchives) 0
  • Severity Code Description Project File Line Suppression State
    Error at Microsoft.Dynamics.AX.Metadata.Storage.MetadataProviderFactory.CreateRuntimeProviderWithExtensions(RuntimeProviderConfiguration configuration, TableExtensionLoader tableExtensionLoader, MenuExtensionLoader menuExtensionLoader, FormExtensionLoader formExtensionLoader, EnumExtensionLoader enumExtensionLoader, SecurityRoleExtensionLoader securityRoleExtensionLoader, SecurityDutyExtensionLoader securityDutyExtensionLoader, DataEntityViewExtensionLoader dataEntityViewExtensionLoader, EdtExtensionLoader edtExtensionLoader, ViewExtensionLoader viewExtensionLoader, QuerySimpleExtensionLoader querySimpleExtensionLoader, MenuItemDisplayExtensionLoader menuItemDisplayExtensionLoader, MenuItemActionExtensionLoader menuItemActionExtensionLoader, MenuItemOutputExtensionLoader menuItemOutputExtensionLoader) 0
  • Severity Code Description Project File Line Suppression State
    Error at Microsoft.Dynamics.AX.Metadata.Storage.MetadataProviderFactory.CreateRuntimeProviderWithExtensionsUpdated(RuntimeProviderConfiguration configuration, TableExtensionLoader tableExtensionLoader, MenuExtensionLoader menuExtensionLoader, FormExtensionLoader formExtensionLoader, EnumExtensionLoader enumExtensionLoader, SecurityRoleExtensionLoader securityRoleExtensionLoader, SecurityDutyExtensionLoader securityDutyExtensionLoader, DataEntityViewExtensionLoader dataEntityViewExtensionLoader, EdtExtensionLoader edtExtensionLoader, ViewExtensionLoader viewExtensionLoader, QuerySimpleExtensionLoader querySimpleExtensionLoader, MenuItemDisplayExtensionLoader menuItemDisplayExtensionLoader, MenuItemActionExtensionLoader menuItemActionExtensionLoader, MenuItemOutputExtensionLoader menuItemOutputExtensionLoader, WorkflowTemplateExtensionLoader workflowTemplateExtensionLoader, WorkflowTaskExtensionLoader workflowTaskExtensionLoader, WorkflowApprovalExtensionLoader workflowApprovalExtensionLoader) 0
  • Severity Code Description Project File Line Suppression State
    Error at Microsoft.Dynamics.AX.Metadata.Storage.Runtime.RuntimeMetadataProvider..ctor(RuntimeProviderConfiguration configuration, Boolean extensions, ExtensionLoader`1 formExtensionLoader, ExtensionLoader`1 tableExtensionLoader, ExtensionLoader`1 enumExtensionLoader, ExtensionLoader`1 menuExtensionLoader, ExtensionLoader`1 securityRoleExtensionLoader, ExtensionLoader`1 securityDutyExtensionLoader, ExtensionLoader`1 dataEntityViewExtensionLoader, ExtensionLoader`1 edtExtensionLoader, ExtensionLoader`1 viewExtensionLoader, ExtensionLoader`1 querySimpleExtensionLoader, ExtensionLoader`1 menuItemDisplayExtensionLoader, ExtensionLoader`1 menuItemActionExtensionLoader, ExtensionLoader`1 menuItemOutputExtensionLoader, ExtensionLoader`1 workflowTemplateExtensionLoader, ExtensionLoader`1 workflowTaskExtensionLoader, ExtensionLoader`1 workflowApprovalExtensionLoader) 0
  • Severity Code Description Project File Line Suppression State
    Error at Microsoft.Dynamics.AX.Metadata.Storage.Runtime.SingleKeyedRuntimeProvider`1..ctor(RuntimeProviderConfiguration configuration, RuntimeModelManifestProvider modelManifestProvider, IDictionary`2 archives) 0
  • Severity Code Description Project File Line Suppression State
    Error at Microsoft.Dynamics.AX.Metadata.Storage.Runtime.SingleKeyedRuntimeProvider`1.GetPrimaryKeysNoCache() 0
  • Severity Code Description Project File Line Suppression State
    Error Log level - Error | Microsoft.Dynamics.AX.Metadata.Storage.MetadataReadCrossAssemblyDuplicateException: Runtime metadata is invalid because the same metadata artifact has been defined in multiple assemblies. \nFirst 10 conflicting names: Ex_Dimension. \nSee metadata events for complete list. 0
  • Severity Code Description Project File Line Suppression State
    Error syncengine.exe exited with code -1. 1
  • Suggested answer
    Komi Siabi Profile Picture
    Komi Siabi 12,759 Most Valuable Professional on at
    RE: Importing models from a development environment to my local VM

    Hi Mounir,

    [quote user="MounirDev"]also i moved all objects from this model to a new one, so i need to delete the old model since its useless.[/quote]

    That's is to say the original issue(error from Visual studio) had been resolved.

    If using ModelUtil.exe is still giving you an issue, please delete the model folder by...

    learn.microsoft.com/.../models

  • D365FO DEV Profile Picture
    D365FO DEV 404 on at
    RE: Importing models from a development environment to my local VM

    Hello sir,

    I am running CMD as admin, but still getting same error message.

    also i moved all objects from this model to a new one, so i need to delete the old model since its useless.

  • Suggested answer
    Komi Siabi Profile Picture
    Komi Siabi 12,759 Most Valuable Professional on at
    RE: Importing models from a development environment to my local VM

    Run the program as administrator.

    But, do you think deleting the model is the best way? Aren't there other objects in the model you want to delete?

  • D365FO DEV Profile Picture
    D365FO DEV 404 on at
    RE: Importing models from a development environment to my local VM

    okay, but can you tell me why i am getting this message when i try to delete a model?

  • Suggested answer
    Komi Siabi Profile Picture
    Komi Siabi 12,759 Most Valuable Professional on at
    RE: Importing models from a development environment to my local VM

    I never said you should delete the model. Please, delete the object from One of the models.

    You can do this from the model folder in PackageLocalDirectory.

  • D365FO DEV Profile Picture
    D365FO DEV 404 on at
    RE: Importing models from a development environment to my local VM

    If i try to delete the model  that has this object using cmd, im getting error saying "this app cant run on this pc,to find a version for your pc, check with the software publisher.

    and thats the command that i am executing:

    C:\AOSService\PackagesLocalDirectory\bin>ModelUtil.exe -delete -metadatastorepath="C:\AOSService\PackagesLocalDirectory" -modelname="Ex_Deleterecord"

  • Verified answer
    Komi Siabi Profile Picture
    Komi Siabi 12,759 Most Valuable Professional on at
    RE: Importing models from a development environment to my local VM

    Hello Mounir,

    When you check the second to the last error, object Ex_Dimension is present in 2 différents models.

    Check for it in the AOT explorer and delete it from one Model and rebuild.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,979 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,848 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans