# AppSourceCop Error AS0027
Modifying the array size of a parameter in events and external procedures is not allowed
## Description
Modifying the array size of a parameter in events and external procedures is not allowed.
## Remarks
This error occurs when the array size of a parameter in events or external procedures is modified. In AL, the array size of parameters in events and external procedures must remain constant to ensure compatibility and stability.
## How to fix this diagnostic?
To resolve this error, you must ensure that the array size of parameters in events and external procedures isn't modified. Here are the steps:
1. Locate the event or external procedure in your code where the array size of a parameter is being modified.
2. Change the array size back to its original value.
## Related information
AppSourceCop Analyzer<appsourcecop>
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/analyzers/appsourcecop-as0027, 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/analyzers/appsourcecop-as0027/
