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
Juan Manuel Triguero PiñeroJuan Manuel Triguero Piñero 

Error when importing Lightning Bolt Solution

Hi everyone,

I've followed the instructions to export a community as a Lightning Bolt Solution which are described here:
https://releasenotes.docs.salesforce.com/en-us/winter17/release-notes/rn_networks_builder_template_export.htm

I've created the template and added it to a package. Later, I've uploaded the package. I can install that package in another org, but when I try to create a new community using the template, I get the following error:

Error creating template:05jf4000000XZFqAAO Description:DML operation on setup object is not permitted after you have updated a non-setup object (or vice versa): ContentDocumentLink, original object: Site
Error: 629723056-22479 (-347409516)



I've also tried to export the package with Workbench and deploy it in the other org, but I get another error when it tries to deploy the CommunityTemplateDefinition component:

In field: defaultThemeDefinition - no CommunityThemeDefinition named [COMMUNITY_NAME] found


Any help is welcome.
Thanks
ProfessorProfessor
I get the exact same error - DML operaton onf setup object.