Unable to import metadata of flat files by using IA

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
arvind_ds
Participant
Posts: 428
Joined: Thu Aug 16, 2007 11:38 pm
Location: Manali

Unable to import metadata of flat files by using IA

Post by arvind_ds »

Hi Experts,

Getting below error while trying to import metadata of flat files in information analyzer. Flat files are located on datastage server itself.

Error Message : "Failed while importing". Please see log files for details.

I browsed to webconsole to the below path and this is what I got in the Log views.

Webconsole --> Administration --> Log Management --> Log Views -->IA_With_CAS_Log --> View Log

Log Views:

An exception was received from the handler: ODBC function "
SQLPrimaryKeys" reported:SQLSTATE = 74: Native Error Code = 0:
Msg = 523 72

Fatal error message received from the native (C++) layer:
CC_OdbcMetadataHelper::describePrimaryKeys, file CC_OdbcMetadataHelper.
cpp, line 3187

Please share your inputs on how to fix this issue.
Arvind
arvind_ds
Participant
Posts: 428
Joined: Thu Aug 16, 2007 11:38 pm
Location: Manali

Post by arvind_ds »

Found the below technote but it didn't resolve the reported issue.

http://www-01.ibm.com/support/docview.w ... wg21395196
Arvind
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Have you tried importing using Metadata Asset Manager?

Have you used the "discover flat file" option in the IA tasks menu, which builds/maintains the QETXT.INI file?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
arvind_ds
Participant
Posts: 428
Joined: Thu Aug 16, 2007 11:38 pm
Location: Manali

Post by arvind_ds »

I have used "identify flat files" option in IA tasks menu which is populating QETXT.INI correctly.

I tried to import through metadata asset manager but got the same error as mentioned below.

Errorx [CDIMR3790E] An error occurred while importing data from bridge or connector (CAS/ODBCConnector__3.5). ([CDIMR3857I] Additional import error details may be found in the Import Log.) [CDIMR0071E] There was an error querying the PMR|3.txt table. ODBC function "SQLPrimaryKeys" reported: SQLSTATE = 74: Native Error Code = 0: Msg = 523 72+Details
com.ibm.mif.ChannelException: [CDIMR0071E] There was an error querying the PMR|3.txt table. ODBC function "SQLPrimaryKeys" reported: SQLSTATE = 74: Native Error Code = 0: Msg = 523 72
Caused by:com.ascential.asb.cas.shared.ConnectorServiceException: ODBC function "SQLPrimaryKeys" reported: SQLSTATE = 74: Native Error Code = 0: Msg = 523 72 OK

Any idea about this error? Please share your inputs.
Arvind
Mike
Premium Member
Premium Member
Posts: 1021
Joined: Sun Mar 03, 2002 6:01 pm
Location: Tampa, FL

Post by Mike »

arvind_ds wrote:error querying the PMR|3.txt table.
Special character in your text file name?

Try escaping the special character: PMR\|3.txt

Mike
arvind_ds
Participant
Posts: 428
Joined: Thu Aug 16, 2007 11:38 pm
Location: Manali

Post by arvind_ds »

Thank you for your response Mike.

There is no special character in the file name. The file name is 3.txt
Arvind
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Can you try renaming the file, perhaps to A3.txt ? ODBC in particular does not like identifiers beginning with numeric characters.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
arvind_ds
Participant
Posts: 428
Joined: Thu Aug 16, 2007 11:38 pm
Location: Manali

Post by arvind_ds »

Same error even after renaming the file to A3.txt

IA identified both the files 3.txt as well as A3.txt (through identify flat file feature). Then I clicked on identify next level option in IA and it also worked fine but when I clicked on "Import" button, I got the same error which was reported in the beginning of this thread.
Arvind
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

When you ran through the identify flat file process, did you specify any field(s) as primary key? The error is being thrown by the SQLPrimaryKey() function in the ODBC API, the purpose of which is to identify whether a column is a primary key or not. It really should not throw an error if no primary key column exists.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
arvind_ds
Participant
Posts: 428
Joined: Thu Aug 16, 2007 11:38 pm
Location: Manali

Post by arvind_ds »

I didn't find any option to mark any column as primary key while using "Identify flat file" option in information analyzer.
Arvind
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Then I think it's time to involve your official support provider.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
stuartjvnorton
Participant
Posts: 527
Joined: Thu Apr 19, 2007 1:25 am
Location: Melbourne

Post by stuartjvnorton »

Shot in the dark here.
Can you restart the NodeAgents?

Whenever I've had CAS issues in the past, restarting the NodeAgents has fixed it for me.
arvind_ds
Participant
Posts: 428
Joined: Thu Aug 16, 2007 11:38 pm
Location: Manali

Post by arvind_ds »

Thanks for your inputs experts. I even tried to re-start the services(WAS, Agents, datastage engine) but it didn't work.

I will raise a ticket with IBM and will update this thread later.
Arvind
stephenlrobson
Participant
Posts: 1
Joined: Wed Mar 14, 2012 12:50 pm
Location: Toronto

Post by stephenlrobson »

Was this issue ever resolved? I'm having an eerily similar issue on 11.3.1.2.

Thanks
Stephen
Post Reply