function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
bretondevbretondev 

Error message when deploying Experience Site from Sandbox to Sandbox

Hello,

I am trying to deploy Experience Site from Sandbox to Sandbox with Workbench and package.xml.
I get following error :
You have specified duplicate language codes for the same language de in your bundle. Language codes must be unique. Remove duplicates and try again.

Error message :

User-added image

package.xml :
<?xml version="1.0" encoding="UTF-8" ?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>SRC_UX_DE</members>
        <members>Font_Family_Encode_Sans_Expanded</members>
        <name>StaticResource</name>
    </types>

    <types>
        <members>CA_ThemeLayoutLogin</members>
        <name>AuraDefinitionBundle</name>
    </types>

    <types>
        <members>deutschland</members>
        <name>CustomSite</name>
    </types>
    
    <types>
        <members>deutschland_C</members>
        <name>ExperienceBundle</name>
    </types>
    
    <types>
        <members>deutschland</members>
        <name>Network</name>
    </types>

    <version>52.0</version>
</Package>
force-app\main\default\experiences\deutschland_C\config\languages.json :
{
  "defaultCode" : "de",
  "defaultLabel" : "German",
  "id" : "33a3bb36-829b-4f2a-9bcb-345888e4ec13",
  "languages" : [ {
    "countryCode" : null,
    "fallbackLanguageId" : null,
    "id" : "5c694963-b7d0-448e-b909-c1929c54ed5c",
    "isActive" : true,
    "label" : "German - Deutsch",
    "languageCode" : "de",
    "type" : "language"
  } ],
  "type" : "languageContainer"
}


 
Best Answer chosen by bretondev
ShivankurShivankur (Salesforce Developers) 
Hi bretondev,

It looks like you are using same laguage code for other language too in your experience bundle.

Please try to search with keyword as 'de' and see if there is any other language or file having same languageCode defined in the metadata, if found try to rename the duplicate one and it should pass through.

Hope above information helps, Please mark as Best Answer so that it can help others in the future.

Thanks.

All Answers

ShivankurShivankur (Salesforce Developers) 
Hi bretondev,

It looks like you are using same laguage code for other language too in your experience bundle.

Please try to search with keyword as 'de' and see if there is any other language or file having same languageCode defined in the metadata, if found try to rename the duplicate one and it should pass through.

Hope above information helps, Please mark as Best Answer so that it can help others in the future.

Thanks.
This was selected as the best answer
bretondevbretondev
It worked, thks.
Now we have this in languages.json :
 
{
  "defaultCode" : "de",
  "defaultLabel" : "German",
  "id" : "33a3bb36-829b-4f2a-9bcb-345888e4ec13",
  "type" : "languageContainer"
}