{"title":"AppSourceCop Error AS0063","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/analyzers/appsourcecop-as0063/","by":"JOP-AL","license":"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.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/analyzers/appsourcecop-as0063","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Removing a var modifier on a parameter in an event is not allowed as it will break dependent extensions subscribing to it.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"AppSourceCop Error AS0063","slug":"appsourcecop-error-as0063","at":0,"chars":1024},{"level":2,"title":"Description","slug":"description","at":77,"chars":138},{"level":2,"title":"Remarks","slug":"remarks","at":215,"chars":369},{"level":2,"title":"How to fix this diagnostic?","slug":"how-to-fix-this-diagnostic","at":584,"chars":293},{"level":2,"title":"Related information","slug":"related-information","at":877,"chars":147}],"text":"# AppSourceCop Error AS0063\nRemoving a var modifier in events is not allowed\n## Description\nRemoving a var modifier on a parameter in an event is not allowed as it will break dependent extensions subscribing to it.\n## Remarks\nThis 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.\n## How to fix this diagnostic?\nTo resolve this error, you need to ensure that the var modifier isn't removed from parameters in events. Here are the steps:\n1. Locate the event in your code where the var modifier has been removed from a parameter.\n2. Restore the var modifier to the parameter.\n## Related information\nAppSourceCop Analyzer<appsourcecop>\nGet Started with AL<../devenv-get-started>\nDeveloping Extensions<../devenv-dev-overview>"}