Get Assest issue

Hi Everyone,

i have created on assest and store the value and same i am calling in code. img reference below.

image

it throws error
image

This send outlook i copied from set transaction status state from system exception and i created in_systemRuleException in argument in end state in side main workflow , just to send exception email.

how to resolve this?

Hi @Rakesh_Tiwari

Did you try debugging the process. and is the asset value getting printed? Add a breakpoint to Send Outlook Mail Message and check whether vErrorNotification value is getting printed in Immediate Panel.

Regards

in general we would debug and trace e.g. along with the debugging panels:
Understanding the 6 Debugging Panels of UiPath in the easiest way possible! - News / Tutorials - UiPath Community Forum

Ensure that the studio has configured the right folder feed

A common technique is also to place the Get Asset within a retry scope to make it more resilent

@Rakesh_Tiwari

Check the get asset value is empty or not,Ensure it is initialised properly
Use log message to check the value it contains data or not
Check the asset name also

@Rakesh_Tiwari

As per error…the error happened on a log mesaage and in screenshot i dont see one…so wither it is failing before this only or after this whereever the log message is there

Cheers

@Anil_G ,

i am generating manually, once the application opens i am closing it, just to see whether it is sending email or not and what value it is loading from assest. but in log it thows object reference not set.

Hi @Rakesh_Tiwari

Could you show what are you storing in in_Config("UC044_To_Erroremail").ToString. Make sure you open the Advanced editor of Asset name and pass the syntax. Make sure you have that asset in the mentioned Folder Name.

Regards

i am storing same text (UC044_To_Erroremail) in constant sheet. and getting values from assests.

@Rakesh_Tiwari

But after get asset there is no log i see

Cheers

1 Like

Hi @Rakesh_Tiwari

You need to store that value in Assets Sheets of Config file. Please paste that same in Assets sheets and remove from Constants sheets and try again.

Regards

1 Like

@Rakesh_Tiwari ,

  1. Check the Arguments panel if in_Config created with In direction and Dictionary datatype passed correctly.
  2. Check Invoke Workflow if you are passing the config variable correctly.

It seems in_Config is the culprit here.

Thanks,
Ashok :slight_smile:

1 Like

yes, it should be config while working on main, and i was passing inconfig which is wrong.

Thnaks @ashokkarale

Glad that helped @Rakesh_Tiwari. Please mark my answer as solution as it helped you. Thank you

Thanks,
Ashok :slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.