> For the complete documentation index, see [llms.txt](https://docs.aligned.ch/installing-aligned-elements-web-server/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aligned.ch/installing-aligned-elements-web-server/validation-rules-element/illegal-trace-from-rule.md).

# Illegal Trace From Rule

This validation rule looks for unexpected traces. If the Document Object using the validation rule has a trace to a Document Object of the specified type, an inconsistency is displayed.

```
<IllegalTraceFromRule IllegalTraceFromTypeName="User Need" MaxNrOfLegalTraces="1" />
```

### IllegalTraceFromTypeName (Required)&#x20;

The Type Name of the Document Object type from which a trace is not desired.

### MaxNrOfLegalTraces (Optional, Default: 1) &#x20;

An Inconsistency is only generated if there are more than MaxNrOfLegalTraces incoming traces. Example: if MaxNrOfLegalTraces = 2, no inconsistency will be shown if there are 1 or 2 incoming traces to the specified Document Object type, but an inconsistency will be generated if there are more than 2 incoming traces of the specified Document Object type.

### OnlyIllegalForLinkedTraces (Optional, Default: false)

&#x20;If this xml attribute is set to 'true', the validation rule only considers incoming traces from Linked Projects.


---

# 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:

```
GET https://docs.aligned.ch/installing-aligned-elements-web-server/validation-rules-element/illegal-trace-from-rule.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.
