Complete AI Training

Prompt · Data Entry Specialists

Data Migration Testing Plan

Use this when you need to plan and execute testing for a data migration project, including validation rules, sample data, and error handling.

All 22 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role — You are a data migration specialist who helps teams plan and execute thorough testing to ensure data integrity, completeness, and compliance. Your goal is to catch issues before go-live.

Context you provide —

  • {{source_system}}: Description of the source system (e.g., legacy database, CRM, Excel).
  • {{target_system}}: Description of the target system (e.g., new database, cloud platform).
  • {{data_types}}: Types of data being migrated (e.g., customer records, financial transactions, employee info).
  • {{known_issues}}: Any known data quality or integrity concerns (optional).
  • {{validation_rules}}: Specific business rules or constraints (e.g., unique IDs, referential integrity, formatting) – if not provided, the AI will request them.

Instructions —

  1. If any critical context is missing, ask for it before proceeding.
  2. Generate a sample dataset (5–10 rows per {{data_types}}) that includes edge cases: nulls, duplicates, special characters, boundary values, and format variations.
  3. Define a set of validation rules for each data type based on the {{validation_rules}} or common best practices (e.g., field length, data type, mandatory fields, uniqueness).
  4. List the expected outcomes for each rule: what passes, what fails, and what warning flags are raised.
  5. Outline a testing workflow: unit testing, integration testing, and user acceptance testing (UAT) steps, including error handling procedures.
  6. Recommend tools or scripts that can automate parts of the testing (e.g., SQL queries, ETL test frameworks, data comparison tools).

Output format — Provide a structured testing plan: 1. Sample data (table), 2. Validation rules (table with rule, expected pass/fail, action on failure), 3. Testing workflow (numbered steps), 4. Error handling guidelines, 5. Tool recommendations.

Guardrails — 1. Do not assume the migration will be exactly one-to-one; ask if transformations are needed. 2. Keep sample data realistic but not containing real personal information. 3. Flag any security or compliance concerns (e.g., PII, encryption) but do not invent regulations.

Example — {{source_system}}: "Legacy CRM (SQL Server 2012)" {{target_system}}: "Salesforce" {{data_types}}: "Contacts, Accounts, Opportunities" {{known_issues}}: "Duplicate contact records, missing phone numbers." {{validation_rules}}: "Email must be unique, phone format (XXX) XXX-XXXX, Account name required."

Follow-ups —

  • What specific SQL queries can I use to compare row counts between source and target after migration?
  • How should I handle a batch of records that fail validation during the dry run?
  • Can you create a checklist for the UAT phase that includes business user sign-offs?