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

KB484526: Unable to import external data source due to error when accessing information from the source in MicroStrategy 2020


Piotr Janaszek

Software Engineer • MicroStrategy


This article explains why data is unable to import from an external data source due an accessing error. This article also provides a solution to avoid this error.

Description 


In Strategy 2020, data is unable to import from an external data source due to an error when accessing information from the external data source. String data is right truncated and there is an error in column XXX.
SQL Pass 0 failed to execute
Error in accessing information from the external data source. 

ka04W000000UNu4QAG_0EM4W000001IRsO.jpeg

 

Steps to reproduce

  1. In Strategy Web, add external data. 
  2. Select Database.
  3. Choose Type a Query or Select Tables.
  4. Run the query.
    The error message displays.

Why is this happening?


The amount of data stored in the table column XXX is exceeding the limitation configured at ODBC driver level.
Error message

  1. DSSErrors.log:
    String data, right truncated. Error in column XXX.
    Failed to fetch data when importing data from database or web service. Error message: Fetch.
    Error type: Odbc success with info. Odbc operation attempted: SQLFetch. [01004:0: on HSTMT] [Strategy][ODBC PostgreSQL Wire Protocol driver]String data, right truncated. Error in column XXX)
  2. Screen error:
    Error in accessing information from the external data source (Database Instance: (DataImport), Error: Fetch. Error type: Odbc success with info. Odbc operation attempted: SQLFetch. String data, right truncated. Error in column XXX)

Solution

Adjust the following query (by replacing the names in italics) in the Db Query Tool or Web and run it against your data source:


select length(column_name) as length from schema_name.table_name order by length DESC;

Check the max length value retrieved by the query:

ka04W000000UNu4QAG_0EM4W000001IRt2.jpeg

Check the column data type directly in the data source. In this case, the column can store longtext values in the database (LONGTEXT – 4GB (up to 4,294,967,295 characters)).
Compare the value with limits in your ODBC driver setup:

ka04W000000UNu4QAG_0EM4W000001IRt7.jpeg

Increase the limitations at the driver level (5000) to be able to retrieve all the data from the data source via ODBC (>7268).


Comment

0 comments

Details

Knowledge Article

Published:

August 21, 2020

Last Updated:

August 21, 2020