npx skills add ...
npx skills add forcedotcom/sf-skills --skill deploying-omnistudio-datapacks
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 skills add forcedotcom/sf-skills --skill deploying-omnistudio-datapacks
Use this skill when the user needs Vlocity DataPack deployment orchestration: export/deploy workflow, manifest-driven deploys, failure triage, and CI/CD sequencing for OmniStudio/Industries DataPacks.
Use deploying-omnistudio-datapacks when work involves:
vlocity packDeploy, packRetry, packContinue, packExport, packGetDiffs, validateLocalDataprojectPath, expansionPath, manifest, queries)Delegate elsewhere when the user is:
sf project deploy -> deploying-metadatabuilding-omnistudio-*vlocity) commands for DataPacks, not sf project deploy.-sfdx.username <alias>) over username/password files when available.validateLocalDatapackGetDiffspackDeploypackRetry repeatedly when error counts are dropping; stop when retries no longer improve results.Ask for or infer:
-key)%vlocity_namespace%, vlocity_cmt, or core)Preflight checks:
Use --fixLocalGlobalKeys only when explicitly requested and after explaining impact.
Job-file starter: references/job-file-template.md [blocked]
| Error / symptom | Likely cause | Default fix direction |
|---|---|---|
No match found for ... | missing dependency in target org | include missing DataPack key and redeploy |
Duplicate Results found for ... GlobalKey | duplicate records in target | clean duplicates and re-run deploy |
Multiple Imported Records ... same Salesforce Record | source duplicate matching-key records | remove duplicates in source and re-export |
No Configuration Found | outdated DataPack settings | run packUpdateSettings or enable autoUpdateSettings |
Some records were not processed | 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 |
Detailed matrix: references/troubleshooting-matrix.md [blocked]
Default pipeline shape:
sf org login ...)validateLocalData)packExport or manifest-driven export)packDeploy)packRetry) until stablepackGetDiffs) and publish deployment reportFor incremental deploy optimization, use job-file options such as:
gitCheck: truegitCheckKey: <folder>manifest for deterministic scope control| Need | Delegate to | Reason |
|---|---|---|
| metadata deploy outside DataPacks | deploying-metadata | Metadata API workflows |
| OmniStudio component authoring | building-omnistudio-* | 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 |
After completing a DataPack operation, deliver a completion block:
| File | When to read |
|---|---|
references/job-file-template.md | Before advising on job file structure — load as baseline configuration reference |
references/troubleshooting-matrix.md | When user reports deploy failures — load to diagnose DataPack errors and apply fix directions |
examples/business-internet-plus-bundle/TRANSCRIPT.md | Example of validation planning and execution for a Product2 bundle |
examples/business-internet-plus-bundle/deploy-business-internet-plus-bundle.yaml | Example job file for scope-limited validateLocalData run |
examples/business-internet-plus-bundle-deploy/TRANSCRIPT.md | Example of full deploy cycle including packDeploy and packRetry outcomes |
examples/business-internet-plus-bundle-deploy/deploy-business-internet-plus-bundle.yaml | Example job file for staged deployment with manifest targeting |
npm install --global vlocity
vlocity helpvlocity -sfdx.username <source-alias> -job <job-file>.yaml validateLocalDatavlocity -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 packGetDiffsDataPack 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>