how we can update value to AssociatedImageFilePath property in processing exception type in Queue Item
Queueitem.ProcessingException.AssociatedImageFilePath
Could you explain what is your end goal and what is going wrong?
Hi @loginerror,
My Goal is to update value to the AssociatedImageFilepath when an exception occurs while processing an item.
when i try to do so after processing an item using an assign activity it shows error as cant modify the NULL.
Will this be possible to modify the value like we provide details of exception and can be used for reporting purpose.
i am referring to the below API output,
Hi @loginerror,
My Goal is to update value to the AssociatedImageFilepath when an exception occurs while processing an item.
when i try to do so after processing an item using an assign activity it shows error as cant modify the NULL.
Will this be possible to modify the value like we provide details of exception and can be used for reporting purpose.
i am referring to the below API output,
Would it work to try to assign the value in the Catch of the Try-Catch routine?
I found some more information, see below:
ProcessingExceptions table stores the exceptions sent by the robots when SetTransactionStatus was declared Failed.
- Reason - This field stores data sent by robot using the Reason attribute of the SetTransactionStatus activity.
- Details (optional) - This field stores data sent by robot.
- Type - This field stores error types. ( 0 = ApplicationException, 1 = BusinessException)
- AssociatedImageFilePath - This field stores local path where screen snapshot was saved if the “Take screenshot” activity was used by the robot. Value sent by the robot.
This would mean that you cannot change it manually. You need to call the Take screenshot activity to make your screenshot and save it in the desired location. The path should then be returned in the logs.
Let us know if it works!
Hi @loginerror
There is an output parameter for take screenshot activity should I need leave it blank ?
No. i used to update the Output object and then fetched the result.
In one of the earlier releases of SetTransactionStatus it was possible to set a property called AssociatedFilePath (which refered to AssociatedImageFilepath, I suppose). For now I’m just using the Details property to store a path of an exception screenshot. Value of the Details property are of course displayed in the transaction item details in the Orchestrator.
We can still use the property AssociatedImageFilepath, using the Orchestrator API. Could be useful, since Output can’t be set when status is Failed and for some processes I already add some transaction specific details to the Details property.
The value of the property can be fetched for reporting or dashboarding purposes, but at the moment it doesn’t seem to be displayed in the Orchestrator at the transaction item details view.
Is it possible to display this property in the Orchestrator? Moreover, being able to embed an image (stored in a storage bucket) within the transaction item details would be absolutely sublime. I’d like to suggest adding this as a feature request.
As soon as any exception occurs all the process variable values will become null and i also faced same issue
so i have used config variable to store the values which we need after any exception occur since our config parameter type as dictionary and we can use in entire framework where ever it is required
@Naveen.Ch Smart to use the config variable! If you’re using a queue and it concerns transaction specific data, I recommend using TransactionItem.Progress (Set Transaction Progress activity). I actually store a dictionary serialized as json string in Progress, to have some structure. Using this method, you’ll have your transaction data during retries, even if you run your process on multiple robots simultaneously.
Any thoughts on the AssociatedImageFilePath property?