Added AccountContactRelation object inside my DX unlocked package but while versioning getting error invalid fullname must end in a custom suffix(for ex. _c)”

What is the issue for this?please advice.


Your SFDX Project file must contain a reference to a definition file:

  "packageDirectories": [
      "path": "force-app",
      "package": "my-package-name",
      "versionName": "ver 0.1",
      "versionNumber": "0.1.0.NEXT",
      "default": true,
      "definitionFile": "config/scratch-features.json"
  "namespace": "",
  "sfdcLoginUrl": "https://login.salesforce.com",
  "sourceApiVersion": "47.0"

This file must contain the settings that the package depends on:

   "settings": {
       "accountSettings": {
           "enableRelateContactToMultipleAccounts": true

After this, you'll be allowed to upload other metadata that depends on this setting.

You can also use this configuration file to spin up a new scratch org that has all the required extra features turned on for all of your packages to install/deploy/push successfully.

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.