# MaxOccurs Property
> Version: _Available or changed with runtime version 1.0._
Sets a value that indicates the maximum number of times an element can occur.
## Applies to
 Xml Port Text Element
 Xml Port Table Element
 Xml Port Field Element
## Property value
Value|Available or changed with|Description
Once|runtime version 1.0|The element can occur at most once.
Unbounded|runtime version 1.0|There is no maximum number of occurences.
The default values are the following:
SourceType|Default
Table|Unbounded
Text|Unbounded
Field|Once
## Syntax
```al
MaxOccurs = Once;
```
## Remarks
The default value of the MaxOccurs property varies depending on the type of this element.
The minimum number of times an element can appear is determined by the value of the devenv-minoccurs-property.
The MinOccurs and MaxOccurs properties conform to the standard occurrence constraints that are used when defining XML schemas.
The minimum number can be either 1 or 0.
The maximum number can be either 1 or infinite.
## Related information
devenv-properties

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-maxoccurs-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-maxoccurs-property/
