WebAPI调用批量保存单据出错(字段Index was outside the bounds of ...
807次浏览
编辑于2018年07月23日 16:52:48
WebAPI 调用批量保存单据出错,之前没这个错误现在生成的单据条数稍微多点就报这个错误,请大神帮忙解决一下!字段Index was outside the bounds of the array.:Server stack trace:
at Kingdee.BOS.App.Core.SequenceReader.GetSqlServerSequence[T](String key, Int32 count, Boolean isInt32, Func`2 convertFunc)
at Kingdee.BOS.App.Core.SequenceReader.GetInt64Sequence(String key, Int32 count)
at Kingdee.BOS.App.Core.SequenceReader.GetSequence[T](String key, Int32 count)
at Kingdee.BOS.App.Core.SequenceReader.b__3(String key, Int32 count)
at Kingdee.BOS.App.Core.SequenceReader.SetPrimaryKey[T](IEnumerable`1 dataEntities, ISimpleProperty pkProperty, String key, Func`3 pkCreate, Func`2 defaultValueFunc)
at Kingdee.BOS.App.Core.SequenceReader.b__0(DataEntityWalkerEventArgs e)
at Kingdee.BOS.Orm.DataEntity.DataEntityWalkerEventArgs.DataEntityWalker(ForWriteList`1 dataEntities, IDataEntityType dt, DataEntityWalkerCallback callback, PropertyStockNode propertyStack, Boolean onlyDbProperty)
at Kingdee.BOS.Orm.DataEntity.DataEntityWalkerEventArgs.DataEntityWalker(ForWriteList`1 dataEntities, IDataEntityType dt, DataEntityWalkerCallback callback, PropertyStockNode propertyStack, Boolean onlyDbProperty)
at Kingdee.BOS.Orm.DataEntity.DataEntityWalkerEventArgs.DataEntityWalker(ForWriteList`1 dataEntities, IDataEntityType dt, DataEntityWalkerCallback callback, PropertyStockNode propertyStack, Boolean onlyDbProperty)
at Kingdee.BOS.Orm.DataEntity.DataEntityWalkerEventArgs.DataEntityWalker(IEnumerable`1 dataEntities, IDataEntityType dt, DataEntityWalkerCallback callback, Boolean onlyDbProperty)
at Kingdee.BOS.App.Core.AbstractSave.Excute(DynamicObject[] dataEntities)
at Kingdee.BOS.App.Core.SaveService.Save(Context ctx, BusinessInfo info, DynamicObject[] dataEntities, OperateOption option, String operationNumber)
at Kingdee.BOS.App.Core.SequenceReader.GetSqlServerSequence[T](String key, Int32 count, Boolean isInt32, Func`2 convertFunc)
at Kingdee.BOS.App.Core.SequenceReader.GetInt64Sequence(String key, Int32 count)
at Kingdee.BOS.App.Core.SequenceReader.GetSequence[T](String key, Int32 count)
at Kingdee.BOS.App.Core.SequenceReader.
at Kingdee.BOS.App.Core.SequenceReader.SetPrimaryKey[T](IEnumerable`1 dataEntities, ISimpleProperty pkProperty, String key, Func`3 pkCreate, Func`2 defaultValueFunc)
at Kingdee.BOS.App.Core.SequenceReader.
at Kingdee.BOS.Orm.DataEntity.DataEntityWalkerEventArgs.DataEntityWalker(ForWriteList`1 dataEntities, IDataEntityType dt, DataEntityWalkerCallback callback, PropertyStockNode propertyStack, Boolean onlyDbProperty)
at Kingdee.BOS.Orm.DataEntity.DataEntityWalkerEventArgs.DataEntityWalker(ForWriteList`1 dataEntities, IDataEntityType dt, DataEntityWalkerCallback callback, PropertyStockNode propertyStack, Boolean onlyDbProperty)
at Kingdee.BOS.Orm.DataEntity.DataEntityWalkerEventArgs.DataEntityWalker(ForWriteList`1 dataEntities, IDataEntityType dt, DataEntityWalkerCallback callback, PropertyStockNode propertyStack, Boolean onlyDbProperty)
at Kingdee.BOS.Orm.DataEntity.DataEntityWalkerEventArgs.DataEntityWalker(IEnumerable`1 dataEntities, IDataEntityType dt, DataEntityWalkerCallback callback, Boolean onlyDbProperty)
at Kingdee.BOS.App.Core.AbstractSave.Excute(DynamicObject[] dataEntities)
at Kingdee.BOS.App.Core.SaveService.Save(Context ctx, BusinessInfo info, DynamicObject[] dataEntities, OperateOption option, String operationNumber)
推荐阅读