{"title":"CodeCop Warning AA0470","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/analyzers/codecop-aa0470/","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/codecop-aa0470, 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/codecop-aa0470","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":"Provide an explanation that describes the content of each of the placeholders.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"CodeCop Warning AA0470","slug":"codecop-warning-aa0470","at":0,"chars":731},{"level":2,"title":"Description","slug":"description","at":86,"chars":94},{"level":2,"title":"Reason for the rule","slug":"reason-for-the-rule","at":180,"chars":149},{"level":2,"title":"Bad code example","slug":"bad-code-example","at":329,"chars":102},{"level":2,"title":"Good code example","slug":"good-code-example","at":431,"chars":163},{"level":2,"title":"Related information","slug":"related-information","at":594,"chars":137}],"text":"# CodeCop Warning AA0470\nPlaceholders should have a comment explaining their content.\n## Description\nProvide an explanation that describes the content of each of the placeholders.\n## Reason for the rule\nDocumentation of placeholders is required to enable translators to properly know the construct of the label to be translated.\n## Bad code example\n```al\nMissingNodeErr: Label 'Cannot find an XML node that matches %1 or %2.';\n```\n## Good code example\n```al\nMissingNodeErr: Label 'Cannot find an XML node that matches %1 or %2.', Comment = '%1 = XML node name ; %2 = Parent XML node name';\n```\n## Related information\nCodeCop Analyzer<codecop>\nGet Started with AL<../devenv-get-started>\nDeveloping Extensions<../devenv-dev-overview>"}