Problem Note 54027: Load_STG2DM_Geo_prod generates " ERROR: Integrity constraint _NM0001_ was rejected because X observations failed the constraint."
The SAS® Revenue Optimization Load_STG2DM_Geo_prod job might generate the following error in the Load_STG2DM_Geo_prod.log file:
NOTE: Table DI_DM.GEO_PROD has been modified, with 10 columns.
ERROR: Integrity constraint _NM0001_ was rejected because n observations failed the constraint.
NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.
NOTE: Statement not executed due to NOEXEC option.
NOTE: Statement not executed due to NOEXEC option.
NOTE: Statement not executed due to NOEXEC option.
NOTE: Statement not executed due to NOEXEC option.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE SQL used (Total process time):
real time n seconds
cpu time n seconds
This error occurs when the following are both true:
- The STG_GEO_PROD file contains records where the STG_GEO_PROD.STATUS_VALID_FROM_DT is before the GEO_PROD_STATUS.VALID_FROM_DT for the current time period for a geo-prod.
- There is a STG_GEO_PROD record with a future STG_GEO_PROD.STATUS_VALID_FROM_DT for at least one other geo-prod.
The historical STG_GEO_PROD record is rejected and written to the DI_MON.STG_GEO_PROD_X table. Updating historical geo-prod status data is not supported.
To workaround this issue, perform the following steps:
- Restore the DI_DM.GEO_PROD and DI_DM.GEO_PROD_STATUS tables from a backup made prior to the attempt to run Load_STG2DM_Geo_prod.
- Remove the records identified in the DI_MON.STG_GEO_PROD_X table as historical records from the DIDM_STG.STG_GEO_PROD table.
- Run the Load_STG2DM_Geo_prod job.
Click the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | SAS Retail Forecasting | Microsoft® Windows® for x64 | 4.2_M1 | | 9.2 TS2M3 | |
64-bit Enabled AIX | 4.2_M1 | | 9.2 TS2M3 | |
SAS System | SAS Regular Price Optimization | Microsoft® Windows® for x64 | 4.2_M1 | | 9.2 TS2M3 | |
64-bit Enabled AIX | 4.2_M1 | | 9.2 TS2M3 | |
SAS System | SAS Promotion Optimization | Microsoft® Windows® for x64 | 4.2_M1 | | 9.2 TS2M3 | |
64-bit Enabled AIX | 4.2_M1 | | 9.2 TS2M3 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2014-09-11 09:50:43 |
Date Created: | 2014-09-03 10:12:30 |