Checking access…

Skip to main content
Audience: CCG Platform Engineers

Troubleshoot a Customer Migration Run

Repository-derived draft β€” engineering review pending

This guide was generated from the wallet-migration-service repository. Engineering has not reviewed or approved the described flow, operational steps, or environment behavior. Confirm the details with the migration engineering team before using or referring to this guide for a migration or incident.

Use this page to gather evidence for a migration engineering review. It gives read-only checks and source-backed likely causes. It does not approve retries, force-rerun, manual database changes, archive, or a new file submission.

Source snapshot: wallet-migration-service main at f63cfa3c, inspected 2026-11-26. See the overview for the flow and the reference for exact status and endpoint names.

Capture the run state first​

  1. Record the merchant ID, file name, migration source ID if known, migration type, and the timestamp of the last job-start request. Do not include customer or payment-method data in a ticket.
  2. Query GET /api/migration/job/merchant-migrations with the merchant ID and a source ID or file name through the approved internal caller. Capture the top-level status, input and staging counts, per-record counts, and populated file-location fields.
  3. Compare the observed status with the expected preceding gate in the run-and-monitor sequence. A 202 Accepted start response alone does not prove a job reached that gate.
  4. Correlate the run with application and Spring Batch job/step logs. Record the first failure or NOOP validation step, not just the last controller message.

Symptoms and checks​

SymptomCheck in status/sourceNext action for engineering review
No migration record after staging returns 202Check the input file's approved Blob path, file name/header case, type (CARD or BANK_ACCOUNT), metadata keys, and staging job logs. The status record is created inside the batch job, after the controller's response.Confirm whether the job downloaded the file or ended before CreateMigrationStatusRecord.
Status remains STAGING_INITIATED or records are skippedCompare recordsCount, stagingRecordsCreatedCount, and stagingRecordsSkippedCount; inspect staging parse/validation exceptions and the batch skip summary.Identify the failing rows and confirm the authorized correction path; do not edit staging rows directly.
Customer creation does not advanceThe normal validator accepts STAGING_COMPLETED or CUSTOMER_CREATION_INITIATED and requires metadata keys. Check the job's validation and post-step status update.Determine whether the job ended NOOP, failed, or is still processing before considering a rerun.
Card Stripe extract does not startEach source ID must be CARD and CUSTOMER_CREATION_COMPLETED; check the submitted ID list and merchant ID.Correct the source selection through the approved caller after confirming the missing prerequisite.
Card status remains STRIPE_EXTRACT_COMPLETED after reconciliationCheck whether the approved success/error response files were processed and whether COMPLETED + FAILED card staging rows equals stagingRecordsCreatedCount.Ask engineering which response files are outstanding and who owns the Stripe handoff.
Bank-account setup or reconciliation does not advanceSetup normally needs CUSTOMER_CREATION_COMPLETED. Reconciliation needs SETUP_PAYMENT_METHOD_COMPLETED and input rows accounted for by skipped, completed, and failed counts.Identify the NOOP gate or outstanding rows; do not bypass it with force-rerun without review.
Extract location is emptyCheck which extract job was started, its job/step result, its status prerequisite, and the corresponding merchantExtractFileLocation or merchantErrorExtractFileLocation field.Confirm generation and Blob upload with engineering; a COMPLETED migration status does not itself confirm merchant delivery.

Escalation packet​

Provide the migration team with the service revision, environment name, merchant ID, migration source ID, file name, migration type, last accepted job, current status, count summary, relevant job/step identifiers, sanitized error message, and whether a Stripe or merchant extract location is populated. Do not attach real migration CSVs, credentials, full Blob URLs with access tokens, or customer payment details.

Rerun and archive require approval of the actual procedure

The source contains force-rerun and archive code, but their presence does not establish when rerunning is safe after partial customer or payment-method creation. Archive copies and removes staging data. Escalate before invoking either path.

For the merchant's interpretation of output rows, use Migration Extracts. This troubleshooting page addresses the service's internal state only.