Loading...
Loading...
Salesforce Industries DataPack deployment automation using Vlocity Build. TRIGGER when: user deploys or validates OmniStudio/Vlocity DataPacks with vlocity commands (packDeploy/packRetry/packExport/packGetDiffs), sets up DataPack CI/CD pipelines, or troubleshoots DataPack migration errors. DO NOT TRIGGER when: deploying Salesforce metadata with sf project deploy (use deploying-metadata), authoring OmniStudio artifacts (use building-omnistudio-*), or writing Apex/LWC business logic (use generating-apex/generating-lwc-components).
npx skill4agent add forcedotcom/afv-library deploying-omnistudio-datapacksdeploying-omnistudio-datapacksvlocity packDeploypackRetrypackContinuepackExportpackGetDiffsvalidateLocalDataprojectPathexpansionPathmanifestqueriessf project deploybuilding-omnistudio-*vlocitysf project deploy-sfdx.username <alias>validateLocalDatapackGetDiffspackDeploypackRetry-key%vlocity_namespace%vlocity_cmtvlocity help
sf org list
sf org display --target-org <alias> --json
test -f <job-file>.yamlnpm install --global vlocity
vlocity helpvlocity -sfdx.username <source-alias> -job <job-file>.yaml validateLocalData--fixLocalGlobalKeysvlocity -sfdx.username <source-alias> -job <job-file>.yaml packExport
vlocity -sfdx.username <source-alias> -job <job-file>.yaml packRetryvlocity -sfdx.username <target-alias> -job <job-file>.yaml packDeploy
vlocity -sfdx.username <target-alias> -job <job-file>.yaml packRetryvlocity -sfdx.username <target-alias> -job <job-file>.yaml packContinuevlocity -sfdx.username <target-alias> -job <job-file>.yaml packGetDiffs| Error / symptom | Likely cause | Default fix direction |
|---|---|---|
| missing dependency in target org | include missing DataPack key and redeploy |
| duplicate records in target | clean duplicates and re-run deploy |
| source duplicate matching-key records | remove duplicates in source and re-export |
| outdated DataPack settings | run |
| settings mismatch / partial dependency state | refresh settings both orgs, then retry |
| SASS / template compile failures | missing referenced UI template assets | export/deploy referenced template dependencies first |
sf org login ...validateLocalDatapackExportpackDeploypackRetrypackGetDiffsgitCheck: truegitCheckKey: <folder>manifest| Need | Delegate to | Reason |
|---|---|---|
| metadata deploy outside DataPacks | deploying-metadata | Metadata API workflows |
| OmniStudio component authoring | | build artifacts before deploy |
| EPC product and offer payload authoring | modeling-omnistudio-epc-catalog | Product2/DataPack model quality |
| Apex trigger/log error diagnosis | debugging-apex-logs, generating-apex | automation-side root-cause fixes |
DataPack goal: <export / deploy / retry / diff / ci-cd>
Source org: <alias or N/A>
Target org: <alias or N/A>
Scope: <job file + manifest/key/full>
Result: <passed / failed / partial>
Key findings: <errors, dependencies, retries, diffs>
Next step: <safe follow-up action>| File | When to read |
|---|---|
| Before advising on job file structure — load as baseline configuration reference |
| When user reports deploy failures — load to diagnose DataPack errors and apply fix directions |
| Example of validation planning and execution for a Product2 bundle |
| Example job file for scope-limited |
| Example of full deploy cycle including |
| Example job file for staged deployment with manifest targeting |