打了最新补丁批量保存时报错
金蝶云社区-云小爱
云小爱
0人赞赏了该文章 1,268次浏览 未经作者许可,禁止转载编辑于2016年01月29日 19:00:15

报错信息:
{"Result":{"ResponseStatus":{"ErrorCode":500,"IsSuccess":false,"Errors":[{"FieldName":"MapComplexProperty Field Error :Field Key is 【FMATERIALID】","Message":" 在 Kingdee.BOS.WebApi.FormService.MapPropertyService.MapComplexProperty(String pkProperty, Dictionary`2 sourceObj, DynamicObject targetObj, Int32 rowIndex, HashSet`1 NeedUpDateFields)\r\n 在 Kingdee.BOS.WebApi.FormService.MapPropertyService.MapCollectionProperty(Entity enity, IList`1 sourceRows, DynamicObjectCollection targetRows, HashSet`1 NeedUpDateFields, String specialReferenceTable)\r\n 在 Kingdee.BOS.WebApi.FormService.MapPropertyService.MapComplexProperty(String pkProperty, Dictionary`2 sourceObj, DynamicObject targetObj, Int32 rowIndex, HashSet`1 NeedUpDateFields)\r\n 在 Kingdee.BOS.WebApi.FormService.BuilderBillData.Execute()\r\n 在 Kingdee.BOS.WebApi.FormService.BatchSaveService.BuilderBillData(Boolean numberSearch, List`1 saveObjs, Object obj)\r\n 在 Kingdee.BOS.WebApi.FormService.BatchSaveService.SaveBills(String data)"}],"SuccessEntitys":[]}}}

传送的json:
{"Model":[
{"FMatchMethodID":"0","FBillTypeID":{"FNumber":"YSD01_SYS"},"F_ab_Text":"C","FOWNERID":{"FNumber":"0"},"FDATE":"2016-01-25","FCreditCheckResult":"0","F_ab_Base5":{"FNumber":"012214"},"FOWNERTYPE":"BD_OwnerOrg","FPayConditon":{"FNumber":"20005"},"FID":"0","F_ab_Base3":{"FNumber":"MSAW"},"FBUSINESSTYPE":"海运","F_ab_Text2":"0","F_ab_Remarks":"0","FSETTLEORGID":{"FNumber":"MSAW"},"F_ab_Text7":"999-41692965","F_ab_Text6":"ITZ16010082","FISRETAIL":false,"FSALESBUSTYPE":"","FALLAMOUNTFOR":"5","FACCOUNTSYSTEM":{"FNumber":"0"},
"FEntityDetail":[{"FTaxPrice":300,"FNoTaxAmountFor_D":300,"FMATERIALID":{"FNumber":"WL0122"}}],
"FCUSTOMERID":{"FNumber":"MSAW"},"FENDDATE_H":"2016-02-15 00:00:00.0","F_ab_Base6":{"FNumber":"010"},"FByVerify":0,"FChargeId":{"FNumber":"01"},"FBillNo":"421","FCURRENCYID":{"FNumber":"PRE001"},"FSALEORGID":{"FNumber":"01"},"FSALEERID":{"FNumber":"060003"},"FDocumentStatus":"A","FSALEDEPTID":{"FNumber":"010"},"FISINIT":0},

{"FMatchMethodID":"0","FBillTypeID":{"FNumber":"YSD01_SYS"},"F_ab_Text":"C","FOWNERID":{"FNumber":"0"},"FDATE":"2016-01-25","FCreditCheckResult":"0","F_ab_Base5":{"FNumber":"012140"},"FOWNERTYPE":"BD_OwnerOrg","FPayConditon":{"FNumber":"20005"},"FID":"0","F_ab_Base3":{"FNumber":"SZTXDZ"},"FBUSINESSTYPE":"海运","F_ab_Text2":"0","F_ab_Remarks":"0","FSETTLEORGID":{"FNumber":"SZTXDZ"},"F_ab_Text6":"OXE15070262","FISRETAIL":false,"FSALESBUSTYPE":"","FALLAMOUNTFOR":"5","FACCOUNTSYSTEM":{"FNumber":"0"},"FEntityDetail":[{"FTaxPrice":112,"FNoTaxAmountFor_D":105.66,"FMATERIALID":{"FNumber":"WL0016"}},{"FTaxPrice":125,"FNoTaxAmountFor_D":117.92,"FMATERIALID":{"FNumber":"WL0186"}},{"FTaxPrice":18.9,"FNoTaxAmountFor_D":17.83,"FMATERIALID":{"FNumber":"WL0012"}},{"FTaxPrice":-28236.86,"FNoTaxAmountFor_D":-26638.55,"FMATERIALID":{"FNumber":"WL0016"}},{"FTaxPrice":29613.92,"FNoTaxAmountFor_D":27937.66,"FMATERIALID":{"FNumber":"WL0017"}}],"FCUSTOMERID":{"FNumber":"SZTXDZ"},"FENDDATE_H":"2015-07-16 00:00:00.0","F_ab_Base6":{"FNumber":"014"},"FByVerify":0,"FChargeId":{"FNumber":"1"},"FBillNo":"422","FCURRENCYID":{"FNumber":"PRE001"},"FSALEORGID":{"FNumber":"1"},"FSALEERID":{"FNumber":"012133"},"FDocumentStatus":"A","FSALEDEPTID":{"FNumber":"014"},"FISINIT":0},

{"FMatchMethodID":"0","FBillTypeID":{"FNumber":"YSD01_SYS"},"F_ab_Text":"C","FOWNERID":{"FNumber":"0"},"FDATE":"2016-01-25","FCreditCheckResult":"0","F_ab_Base5":{"FNumber":"011937"},"FOWNERTYPE":"BD_OwnerOrg","FPayConditon":{"FNumber":"20005"},"FID":"0","F_ab_Base3":{"FNumber":"QJKJDZ"},"FBUSINESSTYPE":"海运","F_ab_Text2":"0","F_ab_Remarks":"0","FSETTLEORGID":{"FNumber":"QJKJDZ"},"F_ab_Text6":"OXE15020159","FISRETAIL":false,"FSALESBUSTYPE":"","FALLAMOUNTFOR":"5","FACCOUNTSYSTEM":{"FNumber":"0"},"FEntityDetail":[{"FTaxPrice":24000,"FNoTaxAmountFor_D":22641.51,"FMATERIALID":{"FNumber":"WL0094"}},{"FTaxPrice":9000,"FNoTaxAmountFor_D":8490.57,"FMATERIALID":{"FNumber":"WL0037"}},{"FTaxPrice":98578,"FNoTaxAmountFor_D":92998.11,"FMATERIALID":{"FNumber":"WL0141"}},{"FTaxPrice":-36369.23,"FNoTaxAmountFor_D":-34310.59,"FMATERIALID":{"FNumber":"WL0017"}}],"FCUSTOMERID":{"FNumber":"QJKJDZ"},"FENDDATE_H":"2015-05-25 00:00:00.0","F_ab_Base6":{"FNumber":"014"},"FByVerify":0,"FChargeId":{"FNumber":"1"},"FBillNo":"425","FCURRENCYID":{"FNumber":"PRE001"},"FSALEORGID":{"FNumber":"1"},"FSALEERID":{"FNumber":"011746"},"FDocumentStatus":"A","FSALEDEPTID":{"FNumber":"014"},"FISINIT":0}

],"Creator":"0","NeedUpDateFields":[]}