Non unique column reference
FLP
Member Posts: 9
Hi,
Among other tables I'm trying to get data from the Item table in NAV 4 (runtime NAV 2009) by using NODBC. The other tables are running fine but when I reach the Item table I get the error message "Non Unique Column Reference 'Common Item No.' ". I have checked the captions of all the fields in the Item table and all captions are unique - I have even tried renaming the caption of the field 'Common Item No.'.
Any one having an idea on how to overcome the problem?
Among other tables I'm trying to get data from the Item table in NAV 4 (runtime NAV 2009) by using NODBC. The other tables are running fine but when I reach the Item table I get the error message "Non Unique Column Reference 'Common Item No.' ". I have checked the captions of all the fields in the Item table and all captions are unique - I have even tried renaming the caption of the field 'Common Item No.'.
Any one having an idea on how to overcome the problem?
Finn Landgreen-P
www.corpital.com
www.corpital.com
0
Comments
-
SQL Serveroption?
Try: "Common Item No_"Do you make it right, it works too!0 -
Its native NAV DB and the field 'Common Item No.' is not within my script:
SQL SELECT Description as ItemDesc,
"Gen_ Prod_ Posting Group" as CategoryID,
"No_" as ItemID,
"Vendor No_" as VendID
FROM Item;Finn Landgreen-P
www.corpital.com0 -
You have the same caption for two fields, it has nothing to do with the field Common item no.
Look for identical captions in the tabel and change it then it'll work._____________________
NAV Freelance Consultant0 -
Thanks - by sorting the fields in caption in order in Excel I found the field with identical caption. After changing caption everything worked fine.
It would have been nice if the 'Non unigue column reference' message came with the field name that actually gave the problem....Finn Landgreen-P
www.corpital.com0 -
It is 2011 now and problem still exists
Just found that 2 fields have same caption in ITEM table.
Thank You for help haha (karma after 3 years
)
M0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 329 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