Transfer order-Error
idontknow
Member Posts: 66
I have made a field on Purchase order(SPC code-Field name) and after posting that,i am trying to transfer the item which i purchased.But when i am trying to post the transfer order,the system is throwing an error.
Error:
The item ledger entry doesnot exist
Identification fields and values:
Entry No :'3345200',SPC code =''
I tried to debug it,and the control is taking to this code in the code unit(5895) and the cursor is stopped at the arrow mentioned below
What could be the problem?How should i go about it?
Error:
The item ledger entry doesnot exist
Identification fields and values:
Entry No :'3345200',SPC code =''
I tried to debug it,and the control is taking to this code in the code unit(5895) and the cursor is stopped at the arrow mentioned below
UpDateWindow(WindowAdjmtLevel,WindowItem,Text007,WindowFWLevel,WindowEntry);
WITH ItemLedgEntry DO
IF AppliedEntryToAdjustExists(Item."No.") THEN BEGIN
CopyILEToILE(ItemLedgEntry,TempItemLedgEntry);
TempItemLedgEntry.FIND('-');
[b]--> [/b] REPEAT
GET(TempItemLedgEntry."Entry No.");
UpDateWindow(WindowAdjmtLevel,WindowItem,WindowAdjust,WindowFWLevel,"Entry No.");
RndgResidualBuf.AddAdjustedCost("Entry No.",0,0,"Completely Invoiced");
ForwardAppliedCost(ItemLedgEntry,FALSE);
EliminateRndgResidual(ItemLedgEntry);
UNTIL (TempItemLedgEntry.NEXT = 0) OR LevelExceeded;
END;
What could be the problem?How should i go about it?
0
Comments
-
Probably means someone deleted an item ledger...
Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
I doubt that somebody deleted the ILE.
Especially if he is shipping the Transfer Order.
I see that you added SPC Code as Primary Key into the table???
Why would you change the ILE PK??0 -
ara3n wrote:I doubt that somebody deleted the ILE.
Especially if he is shipping the Transfer Order.
I see that you added SPC Code as Primary Key into the table???
Why would you change the ILE PK??
I think it is not that because of deletion because,the system is throwing the same message .where ever SPC code field is present.
By the way,the entry is still available in the item ledger entry table.
Yes i have added the SPC code to primary key,because when i created that field,the system didnt allow me to proceed until it was added to the primary key.It pushed me to add.0 -
idontknow wrote:Yes i have added the SPC code to primary key,because when i created that field,the system didnt allow me to proceed until it was added to the primary key.It pushed me to add.
[-o<
remove it from PK ASAP. Have you ever dealt with a database? What system on earth would make you add a field as primary key?0 -
ara3n wrote:idontknow wrote:Yes i have added the SPC code to primary key,because when i created that field,the system didnt allow me to proceed until it was added to the primary key.It pushed me to add.
[-o<
remove it from PK ASAP. Have you ever dealt with a database? What system on earth would make you add a field as primary key?
I have removed SPC code field from the primary key,now when i am trying to post a transfer order,the system has thrown an error :
The field below must be included in the table's primary key.
Field:SPC code
Table: Item Ledger Entry
How should i go about it?0 -
Man this is scary... A lot of mods that probably should never have happened.
What code is triggering the error? Are you doing a ILE.GET(EntryNo,SPCCode); somewhere? If so, it needs to be changed.
I hope this isn't a production database [-o< [-o< [-o< [-o< [-o< [-o<-Lavin
"Profanity is the one language all programmers know best."0 -
klavin wrote:Man this is scary... A lot of mods that probably should never have happened.
What code is triggering the error? Are you doing a ILE.GET(EntryNo,SPCCode); somewhere? If so, it needs to be changed.
I hope this isn't a production database [-o< [-o< [-o< [-o< [-o< [-o<
That code ILE.GET(EntryNo,SPCCode) was not written anywhere.
This is not a production database....0 -
Use Debugger and let us know what code is causing the error. A GET would require it to be a part of the pk... a bad table relation as well.
If you have a field with a table relation to ILE, trying to link to the SPC code from the ILE that will not work either.
Help us help, we need more detail-Lavin
"Profanity is the one language all programmers know best."0 -
klavin wrote:Use Debugger and let us know what code is causing the error. A GET would require it to be a part of the pk... a bad table relation as well.
If you have a field with a table relation to ILE, trying to link to the SPC code from the ILE that will not work either.
Help us help, we need more detail
This problem has been solved by our senior consultant.but i want to know why the relation will not work and why did you mention the below statement?
If you have a field with a table relation to ILE, trying to link to the SPC code from the ILE that will not work either.
What is the problem with such table relation?I would like to know...so that i will not repeat in the future...0 -
The tablerelation needs to be of the Primary Key, for example the Item."Vendor No." field is related to Vendor."No." (Vendor's primary key). Or Value Entry."Item Ledger Entry No." is related to "Item Ledger Entry"."Entry No." ; Item Ledger's primary key.
If for example you wanted to lookup all Item Ledger Entries where the SPC code was "X" you can have the lookup point at Item Ledger Entry and the formlink being where SPC Code = SPC Code on the record.
Look at the example of the Sales Order Form (42) Order Button > MenuItem: Invoices.
This runs the Posted Sales Invoices form, and on the property RunFormLink it has it's relation to what you are seeing.-Lavin
"Profanity is the one language all programmers know best."0
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
- 328 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
