Error: While sending data to MS Dynamics GP, you may face the following error


           Message:GPPayablesInvoiceUpload.cs System.Web.Services.Protocols.SoapException: SQL Server Exception: Operation expects a parameter which was not supplied.

   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)

   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

   at GorillExpense.IntegrationApp.DynamicsGPService2013Legacy.DynamicsGP.CreatePayablesInvoice(PayablesInvoice payablesInvoice, Context context, Policy policy)

   at GorillExpense.IntegrationApp.Classes.GP2013PayablesInvoiceUpload.GPProcessSingleBatch(List`1 exp, List`1 memoFlds, Decimal total_amt)

   at GorillExpense.IntegrationApp.Classes.GP2013PayablesInvoiceUpload.GPProcessSingleExpense(List`1 ListExpenseInfo, List`1 Listsettings, List`1 ListConfigLabelInfo)



Solution:


The error mentions that there is a missing parameter. Perhaps a vendor ID or GL account. To get more details, please login to the server where you have GP web services installed and go to -> Start-> Administrative Tools -> GP Exception Management Console -> Click on "All Exceptions" to view the exception details. The exception details will clearly mention the problem like VENDORID not provided. You can confirm if the users profile has a vendor ID. If using corporate credit cards, make sure the corporate credit card pay method has a vendor id assigned by going to (Masters ->Pay Method)