EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB322170: In MicroStrategy version 10.x, data cannot be inserted into the DT_DAY table when Configuration Wizard is used to create Statistics tables and Enterprise Manager Warehouse in Chinese environment


Community Admin

• Strategy


This article documents a possible error that can be seen when creating a new Enterprise Manager warehouse in version 10.x on non-English locale operating systems

SYMPTOM
When Strategy Configuration Wizard 10.x is used to create Statistics tables and Enterprise Manager Warehouse in Chinese environments, values cannot be inserted into the DT_DAY table. The data is inserted into DT_DAY by Strategy Configuration wizard based on the locale of the Operating System. In the DSSError.log, the following error message is seen: 


2017-01-19 10:44:11.638 [HOST:102WIN2012R2][PID:7872][THR:1256][Database Classes][Error] Execute Query failed. 
Error type: Odbc error. Odbc operation attempted: SQLExecDirect. [HY000:12899: on SQLHANDLE] [Strategy][ODBC Oracle Wire Protocol driver][Oracle]ORA-12899: value too large for column "TEST"."DT_DAY"."WEEKDAY_SDESC" (actual: 9, maximum: 5) Connection String: DSN=test;UID=LIM7JAN12U17;HOST=10.16.17.12;PORT=1522;SID=unicode112;. SQL Statement: INSERT INTO DT_DAY (DAY_DATE, DAY_ID, DAY_SDESC, DAY_LDESC, WEEKDAY_ID, WEEKDAY_LDESC, WEEKDAY_SDESC, MONTH_ID, QUARTER_ID, YEAR_ID, WEEKOFYEAR_ID, WEEK_ID) VALUES (to_date('2017/10/16 00:00:00','YYYY/MM/DD HH24:MI:SS'), 20171016, '10/16/2017 星期一', '10/16/2017 星期一', 1, '星期一', '星期一', 201710, 20174, 2017, 201742, 669) . 

CAUSE
The root cause is that the inserted value of column "WEEKDAY_SDESC" is in Chinese, so it is larger than the maximum length allowed for the column, which is 5 , while the actual length of the Chinese characters is 9.
ACTION
This issue can be addressed by altering the datatype of the the description column by modifying the script which initially creates the DT_DAY table. Create a backup of the file 'CreateTablesScript.sql' located at: <install drive>:\Program Files(x86)\CommonFiles\MicroStrategy\StatisticsEnterpriseManagerScripts\DDLScripts and modify the original 'CreateTablesScript.sql' to enlarge the length of column "WEEKDAY_SDESC" in the table DT_DAY to 10.

CREATE TABLE DT_DAY
      ( DAY_DATE GLOBALDAYDATE,
     DAY_ID GLOBALINT,
     DAY_SDESC GLOBALVARCHAR(20),
     DAY_LDESC GLOBALVARCHAR(30),
     WEEKDAY_ID GLOBALINT,
     WEEKDAY_LDESC GLOBALVARCHAR(20),
     WEEKDAY_SDESC GLOBALVARCHAR(10),
     MONTH_ID GLOBALINT,
     QUARTER_ID GLOBALINT,
     YEAR_ID GLOBALINT,
     WEEKOFYEAR_ID GLOBALINT,
     WEEK_ID GLOBALINT);

 
 


Comment

0 comments

Details

Knowledge Article

Published:

May 3, 2017

Last Updated:

May 3, 2017