Document Properties
Kbid
29T563
Last Modified
22-Dec-2020
Added to KB
15-Jul-2020
Public Access
Everyone
Status
Online
Doc Type
Guidelines
Product
ICM 7.10
Guide - 7.10.22.1 Change Behavior for Job ProductPriceChangeEvents - Refresh Product Prices

Introduction

When a price list import is executed in the back office to update product prices, "price change events" are created in the database. After the import, a separate job ProcessProductPriceRefresh must be executed to process the created price change events and do further things like CacheRefresh etc. The job ProcessProductPriceRefresh has a job configuration named Cleanup events. Depending on that configuration (true/false), the processed price change events are deleted (Cleanup events = true) or remain in the database (Cleanup events = false/missing). The default value is true.

In order to reduce the number of events to process and also to ensure that the events are processed only once (for option Cleanup events = false), this job only processes events that are created within a certain time frame - from the last run of this job until now.

Since the job ProcessProductPriceRefresh (which consumes the events) is independent from the price list import which creates the events, it could be that both processes run simultaneously. In this case, events are created within the time frame of the current run in which they are to be processed. However, they are not because of parallel execution. This leads to an accumulation of unprocessed price change events in the database.

This occurred in both modes (Cleanup events = true or false).

The job has been changed again in ICM 7.10.25.3-LTS. See linked migration guide in next paragraph "References".

References

Migration

ProcessProductPriceRefresh (Cleanup events = true - default)

In order to fix that issue, the behavior of the job ProcessProductPriceRefresh was changed for the option (Cleanup events = true):

Running the job with Cleanup events = true usually means that afterwards all processed price change events are removed and the database table should be empty. So there is no need to reduce the number of events that are processed by a time frame. Therefore this date check has been removed. As a result, the price change events created from the price list import during a parallel execution remain in the database after the current run of the job ProcessProductPriceRefresh. They will then be processed with the next run. Since the mode "Cleanup events = true" is the default option, this fix will cover most cases. There is no migration necessary. However, there could be a lot of leftover (outdated) price change events that the job has to process, which might increase the execution time of the job.

Depending on the amount of outdated price change events that might have been left over, it could be necessary to remove the event objects manually. If the job gets executed immediately after the migration it might run into memory problems.
The following SQL statement can be used to clean up outdated product price change events:

DELETE from PRODUCTPRICECHANGEEVENT where creationdate < 'DD.MM.YY';
commit; // if necessary

The date 'DD.MM.YY' (example: '01.11.20') should be a date in the recent past, e.g. one week ago. It does not matter if some of the outdated entries will be left. They are automatically cleaned up during the next run. When the biggest amount of legacy data was removed, the job will continue regularly.

The described process of deleting outdated items will automatically be done by the job from ICM 7.10.25.3-LTS on.

ProcessProductPriceRefresh (Cleanup events = false)

The behavior for the second option (Cleanup events = false) remains unchanged.

This means there could still be unprocessed price change events. Therefore, Intershop does not recommend using this option.

Disclaimer
The information provided in the Knowledge Base may not be applicable to all systems and situations. Intershop Communications will not be liable to any party for any direct or indirect damages resulting from the use of the Customer Support section of the Intershop Corporate Web site, including, without limitation, any lost profits, business interruption, loss of programs or other data on your information handling system.
The Intershop Knowledge Portal uses only technically necessary cookies. We do not track visitors or have visitors tracked by 3rd parties. Please find further information on privacy in the Intershop Privacy Policy and Legal Notice.
Home
Knowledge Base
Product Releases
Log on to continue
This Knowledge Base document is reserved for registered customers.
Log on with your Intershop Entra ID to continue.
Write an email to supportadmin@intershop.de if you experience login issues,
or if you want to register as customer.