Can not create sales order using Page id 42 Web Service

ecc778ecc778 Member Posts: 6
edited 2012-09-04 in NAV Three Tier
Hi All,

I can't create sales order using page id 42 web service. I am trying to create from asp.net C#.

When I add item with Price list , the following error is occured. But when Item is not in Price list, it can insert successfull.

Error is

Field SalesPriceExist is readonly!

Please give some suggestions. I m very new to Navision.

Thanks in Advance.

Comments

  • kinekine Member Posts: 12,562
    You are not assiging the field "SalesPriceExists", aren't you?
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • ecc778ecc778 Member Posts: 6
    hello kine,
    Yup. I didn't assign the field "SalesPriceExists". Now already ok after assigning this field to True.

    Previously when I assigned this field (if I m not wrong), I got Call back error. That why I neglect this field.

    Please tell me Call back error can be occured in which situation?

    Thanks for your solution.

    Regards,
    ecc778
  • kinekine Member Posts: 12,562
    When there is some confirm or dialog...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • mlykkemlykke Member Posts: 1
    Hi all

    Sorry for posting on this very old thread but I had this exact same issue and the best result on Google was this thread - so I thought I'd just share my experiences.

    As I said I had the very same issue and I found out that on each sales line you need to specify that you do NOT provide any data for the field "PriceExists" (Line 5 in the code below).

    This code is working for me:
    WSSalesQuote FetchedQuote = portclient.Read("2012000012");
    Sales_Quote_Line line1 = FetchedQuote.SalesLines[0];
    line1.Type = MyConsoleApplication.WSSalesQuote.Type.Item;
    line1.No = "LS-75";
    line1.PriceExistsSpecified = false;
    line1.Quantity = 1;
    

    HTH,
    Michael
Sign In or Register to comment.