# Theme could not be assigned to sales channel

## Description

When assigning the theme to a sales channel, the error message "**Theme could not be assigned to Sales Channel.**" appears.

## Cause

Unfortunately, the error message is not very significant. A more detailed error message is needed to solve the problem.

## Solution

How to get a detailed error message please find in the article [Debugging error messages](/knowledge-base/tutorials/debugging/debugging-error-messages.md).

{% hint style="info" %}
**Note**: In our experience, the **PHP memory\_limit** is usually the cause of such problems. More information can be found in the article [Allowed memory size of ... bytes exhausted](/knowledge-base/common-issues/administration/allowed-memory-size-exhausted.md).
{% endhint %}

#### Issue not solved?

If you could not solve the problem, simply start the ThemeWare® Debugging. You can open a support ticket in case you are not able to solve the problem yourself:

{% embed url="<https://debugging.themeware.design/en>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://knowledge.themeware.design/knowledge-base/common-issues/administration/theme-could-not-be-assigned-to-sales-channel.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
