19 Sep 2023 12:55 PM - last edited on 20 Sep 2023 07:49 AM by MaciejNeumann
Hi there my plugin.json file reporting VALIDATION_ERROR_ILLEGAL_PROPERTY_CHANGE error when uploading plugin to Dynatrace when using type "Password" in the schema file.
When changed type to "String" plugin is uploaded but issue is password is visible in the endpoint configuration.
plugin_sdk verify_plugin does not report error
Starting oneagent_verify_plugin
Checking plugin metadata: /opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.mobilitysendgrid/plugin.json
Validating plugin.json against schema
Plugin custom.remote.python.mobilitysendgrid is valid
plugin_sdk version: plugin_sdk 1.273.138.20230829.095340
Anyone had this issue?
Thanks
Solved! Go to Solution.
20 Sep 2023 07:52 AM
You cannot change the property type without removing and readding the extension (which means you need to recreate all endpoints).
You can solve it by renaming the property in the plugin.json and the python code at the same time as changing the property type. That will just require you to re-add the password into the endpoints.
21 Sep 2023 07:15 AM
Thanks for your reply Mike_L. Will try this and keep you posted.
21 Sep 2023 11:30 AM
Thanks @Mike_L after removing the existing plugin and executed the plugin upload command, no errors encountered.
Marked your reply as the solution.
Thanks again!