Bug with 2009 SP1?

Noisy_VanNoisy_Van Member Posts: 47
Hello,

We have built an integration with NAV 2009 and are working on porting it to
2009 SP1, and have come across a problem with orders and return orders. This
problem occurs with just the stock NAV 2009 SP1 installed. None of our code
is in play.

Whenever the statistics button is pressed on either the Order or Return
Order form, the following error is displayed:
"The Sales Line already exists.

Identification fields and values:

Document Type='Order',Document No.='1039',Line No.='1000'
"

Is this a known issue, or did we do something wrong during installation?

Thanks,
Greg

Comments

  • ara3nara3n Member Posts: 9,256
    This is bug. I just reproduced it in 2009 Sp1 Cronus, you need to report it to MS. This is a north American bug introduced.

    Here is the fix. On Form 10038 Sales Order Stats.

    Change the code form in OnAfterGetRecord() Trigger from
    FOR i := 1 TO 3 DO BEGIN
      TempSalesLine.DELETEALL;
      CLEAR(TempSalesLine);
      CLEAR(SalesPost);
    
    

    to
    FOR i := 1 TO 3 DO BEGIN
      CLEAR(TempSalesLine);   //Line moved
      TempSalesLine.DELETEALL;
      CLEAR(SalesPost);
    
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • krikikriki Member, Moderator Posts: 9,110
    [Topic moved from 'NAV 2009' forum to 'NAV/Navision' forum]
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.