Build a Custom Data Package File

Your custom data provider must be bundled into a custom data package file (.cdpk) in order to deploy it to ArcGIS Server. To build a .cdpk file, your provider must have a valid cdconfig.json file in the root of the custom data provider directory. The cdconfig.json file is generated when you create a custom data provider using the createprovider command. Below are the auto-generated contents of the file.

1
2
3
4
5
6
7
8
9
10
11
{
  "name": "<name-of-provider>",
  "arcgisVersion": "11.4.0",
  "parentServiceType": "FeatureServer",
  "customdataRuntimeVersion": "1",
  "type": "provider",
  "properties": {
    "hosts": true,
    "disableIdParam": false
  }
}

Change the values of the hosts and disableIdParam fields depending on whether your provider requires the host and id URL parameters. To package your provider into a .cdpk file, run the cdf export <name> command at the command line in the custom data app directory.

After the .cdpk file has been successfully created, the contents of cdconfig.json are again updated to the reflect the file name of your new .cdpk file as seen below.

1
2
3
4
5
6
7
8
9
10
11
12
{
  "name": "<name-of-provider>",
  "arcgisVersion": "11.4.0",
  "parentServiceType": "FeatureServer",
  "customdataRuntimeVersion": "1",
  "type": "provider",
  "properties": {
    "hosts": true,
    "disableIdParam": false
  },
  "fileName": "<name-of-provider>.cdpk"
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close