web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Item Tracking Lines

(0) ShareShare
ReportReport
Posted on by 80

Hello,

I'm currently editing the purchase lines from a purchase order. This already works with the web service, but adding item tracking is proving to be tricky. I want to be able to add a Lot No to one purchase line like in the 'Edit - Item Tracking Lines' page.

I've made a web service of the page and created the ItemTrackingLines object with web services. A new object is created with the following values:

stdClass Object ( [Key] => 300;UAEAAACHAQAAAAAAA.....
[LotSnAvailable_Rec_x002C_0] => 1
[LotSnAvailable_Rec_x002C_1] => 1 
[Expiration_Date] => 0001-01-01 
[New_Expiration_Date] => 0001-01-01 
[Warranty_Date] => 0001-01-01 
[Quantity_Base] => 0 
[Qty_to_Handle_Base] => 0 
[Qty_to_Invoice_Base] => 0 
[Quantity_Handled_Base] => 0 
[Quantity_Invoiced_Base] => 0 
[Appl_from_Item_Entry] => 0 ) ) 

After editing and adding other fields like:

  • Lot_No,
  • Item_No, 
  • Location_Code,
  • Quantity_Base,
  • Qty_to_Handle_Base,
  • Qty_to_Invoice_Base,
  • Quantity_Handled_Base
  • Quantity_Invoiced_Base

I update the object and get the following error:

[SoapFault exception: [a:Microsoft.Dynamics.Nav.Types.Exceptions.NavCSideDataException] Tracking Specification Entry No. '1' does not exist. in ...

This is because the "Appl_from_Item_Entry" field is invalid. Which web service can I use to get the right Item entry number?

The Appl_from_Item_Entry field links to:

  • Item Ledger Entry.Entry No_
  • Item Entry Relation.Item Entry No_

But because that Item isn't received, it doesn't exist in these tables.
I'm looking for a solution to find the correct Appl_from_Item_Entry via web services and not code Units.

Many Thanks

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Jens Glathe Profile Picture
    6,092 on at

    Hi Joris,

    I'm not sure if this can work... the Item Tracking page has a temporary table as sourcetable, which is generated from several sources when the page is opened. Please have a look at the white paper from Microsoft on how it is intended to work. Accessing it with a page webservice could prove pretty tricky, as you're writing all lines in one service call. @Everybody: Any ideas? Except from adding a codeunit for single-line manipulation?

    with best regards

    Jens

  • Verified answer
    Community Member Profile Picture
    on at

    The information entered in the item tracking lines page is stored in the reservation entry table when the page is closed.

    To insert this through a web service I would suggest creating a new page based on the reservation entry table and insert the records with the lot numbers that way.

    If you manually enter a lot number against a purchase order line and then run the reservation entry table you will see how the record should be inserted.

  • Joris Jacobs Profile Picture
    80 on at

    Thanks for answering Olof,

    You suggest creating a new page based on the reservation entry table and inserting the records. Isn't this what I did in the code above?

    I've created a web service based on the page "Item Tracking Lines (id 6510)" and called the create function and added the Lot_No. When calling the update function I get the following soap error: SoapFault exception: [a:Microsoft.Dynamics.Nav.Types.Exceptions.NavCSideDataException] Tracking Specification Entry No. '1' does not exist

    Any ideas?

  • Suggested answer
    Community Member Profile Picture
    on at

    The Item Tracking Lines page is based on a temporary table called Tracking Specification. My suggestion is to create a new page based on the Reservation Entry table, then publish this new page as a web service.

  • Joris Jacobs Profile Picture
    80 on at

    What if the web service of the Reservation Entry table hasn't got a create function to add my item, only a read and update.

    Joris

  • Aleia Stickley Profile Picture
    60 on at

    Tracking Specification Entry No. '1' does not exist

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans