【月份】不是透视表【数据透视表3】的筛选器字段
Traceback (most recent call last):
File "<string>", line 496, in filter_pivot_table
File "<COMObject PivotFields>", line 2, in Item
pywintypes.com_error: (-2147352567, '发生意外。', (0, 'Microsoft Excel', '类 PivotFields 的 Item 方法无效', 'xlmain11.chm', 0, -2146827284), None)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\ShadowBot\shadowbot-5.14.18\python\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "D:\ShadowBot\shadowbot-5.14.18\python\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "D:\ShadowBot\shadowbot-5.14.18\python\lib\site-packages\xbot_interpreter.py", line 97, in <module>
main()
File "D:\ShadowBot\shadowbot-5.14.18\python\lib\site-packages\xbot_interpreter.py", line 57, in main
try:
File "C:\Users\DK\AppData\Local\ShadowBot\users\40666426075910145\apps\a7c3ff35-ce31-4cfb-a42a-465af4863282\xbot_robot\main.py", line 10, in main
xbot_visual.excel.filter_pivot_table(workbook=excel_instance, sheet_name="Sheet1", name_or_index="1", field_name="月份", select_type="partial", filter_value_list="1月", _block=("main", 2, "筛选数据透视表"))
File "<string>", line 89, in wrapper
File "<string>", line 84, in wrapper
File "<string>", line 1285, in filter_pivot_table
File "<string>", line 499, in filter_pivot_table
ValueError: 【月份】不是透视表【数据透视表3】的筛选器字段