• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 696
  • Last Modified:

Issue importing a linked table into Access via ODBC connection to iSeries

Hi All,

My organization recently migrated our iSeries to a virtualized one in another location.  With this, I had to create a new ODBC connection to this system within Access to create a linked table,  I have an issue creating a link to one table in the WHOLE database.  The error I'm receiving is:  Invalid field definition 'MBFI' in definition of index or relationship.  Now I'm trying a fresh Access database and I'm still getting this error.  The reference field is only the beginning of a column name, it isn't the whole column name.  Anyone have any suggestion on how I might be able to fix this?
0
Anthony6890
Asked:
Anthony6890
  • 5
  • 3
2 Solutions
 
Gary PattersonVP Technology / Senior Consultant Commented:
Can you publish the layout for the offending table from the iSeries side, including indexes and constraints?  Something is funky in one of your indexes that is causing Access to choke.

What version of Access are you running, and what version of MDAC?
0
 
Anthony6890Author Commented:
Sure I could, but I'm no so versed in getting in all the information.  What's the best way of getting the layout to you?  I'm running Access 2010 and I don't know the version of MDAC as of right now.
0
 
Gary PattersonVP Technology / Senior Consultant Commented:
IBM i DB2 metadata can be found in SYSTABLES, SYSCOLUMNS, SYSINDEXES, SYSKEYS, etc in library QSYS2.
0
Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

 
Anthony6890Author Commented:
I need a little more help.  I've found the qsys2, but I can't find the rest of sys items you list above other than sysindexes.
0
 
Gary PattersonVP Technology / Senior Consultant Commented:
How did you find SYSINDEXES?
0
 
Anthony6890Author Commented:
I did strpdm from the command line and found it by looking at objects.
0
 
Anthony6890Author Commented:
Gary,

We solved the issue.  We did some testing and copied the file to another library and I was  then able to import the linked table in Access.  So what we did was copy the problem physical file, then deleted the old one, and renamed the copied file back to the original name.  We then recompiled all the logicals that were over the physical file and everything works correctly.  I don't know exactly how it worked; however, it did fix the issue.  

I thank you for your help.  

-Anthony
0
 
Anthony6890Author Commented:
The problem identified was correct; however, I was able to solve the issue using my own process but the logic offered.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now