If NAV 2017 standalone application is closed in the server, NAV SOAP API is not able to create any new records.
It is showing the error as,
The No. Series does not exist. Identification fields and values: Code=‘SRV-CC’,Sub Company Code=’'
There are four sub companies available in the NAV. When we open the NAV 2017 standalone application, first it will ask to select the sub company name in a small pop up. when we select any one sub company, the NAV application will open with the data related to that sub company. When we close the NAV 2017 stand alone application and when we try to create new records, the api is not able to find the auto increment value and giving error as The No. Series does not exist. When we send the autoincremental value directly in the API to the “No” field, at that time also getting the same error only.
When the NAV system is opened in the Remote Desktop, we are able to create new records in NAV through API. When the NAV system is closed, we are not able to create new records in NAV through API.
The “No.” field is autogenerating based on company selections and inserting in NAV correctly when the NAV system is opened. But it is not autogenerating when the NAV system is closed. For this issue, when the NAV system is closed we are using another API to find the last number inserted in “No.” field based on company selections. And then we are incrementing that number by 1 and sending to NAV via API to create new service client. In that scenario also, we are getting the same error message.
Please help to fix this issue.