调用K3 CLOUD 收款单接口报错
925次浏览
编辑于2016年02月16日 17:20:43
调用K3 CLOUD 收款单接口报错, 传入参数FCONTACTUNIT时报错, {\"Creator\":\"100096\",
\"NeedUpDateFields\":[\"\"],
\"Model\":{
\"FBillTypeID\":{\"FBILLTYPEID\":\"36cf265bd8c3452194ed9c83ec5e73d2\",\"FNumber\":\"SKDLX01_SYS\",\"FName\":\"".urlencode("销售收款单")."\"},
\"FBillNo\":\"SKD00000012\",
\"FCURRENCYID\":{\"FCURRENCYID\":1,\"FNUMBER\":\"PRE001\",\"FNAME\":\"".urlencode("人民币")."\"},
\"FCONTACTUNITTYPE\":\"BD_Customer\",
\"FCONTACTUNIT\":{\"FNUMBER\":\"100138\"},
\"FPURPOSEID\":{\"FNUMBER\":\"SFKYT01_SYS\"}
}}报错如下: 请求数据:{"format":1,"useragent":"ApiClient","rid":"{CB617563-64A4-115B-2281-9CAB6C381E39}","parameters":["AR_RECEIVEBILL","\r\n {\"Creator\":\"100096\",\r\n \"NeedUpDateFields\":[\"\"],\r\n \"Model\":{\r\n \"FBillTypeID\":{\"FBILLTYPEID\":\"36cf265bd8c3452194ed9c83ec5e73d2\",\"FNumber\":\"SKDLX01_SYS\",\"FName\":\"%CF%FA%CA%DB%CA%D5%BF%EE%B5%A5\"},\r\n \"FBillNo\":\"SKD00000012\",\r\n \"FCURRENCYID\":{\"FCURRENCYID\":1,\"FNUMBER\":\"PRE001\",\"FNAME\":\"%C8%CB%C3%F1%B1%D2\"},\r\n \"FCONTACTUNIT\":{\"FItemID\":100138,\"FNumber\":\"CUST0003\",\"FName\":\"%D5%C5%C8%FD\"},\r\n \"FPURPOSEID\":{\"FNUMBER\":\"SFKYT01_SYS\"}\r\n }}"],"timestamp":"2016-02-16","v":"1.0"}保存返回结果:response_error:{"InnerExWrapper":{"IsEmpty":false,"Data":{},"HelpLink":null,"Message":"Exception has been thrown by the target of an invocation.","Source":null,"StackTrace":" at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)\r\n at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)\r\n at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)\r\n at Kingdee.BOS.ServiceFacade.KDServiceFx.ServiceExecutor.Execute(KDServiceContext context, ServiceType svcType, String[] paraValues, SerializerProxy serializeProxy, ServiceType beginMethod)","TargetSite":null,"ExceptionType":"System.Reflection.TargetInvocationException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089","InnerException":{"IsEmpty":false,"Data":{},"HelpLink":null,"Message":"MapComplexProperty Field Error :Field Key is 【FCONTACTUNIT】","Source":null,"StackTrace":" at Kingdee.BOS.WebApi.FormService.BillOperationService.ExecuteOperation(FormOperation op, String data)\r\n at Kingdee.BOS.WebApi.FormService.WebApiServiceCall.ExcuteSpecialOperation(Context ctx, String formId, String data, Int64 opId)\r\n at Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.Save(String formid, String data)","TargetSite":null,"ExceptionType":"System.Exception, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089","InnerException":null}},"ClassName":"Kingdee.BOS.ServiceFacade.ServiceException","Message":"MapComplexProperty Field Error :Field Key is 【FCONTACTUNIT】","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" at Kingdee.BOS.ServiceFacade.KDServiceFx.ServiceExecutor.Execute(KDServiceContext context, ServiceType svcType, String[] paraValues, SerializerProxy serializeProxy, ServiceType beginMethod)\r\n at Kingdee.BOS.ServiceFacade.KDServiceFx.ExecuteServiceModule.OnProcess(KDServiceContext context)\r\n at Kingdee.BOS.ServiceFacade.KDServiceFx.ModulePipeline.ExcuteRequest(KDServiceContext context)\r\n at Kingdee.BOS.ServiceFacade.KDServiceFx.RequestExcuteRuntime.BeginRquest(RequestExtractor requestExtractor, WebContext webCtx)\r\n at Kingdee.BOS.ServiceFacade.KDServiceFx.RequestExcuteRuntime.StartRequest(RequestExtractor requestExtractor, WebContext context)\r\n at Kingdee.BOS.ServiceFacade.KDServiceFx.KDSVCHandler.ExecuteRequest(WebContext ctx, RequestExtractor requestExtractor)\r\n at Kingdee.BOS.ServiceFacade.KDServiceFx.KDSVCHandler.ProcessRequestInternal(WebContext webCtx, RequestExtractor requestExtractor)","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":"8\nExecute\nKingdee.BOS.ServiceFacade.KDServiceFx, Version=5.1.310.6, Culture=neutral, PublicKeyToken=null\nKingdee.BOS.ServiceFacade.KDServiceFx.ServiceExecutor\nSystem.String Execute(Kingdee.BOS.ServiceFacade.KDServiceFx.KDServiceContext, Kingdee.BOS.ServiceFacade.KDServiceFx.ServiceType, System.String[], Kingdee.BOS.ServiceFacade.SerializerProxy, Kingdee.BOS.ServiceFacade.KDServiceFx.ServiceType)","HResult":-2147467259,"Source":"Kingdee.BOS.ServiceFacade.KDServiceFx","WatsonBuckets":null,"_httpCode":500}
\"NeedUpDateFields\":[\"\"],
\"Model\":{
\"FBillTypeID\":{\"FBILLTYPEID\":\"36cf265bd8c3452194ed9c83ec5e73d2\",\"FNumber\":\"SKDLX01_SYS\",\"FName\":\"".urlencode("销售收款单")."\"},
\"FBillNo\":\"SKD00000012\",
\"FCURRENCYID\":{\"FCURRENCYID\":1,\"FNUMBER\":\"PRE001\",\"FNAME\":\"".urlencode("人民币")."\"},
\"FCONTACTUNITTYPE\":\"BD_Customer\",
\"FCONTACTUNIT\":{\"FNUMBER\":\"100138\"},
\"FPURPOSEID\":{\"FNUMBER\":\"SFKYT01_SYS\"}
}}报错如下: 请求数据:{"format":1,"useragent":"ApiClient","rid":"{CB617563-64A4-115B-2281-9CAB6C381E39}","parameters":["AR_RECEIVEBILL","\r\n {\"Creator\":\"100096\",\r\n \"NeedUpDateFields\":[\"\"],\r\n \"Model\":{\r\n \"FBillTypeID\":{\"FBILLTYPEID\":\"36cf265bd8c3452194ed9c83ec5e73d2\",\"FNumber\":\"SKDLX01_SYS\",\"FName\":\"%CF%FA%CA%DB%CA%D5%BF%EE%B5%A5\"},\r\n \"FBillNo\":\"SKD00000012\",\r\n \"FCURRENCYID\":{\"FCURRENCYID\":1,\"FNUMBER\":\"PRE001\",\"FNAME\":\"%C8%CB%C3%F1%B1%D2\"},\r\n \"FCONTACTUNIT\":{\"FItemID\":100138,\"FNumber\":\"CUST0003\",\"FName\":\"%D5%C5%C8%FD\"},\r\n \"FPURPOSEID\":{\"FNUMBER\":\"SFKYT01_SYS\"}\r\n }}"],"timestamp":"2016-02-16","v":"1.0"}保存返回结果:response_error:{"InnerExWrapper":{"IsEmpty":false,"Data":{},"HelpLink":null,"Message":"Exception has been thrown by the target of an invocation.","Source":null,"StackTrace":" at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)\r\n at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)\r\n at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)\r\n at Kingdee.BOS.ServiceFacade.KDServiceFx.ServiceExecutor.Execute(KDServiceContext context, ServiceType svcType, String[] paraValues, SerializerProxy serializeProxy, ServiceType beginMethod)","TargetSite":null,"ExceptionType":"System.Reflection.TargetInvocationException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089","InnerException":{"IsEmpty":false,"Data":{},"HelpLink":null,"Message":"MapComplexProperty Field Error :Field Key is 【FCONTACTUNIT】","Source":null,"StackTrace":" at Kingdee.BOS.WebApi.FormService.BillOperationService.ExecuteOperation(FormOperation op, String data)\r\n at Kingdee.BOS.WebApi.FormService.WebApiServiceCall.ExcuteSpecialOperation(Context ctx, String formId, String data, Int64 opId)\r\n at Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.Save(String formid, String data)","TargetSite":null,"ExceptionType":"System.Exception, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089","InnerException":null}},"ClassName":"Kingdee.BOS.ServiceFacade.ServiceException","Message":"MapComplexProperty Field Error :Field Key is 【FCONTACTUNIT】","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" at Kingdee.BOS.ServiceFacade.KDServiceFx.ServiceExecutor.Execute(KDServiceContext context, ServiceType svcType, String[] paraValues, SerializerProxy serializeProxy, ServiceType beginMethod)\r\n at Kingdee.BOS.ServiceFacade.KDServiceFx.ExecuteServiceModule.OnProcess(KDServiceContext context)\r\n at Kingdee.BOS.ServiceFacade.KDServiceFx.ModulePipeline.ExcuteRequest(KDServiceContext context)\r\n at Kingdee.BOS.ServiceFacade.KDServiceFx.RequestExcuteRuntime.BeginRquest(RequestExtractor requestExtractor, WebContext webCtx)\r\n at Kingdee.BOS.ServiceFacade.KDServiceFx.RequestExcuteRuntime.StartRequest(RequestExtractor requestExtractor, WebContext context)\r\n at Kingdee.BOS.ServiceFacade.KDServiceFx.KDSVCHandler.ExecuteRequest(WebContext ctx, RequestExtractor requestExtractor)\r\n at Kingdee.BOS.ServiceFacade.KDServiceFx.KDSVCHandler.ProcessRequestInternal(WebContext webCtx, RequestExtractor requestExtractor)","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":"8\nExecute\nKingdee.BOS.ServiceFacade.KDServiceFx, Version=5.1.310.6, Culture=neutral, PublicKeyToken=null\nKingdee.BOS.ServiceFacade.KDServiceFx.ServiceExecutor\nSystem.String Execute(Kingdee.BOS.ServiceFacade.KDServiceFx.KDServiceContext, Kingdee.BOS.ServiceFacade.KDServiceFx.ServiceType, System.String[], Kingdee.BOS.ServiceFacade.SerializerProxy, Kingdee.BOS.ServiceFacade.KDServiceFx.ServiceType)","HResult":-2147467259,"Source":"Kingdee.BOS.ServiceFacade.KDServiceFx","WatsonBuckets":null,"_httpCode":500}
推荐阅读