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

KB439884: “An invalid datetime format was detected” error occurs after migrating a datamart freeform SQL report between environments


Community Admin

• Strategy


This issue has been classified as a defect by MicroStrategy. The impact is limited to MicroStrategy datamart freeform SQL report using object manager between environments. A workaround is available in the current document.

Symptom 

“An invalid datetime format was detected” error occurs after migrating a datamart freeform SQL report using object manager between environments as shown below:
 
Error type: Odbc error. Odbc operation attempted: SQLExecute. [22007:-99999: on SQLHANDLE] [IBM][CLI Driver] CLI0113E SQLSTATE 22007: An invalid datetime format was detected; that is, an invalid string representation or value was specified. SQLSTATE=22007 Connection String: DSN=xxx;UID=xxx;PROTOCOL=TCPIP;PORT=xxx;HOSTNAME=xxx;DATABASE=xxx;. SQL Statement: insert into xxx values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
2017-06-27 10:04:01.018+01:00 [HOST:xxx][SERVER:CastorServer][PID:1412][THR:512][Query Engine][Error][0x80042300] QueryEngine encountered error: OdbcParameterizedQuery::ExecQuery failed. 
Error type: Odbc error. Odbc operation attempted: SQLExecute. [22007:-99999: on SQLHANDLE] . 
 
It is noticed during temp table generation pass; one column’s datatype and order is changed.
 
 

Cause 

This is a known issue.
  

Action

Currently this issue is still being reviewed for feasibility by our Technology team and it is not scoped for any upcoming scheduled Strategy release.
 
 
 

Workaround 

The VLDB setting Datamart Column Order by default uses option 1, knowing this if all the local attributes of the freeform SQL report have the same attribute weight which is 0, then the order of the SQL generated columns would depend on how the SQL Engine gets them from the collection it gets from COM.
 
Datamart Column Order:

  1. Columns created in order based on attribute weight (default)
  2. Columns created in order in which they appear on the template


 
Switch to option 2 fixed the temp table column order.
 
 
 


Comment

0 comments

Details

Knowledge Article

Published:

March 9, 2018

Last Updated:

November 9, 2018