---
schema_version: "1"
id: 9caece8ffec96fd7912f88ec3e1a2734f16b24de8cd686c5acf3b1e9a6c02ae1
title: Error When Creating a New Community from a Template
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/api-community-manager/troubleshooting-error-when-creating-new-community-from-template.md
canonical_url: https://docs.mulesoft.com/api-community-manager/troubleshooting-error-when-creating-new-community-from-template
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 9655b434ccfd14427d74f2dc8132700a9b9a8078b3947570bd58bc7d1f2f7bea
description: MuleSoft Documentation Site
latest: true
---
---
product: API Community Manager
---

# Error When Creating a New Community from a Template

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

If creating a new community from a template shows the error
`An unexpected error occurred,Try again or contact your Salesforce administrator for help`, compile
all Apex classes: open **Setup** > **Custom Code** > **Apex Classes** and click **Compile all
classes**. In a few minutes, the page displays the message
`Compilation Complete: Compilation Successful`.

Find more information about compiling Apex classes in the Salesforce help article
[Manage Apex Classes](https://help.salesforce.com/s/articleView?language=en_US&id=sf.code_manage_packages.htm&type=5).

## See Also

- [Known Issues](https://help.salesforce.com/s/issues)
