SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 44808: Optimization fails with database error

DetailsHotfixAboutRate It

When running SAS® Regular Price Optimization, you might see the following error during optimization:

ERROR: During insert: [IBM][CLI Driver][DB2/AIX64] SQL0407N  Assignment of a NULL value to a NOT NULL column 
"TBSPACEID=2, TABLEID=196, COLNO=13" is not allowed.  SQLSTATE=23502 
ERROR: ROLLBACK issued due to errors for data set DI_T_DBC.RPO_PLAN_MEMBER_RESULT_KPI.DATA.
NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.
NOTE: The SAS System stopped processing this step because of errors.

This error occurs when the global setting USE_COST_BASED_ACCT is set to 1 and there are products within the scope of the plan (i.e., either original plan members, related items or items added due to cross-effects) that have a base forecast of 0 for all stores within the price zone. This condition causes a margin percent value to be missing, which then violates a database constraint.

The work around for this issue is to change the global setting USE_COST_BASED_ACCT to 0.

Click the Hot Fix tab in this note to access the hot fix for this issue.

Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Regular Price OptimizationMicrosoft Windows Server 2003 Datacenter Edition4.2_M14.2_M29.2 TS2M39.2 TS2M3
Microsoft Windows Server 2003 Enterprise Edition4.2_M14.2_M29.2 TS2M39.2 TS2M3
Microsoft Windows Server 2003 Standard Edition4.2_M14.2_M29.2 TS2M39.2 TS2M3
Microsoft Windows Server 2003 for x644.2_M14.2_M29.2 TS2M39.2 TS2M3
Microsoft Windows Server 20084.2_M14.2_M29.2 TS2M39.2 TS2M3
Microsoft Windows Server 2008 for x644.2_M14.2_M29.2 TS2M39.2 TS2M3
64-bit Enabled AIX4.2_M14.2_M29.2 TS2M39.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.