# System.reflection.targetinvocation exception during assign activity

**URL:** <https://forum.uipath.com/t/system-reflection-targetinvocation-exception-during-assign-activity/326932>\
**Category:** Activities\
**Tags:** exception, question, system, activities\
**Created:** [July 2, 2021, 12:21pm UTC](https://forum.uipath.com/t/system-reflection-targetinvocation-exception-during-assign-activity/326932 "2021-07-02T12:21:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dhouha\_Cherif](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/dhouha_cherif/32/180486_2.png) [@Dhouha\_Cherif](https://forum.uipath.com/u/Dhouha_Cherif)\
**Post date:** [July 2, 2021, 12:21pm UTC](https://forum.uipath.com/t/system-reflection-targetinvocation-exception-during-assign-activity/326932/1 "2021-07-02T12:21:33Z")

</div>

Hello everyone  
I’m having a System.reflection.targetinvocation exception during assign activity  
sometimes it works without exception and sometimes the exception appears.  
I don’t know what is the cause.  
Can anyone help me please.

---

<div class="post-metadata">

**Author:** ![Srini84](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/srini84/32/464032_2.png) [@Srini84](https://forum.uipath.com/u/Srini84)\
**Post date:** [July 2, 2021, 1:05pm UTC](https://forum.uipath.com/t/system-reflection-targetinvocation-exception-during-assign-activity/326932/2 "2021-07-02T13:05:55Z")

</div>

@Dhouha_Cherif

Check below for your reference

> [@System.reflection.targetinvocationexception during assign activity](https://forum.uipath.com/t/system-reflection-targetinvocationexception-during-assign-activity/187667/13):
>
> Hi all, I changed the selectors for Address and it took some time to get most stable selectors but finally I am not getting this exception anymore. Thanks slight_smile

Hope this may help you

Thanks
