Difference between xConnect model versions

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












3















I've deployed 2 versions of a custom xConnect model I created called DetailModel.

According to the documentation, the xConnect models' unique name is name of model + version.




The model’s full name (represented by the FullName property of the
XdbModel class) includes the model’s name and version. For example:
DocumentationModel,1.0.




Described here: https://doc.sitecore.com/developers/90/sitecore-experience-platform/en/create-a-model.html



I have deployed both models:



  • DetailModel, 0.1.json

  • DetailModel, 0.2.json

But I get an error in xConnect and the IndexWorker regarding: different models with the same names are referenced.



2019-03-11 12:08:56.970 +01:00 [Error] Exception occurred during instantiating of IndexerHost.
Sitecore.XConnect.Schema.DuplicateXdbModelNameException: Different models with the same names are referenced ('DetailModel')
at Sitecore.XConnect.Schema.XdbModel.AddAndValidateModelAndTypes(XdbModel model, HashSet`1 visited)
at Sitecore.XConnect.Schema.XdbModel.AddAndValidateModelAndTypes(XdbModel model, HashSet`1 visited)
at Sitecore.XConnect.Schema.XdbModel..ctor(String name, XdbModelVersion version, XdbNamedType types, XdbFacetDefinition facets, XdbModel referencedModels)
at Sitecore.XConnect.Schema.XdbRuntimeModel..ctor(XdbModel models)
at Sitecore.XConnect.Search.Indexer.Extensions.UseXConnectModel(IServiceCollection services, DirectoryInfo modelsPath)
at Sitecore.XConnect.Search.Indexer.IndexerHost.GetDiServiceProvider(IConfiguration config, String modelDirectory, EventHandler configOrModelChangedHandler)
at Sitecore.XConnect.Search.Indexer.IndexerHost..ctor(IConfigurationRoot config)
at Sitecore.XConnect.Search.Indexer.IndexerAppDomainHost.IndexerHostAppDomainBridge..ctor()


Why am I getting this error? I would assume that it is possible to have multiple versions deployed.










share|improve this question


























    3















    I've deployed 2 versions of a custom xConnect model I created called DetailModel.

    According to the documentation, the xConnect models' unique name is name of model + version.




    The model’s full name (represented by the FullName property of the
    XdbModel class) includes the model’s name and version. For example:
    DocumentationModel,1.0.




    Described here: https://doc.sitecore.com/developers/90/sitecore-experience-platform/en/create-a-model.html



    I have deployed both models:



    • DetailModel, 0.1.json

    • DetailModel, 0.2.json

    But I get an error in xConnect and the IndexWorker regarding: different models with the same names are referenced.



    2019-03-11 12:08:56.970 +01:00 [Error] Exception occurred during instantiating of IndexerHost.
    Sitecore.XConnect.Schema.DuplicateXdbModelNameException: Different models with the same names are referenced ('DetailModel')
    at Sitecore.XConnect.Schema.XdbModel.AddAndValidateModelAndTypes(XdbModel model, HashSet`1 visited)
    at Sitecore.XConnect.Schema.XdbModel.AddAndValidateModelAndTypes(XdbModel model, HashSet`1 visited)
    at Sitecore.XConnect.Schema.XdbModel..ctor(String name, XdbModelVersion version, XdbNamedType types, XdbFacetDefinition facets, XdbModel referencedModels)
    at Sitecore.XConnect.Schema.XdbRuntimeModel..ctor(XdbModel models)
    at Sitecore.XConnect.Search.Indexer.Extensions.UseXConnectModel(IServiceCollection services, DirectoryInfo modelsPath)
    at Sitecore.XConnect.Search.Indexer.IndexerHost.GetDiServiceProvider(IConfiguration config, String modelDirectory, EventHandler configOrModelChangedHandler)
    at Sitecore.XConnect.Search.Indexer.IndexerHost..ctor(IConfigurationRoot config)
    at Sitecore.XConnect.Search.Indexer.IndexerAppDomainHost.IndexerHostAppDomainBridge..ctor()


    Why am I getting this error? I would assume that it is possible to have multiple versions deployed.










    share|improve this question
























      3












      3








      3








      I've deployed 2 versions of a custom xConnect model I created called DetailModel.

      According to the documentation, the xConnect models' unique name is name of model + version.




      The model’s full name (represented by the FullName property of the
      XdbModel class) includes the model’s name and version. For example:
      DocumentationModel,1.0.




      Described here: https://doc.sitecore.com/developers/90/sitecore-experience-platform/en/create-a-model.html



      I have deployed both models:



      • DetailModel, 0.1.json

      • DetailModel, 0.2.json

      But I get an error in xConnect and the IndexWorker regarding: different models with the same names are referenced.



      2019-03-11 12:08:56.970 +01:00 [Error] Exception occurred during instantiating of IndexerHost.
      Sitecore.XConnect.Schema.DuplicateXdbModelNameException: Different models with the same names are referenced ('DetailModel')
      at Sitecore.XConnect.Schema.XdbModel.AddAndValidateModelAndTypes(XdbModel model, HashSet`1 visited)
      at Sitecore.XConnect.Schema.XdbModel.AddAndValidateModelAndTypes(XdbModel model, HashSet`1 visited)
      at Sitecore.XConnect.Schema.XdbModel..ctor(String name, XdbModelVersion version, XdbNamedType types, XdbFacetDefinition facets, XdbModel referencedModels)
      at Sitecore.XConnect.Schema.XdbRuntimeModel..ctor(XdbModel models)
      at Sitecore.XConnect.Search.Indexer.Extensions.UseXConnectModel(IServiceCollection services, DirectoryInfo modelsPath)
      at Sitecore.XConnect.Search.Indexer.IndexerHost.GetDiServiceProvider(IConfiguration config, String modelDirectory, EventHandler configOrModelChangedHandler)
      at Sitecore.XConnect.Search.Indexer.IndexerHost..ctor(IConfigurationRoot config)
      at Sitecore.XConnect.Search.Indexer.IndexerAppDomainHost.IndexerHostAppDomainBridge..ctor()


      Why am I getting this error? I would assume that it is possible to have multiple versions deployed.










      share|improve this question














      I've deployed 2 versions of a custom xConnect model I created called DetailModel.

      According to the documentation, the xConnect models' unique name is name of model + version.




      The model’s full name (represented by the FullName property of the
      XdbModel class) includes the model’s name and version. For example:
      DocumentationModel,1.0.




      Described here: https://doc.sitecore.com/developers/90/sitecore-experience-platform/en/create-a-model.html



      I have deployed both models:



      • DetailModel, 0.1.json

      • DetailModel, 0.2.json

      But I get an error in xConnect and the IndexWorker regarding: different models with the same names are referenced.



      2019-03-11 12:08:56.970 +01:00 [Error] Exception occurred during instantiating of IndexerHost.
      Sitecore.XConnect.Schema.DuplicateXdbModelNameException: Different models with the same names are referenced ('DetailModel')
      at Sitecore.XConnect.Schema.XdbModel.AddAndValidateModelAndTypes(XdbModel model, HashSet`1 visited)
      at Sitecore.XConnect.Schema.XdbModel.AddAndValidateModelAndTypes(XdbModel model, HashSet`1 visited)
      at Sitecore.XConnect.Schema.XdbModel..ctor(String name, XdbModelVersion version, XdbNamedType types, XdbFacetDefinition facets, XdbModel referencedModels)
      at Sitecore.XConnect.Schema.XdbRuntimeModel..ctor(XdbModel models)
      at Sitecore.XConnect.Search.Indexer.Extensions.UseXConnectModel(IServiceCollection services, DirectoryInfo modelsPath)
      at Sitecore.XConnect.Search.Indexer.IndexerHost.GetDiServiceProvider(IConfiguration config, String modelDirectory, EventHandler configOrModelChangedHandler)
      at Sitecore.XConnect.Search.Indexer.IndexerHost..ctor(IConfigurationRoot config)
      at Sitecore.XConnect.Search.Indexer.IndexerAppDomainHost.IndexerHostAppDomainBridge..ctor()


      Why am I getting this error? I would assume that it is possible to have multiple versions deployed.







      xconnect






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 11 at 13:06









      Koen HeyeKoen Heye

      1,085522




      1,085522




















          1 Answer
          1






          active

          oldest

          votes


















          3














          Even though it seems confusing at first, but different XConnect model version does not make model unique only model name does. Model versions can be used for your own sake to keep track of different model versions. However, XConnect cannot handle two or more versions of the same model.
          On a related note, all referenced models have to have unique names as well (see the last section in Sitecore documentation:




          Model names must be unique across all referenced models, including second order references. For example:



          A model named CRM.Model cannot reference another model named CRM.Model



          A model named CRM.Model cannot reference Documentation.Model which in turn references another model named CRM.Model



          A DuplicateModelNameException exception is thrown if model names are not unique.







          share|improve this answer























          • Ok, I understand how it works better now. Removing the 'old' DetailModel, 0.1.json xConnect and the IndexWorker solved the error.

            – Koen Heye
            Mar 11 at 16:02











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "664"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsitecore.stackexchange.com%2fquestions%2f17353%2fdifference-between-xconnect-model-versions%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          3














          Even though it seems confusing at first, but different XConnect model version does not make model unique only model name does. Model versions can be used for your own sake to keep track of different model versions. However, XConnect cannot handle two or more versions of the same model.
          On a related note, all referenced models have to have unique names as well (see the last section in Sitecore documentation:




          Model names must be unique across all referenced models, including second order references. For example:



          A model named CRM.Model cannot reference another model named CRM.Model



          A model named CRM.Model cannot reference Documentation.Model which in turn references another model named CRM.Model



          A DuplicateModelNameException exception is thrown if model names are not unique.







          share|improve this answer























          • Ok, I understand how it works better now. Removing the 'old' DetailModel, 0.1.json xConnect and the IndexWorker solved the error.

            – Koen Heye
            Mar 11 at 16:02















          3














          Even though it seems confusing at first, but different XConnect model version does not make model unique only model name does. Model versions can be used for your own sake to keep track of different model versions. However, XConnect cannot handle two or more versions of the same model.
          On a related note, all referenced models have to have unique names as well (see the last section in Sitecore documentation:




          Model names must be unique across all referenced models, including second order references. For example:



          A model named CRM.Model cannot reference another model named CRM.Model



          A model named CRM.Model cannot reference Documentation.Model which in turn references another model named CRM.Model



          A DuplicateModelNameException exception is thrown if model names are not unique.







          share|improve this answer























          • Ok, I understand how it works better now. Removing the 'old' DetailModel, 0.1.json xConnect and the IndexWorker solved the error.

            – Koen Heye
            Mar 11 at 16:02













          3












          3








          3







          Even though it seems confusing at first, but different XConnect model version does not make model unique only model name does. Model versions can be used for your own sake to keep track of different model versions. However, XConnect cannot handle two or more versions of the same model.
          On a related note, all referenced models have to have unique names as well (see the last section in Sitecore documentation:




          Model names must be unique across all referenced models, including second order references. For example:



          A model named CRM.Model cannot reference another model named CRM.Model



          A model named CRM.Model cannot reference Documentation.Model which in turn references another model named CRM.Model



          A DuplicateModelNameException exception is thrown if model names are not unique.







          share|improve this answer













          Even though it seems confusing at first, but different XConnect model version does not make model unique only model name does. Model versions can be used for your own sake to keep track of different model versions. However, XConnect cannot handle two or more versions of the same model.
          On a related note, all referenced models have to have unique names as well (see the last section in Sitecore documentation:




          Model names must be unique across all referenced models, including second order references. For example:



          A model named CRM.Model cannot reference another model named CRM.Model



          A model named CRM.Model cannot reference Documentation.Model which in turn references another model named CRM.Model



          A DuplicateModelNameException exception is thrown if model names are not unique.








          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 11 at 13:56









          grggrg

          1,349213




          1,349213












          • Ok, I understand how it works better now. Removing the 'old' DetailModel, 0.1.json xConnect and the IndexWorker solved the error.

            – Koen Heye
            Mar 11 at 16:02

















          • Ok, I understand how it works better now. Removing the 'old' DetailModel, 0.1.json xConnect and the IndexWorker solved the error.

            – Koen Heye
            Mar 11 at 16:02
















          Ok, I understand how it works better now. Removing the 'old' DetailModel, 0.1.json xConnect and the IndexWorker solved the error.

          – Koen Heye
          Mar 11 at 16:02





          Ok, I understand how it works better now. Removing the 'old' DetailModel, 0.1.json xConnect and the IndexWorker solved the error.

          – Koen Heye
          Mar 11 at 16:02

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Sitecore Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsitecore.stackexchange.com%2fquestions%2f17353%2fdifference-between-xconnect-model-versions%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown






          Popular posts from this blog

          Peggy Mitchell

          Palaiologos

          The Forum (Inglewood, California)