# Occurrence Property
> Version: _Available or changed with runtime version 1.0._
Sets a value that specifies whether an attribute must occur in the data that is being imported or exported.
## Applies to
 Xml Port Field Attribute
 Xml Port Text Attribute
## Property value
Value|Available or changed with|Description
Required|runtime version 1.0|If the attribute must be part of the data. This is the default value.
Optional|runtime version 1.0|If the attribute does not have to be part of the data.
## Syntax
```al
Occurrence = Optional;
```
## Remarks
This property is primarily used to ensure that the XML data that you are importing conforms to the data structure in Dynamics 365 Business Central.
## Related information
Get Started with AL<../devenv-get-started>
Developing Extensions<../devenv-dev-overview>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-occurrence-property, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-occurrence-property/
