FAQ and troubleshooting¶
Questions¶
Which data can I import and export?¶
Users, categories, products and coupons. The exact fields are listed in Usage. Product prices, plans, configurable options, services, orders and invoices are not covered.
Does a dry run change anything?¶
No. A dry run applies the mapping and checks the required fields of each row. It writes only the run itself and its row logs to the extension's own tables.
My dry run was clean but the live import has failed rows. Why?¶
A dry run does not look up existing records. Two errors appear only in a live import: a match field that is missing in the mapped row, and a product whose category_slug does not exist. Database errors, such as a duplicate e-mail address or slug, also show up only when rows are written.
Does an import run in the background?¶
No. The run executes in the page request when you click Create. Keep files within what your PHP time and memory limits allow, and use Max rows per import run as a guard.
Can I undo an import?¶
No. There is no rollback. Export the entity before a live import so you have a copy of the previous state.
Are imported passwords hashed?¶
Yes. The password value from the file is hashed before it is saved. New users without a password get a random 16-character password, so they have to use Paymenter's password reset to log in.
Why did fields I did not map become empty?¶
On records it updates, a live import saves all fields of the entity and writes empty values for those you did not map. See the warning in Usage.
Can I choose the columns of an export?¶
No. Each entity is exported with a fixed set of columns, see Usage. For user exports you can exclude individual users.
Where are the files stored?¶
Uploaded import files are in storage/app/tmp/bulk-importer, export files in storage/app/tmp/bulk-importer/exports. The extension never deletes them. Remove old files yourself, since they can contain customer data and plain-text passwords.
Where do I see which rows failed?¶
In the database table ext_bulk_import_row_logs. The admin area shows only the counts and the summary. See Usage.
The Bulk Importer entry is missing from the navigation¶
The extension is not enabled, or your role lacks the permission View bulk importer. The New Run button needs Create import runs.
Messages in the Summary column¶
| Message | Cause and fix |
|---|---|
Uploaded file not found on disk. |
The uploaded file is not in storage/app. Check that the web server user can write to storage/app/tmp/bulk-importer and create a new run. |
Cannot auto-detect format for extension: ... |
The file extension is not csv, txt, json or xml. Select the Format manually. |
CSV header row is empty. |
The first line of the CSV has no column names. Add a header line or switch off CSV has header row. |
Could not open CSV file., Could not read JSON file., Could not read XML file. |
The file cannot be read from disk. Check file permissions in storage/app/tmp/bulk-importer. |
JSON file must decode to an object or array. |
The file is not valid JSON. |
JSON path "..." returned no records. |
Nothing is found at the JSON path (optional). Check the path against the file. |
Invalid XML file. |
The file is not well-formed XML. |
XML record path "..." returned no records. |
Nothing is found at the XML record path (optional). The path starts below the root element: for <records><record> it is record, not records.record. |
File has N rows, exceeds max_rows_per_run=M. |
The file has more rows than Max rows per import run. Raise the setting or split the file. |
Mapping is empty. Add at least one source-to-target mapping row. |
The run has no Column Mapping rows. |
Mapping row #N is missing target field. |
A mapping row has no Target field. |
Mapping row #N has invalid target "...". Allowed: ... |
The target field does not belong to the selected Entity. This happens when you change the entity after filling in the mapping. |
Export failed: ... |
The export could not be written. Could not create export directory and Could not create CSV export file. mean the web server user cannot write to storage/app/tmp/bulk-importer/exports. |
Row messages¶
These are stored per row in ext_bulk_import_row_logs.
| Message | Cause and fix |
|---|---|
Validation failed for "<field>": required field is missing or empty. |
A required field has no value. Required are: Users email; Categories slug and name; Products name and category_slug; Coupons code and type. Check the source name in the mapping; it must match the column name exactly. |
Validation failed for "email": invalid format "...". |
The value is not a valid e-mail address. |
Validation failed for "type": "..." is invalid. Allowed: percentage, fixed. |
Coupon type must be exactly percentage or fixed, in lower case. Use the lowercase transform if needed. |
Match field "<field>" is missing in mapped row. |
The Update match field is not mapped or is empty for this row. With match field id this always happens, because id is not a target field. |
Referenced category not found for category_slug="...". |
No category with this slug exists. Import the categories first. |
No mapped values were produced. Verify source columns/paths in mapping. |
The row was skipped because the mapping produced no target field. |
Any other text after Row N: |
An error from PHP or the database while saving the row, for example a duplicate value or an unparseable date in a date/time transform. |
Other problems¶
An XML or JSON import finishes with 0 rows¶
The parser found no list of records at the path. For XML this happens when XML record path (optional) points to an element that occurs only once in the file, because a single element is not read as a list. Leave the path empty for a file with one record. For JSON it happens when the entries at the path are not objects.
All rows fail with a required-field message¶
The source names in the mapping do not match the file. For CSV they are the header names, or column_1, column_2 when CSV has header row is off. Also check CSV delimiter: with the wrong delimiter the whole line is read as one column.
Nested categories have a wrong full slug after an update import¶
When an import updates an existing category, the extension sets the category's full_slug to its own slug. Paymenter recalculates the parent prefix only when the slug or the parent changes in the same save. Check child categories after an import that updates them, or avoid updating nested categories by import.
The Download button is missing¶
Download appears only for export runs with status completed whose file still exists in storage/app/tmp/bulk-importer/exports.