DataSourceBundleDefinition represents the bundle of streams that a user adds to a data kit. It identifies the connector type for those streams and records whether the bundle supports multiple deployments. Access requires Data 360 permission.
The bundle definition is not an embedded collection of complete stream definitions. Each DataStreamTemplate is a separate metadata component that references the bundle. Also distinguish the bundle's required label, masterLabel, from its metadata component identity, the inherited fullName.
Key Elements
| Element | What the Element Controls |
|---|---|
dataPlatform |
Required string identifying the connector type to which the bundle's streams belong. The documented example uses Salesforce_Sales_and_Service_Cloud; that example is not a default or an exhaustive list of values. |
masterLabel |
Required bundle name used as its label. Keep it distinct from the component's metadata identity. |
fullName |
Component identity inherited from Metadata. Use this identity when selecting the component in a manifest or resolving a component reference. |
isMultiDeploymentSupported |
Boolean indicating whether the bundle can be deployed multiple times. Allowed values are true and false; the default is false. |
bundleVersion |
Integer recording the bundle's own version, not the Metadata API version. |
description |
Description of the associated data source bundle. |
icon |
Icon used in the deployment flow. |
Behavior and Constraints
Both dataPlatform and masterLabel are required. dataPlatform identifies the connector type for the streams in the bundle; it is not a list of stream components.
isMultiDeploymentSupported controls whether the bundle supports repeated deployment. If it is not set, its default is false. The bundle's bundleVersion is a separate integer value and should not be interpreted as an API compatibility setting.
The stream-to-bundle association is stored on DataStreamTemplate.dataSourceBundleDefinition, not as a collection of stream definitions inside DataSourceBundleDefinition. Retrieving the bundle definition therefore should not be treated as retrieving the complete definitions of its streams.
Deployment and Retrieval
DataSourceBundleDefinition components use the suffix .dataSourceBundleDefinition and are stored in the dataSourceBundleDefinitions folder.
In package.xml, use DataSourceBundleDefinition as the metadata type name and the component's fullName as the member. For example, a component named b2 is selected with <members>b2</members>. This type also supports * as the manifest member. See Deploying and Retrieving Metadata with the Zip File for manifest usage.
Do not assume that moving DataPackageKitDefinition also moves the bundle and all of the kit's contents. In a reported direct Salesforce CLI (SFDX) and Metadata API migration, the kit definition alone produced an empty kit. The successful migration separately selected the bundle definition and other components needed for that scenario.
Bundle identity also matters when invoking the sfdatakit__DeployDataKitComponents data kit deployment action. A January 2025 Ingestion API report identified bundleConfig.bundleName as the DataSourceBundleDefinition name, not the data stream name. This is a reported requirement for the action's input; bundleName is not an additional field on this metadata type.
Relationships
The direct metadata connection is from a stream template to its bundle definition. The stream template owns the reference, so selecting a bundle definition alone is not equivalent to selecting all associated stream templates.
Referenced By
-
DataStreamTemplate:dataSourceBundleDefinition.
Reported Issues
-
A migrated data kit can be empty when only its definition is moved. In a January 2025 Ingestion API migration report, deploying
DataPackageKitDefinitionalone did not bring over the kit's contents. The author reported that direct SFDX or Metadata API migration did not automatically select those contents. Their successful migration, involving an Ingestion API connector, multiple streams, and mappings to custom and standard data model objects, includedDataPackageKitDefinition,DataPackageKitObject,DataSourceBundleDefinition,DataSourceObject,DataSrcDataModelFieldMap,DataStreamTemplate,ExtDataTranObjectTemplate,FieldSrcTrgtRelationship,DataSource, andCustomObject. TheCustomObjectcomponents covered custom data model objects and custom formula fields on standard data model objects. This was a scenario-specific component set, not a universal deployment manifest. Read the data kit migration report. -
Supplying a data stream name as the bundle name can cause the deployment action to fail. In a January 2025 Ingestion API deployment report, the author initially failed when using a stream name in
bundleConfig.bundleNameforsfdatakit__DeployDataKitComponents. The reported working input used theDataSourceBundleDefinitionname. In that example, the bundle and data kit shared a name; the important distinction was that the value was not the data stream name. Read the deployment action report.
Common Questions
Why is my data kit empty after a Metadata API deployment?
A January 2025 migration report found that deploying DataPackageKitDefinition alone created an empty kit. The successful direct migration separately included DataSourceBundleDefinition, stream templates, source definitions, mappings, and other components required by that scenario.
What should I use for bundleName when deploying data kit components?
For sfdatakit__DeployDataKitComponents, the January 2025 Ingestion API report used the DataSourceBundleDefinition name in bundleConfig.bundleName. The author reported failure when supplying a data stream name instead.
Can a DataSourceBundleDefinition be deployed more than once?
isMultiDeploymentSupported indicates whether the bundle supports multiple deployments. Its default is false; true indicates that multiple deployments are supported.
Does retrieving a DataSourceBundleDefinition retrieve all of its streams?
The bundle definition does not embed complete stream definitions. Streams are represented by separate DataStreamTemplate components, each of which stores its bundle reference in dataSourceBundleDefinition.
Can I retrieve DataSourceBundleDefinition components with a wildcard?
Yes. The type supports * in the package.xml manifest. Use DataSourceBundleDefinition as the type name, or select individual components by their fullName.