Hi,
I have an a solution working since setember where I create and post invoices throught NAV 2009 webservices, I publish the page 43 and then have a codeunit with a function to post the invoice.
Since yestarday and after delete an field and create another one the create method jot stop working I'm walways getting the error
<?xml version="1.0" encoding="utf-16"?>
<s:Envelope xmlns:s="
http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<s:Fault>
<faultcode xmlns:a="urn:microsoft-dynamics-schemas/error">a:Microsoft.Dynamics.Nav.Service.WebServices.ServiceBrokerException</faultcode>
<faultstring xml:lang="en-US">Primary key element No in service SalesInvoice_Service is empty or null. Empty and null elements are not allowed in primary keys.</faultstring>
<detail>
<string xmlns="
http://schemas.microsoft.com/2003/10/Serialization/">Primary key element No in service SalesInvoice_Service is empty or null. Empty and null elements are not allowed in primary keys.</string>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>
I first call the method create without parameters or with Posting Date and I'm always get the same error, any ideas what could be? I already started the machine, delete objectmetadata and recreate it, reverse the changes on the table.
thanks
Comments
I am not quite sure what the issue might be but I would suggest following steps.
1. Restart Web Service, as something may be still in cash
2. Run the codeunit directly from the NAV Classic client e.g. create a function to run the codeunit.