none
Problems with SaveChanges() RRS feed

  • Question

  • I'm accessing a Data Services service using a WinForms client.

    I have no problems in bringing back data within this app. However, when I try to call SaveChanges I get a forbidden exception (see below).

    I'm trying using OData to integration between WinForms and Page on Navision 2013 R2.


    Any help would be greatly appreciated.

    Alexandre Queiroz

    Exception:

    "<?xml version=\"1.0\" encoding=\"utf-8\"?><m:error xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"><m:code /><m:message xml:lang=\"en-US\">Primary keyvalue(s) Ano, Linha, NoSerie, Semana are missing in insert command. Make sure that all primary keys on the page are backed by a control in order to be set.</m:message></m:error>"

    HResult:             -2146233079

    StatusCode:        400
    Friday, June 15, 2018 2:34 PM