# AppSourceCop Error AS0063
Removing a var modifier in events is not allowed
## Description
Removing a var modifier on a parameter in an event is not allowed as it will break dependent extensions subscribing to it.
## Remarks
This error occurs when the var modifier is removed from a parameter in an event. The var modifier indicates that the parameter is passed by reference, allowing the event subscriber to modify the parameter's value. Removing the var modifier changes the parameter to be passed by value, which can break dependent extensions that rely on the original behavior.
## How to fix this diagnostic?
To resolve this error, you need to ensure that the var modifier isn't removed from parameters in events. Here are the steps:
1. Locate the event in your code where the var modifier has been removed from a parameter.
2. Restore the var modifier to the parameter.
## 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-as0063, 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-as0063/
