We are facing issue in loading the custom config file post 8.2 to 9.2 upgrade.
Context
We had upgraded our 8.2 instance to 9.2 instance. Before the upgrade, we had disabled our custom config files. Once the upgrade is completed , we enabled the custom config files.
Problem statement
There are 30 custom config files.(custom1.config to custom30.config)
Each config file will have a key value
pair inside the DataTemplateconstants
node
While checking the custom config entries file in showconfig.aspx, we found the key value
pairs are not loaded properly.
Only the entries in the first custom1.config is loaded.
Entries from the other files as custom2.config .. custom30.config files are not loaded
Sample structure of config files
Custom1.config file
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<DataTemplateConstants>
Key Value 1
Key Value 2
.
.
.
Key Value 50
</DataTemplateConstants>
</sitecore>
</configuration>
Custom2.config file
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<DataTemplateConstants>
Key Value 1
Key Value 2
.
.
.
Key Value 30
</DataTemplateConstants>
</sitecore>
</configuration>
Custom3.config file
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<DataTemplateConstants>
Key Value 1
Key Value 2
.
.
.
Key Value 15
</DataTemplateConstants>
</sitecore>
</configuration>