> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/cortex-cloud-runtime-security/onboard-and-configure/deployment-steps-and-checklist/upgrade-from-prisma-cloud-to-cortex-cloud/convert-migrated-custom-rules-to-xql.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Convert migrated custom rules to XQL

Migrate your existing custom cloud security rules from Prisma to XQL.

If you have migrated your existing custom cloud security rules using the actions in **Copy Content** prior to the October/November 2026 Cortex release, you can choose to automatically convert these rules from Cortex Cloud RQL to native Cortex Cloud XQL.

The converted rules inherit all metadata from your legacy rules and undergo syntactic validation. This conversion is supported for your currently active, linked Prisma Cloud tenant. Rules imported from previously linked or historical tenants are not supported.

{% hint style="info" %}
This conversion applies exclusively to existing custom cloud security rules that were migrated using the **Copy Content** actions prior to the October/November 2026 Cortex release. Any rule modified within Cortex following the content copy step cannot be converted automatically through this action; manual conversion by Palo Alto Networks support is required for those rules.
{% endhint %}

1. Click the **Convert Now** button next to **Convert Migrated Custom Rules to XQL** to initiate the rule migration.
2. The UI displays a message confirming how many rules are about to be converted. Confirm that you would like to proceed with the conversion.
3. Once the conversion has completed, you can see how many rules have been successfully converted. Click on V**iew log** to see conversion status of each rule. For successfully converted rules, you will see the following status/reason: *Converteed/Converted to XQL successfully*. If a rule has not been converted, the log describes the reason why it happened.
4. If needed, retry the process by clicking **Retry**. Upon selecting **Retry**, only the remaining unconverted rules are picked up for processing, rather than the entire initial set, so the number of retried rules may not match the number of rules that were initially processed.

If a rule has not been converted, the log describes the reason for it:

| Reason (as displayed in the log)                                                                                                                                                                  | Meaning                                                                                                                |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| *No usable XQL translation is available for this rule yet. This can happen when the translation has not been produced yet or when the rule has been changed since the translation was generated.* | The rule source lacks the required XQL conversion mapping or the rule was modified after the conversion was generated. |
| *This rule is no longer available for conversion. The associated Prisma policy may have been deleted or is linked to a different Prisma tenant.*                                                  | The rule was not found in Prisma, because it was deleted or it is associated with another tenant.                      |

\ <br>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/cortex-cloud-runtime-security/onboard-and-configure/deployment-steps-and-checklist/upgrade-from-prisma-cloud-to-cortex-cloud/convert-migrated-custom-rules-to-xql.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
