Unknown connection string. Name: '$(1)' – Sitecore 10.1 Unicorn Error

Unknown connection string. Name: '$(1)' – Sitecore 10.1 Unicorn Error


If you are facing issue of “Unknown connection string. Name: '$(1)'” in Sitecore 10.1 then you can resolve this issue by changing in this config file “Unicorn.DataProvider.config”.

 <databases>  
     <database id="master">  
       <dataProviders>  
         <dataProvider ref="dataProviders/main">  
           <patch:attribute name="ref">dataProviders/unicorn</patch:attribute>  
         </dataProvider>  
       </dataProviders>  
     </database>  
     <database id="core">  
       <dataProviders>  
         <dataProvider ref="dataProviders/main">  
           <patch:attribute name="ref">dataProviders/unicorn</patch:attribute>  
         </dataProvider>  
       </dataProviders>  
     </database>  
 </databases>  
With this
 <databases>  
     <database id="master">  
       <dataProviders>  
         <dataProvider>  
           <param desc="headProvider">  
             <dataProvider ref="dataProviders/main" param1="$(id)">  
               <patch:attribute name="ref">dataProviders/unicorn</patch:attribute>  
             </dataProvider>  
           </param>  
         </dataProvider>  
       </dataProviders>  
     </database>  
     <database id="core">  
       <dataProviders>  
         <dataProvider>  
           <param desc="headProvider">  
             <dataProvider ref="dataProviders/main" param1="$(id)">  
               <patch:attribute name="ref">dataProviders/unicorn</patch:attribute>  
             </dataProvider>  
           </param>  
         </dataProvider>  
       </dataProviders>  
     </database>  
 </databases>  

Comments

Popular Posts