How do I fix “Error occurred while retrieving screenshot / regions” when working with Region Mode screenshots?
While attempting to work with elements which are based on screenshot data captured using Region Mode spying, the following error is displayed:
Error occurred while retrieving screenshot / regions.
When checking the element's screenshot information, it is found to be missing. However, the element does appear in the Application Modeller at a parent level in the hierarchy list:
This may be accompanied by further details:
BluePrism.BPCoreLib.NoSuchElementException: No node found for the given app member
at Automate.ctlApplicationExplorer.DeleteMember(clsApplicationMember member)
at Automate.frmIntegrationAssistant.ClearRegions(clsRegionContainer cont)
at Automate.frmIntegrationAssistant.CaptureRegions(clsRegionContainer cont)
at Automate.frmIntegrationAssistant.HandleOpenScreenshotClick(Object sender, EventArgs e)
This issue is caused when the element is at a parent level because screenshot data cannot be stored against a parent item, only at the child node level.
How to resolve your issue:
Ensure that elements which store screenshots captured using Region Mode are child level elements in your Application Modeller element hierarchy tree list.