SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 46761: Errors occur when you try to run sample reports in the first maintenance release for SAS® Forecast Studio 4.1

DetailsHotfixAboutRate It

In SAS Forecast Studio 4.1 (M1), the following error occurs if you run sample reports when the Web Infrastructure Platform is configured on an Oracle database:

[1] org.springframework.jdbc.BadSqlGrammarException: SqlMapClient operation; bad SQL grammar []; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred while applying a parameter map.
--- Check the JES.insertTask-InlineParameterMap.
--- Check the statement (update failed).
--- Cause: java.sql.SQLSyntaxErrorException: ORA-00904: "PROMPT_VALUES_TXT": invalid identifier
at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslateSQLErrorCodeSQLExceptionTranslator.java:233)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate

This error occurs because there is a typographical error in the SAS_JES_TASKS table schema for Oracle. The identifier PROMPT_VALUES_TX should be PROMPT_VALUES_TXT. To resolve this error, follow these steps:

  1. Back up the schema-jes.sql file, which resides in the directory \SASWebInfrastructurePlatform\9.3\Config\Deployment\Data\oracle.
  2. Edit schema-jes.sql, as follows:
    • Search for the text PROMPT_VALUES_TX and replace it with PROMPT_VALUES_TXT.
    • Search for the text INPUT_VALUE_TXT and remove the string NOT NULL enable, which follows INPUT_VALUE_TXT.
  3. Stop the SAS® middle-tier services (for example, Remote Services, the JBoss application server, and so on)
  4. Use the SAS® to remove the configuration for the Web Infrastructure Platform.
  5. Contact your Oracle database administrator and request that all tables be removed from the Oracle schema that was specified as the database in the Web Infrastructure Platform configuration.
  6. Reconfigure the Web Infrastructure Platform using the SAS Deployment Wizard.
  7. Restart the SAS middle-tier services and your web application server.

After you apply these steps (which are necessary), a different error occurs when you try to run the sample reports.

org.springframework.dao.DataIntegrityViolationException: SqlMapClient operation;
SQL [];
--- The error occurred in com/sas/svcs/jobexecution/dao/persistence/JES.xml.
--- The error occurred while applying a parameter map.
--- Check the JES.insertTaskInputValue-InlineParameterMap.
--- Check the statement (update failed).
--- Cause: java.sql.SQLIntegrityConstraintViolationException: ORA-01400: cannot
insert NULL into ("SAS_SSVCS"."SAS_JES_TASK_INPUT_VALUES"."INPUT_VALUE_TXT")
; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in com/sas/svcs/jobexecution/dao/persistence/JES.xml.
--- The error occurred while applying a parameter map.
--- Check the JES.insertTaskInputValue-InlineParameterMap.
--- Check the statement (update failed).
--- Cause: java.sql.SQLIntegrityConstraintViolationException: ORA-01400: cannot
insert NULL into ("SAS_SSVCS"."SAS_JES_TASK_INPUT_VALUES"."INPUT_VALUE_TXT")

A hot fix is available to correct this second error. 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 Forecast StudioMicrosoft® Windows® for x644.1_M112.19.3 TS1M19.3 TS1M2
Microsoft Windows Server 2003 Datacenter Edition4.1_M112.19.3 TS1M19.3 TS1M2
Microsoft Windows Server 2003 Enterprise Edition4.1_M112.19.3 TS1M19.3 TS1M2
Microsoft Windows Server 2003 Standard Edition4.1_M112.19.3 TS1M19.3 TS1M2
Microsoft Windows Server 2003 for x644.1_M112.19.3 TS1M19.3 TS1M2
Microsoft Windows Server 20084.1_M112.19.3 TS1M19.3 TS1M2
Microsoft Windows Server 2008 for x644.1_M112.19.3 TS1M19.3 TS1M2
Microsoft Windows XP Professional4.1_M112.19.3 TS1M19.3 TS1M2
Windows 7 Enterprise 32 bit4.1_M112.19.3 TS1M19.3 TS1M2
Windows 7 Enterprise x644.1_M112.19.3 TS1M19.3 TS1M2
Windows 7 Home Premium 32 bit4.1_M112.19.3 TS1M19.3 TS1M2
Windows 7 Home Premium x644.1_M112.19.3 TS1M19.3 TS1M2
Windows 7 Professional 32 bit4.1_M112.19.3 TS1M19.3 TS1M2
Windows 7 Professional x644.1_M112.19.3 TS1M19.3 TS1M2
Windows 7 Ultimate 32 bit4.1_M112.19.3 TS1M19.3 TS1M2
Windows 7 Ultimate x644.1_M112.19.3 TS1M19.3 TS1M2
Windows Vista4.1_M112.19.3 TS1M19.3 TS1M2
Windows Vista for x644.1_M112.19.3 TS1M19.3 TS1M2
* 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.