Duplicate records being displayed while running the table in NAV 2015

prem_kumaran
Member Posts: 10
Hello,
I am facing a strange issue.
The records are getting inserted in the staging table of NAV. But, when viewing those records by running the table from NAV the number of records displaying in NAV and SQL are different. It is displaying the duplicate records which has the same primary key combination.
Did anyone faced this issue ? Any solution for this ?
I am facing a strange issue.
The records are getting inserted in the staging table of NAV. But, when viewing those records by running the table from NAV the number of records displaying in NAV and SQL are different. It is displaying the duplicate records which has the same primary key combination.
Did anyone faced this issue ? Any solution for this ?
Thanks,
Prem
Prem
0
Answers
-
Check if the primary key is correctly defined. I expect that you see more in the NAV than in the SQL. Do not forget that NAV Service tier is heavily caching and the SQL could see the changes with delay.1
-
Hello Kine,
Yes, I am seeing more in NAV than SQL.Thanks,
Prem0 -
Hello Kine,
I tried changing the Primary Key and the issue remains the same. I am really going crazy because of this issue.Thanks,
Prem0 -
Hi Prem,
This issue may happened because of white spaces before or after primarykey's value. This may occurred when you copy & paste value of field from the XLS. This white space may not shown in NAV, but it is exist at SQL side.
You also not get record if you write SQL select query like below because of white spaces.
Select * from Item Where [No.] = 'A0001';
You get record via below query.
Select * from Item Where [No.] like '%A0001%';
If is it so, you need to update your primarykey's value via SQL update query.
Note : In the case of record whose transaction entries are already posted. It is strictly not advisable to update it via SQL. If no transactions are done, you can do that.
Thanks,
Purvesh Maisuria.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