SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 42624: Error "java.lang.RuntimeException: Default prices are not populated correctly, please update your database tables " might be encountered

DetailsHotfixAboutRate It

The following errors might be encountered when creating a new promotion in SAS® Promotion Optimization:

java.lang.RuntimeException: Default prices are not populated correctly, please update your database tables at com.sas.solutions.di.studio.rpp.plan.price.selection.PriceModel.populateDefaultSystemPrices(PriceModel.java:137) at com.sas.solutions.di.studio.rpp.plan.actions.AbstractCreatePromotionPlan$1.createInitalizationData(AbstractCreatePromotionPlan.java:60) at com.sas.solutions.di.studio.rpp.plan.actions.AbstractCreatePromotionPlan$1.createInitalizationData(AbstractCreatePromotionPlan.java:59) at com.sas.solutions.di.studio.rpp.common.actions.EditItemActionBase$LoadInitializationDataJob.execute(EditItemActionBase.java:183) at com.sas.solutions.di.commons.jobs.AbstractJob.internalExecute(AbstractJob.java:432) at com.sas.solutions.di.commons.jobs.AbstractJob.run(AbstractJob.java:401) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Caused by: java.lang.NumberFormatException at java.math.BigDecimal.(BigDecimal.java:481) at java.math.BigDecimal.(BigDecimal.java:671) at com.sas.solutions.di.server.api.core.CustomAttributeDecimal.setValueAsString(CustomAttributeDecimal.java:19) at com.sas.solutions.di.server.api.core.CustomAttribute.setPersistedValueString(CustomAttribute.java:118) ......

The UI is erroneously expecting a non-null default value for numeric custom attributes.

To work around this issue, assign the numeric custom attributes a default value or make the custom attributes as "String" type.

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 Promotion OptimizationMicrosoft Windows Server 2003 for x644.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 Enterprise Edition4.2_M14.2_M29.2 TS2M39.2 TS2M3
64-bit Enabled AIX4.2_M14.2_M29.2 TS2M39.2 TS2M3
Microsoft Windows Server 2008 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 2003 Datacenter Edition4.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.