--- title: "Unique Particle Attribution Constraint | Microsoft Docs" ms.custom: "" ms.date: "03/01/2017" ms.prod: sql ms.prod_service: "database-engine" ms.reviewer: "" ms.technology: xml ms.topic: conceptual f1_keywords: - "unique particle attribution" helpviewer_keywords: - "schema collections [SQL Server], unique particle attribution" - "XML schema collections [SQL Server], unique particle attribution" - "UPA constraint rule" - "unique particle attribution constraint rule" ms.assetid: 6bb879e9-a5ee-402e-94e4-fe8cec5966b0 author: MightyPen ms.author: genemi --- # Unique Particle Attribution Constraint [!INCLUDE[appliesto-ss-asdb-xxxx-xxx-md](../../includes/appliesto-ss-asdb-xxxx-xxx-md.md)] In XSD, complex content models are constrained by the unique particle attribution (UPA) constraint rule. This rule requires that each element in an instance document correspond unambiguously to exactly one `` or `` particle in its parent's content model. Any schema that contains a type with a potentially ambiguous content model is rejected. The most common causes of ambiguity are `` wildcard characters and particles that have variable occurrence ranges, such as minOccurs < maxOccurs. For example, the following content model is ambiguous, because an <`e1`> element could match either the `` or the `` element. ``` ``` The following content model is also ambiguous: ``` ``` Although a document such as `` can be validated unambiguously, a document such as `` cannot, because it is not clear to which `` the second `` corresponds. Even though some documents can be validated unambiguously, the schema will be rejected, because of the potential for ambiguity. Note that for a content model to be valid, it must be possible to validate any instance unambiguously without looking ahead. For example, consider the following content model: ``` ``` For a document such as ``, the sequence `` unambiguously matches the second ``. However, because the `` to which `` corresponds cannot be determined without looking ahead to ``, the content model violates the UPA constraint rule. ## Finding More Information The following document is published by the World Wide Web Consortium (W3C) and contains the technical description of the unique particle attribution constraint: "XML Schema Part 1: Structures Second Edition, W3C Proposed Edited Recommendation": - Section 3.8.6: Constraints on Model Group Schema Components - Appendix H: Analysis of the Unique Particle Attribution Constraint (non-normative) To see the document, visit [http://www.w3.org/TR/xmlschema-1](https://go.microsoft.com/fwlink/?linkid=48881). ## See Also [XML Schema Collections (SQL Server)](../../relational-databases/xml/xml-schema-collections-sql-server.md)