Assign exception has been thrown by the target of an invocation

Hi All,

I have an error that is always throwing this error
“assign exception has been thrown by the target of an invocation”

Find the attachment

Welcome to the UiPath Community @jegadeesh_Babu

This error comes when the datatype is invalid for the source is invalid.

Suggest you to check the dictionary’s datatype of the value component and make it string

Also print the value before this assign to see the value is being correctly generated, there might be something wrong in there too.

Always go about such issues by debugging it and checking the locals panel for all the values at the time of error

Hope this helps

Do you really have a dictionary named dictionary? That’s a bad idea.

Rename your dictionary to something that’s not likely to be a reserved word or other type of object.

1 Like

@jegadeesh_Babu

Welcome to forums

For adding items to dictionary, check below for your reference

Hope this may help you

Thanks