「集計フィールド」を含んだピボットテーブルのあるエクセルファイルでのエラー

ピボットテーブルを含んだエクセルファイルに対し、
Excel application Scopeを利用して「範囲に書き込み」をしています。
ロボットはピボットテーブル自体は操作せず(更新もしない)
ピボットの元となるテーブルに対して書き込みを行っています。

特定のファイルにおいて、ピボットテーブルが「集計フィールド」を含むと
エラーとなってしまいました。
(最初は問題なく動作していたのですが、突然このような事象なってしまいました)

UiPathのエラーは:

・Failed opening the Excel file . Possible reasons: the file is corrupt, the file is already used by another process or you don’t have permissions to open the file

に続いて

RemoteException wrapping System.Runtime.InteropServices.COMException:

アイテム名が見つかりません 入力した名前が正しいことと ピボットテーブル レポートにアイテムがあることをご確認ください

と表示されています。

エクセルファイル自体は問題なく手動操作できます。
また、別のファイルで「集計フィールド」を含んでいてもロボットは動作します。
ファイル自体の破損を考慮して、新しく作り直してみたのですが、状況は変わりません。
もし同じ事象を回避された方がおられましたら、情報をお寄せいただけるとありがたいです。

※UiPath:2020.10.7
UiPath.Excel.Activities 2.9.5

If any excel file is open please close it before you run your process.

Hi Andile,

Thanks for your comment.
I am sure the file had been closed before the bots tried to open it.
(Because with other files, the bot can operate normally) :slight_smile:

Hey

you can replace that file because file may be Corrupted. Please Let me know it is working or not.

Thanks,
Rounak

Hi Rounak,

Thanks for your comment.
Unfortunately, I’ve already created the file but it did not work.

Best

自己レスですが、原因自体は見当がつきました。
UiPathの問題ではないようです。

元のファイルについて;

・2つ以上のテーブルが存在
・テービル同士がリレーションが設定されている
・ピヴォットテーブルにリレーションモデルをソースとして選択している

が揃うとエラーが生じるようです。

UiPath側の問題ではないようなので、クローズと致します。

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.