Difference between xConnect model versions

Clash Royale CLAN TAG#URR8PPP
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
add a comment |
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
add a comment |
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
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
xconnect
asked Mar 11 at 13:06
Koen HeyeKoen Heye
1,085522
1,085522
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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
DuplicateModelNameExceptionexception is thrown if model names are not unique.
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
DuplicateModelNameExceptionexception is thrown if model names are not unique.
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
add a comment |
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
DuplicateModelNameExceptionexception is thrown if model names are not unique.
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
add a comment |
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
DuplicateModelNameExceptionexception is thrown if model names are not unique.
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
DuplicateModelNameExceptionexception is thrown if model names are not unique.
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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