Linking Table Problems with Navision and Access

gerfield
Member Posts: 16
I'm trying to link my item table in nivision 3.7 native to Access 2003 but I keep getting an error.
"Cannot define field more than once"
Cannot define field more than once. (Error 3191)
You tried to create a table in which more than one field was defined with the same name. Each field name in a table must be unique.
I'm going batty over here I've checked every field. Is there an easy way to try and figure out whats stopping it?
Thanks for your help
"Cannot define field more than once"
Cannot define field more than once. (Error 3191)
You tried to create a table in which more than one field was defined with the same name. Each field name in a table must be unique.
I'm going batty over here I've checked every field. Is there an easy way to try and figure out whats stopping it?
Thanks for your help
0
Comments
-
Is the error coming from Nav or Access?
How are you connecting? n/odbc?0 -
Try a new one.........
Open Access->File->Open
Change Files as type to ODBC Databases
Click on Machine Data source
(hopefully you set up a connection in Control Panel->Administrative Tools->Data Sources)
Pick your data source->click ok
Table list should appear->Select item table->click ok
Select the new Item Choice & The table & Data should appear.
Can you get this far?0 -
Yeah after I select the table and hit ok I get that box with the errorSavatage wrote:Try a new one.........
Open Access->File->Open
Change Files as type to ODBC Databases
Click on Machine Data source
(hopefully you set up a connection in Control Panel->Administrative Tools->Data Sources)
Pick your data source->click ok
Table list should appear->Select item table->click ok
Select the new Item Choice & The table & Data should appear.
Can you get this far?0 -
first thing i would do is goto the item table in designer
View->Properties of every custom field 50000..59999
the second property is the name see if any of these look like what an original would look like.
What I mean is that sometimes a field is copied & perhaps the calcformula was slightly changed but the name property is not changed.Settings
Unlike the ID, the Name does not have to be unique, although it is a good idea to assign unique names. You can enter up to 30 characters.0 -
so when I'm in the designer and I see the field name and than view properties the name shown in properties could be different and share the field name with another field?
thanks for your help btw0 -
i was speculating on the potential problem by your error message you posted...You tried to create a table in which more than one field was defined with the same name. Each field name in a table must be unique.
Something is upsetting Access.
Can you access, say, the "customer" table without error?0 -
yeah I can get in with no problems to the other tables its just the item table0
-
ok try the custom fields first because this problem of same names doesn't occur in the standard nav fields.0
-
does it matter is the field name doesn't match the caption?0
-
and what if 2 captions are the same? would that cause it?0
-
one way to find out
try add a "z" or something to the end of the names to assure a difference
good luck!0 -
hi
I have seen this error before and it is mainly due to the Name property or caption of the field in NAV table.
And as you said, mainly occurs for custom field where a programmer changes only the name. Other reason may be the field length.
You sometime will also get "Field name contains invalid character" error, when you try to import tables into Access"A bove maiore discit arare minor"-"From the old ox, the young one learns to plow."0 -
I have had this problem and it was that the programmers had not renamed the caption name in the table. This is hidden so show it in the designer and change it.Some things are just there to keep you mentally active.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions