2

We have created a manage package which contains many custom fields. I know that we can not change the field type in manage package. My Question is can we change field type in Patch org? or is there any workaround for this?

4

Path orgs have the same restrictions as normal managed package development, except with even more of their own.

There's a good article on the salesforce docs about this that calls out the additional patch org restrictions:

  1. New package components can’t be added.
  2. Existing package components can’t be deleted.
  3. API and dynamic Apex access controls can’t change for the package.
  4. No deprecation of any Apex code.
  5. No new Apex class relationships, such as extends, can be added.
  6. No new Apex access modifiers, such as virtual or global, can be added.
  7. No new Web services can be added.
  8. No new feature dependencies can be added.

This is above and beyond the normal managed package development restrictions. They're usually used to backport bug fixes and conventionally not much more due to these restrictions, as well as the need to merge any changes back to your main packaging org.

| improve this answer | |
  • Thank you @ca_pererson. Any workaround that you can recommend for this? – AtulRajguru9 Sep 12 '14 at 6:13
  • 1
    There's a pilot that lets you deprecate managed fields, but you'd have to help customers export and import data from the old to the new. Not easy, but possible – ca_peterson Sep 12 '14 at 6:22
  • So can you, for example, make a text field longer in a patch org (which is allowed now in a normal package version)? – Keith C Sep 12 '14 at 8:23
  • @keith no, you can't add any new components at all to a patch. – ca_peterson Sep 12 '14 at 15:09
  • That would't be an addition, it would be a change in type to an existing field that is allowed in major revision changes. I'll expect the worst if the need ever comes up. – Keith C Sep 12 '14 at 15:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.