> For the complete documentation index, see [llms.txt](https://docs.flowretail.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flowretail.com/docs/extensions-addons/campaign/troubleshooting.md).

# Troubleshooting

## Campaign doesn't activate

#### **Check:**

* ✅ Time period is correct (including time of day if set)
* ✅ Products are added as qualified
* ✅ Customer group matches if this is set
* ✅ Order lines are not confirmed

#### **How to fix:**

1. Open the campaign
2. Verify "Valid from" and "Valid to" dates include today
3. Check "Qualified products" list matches the products in the order
4. If using customer groups, confirm the customer is in that group
5. If lines are confirmed, delete and re-add them

## Wrong discount calculated

#### **Possible causes:**

* Another campaign is more beneficial (system auto-selects best)
* Minimum amount or quantity not reached
* Products added in wrong order

#### **How to fix:**

1. Check if another campaign is active on the same products
2. Verify minimum rules are met
3. Try removing and re-adding products in the correct order

## Campaign disappears from order

#### **Causes:**

* Line was confirmed then deleted - must be re-added
* Another campaign became more beneficial
* Campaign time period ended

#### **How to fix:**

1. Check if campaign is still active
2. Delete the line and add it again (don't confirm)
3. Review if another campaign is taking priority

## Can't save campaign

#### **Common validation errors:**

* Required fields missing (name, discount type, dates)
* Invalid date range (end before start)
* Invalid field combination (see Rules & Combinations)

**How to fix:** Check the error message for the specific field causing issues.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.flowretail.com/docs/extensions-addons/campaign/troubleshooting.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
