REFramework Screenshot failed to save

Hi im currently using REFramwork’s TakeScreenshot activity and giving me an error “Failed to take screenshot: Object reference not set to an instance of an object. at Source: Save screenshot” on one System Exception im getting.

But taking screenshot on other System exception for different part of the activity works fine and being saved

I used a path of the shared drive in the config file(not in constants) but inserted it in the Settings tab with proper name and the value

Any way inputs on how to fix the particular error? Thank you

@NIVED_NAMBIAR maybe you can help.

Hi @rmvince

Welcome to forum

I used a path of the shared drive in the config file(not in constants) but inserted it in the Settings tab with proper name and the value

I didn’t understand this part well

Can u elaborate it

Regards

Nived N

Ah for that, instead of changing the value of the ExScreenshotFolderPath in the Constants tab, i added a variable named ExScreenshots with value of the shared folder path

So instead of adding path in constant tab u added the path in settings tab with same name

Is it right @rmvince

no the name of the variable from the settings tab is “ExScreenshots” and didnt change anything in the constants tab variable ExScreenshotFolderPath with default value of “Exceptions_Screenshots”

i cant exactly figure out why some exceptions failed to take screenshot but on other activity/exception it works. i thought the one i mention above affects the taking and saving of screenshot

Did u tried the workflow again and faced same one @rmvince

yeah i tried running it but there are times like 3/5 it doesnt take screenshot on the same workflow, im running the bot unattended