0

将 Excel 中的模型与一个块同步时,我收到 itgensdf054 错误,表明它无法清除以下查询的数据同步到的目标范围。

完整的错误信息是:

无法清除块 'ECO' 的范围 ''Aangifte Bebat'!$A$6:$Q$129' 的内容。Deze wijziging kan niet worden doorgevoerd voor de geselecteerde cellen omdat ze van invloed zijn op een draaitabel。Gebruik de lijst 遇到了 velden om het rapport te wijzigen。Verplaats de draaitabel en probeer het opnieuw als u cellen wilt invoegen of verwijderen

调用堆栈:

Type: System.Runtime.InteropServices.COMException
   bij System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
   bij Microsoft.Office.Interop.Excel.Range.ClearContents()
   bij Invantive.Producer.Control.SyncToDatabaseForm.SyncDownload(DoWorkEventArgs e) in File176:regel 1508
   bij Invantive.Producer.Control.SyncToDatabaseForm.SyncDownload(DoWorkEventArgs e)
   bij Invantive.Producer.Control.SyncToDatabaseForm.syncBackGroundWorker_DoWork(Object sender, DoWorkEventArgs e)
   bij System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)

块“ECO”同步来自 Exact Online 上的以下查询的数据:

select /*+ join_set(sik, invoiceid, 100) join_set(sil, invoiceid, 100) join_set(itm, id, 100) join_set(itr, id, 100) */sil.itemcode
,      sil.description
,      bom.batchquantity
,      sil.quantity
,      sil.netprice
,      sil.amountdc
,      sil.vatamountdc
,      sil.vatcode
,      sil.vatcodedescription
,      sil.vatpercentage
,      sik.invoicenumber
,      sil.linenumber
,      itr.itemgroupcode
,      itm.class_04  --aanpassen naar inrichting klant = assortiment bebat_nomenclatuur
,      itm.class_10  -- is assortiment 10 instellingen stuklijst explosie
,      case
       when sik.invoicenumber is not null
       then '=if($C{D,.,.,.-5,.}=$C{D,.,.,.-5,.-1}, if($C{D,.,.,^+2,.}= "", $C{D,.,.,^,.-1}, $C{D,.,.,^,.}), $C{D,.,.,^,.})'
       end
       ass_itemcode
,      case
       when sik.invoicenumber is not null
       /*=""&ALS(K6=K5;ALS(C6<>"";N6;N5);N6)*/
       then '="" & if($C{D,.,.,.-6,.}=$C{D,.,.,.-6,.-1}, if($C{D,.,.,^+2,.} <> "", $C{D,.,.,.-3,.}, $C{D,.,.,.-3,.-1}), $C{D,.,.,.-3,.})'
       end
       nomenclatuur
from   ExactOnlineREST..SalesInvoiceLines sil
join   ExactOnlineREST..SalesInvoices sik
on     sil.invoiceid = sik.invoiceid
join   ExactOnlineREST..Items itm
on     sil.item = itm.id
join   ExactOnlineREST..ItemsRead itr
on     sil.item = itr.id
left
outer 
join   ExactOnlineXML..BillOfMaterials bom
on     sil.itemcode =  bom.item_code_attr 
order 
by     sik.invoicenumber
,      sil.linenumber

查询或模型在之前工作时没有更改。

Excel 工作表中有一个数据透视表,用于汇总销售详细信息列表。

是什么导致了这个错误?

4

1 回答 1

1

从您的评论中,我了解到数据透视表位于“Aangifte Bebat”工作表中,但下载的数据位于“详细信息”工作表中。

我想你已经做了一点改动。可能您在详细信息工作表之前插入或移动了新工作表。由于 Invantive Control 根据工作表的编号进行下载,因此数据现在已被移动。

确保恢复工作表的原始顺序。

于 2017-09-13T13:41:17.243 回答