---
schema_version: "1"
id: c83d1030ec8ddef753a25e0afdc128d7499b750df68866a860547a57062736a3
title: Import/Export Error Handling in B2C Commerce
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/cc/264-0-0/b2c_import_export_error_handling.md
canonical_url: https://help.salesforce.com/s/articleView?id=cc.b2c_import_export_error_handling.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: f6ccf9f38e7a8628bcf5874ac1f207ddda32d6946c43b78d8c5fac3754377355
description: All import, export, and validation processes create log files. Log files are accessible through WebDAV on the import and export share in your cartridge.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# Import/Export Error Handling in B2C Commerce

All import, export, and validation processes create log files. Log files are accessible through WebDAV on the import and export share in your cartridge.

For example:

`https://<instance>/on/demandware.servlet/webdav/<organization>/​Impex/log.`

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-cc-b2c_merchandiser_administrator-264-0-0-production-enus/ea76f372-6cfa-42a6-8e7c-05c6df7abed8/images/icon_note.png)

Note The `File Transfer Manager` access privilege is required to access this share. Click App Launcher ![App Launcher](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-cc-b2c_merchandiser_administrator-264-0-0-production-enus/ea76f372-6cfa-42a6-8e7c-05c6df7abed8/cc/b2c_merchandiser_administrator/images/appLauncher.png), and then select **Administration** | **Organization** | **Roles & Permissions**. Select **WebDAV\_Transfer\_Files.**

You can view the log files for processes that Business Manager started.

Click App Launcher ![App Launcher](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-cc-b2c_merchandiser_administrator-264-0-0-production-enus/ea76f372-6cfa-42a6-8e7c-05c6df7abed8/cc/b2c_merchandiser_administrator/images/appLauncher.png), and then select **Administration** | **Site Development** | **Development Setup**. In the WebDAV Access section, click the **Log files** link for general system and custom log files, and the **Import/Export** link for log files specific to import and export processes.

For the import and export process, it's important to distinguish between process errors and data errors.>

## Record Summary Information

B2C Commerce logs a `Starting Import` message for all import processes. For catalog imports, it also logs a `Phase 1 - Items` and `Phase 2 - Relations` message. For each type of item, it prints this message:

```
Processed N <type name> elements successfully
```

where:

`N`

number of elements processed

<type name>

name of the data type, like product, catalog

It also prints the total number of elements:

```
Processed N total elements 
```

## Process Errors

Process errors can occur during import and export processes. They include missing or incorrect process parameters, problems while acquiring locks, malformed XML feeds, and general system errors. Process errors sometimes cause an import or export process not to start or to abort immediately during execution.

## Data Errors

Feeds cause data errors and data warnings, which occur only during an import process. They are always local to an element in the feed. The import process isn't aborted when a data error or warning occurs; instead the import process skips the invalid element. Thus an import process can end with no process error but with a data error. Problems with data are classified as DATAERROR or DATAWARNING. More details about the location and cause of the error or warning are provided in the log file.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col>
          <col>
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" id="d170951e178">Error Type</th>
            <th scope="col" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" id="d170951e181">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Error Type" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d170951e178 ">DATAERROR</td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d170951e181 ">
              <p>Logged when an element in the feed (for example, category or product)
                can't be processed at all. For example, the element lacked a mandatory ID
                attribute.</p>
              <p style="margin-bottom:0;">There is at most one DATAERROR logged per element in an import feed.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Error Type" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d170951e178 ">DATAWARNING</td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d170951e181 ">
              <p>Indicates that an element was processed, but only partially. For example,
                a feed element comes with a custom attribute, but the attribute isn't
                defined in the system. In this case, the custom attribute is ignored.</p>
              <p>Another example is that a product references a classification category
                that doesn't exist. In this case, no classification category is defined
                for the product.</p>
              <p>There can be multiple DATAWARNINGs per import element in the feed.</p>
              <p style="margin-bottom:0;">The use of obsolete elements or subelements is logged as DATAWARNING</p>
            </td>

          </tr>
        </tbody>
      </table>

Import pipelets provide easy access to the number of DATAERRORs and DATAWARNINGs using the _Status_ object.

In the following example, a script uses the status object to count errors.

`var dataErrors : Number = status.details.DataErrorCount;` `var dataWarnings : Number = status.details.DataWarningCount;`

It's a good practice to determine the success of an automated import process by first checking for process errors, then for DATAERRORs, as shown in the following script code.

`var success : boolean = (status.code == 'IMPEX-0') && (status.details.DataErrorCount == 0);`

Code shouldn't treat the occurrence of DATAWARNINGs as an unexpected error, because a feed that doesn't cause DATAWARNINGs today can cause DATAWARNINGs in a future B2C Commerce version (for example, because an element was deprecated or rules updated).