Package verification by apslint fails with: 'Default value for mandatory setting SETTING_ID is required'
Modified on: Fri, 17 Nov 2023 12:07 PM2020-01-22
Symptoms
Apslint returns error: 'Default value for mandatory setting SETTING_ID is required'
However, setting is populated by configuration script, and default value is not appropriate.
Cause
By convention, in APS 1.2 visible settings are entered by customer, 'hidden' - set in resource type by provider, 'protected' - populated by configuration script. For 'protected' settings default value is not required, for other types - either class or default value is required.
Resolution
Add protected="true" attribute to setting declaration in APP-META.xml. If setting should not be visible, also add visibility="hidden" attribute.