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

Error “Duplicate column name ('xxx) found in table 'xxx' in the warehouse” while user editing transaction service documents


Yihuan Qian

Senior Support Engineer • MicroStrategy


SYMPTOM 

When a user edits a transaction service document and connects to a database, the error “Duplicate column name ('xxx) found in table 'xxx' in the warehouse” occurs. The user only connects to one namespace, and in this namespace, there are no duplicate columns in the table mentioned in the error message. 
 

ka04W000001485oQAA_0EM4W000005aYEc.png

 

ROOT CAUSE

Enable database class->sql trace. Even when user only selects one namespace, Strategy will retrieve all the columns from all the namespaces using sql statement: 
 
SELECT table_schema NAME_SPACE, table_name TAB_NAME, column_name COL_NAME, data_type DATA_TYPE, character_maximum_length DATA_LEN, numeric_precision DATA_PREC, numeric_scale DATA_SCALE FROM SVV_COLUMNS ORDER BY 1, 2,3 
 
By running this sql statement, user finds out duplicate columns in the table in another namespace. 
 

ACTION 

Remove or rename the duplicate columns. 
 


Comment

0 comments

Details

Knowledge Article

Published:

July 10, 2023

Last Updated:

July 10, 2023