Currently I am using the strfmt("mylabel:labelDesc", somevariable) method to display an alert to the user. Originally it had 3 parameters (%1, %2, %3) however later on I added a fourth variable %4 and now I get the following best practice error
BP Rule: [BPUnusedStrFmtArgument]:The placeholder '%4' to strFmt is not used in the format string.
I have tried to compile the project, model, db sync, retype out the line of code but no matter what the error still happens. In order to fix the error you need to regenerate the label resources which can be found @ C:\AOSService\PackagesLocalDirectory\[package name]\Resources
cmd.exe (as admin)
run the following based on what drive your aos service is running on
C:\AosService\PackagesLocalDirectory\bin\labelc.exe -metadata="C:\AosService\PackagesLocalDirectory" -output="C:\AosService\PackagesLocalDirectory\[package name]\Resources" -modelmodule="[package name]"
In my case, the thing that worked was to delete the file ending in .delete extension from Resources folder.
ReplyDeletepath: K:\AosService\PackagesLocalDirectory\vvvYourModelName\Resources\en-US ex: vvv.resources.dlluzlzr3jt.bci.delete