老师您好!我在调用应收单接口时出现问题:
输入json:
{"Creator":"SCM","NeedUpDateFields":[""],"Model":{ "FID":0,"FBillTypeID":{"FNumber":"YSD01_SYS"},"FBillNo":"SM2016090163","FCUSTOMERID":{"FNumber":"11.02.0000"},"FCURRENCYID":{"FNumber":"PRE001"},"FDATE":"null","F_employee":{"FNumber":"00006"},"FSETTLEORGID":{"FNumber":"001"},"FPAYORGID":{"FNumber":"001"},"FSALEORGID":{"FNumber":"001"},"FSALEDEPTID":{"FNumber":"003"}, "AR_receivable__FsubHeadFinc":{"FExchangeRate":"1"},"FEntityDetail":[{"FEntryID":0,"FMATERIALID":{"FNumber":"FBMH1608HM470-T"},"FPRICEUNITID":{"FNumber":"6667a763086c20427a0a1e703edbcf8e513e"},"FPriceQty":"4500","FBASICUNITQTY":"4500","FPrice":"14.96217231","FEntryTaxRate":17.0,"FEntryDiscountRate":0,"FNoTaxAmountFor_D":"67329.78" },{"FEntryID":0,"FMATERIALID":{"FNumber":"JMK063ABJ105MP-Q"},"FPRICEUNITID":{"FNumber":"6667a763086c20427a0a1e703edbcf8e513e"},"FPriceQty":"3500","FBASICUNITQTY":"3500","FPrice":"3.69000000","FEntryTaxRate":17.0,"FEntryDiscountRate":0,"FNoTaxAmountFor_D":"12915.00" } ]} }
返回异常:
输出json:{"Result":{"ResponseStatus":{"IsSuccess":false,"SuccessMessages":[],"Errors":[{"DIndex":0,"Message":"\r\nServer stack trace: \r\n 在 Kingdee.K3.FIN.AR.App.ServicePlugIn.ARSaveValidator.Validate(ExtendedDataEntity[] dataEntities, ValidateContext validateContext, Context ctx)\r\n 在 Kingdee.BOS.App.Core.Validation.ValidationService.Validate(IEnumerable`1 dataEntities, ValidateContext validateContext, AbstractValidator[] validators)\r\n 在 Kingdee.BOS.App.Core.Validation.ValidationService.TryValidate(IEnumerable`1 dataEntities, ValidateContext validateContext, List`1& errorInfo)\r\n 在 Kingdee.BOS.App.Core.AbstractOprerationService.TryValidate()\r\n 在 Kingdee.BOS.App.Core.AbstractOprerationService.Validate()\r\n 在 Kingdee.BOS.App.Core.AbstractSave.Validate()\r\n 在 Kingdee.BOS.App.Core.AbstractOprerationService.DoExcete()\r\n 在 Kingdee.BOS.App.Core.AbstractOprerationService.Excute(DynamicObject[] dataEntities)\r\n 在 Kingdee.BOS.App.Core.SaveService.Save(Context ctx, BusinessInfo info, DynamicObject[] dataEntities, OperateOption option, String operationNumber)\r\n\r\nException rethrown at [0]: \r\n 在 Kingdee.BOS.ServiceHelper.BusinessDataServiceHelper.Save(Context ctx, BusinessInfo businessInfo, DynamicObject dataObject, OperateOption option, String operationNumber)\r\n 在 Kingdee.BOS.Model.Bill.BillModel.Save(OperateOption option)\r\n 在 Kingdee.BOS.WebApi.FormService.Save.Execute()\r\n 在 Kingdee.BOS.WebApi.FormService.BillOperationService.ExecuteOperation(FormOperation op, String data)","FieldName":"未将对象引用设置到对象的实例。"}],"ErrorCode":500,"SuccessEntitys":[]}}}
推荐阅读