webapi调用【生产用料清单】下推【生产领料单】报错原创
金蝶云社区-小狐狸与ともり
小狐狸与ともり
6人赞赏了该文章 1142次浏览 未经作者许可,禁止转载编辑于2019年12月05日 14:50:27

报错信息:

{"Result":{"ResponseStatus":{"ErrorCode":500,"IsSuccess":false,"Errors":[{"FieldName":null,"Message":"值不能为 null。\r\n参数名: source\r\nServer stack trace: \r\n   在 System.Linq.Enumerable.Select[TSource,TResult](IEnumerable`1 source, Func`2 selector)\r\n   在 Kingdee.K3.MFG.App.ServiceValidator.BasePPBomEntityExistsValidator.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.AbstractSave.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.WebApi.FormService.Push.Execute()\r\n   在 Kingdee.BOS.WebApi.FormService.BillOperationService.ExecuteOperation(FormOperation op, String data)","DIndex":0}],"SuccessEntitys":[],"SuccessMessages":[],"MsgCode":0}}}


版本为:7.3.1395.1

解决方案:打开BOS,找到【生产领料单】,把【明细】单据体上的【必录】勾选上即可。标准原厂设置中,是勾选的。

原因不详。经反复验证,去掉勾选则报错,勾选上则不报错,反复测试了两次,均如此。因此,可认为,勾选上必录,即可解决此问题。

image.png

赞 6