Troubleshoot and support >


Troubleshoot: Publishing a store archive


Publish customized WebSphere Commerce V6 store archives in WebSphere Commerce V7

If you are publishing a custom store archive from a version of WebSphere Commerce prior to v7, and publish it to a new WebSphere Commerce V7 installation, the following failed status is observed:

Publish failed to publish the data assets.

An error occured while executing the task com.ibm.commerce.tools.devtools.publish.tasks.massload.MassLoaderTaskCmdImpl. Refer to the following message for details and suggested action: The Loader failed to load the data from the input file...

D:\WCDE0910\wasprofile\logs\WCS7218965358601138671\SARS\Stores.war\WEB-INF\stores\TestStore\data\store-data-assets.resolved.xml

...to the database. Ensure the data contained in the input file correctly matches the database schema.

SQLException
A SQL Exception was received INSERT on table 'MBRROLE' caused a violation of foreign key constraint 'F_453' for key (-6). The statement has been rolled back. on record [mbrrole: [MEMBER_ID=7000000000000000851][ROLE_ID=-6][ORGENTITY_ID=7000000000000000851][OPTCOUNTER=0]]. [sqlcode: 20,000, sqlstate: 23503]
<mbrrole
member_id="7000000000000000851"
optcounter="0"
orgentity_id="7000000000000000851"
role_id="-6"
>

To resolve this issue, remove the Store Admin role (roleId=-6) from the modelorgrole.xml and storeorgrole.xml files from the SAR file.

If you experience problems while publishing a store archive:

  1. Review the following log files related to publishing...

    • activity.log
    • trace.log
    • message.txt
    • trace.txt
    • RESWCSID.txt
    • SystemOut.log
    • SystemErr.log

  2. You can configure logging for the loading utilities, including increasing the logging level.

  3. Enable the WC_DEVTOOLS trace log.

    If the problem occurred while executing a particular task, you should configure tracing for the corresponding component. For example, if it the contractimport or accountimport command fails, enable the corresponding component, WC_Contract.

  4. If an error occurs during the data loading phase of publishing, the error displays on the Publish Details page of the Publish wizard.

    To view the Publish Details page for the store archive, see View publish status.


Republishing a contract or account

If a message in the activity.log or the Publish Details page reports a duplicate contract exception, but publishing has completed successfully:

If a message in the activity.log or the Publish Details page reports a duplicate account exception, but publishing has completed successfully, ignore this warning.


Publish is successful but store does not display or does not function properly

If publish is stated to be successful, but you can't launch the store, or the store isn't functioning properly, check the activity.log file for errors.


Transaction log for the database is full

If the message, "Transaction log for the database is full" displays in the message.txt log, you have the following options:


Publishing a component store archive results in a duplicate store name in the Store Creation wizard

After publishing a component store archive (for example, B2BDirectHostedStorefrontAssetStore.sar, ConsumerDirectResellerStorefrontAssetStore.sar, or CatalogAssetStore.sar), you might notice duplicate store names displayed in the Store Creation wizard.

To avoid this problem, issue the following SQL statement every time upon completing publishing a component store archive:

update storeentds set displayname=' store_name' where storeent_id=(select storeent_id from storeent where identifier=' store_identifier') and lang_id=-1

Where:

store_name

The name that to be displayed in the Store Creation wizard.

store_identifier

The value of the store identifier parameter you have provided during the publishing of the component store archive.


Store publish fails with a timeout error

A store publish fails with a timeout error when using WebSphere Application Server v6.1.

To recover from this problem, increase the maximum timeout by doing the following:

  1. Log in to the WebSphere Administration console.

  2. Under Servers click Application Servers > server1.

  3. Under Container Settings, click Container Services > Transaction Service.

  4. Change the Maximum transaction timeout to 1200.

  5. Save the change and exit the console.

  6. Restart the WebSphere Commerce application server.


Remove a published store

Once you publish a store using WebSphere Commerce, store assets and database objects are saved within the WebSphere Commerce Server. If you want to remove the store, ensure it is completely cleaned from the WebSphere Commerce system. You may want to remove a store, if you had problems publishing a store, or have a corrupted store. Once the store has been cleaned form the WebSphere Commerce system, you can republish it.

To remove a published store, do the following:

  1. Mark the store for deletion using the WebSphere Commerce Accelerator.

  2. Delete WebSphere Commerce objects from the database, using the database cleanup utility:

    1. Delete store objects

    2. Delete contract objects

    3. Delete fulfillment center objects (a default fulfillment center is assigned to al stores, so fulfillment center objects must be removed before republishing the store)

  3. Republish the store and test that it works


+

Search Tips   |   Advanced Search