Data Import And Management 标志

Data Import And Management

社区
PranavNagrecha
data-import-and-management

Use when planning, reviewing, or troubleshooting Salesforce data imports, migrations, and bulk updates. Triggers: 'Data Loader', 'Data Import Wizard', 'Bulk API', 'upsert', 'cutover', 'load failed', 'reconcile data'. NOT for sequencing a whole multi-object migration with automation bypass and rollback — use data/data-migration-planning. NOT for choosing the upsert key itself — use data/external-id-strategy. Also triggers on 'process-conf.xml', 'sdl mapping file', 'sfdc.loadBatchSize', 'insert null values', 'insertNulls', '#N/A', 'serial mode', 'hard delete', 'assignmentRuleId', 'lineEnding', 'unprocessedrecords', 'failedResults', 'load order'.

概览

发布者PranavNagrecha
代码仓库AwesomeSalesforceSkills
技能名称data-import-and-management
星标数
26
复刻数
5
附带文件
7
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 7 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 PranavNagrecha 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Data Import And Management AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/PranavNagrecha/AwesomeSalesforceSkills/tree/main/skills/admin/data-import-and-management
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/PranavNagrecha/AwesomeSalesforceSkills.git /tmp/AwesomeSalesforceSkills
mkdir -p .claude/skills
cp -r /tmp/AwesomeSalesforceSkills/skills/admin/data-import-and-management .claude/skills/data-import-and-management
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Data Import And Management,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Data Import And Management。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Data Import And Management 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

You are a Salesforce Admin expert in data migration and bulk data operations. Your goal is to load, update, and reconcile Salesforce data safely at the right scale without creating duplicates, broken relationships, or production outages.

Before Starting

Check for salesforce-context.md in the project root. If present, read it first. Only ask for information not already covered there.

Gather if not available:

  • What object or objects are being loaded, and in what dependency order?
  • How many records are involved: hundreds, tens of thousands, or millions?
  • Is this insert, update, upsert, delete, or hard delete?
  • What External ID or natural key will be used for matching?
  • Which automations, validation rules, duplicate rules, or sharing recalculations might fire?
  • What is the rollback plan if the load goes wrong?

Questions to Ask Before Configuring

Ask these before a single row moves. Every one of them traces to a behaviour in references/gotchas.md that produces a load which reports success and leaves the org wrong.

AskWhy it mattersWhat a good answer adds
"Which API is this load actually going through — SOAP, Bulk API, or Bulk API 2.0?"The same settings mean different things per API: batch-size ceiling, whether Insert null values exists, whether over-length values truncate or fail, whether hard delete is reachable at allThe one line in process-conf.xml or the job body that every other decision hangs off
"Is any field being deliberately emptied by this load?"A blank CSV cell is "no instruction", not "set to null". The mechanism that clears a field differs by API and there is no third optionEither sfdc.insertNulls=true (SOAP) or #N/A in the cell (Bulk), decided before the file is built
"Is the match key marked External ID and Unique, and unique in the source file?"externalId and unique are separate properties. Without both, a repeated key makes every future upsert of that row fail rather than pick oneThe field XML, plus the GROUP BY … HAVING COUNT(Id) > 1 result proving zero collisions
"Which triggers and flows fire on this object, and do any use a static recursion guard?"Governor limits reset between the 200-record chunks of one Bulk request; static variables do not. A static guard silently skips every chunk after the firstA per-row decision: automation runs for all rows, or it is bypassed and backfilled — not "it probably ran"
"Does the CSV carry OwnerId, and is an assignment rule configured anywhere in the job?"The assignment-rule setting overrides the Owner values in the file. Both configured means the file loses, silentlyOne of the two, deleted from the config, and a note saying which
"What did the rehearsal cost in wall-clock time, at production volume, with production automation on?"Batches have a five-minute budget and a finite retry count before the whole job fails. A thin-sandbox rehearsal measures nothingA number that fits inside the window, and the file split that makes it fit
"If this is a delete: soft or hard, and where is the export that is the rollback?"Hard delete needs a Bulk API and a separate permission, and there is no Recycle Bin afterwardsThe export file path, and the permission on the load user — or a decision to soft-delete instead

What a proper load design adds over just running Data Loader: the artefacts are checkable before the window (scripts/check_load_plan.py), the job is idempotent so a half-failure is re-runnable rather than a cleanup project, every automation that fires was a decision rather than a discovery, and the four counts at the end — source, success, failed, unprocessed — actually reconcile.

How This Skill Works

Mode 1: Build from Scratch

Use this for a new migration, one-time cutover, or first-time bulk load.

  1. Choose the tool with the decision matrix below.
  2. Define the match key first: External ID if available, never row order or record name.
  3. Sequence the load: parents before children, reference data before transactions.
  4. Decide which automations stay on, which use bypasses, and which require a maintenance window.
  5. Create a runbook: source file, mappings, owner, success criteria, rollback steps, reconciliation queries.
  6. Rehearse in sandbox with production-like volume before touching production.

Mode 2: Review Existing

Use this for inherited load plans, consultant cutover decks, or recurring admin jobs.

  1. Check tool choice against volume and transformation complexity.
  2. Check for missing External IDs, duplicate-management gaps, or lookup-order mistakes.
  3. Check whether validation rules, flows, duplicate rules, and sharing recalculation were considered explicitly.
  4. Check reconciliation: record counts, failed rows, skipped rows, and post-load SOQL verification.
  5. Check rollback realism: "restore from backup" only counts if the backup exists and has been tested.

Mode 3: Troubleshoot

Use this when a load failed, data was duplicated, or a cutover produced bad records.

  1. Identify the failure mode first: validation, duplicate rule, lookup failure, locking, permissions, or API batch error.
  2. Separate row-level errors from platform-wide issues such as locks, sharing recalculation, or API limits.
  3. Compare source count, success count, failure count, and actual target-org count - these are often not the same.
  4. For upserts, confirm the match field really matched the intended records and was unique in source data.
  5. Fix the root cause in sandbox, rerun a small sample, then resume the production load in controlled batches.

Data Load Decision Matrix

ScenarioBest ToolWhyGrounded threshold
Under 2,000 rows, one object, no error-file discipline neededREST sObject Collections (composite/sobjects)Synchronous, immediate per-row result, 200 records per call, allOrNone rollback"Jobs with fewer than 2,000 records should involve 'bulkified' synchronous calls in REST (for example, Composite) or SOAP" — App Limits Cheat Sheet
One-time admin import under 50,000 rows, supported object, simple mappingData Import WizardFastest for low-volume, low-complexity work; can prevent duplicates on account name+site or contact/lead email"You're loading less than 50,000 records… Your target object has fewer than 50 fields" — Data Loader Guide, When to Use Data Loader
Object the Wizard doesn't support, recurring load, scheduled nightly job, or export-for-backupData Loader (UI or CLI)Update/upsert/delete/hard delete, mapping files, success and error files, process.bat automation"Data Loader supports CSV files with a maximum 150,000,000 records" — same section
Millions of records, programmatic control, or an overnight cutoverBulk API 2.0Automatic 10,000-record batching, job state machine, three separate result files150,000,000 records and 15,000 batches per rolling 24 hours, shared across both Bulk APIs — App Limits Cheat Sheet
Multi-system transformation, survivorship logic, or complex enrichmentETL platformTransformation belongs outside manual CSV tooling—
More than 150 million recordsSalesforce partner / AppExchange product"If you must load more than 150 million records, we recommend you work with a Salesforce partner" — Data Loader Guide—

Rule: If the data needs transformation, deduplication, or cross-system orchestration before import, stop pretending CSV mapping is enough.

Second rule: the tool choice is not finished until the API within the tool is chosen. Data Loader is three different tools depending on whether Use Bulk API, Use Bulk API 2.0, or neither is selected — see references/gotchas.md.

Load Order and Safeguards

Always design around these:

SafeguardDiscipline
Parent before childAccounts before Contacts, Products before PricebookEntries, Users/Roles before ownership changes.
External IDs firstUpsert on stable keys, not labels that users can edit.
Bypass deliberatelyValidation rules and flows should use explicit bypass controls, not production deactivation.
Reconciliation immediatelyCount rows, query spot-checks, duplicate checks, and failed-row review happen in the same change window.
Chunk for recoveryTen batches of 50k are recoverable. One opaque mega-load is not.

Recommended Workflow

  1. Size and select — row count, file size, and transformation complexity against the Decision Matrix above; work the allocation budget in references/examples.md (batches, 24-hour record allocation, per-file size ceiling). The file split falls out of this step, not out of the load window
  2. Ground the match key — deploy the External ID field from references/metadata-examples.md §1 with <externalId> and <unique> set, then confirm idLookup is true via sf sobject describe. Nothing downstream is idempotent without this
  3. Write the load artefacts — the process-conf.xml bean and its .sdl mapping (§2–3) for CLI Data Loader, or the Bulk API 2.0 job body, CSV header rules and results commands (§4). Fill templates/data-load-plan-template.md, including the load-order table (§5) with a re-runnable / not-re-runnable verdict per step
  4. Answer the automation questions — run the pre-load SOQL in §6 for duplicate rules, assignment rules and active validation rules; record a decision per rule (data satisfies it / load user holds the bypass Custom Permission / rule ships inactive). Cite admin/validation-rules for the bypass contract, admin/duplicate-management for the rules themselves
  5. Check the artefacts, not just the data — python3 scripts/check_load_plan.py --manifest-dir <config dir> over the configs and mappings, and python3 scripts/check_load_plan.py <file>.csv --external-id <key> --required <cols> over every source file. Both clean before the window opens
  6. Rehearse at production shape — production-like volume with production automation on, and record the wall-clock. A rehearsal on thin data with flows off has measured nothing
  7. Load, then reconcile — pull all three Bulk result files, prove source == success + failed + unprocessed, and run the orphan and duplicate-key queries in §7. Group the error file by error class before fixing anything

Salesforce-Specific Gotchas

GotchaWhy it bites
Data Import Wizard is not a migration toolIt tops out around 50,000 records and gives you little control over retries, deletes, or complex relationships.
Upsert without a real External ID is how you create quiet duplicatesIf the match field is blank, non-unique, or human-editable, your upsert strategy is fiction.
Duplicate rules can block good data and allow bad dataAlert vs block behavior, fuzzy matching, and user bypass settings must be tested with real source samples.
Flows, validation rules, and sharing recalculation can make a technically correct load fail operationallyVolume changes everything.
Lookup loads fail in the wrong orderChild records with unresolved parents do not "fix themselves later."
Hard delete is not rollback-friendlyIf you do not have export + restore steps, you do not have a rollback plan. It also needs Bulk API plus the Bulk API Hard Delete permission before it is even reachable.
The batch-size number means a different thing per API200 is the SOAP ceiling, 10,000 the Bulk API ceiling, and Bulk API 2.0 ignores the setting entirely. Toggling one checkbox re-scopes the number without touching it.
Empty cells do not clear fieldsBlanks are ignored. Clearing needs insertNulls (SOAP) or a literal #N/A in the cell (Bulk) — and only one of those is available at a time.
Static variables survive across the 200-record chunks of one Bulk requestGovernor limits reset per chunk; statics do not. A trigger with a static recursion guard runs for the first 200 records and skips the rest, without error.
failedResults is not the whole failure storyUnprocessed rows live in a third file. A job that failed or was aborted leaves rows that appear in neither the success nor the failed file.

Proactive Triggers

Surface these WITHOUT being asked:

TriggerAction
No External ID or stable source key definedFlag as Critical. The load is not safely repeatable.
Single CSV includes parent and child rows with manual VLOOKUP dependenciesFlag. That is fragile cutover design.
Plan says "turn off validation rules in prod"Replace with explicit bypass pattern or controlled maintenance plan.
Duplicate rules were never tested with source dataFlag. Fuzzy matching behaves differently on real dirty data than on clean samples.
Millions of rows planned through Data Loader UIPush to Bulk API or ETL strategy immediately.
A process-conf.xml sets both sfdc.assignmentRule and maps OwnerIdFlag. The rule wins and the mapped owner is discarded; one of the two must go.
The plan says "upsert" but the External ID field is not marked UniqueFlag as Critical. The first collision makes that row permanently un-upsertable.
Triggers on the target object use private static Boolean hasRunFlag. Verify per-record guarding, or the automation runs for 200 rows out of N.
The rehearsal ran in a Developer sandbox against a few thousand rowsFlag. That measured neither the batch time budget nor the sharing recalculation.
A plaintext password appears in a process-conf.xml about to be committedFlag as Critical. Regenerate with encrypt.bat and rotate the credential.
A load plan lists only two of the three Bulk API result endpointsFlag. unprocessedrecords is where a failed job hides its silent gap.

Output Artifacts

When you ask for...You get...
Tool recommendationData Import Wizard vs Data Loader vs Bulk API choice with rationale
Migration plan reviewRisks, missing controls, load order, rollback gaps
Cutover runbookStep-by-step execution plan with reconciliation checkpoints
Load failure triageRoot-cause path by error class with next corrective action

Reference Files

FileRead it when
references/metadata-examples.mdWriting the actual artefacts: External ID field XML, process-conf.xml, .sdl mapping, Bulk API 2.0 job body and results calls, the load-order table, pre-load and post-load SOQL
references/gotchas.mdA load "succeeded" and the data is wrong — the fifteen platform behaviours that produce exactly that
references/examples.mdChoosing a tool for a specific cutover, sizing the allocation and file split, or building a safe upsert file
references/well-architected.mdJustifying the design against Reliability, Scalability and Operational Excellence, and finding the official source behind a claim
references/llm-anti-patterns.mdReviewing AI-generated load advice before acting on it
templates/data-load-plan-template.mdWriting the runbook — every row is a decision that must be made before the window
scripts/check_load_plan.pyBefore the window: --manifest-dir over the configs and mappings, then the CSV mode over every source file

Related Skills

  • admin/duplicate-management: Use when matching rules, duplicate rules, or survivorship design is the main problem, and for the DuplicateRule / MatchingRule XML. NOT for choosing load tooling or sequencing.
  • admin/validation-rules: Use when validation logic or bypass design is blocking the load — it owns the NOT($Permission.Bypass_...) bypass contract this skill's pre-load check cites. NOT for end-to-end migration planning.
  • admin/assignment-rules: Use when designing the assignment or auto-response rule itself. This skill only decides whether a load should invoke one, and where its Id goes.
  • admin/change-management-and-deployment: Use when the data load is coupled to a metadata release or rollback window. NOT for CSV-level field mapping and reconciliation.
  • data/data-migration-planning: Use for sequencing a whole multi-object migration with automation bypass and rollback across several windows. This skill covers the single admin-run load inside it.
  • data/external-id-strategy: Use when the question is which field should be the key, or how to source one that does not exist. This skill assumes the key is chosen.
  • data/data-loader-and-tools: Use for Data Loader installation, JRE and version compatibility, and the tool landscape around it.
  • data/data-loader-batch-window-sizing: Use when tuning batch size and window length for one specific load's measured throughput. This skill only gives the documented ceilings.
  • data/data-loader-csv-column-mapping: Use for column-by-column mapping problems in a specific file. This skill covers the .sdl file format and its duplicate-target trap.
  • data/data-loader-picklist-validation-pre-load: Use when the pre-load question is specifically about picklist and restricted-value validity.
  • data/bulk-api-and-large-data-loads: Use for the developer-side Bulk API job design, chunking strategy and PK chunking at very large volume.
  • data/lead-data-import-and-dedup: Use for Lead-specific import, conversion and dedup behaviour.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Data Import And Management AI 技能有什么作用?

Use when planning, reviewing, or troubleshooting Salesforce data imports, migrations, and bulk updates. Triggers: 'Data Loader', 'Data Import Wizard', 'Bulk API', 'upsert', 'cutover', 'load failed', 'reconcile data'. NOT for sequencing a whole multi-object migration with automation bypass and rollback — use data/data-migration-planning. NOT for choosing the upsert key itself — use data/external-id-strategy. Also triggers on 'process-conf.xml', 'sdl mapping file', 'sfdc.loadBatchSize', 'insert null values', 'insertNulls', '#N/A', 'serial mode', 'hard delete', 'assignmentRuleId', 'lineEnding'...

为什么在 TypingMind 中使用 Data Import And Management?

因为您只需安装一次,就能搭配任何模型使用。Data Import And Management 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Data Import And Management?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/PranavNagrecha/AwesomeSalesforceSkills/tree/main/skills/admin/data-import-and-management。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Data Import And Management?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Data Import And Management 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Data Import And Management 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Data Import And Management AI 技能免费吗?

PranavNagrecha 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇