hi i have been using this pbix refresher for some time on a vm, with this Version: 2.103.881.0 64-bit (March 2022), and for some lighter reports the script runs good, but when i have some larger files i always get this error.
i ran the script just for a this pbix alone and it ran good so i dont understand what is happening any ideas?
`C:\reports>C:\Users\i9radmin\AppData\Local\Programs\Python\Python37\Scripts\pbixrefresher.exe --init-wait 240 --refresh-timeout 3600 --workspace SOLINCA-PRD c:\reports\CRM_ICI.pbix
Starting Power BI
Waiting 240 sec
Identifying Power BI window
Refreshing
Waiting for refresh end (timeout in 3600 sec)
Saving
Publishing
Traceback (most recent call last):
File "C:\Users\i9radmin\AppData\Local\Programs\Python\Python37\lib\site-packages\pywinauto\application.py", line 258, in __resolve_control
criteria)
File "C:\Users\i9radmin\AppData\Local\Programs\Python\Python37\lib\site-packages\pywinauto\timings.py", line 458, in wait_until_passes
raise err
pywinauto.timings.TimeoutError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\i9radmin\AppData\Local\Programs\Python\Python37\Scripts\pbixrefresher-script.py", line 11, in
load_entry_point('pbixrefresher==0.1.8', 'console_scripts', 'pbixrefresher')()
File "C:\Users\i9radmin\AppData\Local\Programs\Python\Python37\lib\site-packages\pbixrefresher-0.1.8-py3.7.egg\pbixrefresher\pbixrefresher.py", line 73, in main
search_box.type_keys(WORKSPACE)
File "C:\Users\i9radmin\AppData\Local\Programs\Python\Python37\lib\site-packages\pywinauto\application.py", line 379, in getattribute
ctrls = self.resolve_control(self.criteria)
File "C:\Users\i9radmin\AppData\Local\Programs\Python\Python37\lib\site-packages\pywinauto\application.py", line 261, in __resolve_control
raise e.original_exception
File "C:\Users\i9radmin\AppData\Local\Programs\Python\Python37\lib\site-packages\pywinauto\timings.py", line 436, in wait_until_passes
func_val = func(*args, **kwargs)
File "C:\Users\i9radmin\AppData\Local\Programs\Python\Python37\lib\site-packages\pywinauto\application.py", line 222, in get_ctrl
ctrl = self.backend.generic_wrapper_class(findwindows.find_element(**ctrl_criteria))
File "C:\Users\i9radmin\AppData\Local\Programs\Python\Python37\lib\site-packages\pywinauto\findwindows.py", line 87, in find_element
raise ElementNotFoundError(kwargs)
pywinauto.findwindows.ElementNotFoundError: {'auto_id': 'KoPublishToGroupDialog', 'top_level_only': False, 'parent': <uia_element_info.UIAElementInfo - 'CRM_ICI - Power BI Desktop', WindowsForms10.Window.8.app.0.31c915c_r6_ad1, 328344>, 'backend': 'uia'}
`
hi i have been using this pbix refresher for some time on a vm, with this Version: 2.103.881.0 64-bit (March 2022), and for some lighter reports the script runs good, but when i have some larger files i always get this error. i ran the script just for a this pbix alone and it ran good so i dont understand what is happening any ideas?
`C:\reports>C:\Users\i9radmin\AppData\Local\Programs\Python\Python37\Scripts\pbixrefresher.exe --init-wait 240 --refresh-timeout 3600 --workspace SOLINCA-PRD c:\reports\CRM_ICI.pbix Starting Power BI Waiting 240 sec Identifying Power BI window Refreshing Waiting for refresh end (timeout in 3600 sec) Saving Publishing Traceback (most recent call last): File "C:\Users\i9radmin\AppData\Local\Programs\Python\Python37\lib\site-packages\pywinauto\application.py", line 258, in __resolve_control criteria) File "C:\Users\i9radmin\AppData\Local\Programs\Python\Python37\lib\site-packages\pywinauto\timings.py", line 458, in wait_until_passes raise err pywinauto.timings.TimeoutError
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\Users\i9radmin\AppData\Local\Programs\Python\Python37\Scripts\pbixrefresher-script.py", line 11, in
load_entry_point('pbixrefresher==0.1.8', 'console_scripts', 'pbixrefresher')()
File "C:\Users\i9radmin\AppData\Local\Programs\Python\Python37\lib\site-packages\pbixrefresher-0.1.8-py3.7.egg\pbixrefresher\pbixrefresher.py", line 73, in main
search_box.type_keys(WORKSPACE)
File "C:\Users\i9radmin\AppData\Local\Programs\Python\Python37\lib\site-packages\pywinauto\application.py", line 379, in getattribute
ctrls = self.resolve_control(self.criteria)
File "C:\Users\i9radmin\AppData\Local\Programs\Python\Python37\lib\site-packages\pywinauto\application.py", line 261, in __resolve_control
raise e.original_exception
File "C:\Users\i9radmin\AppData\Local\Programs\Python\Python37\lib\site-packages\pywinauto\timings.py", line 436, in wait_until_passes
func_val = func(*args, **kwargs)
File "C:\Users\i9radmin\AppData\Local\Programs\Python\Python37\lib\site-packages\pywinauto\application.py", line 222, in get_ctrl
ctrl = self.backend.generic_wrapper_class(findwindows.find_element(**ctrl_criteria))
File "C:\Users\i9radmin\AppData\Local\Programs\Python\Python37\lib\site-packages\pywinauto\findwindows.py", line 87, in find_element
raise ElementNotFoundError(kwargs)
pywinauto.findwindows.ElementNotFoundError: {'auto_id': 'KoPublishToGroupDialog', 'top_level_only': False, 'parent': <uia_element_info.UIAElementInfo - 'CRM_ICI - Power BI Desktop', WindowsForms10.Window.8.app.0.31c915c_r6_ad1, 328344>, 'backend': 'uia'}
`