Update 3.70 -> 4.00 SP2 Error

amang
Member Posts: 14
Hi,
i´m using the Updgrade Toolkit from 4.00 SP2. When i start step 2 (Transfer data from temp-tables to original tables), i get an error that the Application Entry already exists.
This is the Code from Codeunit 104048:
In our Database are several Item Application Entries with the same "Inbound Item Entry No.".
Has somebody the same problem while updating?
kind regards
i´m using the Updgrade Toolkit from 4.00 SP2. When i start step 2 (Transfer data from temp-tables to original tables), i get an error that the Application Entry already exists.
This is the Code from Codeunit 104048:
WITH ItemApplEntry DO IF StateIndicator.UpdateTable(TABLENAME) THEN BEGIN TimeLog.TimeLogInsert(TimeLog,TABLENAME,TRUE); IF FIND('-') THEN BEGIN REPEAT IF "Item Ledger Entry No." = "Inbound Item Entry No." THEN BEGIN ItemLedgEntry.GET("Item Ledger Entry No."); TempItemApplEntry := ItemApplEntry; TempItemApplEntry."Entry No." := "Inbound Item Entry No."; TempItemApplEntry."Cost Application" := ItemLedgEntry.Open; TempItemApplEntry.INSERT; END; UNTIL NEXT = 0;
In our Database are several Item Application Entries with the same "Inbound Item Entry No.".
Has somebody the same problem while updating?
kind regards
0
Comments
-
You could change the code to if TempItemApplEntry.INSERT then; but I would suggest contacting MS for the error and see if they have a fix.0
-
Hi,
I have this same problem upgrading from 3.70 to 5.00, anyone can help?
Is the original data wrong because several entries have the same "Inbound item entry no."?
Thanks0 -
Alisha wrote:Hi,
I have this same problem upgrading from 3.70 to 5.00, anyone can help?
Is the original data wrong because several entries have the same "Inbound item entry no."?
Thanks
the data is fine. it simply means that one inbound entry has been applied to many outbound entries. The code is the problem.0 -
You mean the code for the upgrade is wrong? How's that Microsoft has not fixed it for version 5.00?
Is it ok "grouping" the entries with the IF NOT INSERT.. ?
Thanks again0 -
Looking at the code again. I see now the issue.
There should be only one entry in item application for the inbound entry where ("Item Ledger Entry No." = "Inbound Item Entry No." )
Check your item application entry and see if this is the case, and that you have more than 1 entry.
So adding the if insert then; would be fine.0 -
Thanks, I'm not sure if the data in the DB is correct, there are about 20 Item Application Entries with the same Item Ledger Entry No, Inbound Item Entry No, and Outbound Item Entry no = 0.
There are even some entries with a Item ledger entry number that does not exist on the Item ledger entry table! (and not because it's been deleted), it's number 140 when the last item ledger entry is 139..
Anyway, I have lots of doubts about this data.. but at least I could finish the upgrade modifying the code.
Thanks a lot for your help0
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