Unable to create Patch Version: This is the error: UNKNOWN_EXCEPTION : UNKNOWN_EXCEPTION: Managed Package Patch Modification Exception: A change was made to the patch release that will change the visible behavior of the application: Component can't be created because it will be automatically included in the package.

Changes I made in new version:

  • Changed the Parameters of AuraEnabled methods
  • Added a new AuraEnabled variable to the inner class (wrapper class) which is used as return type of a AuraEnabled method
  • Added a public static variable to a public class
  • Changed the Custom Metadata Type record whose fields are upgradable
  • Added a lightning progress bar in an LWC Component Conditionally based on a variable (using if:true)
  • Are you sure that no other components got added accidentially? Also, in terms of the LWC changes, did you add any @api properties and/or try to change the target property configuration at all?
    – Phil W
    Dec 4, 2023 at 10:50
  • Hi @Phil W, I am sure that I have only added few track variables not the api variables, and changed the visibility of few components based on few boolean variables by using template if:true directive.
    – S1th
    Dec 4, 2023 at 10:57
  • Did you need to add an extra import for track annotation? Also, do you really need the track? These are only needed if you want to track changes to arrays or complex object properties, not for simple Booleans etc.
    – Phil W
    Dec 4, 2023 at 11:02
  • Changes to LWCs in patches are possible (we've done it) but you have to be cautious as to exactly what changes you make. Changing anything around targets and target properties is a no-no for sure (we got hit by this one - and have found this to be troublesome even in major/minor releases).
    – Phil W
    Dec 4, 2023 at 11:04
  • 1
    Thanks for the reply @Phil W, I am able to create the patch version including the changes in the LWC. The error is due to the additional files added in Aura Component.
    – S1th
    Dec 4, 2023 at 11:30

1 Answer 1


The reason why we couldn't create patch version is we have accidently opened the renderer and css files of an aura component. So a separate CSS and Renderer file has been created for the Aura Component. After manually deleting those files in sfdx project, we were able to create the patch version.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .