is it possible to include custom address fields in the unlocked package? Currently, we received an error "Invalid data type" when tried to create a package version.

  • 1
    As per doc, I don't think custom address field is supported in unlocked package.
    – Vinay
    Commented Jul 4, 2023 at 19:56
  • 1
    Seems like you are right. Is that official Salesforce doc? Commented Jul 5, 2023 at 5:38
  • Yes, will post same as an answer so that it can help others too.
    – Vinay
    Commented Jul 5, 2023 at 23:24
  • For managed package please use this flag --definition-file DEFINITION-FILE config\project-scratch-def.json
    – PPB
    Commented Jan 15 at 11:56

1 Answer 1


As per metadata coverage doc, custom address field is not supported in unlocked packaging.

You must log in to answer this question.

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