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

KB274032: "Error in accessing information from external data source" appears when attempting to import data from Netezza in MicroStrategy Web 10.x


Community Admin

• Strategy


This article details the following error received when importing data from Netezza in MicroStrategy Web 10-10.3 Failed to execute query. Details Error in accessing information from the external data source (Database Instance: (DataImport)[0], Error: Execute Query failed. %0d%0aError type: Odbc error. Odbc operation attempted: SQLExecDirect. [42000:27: on SQLHANDLE] ERROR: 'select xxx from XXXX limit 1000 limit 1001'%0aerror ) found 'LIMIT'(at char 76)expecting a keyword)

SUMMARY:
This issue has been classified as a defect by Strategy. The impact is limited to Strategy Web 10.x product only with data import from Netezza. A couple of workarounds are available in the current document. A solution/code fix for this issue is not available in current releases but is being reviewed for a future Strategy release.
 
SYMPTOM:
In Strategy Web 10.x, when a user attempts to import from a Netezza database. The follow error message appears:

ka04W000000OfqXQAS_0EM4400000025WQ.jpeg

 


Failed to execute query. Details
Error in accessing information from the external data source (Database Instance: (DataImport)[0], Error: Execute Query failed. %0d%0aError type: Odbc error. Odbc operation attempted: SQLExecDirect. [42000:27: on SQLHANDLE] ERROR: 'select xxx from XXXX limit 1000 limit 1001'%0aerror ) found 'LIMIT'(at char 76)expecting a keyword)



STEPS TO REPRODUCE:
1. Using Strategy Web 10.x, click "Create" and select "Add External Data," and select Database

ka04W000000OfqXQAS_0EM4400000025W5.jpeg
ka04W000000OfqXQAS_0EM4400000025WS.jpeg

2. Select a Netezza DataSource (DSN must have been created in Developer or in Web)
3. Select a table to Import on.
4. Click 'Add all to column'
5. Attempt to proceed with 'Prepare Data' option, then, notice the error.
 
CAUSE:
The error is where we are attempting to limit the data twice with a limit 1000 and limit 1001 when it is only needed once. The SQLSetStmtAttr for any Netezza connection already has added support for limiting the data returned in the DATABASE.PDS file for each Netezza WH type (using the "Row Limit After Select Statement").
 
ACTION:
This issue has been fixed in Strategy Web 10.3. Take advantage of upgrading for a fix.
WORKAROUND:
Click "Edit" button to remove the limit 1000 to the database in the SQL statement.

ka04W000000OfqXQAS_0EM4400000025WR.jpeg

 
Strategy Internal Reference Number DE22071


Comment

0 comments

Details

Knowledge Article

Published:

June 1, 2017

Last Updated:

July 17, 2017