# ErrorInfo.PageNo([Integer]) Method
> Version: _Available or changed with runtime version 8.0._
Specifies the page number that the error relates to.
## Syntax
```al
[PageNo := ]  ErrorInfo.PageNo([PageNo: Integer])
```
> NOTE
> This method can be invoked using property access syntax.
## Parameters
ErrorInfo
Type: errorinfo-data-type
An instance of the errorinfo-data-type data type.
*[Optional] PageNo*
Type: ../integer/integer-data-type
The page number of the ErrorInfo
## Return Value
*[Optional] PageNo*
Type: ../integer/integer-data-type
The current page number of the ErrorInfo.
## Remark
You use the PageNo property when also using a show-it action with the AddNavigationAction property. The PageNo then specifies where the action takes the user when activated.
## Example (set the PageNo property)
```al

var
    MyErrorInfo: ErrorInfo;
    TheCustomDimensions: Dictionary of [Text, Text];
begin
    // setup the error info object: Define Message, DetailedMessage etc.

    // setup show-it action(s) for the error info object
    ChangeNotAllowedErrorInfo.PageNo(PAGE::"MyPage");
    ChangeNotAllowedErrorInfo.AddNavigationAction('Some caption');

    Error(MyErrorInfo);
end
```
## Related information
errorinfo-data-type
../../devenv-actionable-errors
../../devenv-al-error-handling
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/methods-auto/errorinfo/errorinfo-pageno-method, 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/methods-auto/errorinfo/errorinfo-pageno-method/
