尝试将我的模型与 Invantive Control for Excel 同步时,出现以下错误:
这是完整的错误信息:
Type: System.Runtime.InteropServices.COMException
at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
at Microsoft.Office.Interop.Excel.Range.Delete(Object Shift)
at Invantive.Producer.Control.Utility.ResizeBlock(ModelCache modelCache, Workbook workbook, List`1 blocks, iea_blocks_v block, Cube currentCube, Cube desiredCube, Point3d startPoint, Int64 growLength) in File169:line 7968
at Invantive.Producer.Control.Utility.AdjustBlockDimensionOneAxis(SystemWorkingContext context, ModelCache modelCache, Workbook workbook, iea_blocks_v currentBlock, Cube currentCube, Cube desiredCube, IEnumerable`1 anchoredBlocksResult, List`1 blocks, Point3d desiredStartPoint, Int64 growLength, iea_blocks_vBlk_repeat_rows_along adjustAxis, iea_blocks_vBlk_repeat_rows_direction adjustDirection) in File169:line 7293
at Invantive.Producer.Control.Utility.AdjustBlockDimensions(SystemWorkingContext context, ModelCache modelCache, Workbook workbook, List`1 blocks, iea_blocks_v currentBlock, Cube currentCube, Cube desiredCube, Point3d desiredStartPoint) in File169:line 6617
at Invantive.Producer.Control.SyncToDatabaseForm.SyncDownload(DoWorkEventArgs e) in File170:line 2173
解决此错误的步骤是什么?
编辑
Invantive Control中块的SQL语句是:
select division_hid
, division_name
, reportingyear_attr
, years_balance_code_attr
, years_balance_description
, open
from BalanceLines
where years_balance_balancetype_attr = "B"
and reportingyear_attr = $X{eol_year_to}
是对其值在查询中使用的$X{eol_year_to}
命名范围的引用。eol_year_to
我在 Excel 表中添加了两列,一列用于垂直搜索 GL 帐户分类代码,另一列用于 GL 帐户分类描述。添加后,模型不再与 Exact Online 同步。