Success Case: Resolving Import Errors in OSCB157

A customer encountered an error while importing customer data using the OSCB157 import process. They followed the recommended step order:

  1. Products – Imported brands, categories, product options, and products successfully.
  2. Orders – Started by importing customers and order statuses before orders.

Problem:
During the customer import process, an error occurred:
"Start import for Customers... Expecting: 37083. Import was interrupted due to an error: XML Error: Invalid document end at line 14."

The user attempted to reimport customers, but the same error persisted.
Support Team's Investigation and Solution:

  1. Analyzing the Issue
    • The support team requested the log file from runtime/logs/app.log.
    • The latest XML file in lib/common/extensions/OscLink/temp/customers.xml was invalid.
  2. Identifying the Cause
    • A missing country entry in the database caused the issue.
    • The customer ran an SQL query to find missing country records:
      SELECT a.customers_id, c.countries_id FROM address_book a
      LEFT JOIN countries c ON c.countries_id = a.entry_country_id
      WHERE c.countries_id IS NULL;
    • The query identified 26 customer records with missing country data.
  3. Fixing the Issue
    • The customer enabled the missing countries in the new database.
    • They attempted the import again, but the error persisted.
  4. Final Resolution
    • The support team provided updated files:
      • oscb/common/api/models/XML/IOCountryMap.php
      • oscb/common/helpers/Country.php

These updates ensured that customers with missing country IDs were imported, but their address book remained empty.

The customer successfully completed the import and shared a step-by-step tutorial to help others facing the same issue.

Tags
Ecommerce osCommerce 4.x Multiple sales channels Managing SEO Order Statuses Cron Scheduler osCommerce v4 Theme Customization PHP Compatibility Module Installation Free Shipping Customer Groups Theme Designer Cron Jobs Order Management Design Troubleshooting Checkout Page Responsive Design Language Settings Multilingual Store Translation Module German Language Multilingual Support PayPal Integration Shopping Cart Display Payment Module Configuration SQL Commands Customizing Buttons Payment Options German Translation Frontend Localization Enable Languages System Translate Module Shipping Configuration Zone Table Rate Shipping Weight and Price Restriction Shipping Module Setup Shipping Price Cutoff Shipping Compensation Limits Customer Details Validation Custom Validation Rules Mandatory Fields Setup Address Validation Minimum/Maximum Values Settings Order Status Notifications Email Templates Setup Customer Communication Automated Notifications Product Listing Image Display UpSell Module Widget Settings Cash On Delivery Prepayment Payment Via Invoice Click And Collect Shop Local Plugin Customization Address Configuration Promotions Tailored Offers Shipping Options Custom Promotions Automated Imports CSV Import XML Import Extension Generator Custom Extensions Backend Controller Development Tools Product Export Data Management Database Export Supplier Data Custom Exports Pricing Automation Supplier Pricing Retail Pricing Inventory Management Automated Workflows Database Update Customer Data Data Migration Ecommerce Security Admin Directory File Permissions Database Migration Secure Admin Access Ecommerce Migration Security Key 404 Error Fix Web Server Setup Website Upgrade Data Import Admin Error Fix Internal Server Error Tech Support Import Process XML Fix Database Management PHP8 Web Development Dev Support PHP Errors Software Upgrade URL Rewriting Website Optimization SQL Search Ranking Migration oscb156 PHP Secure Key Dev Solutions User Feedback Software Solutions Ecommerce Design Checkout Customization Order Confirmation Guest Checkout Invoice Link Checkout Optimization Shipping Details Banner Optimization UX Website Customization Image Management Web Design Category Display Store Customization Navigation Empty Categories Troubleshooting Website Icons Product Filter Product Management Active Status Products Product Video eCommerce UX Video Integration Privacy Settings Privacy Policy Coding Tips Bulk Update Paging Widget UX Improvement Website Navigation Batch Processing Store Optimization Website Fix User Experience Bug Fix Product Display Thumbnails Accessibility Best Sellers Inclusive Design Mobile Friendly Online Store Product Sorting Theme Settings Fixed Width Digital Launch ux design b2b b2c osCommerce UI Multi Store Management eCommerce Solutions Digital Transformation osCommerce 4 business growth HolbiGroup Innovation AI in Ecommerce Global Business Website Translations Local SEO