Question

Exception: Cast not valid

Hi Team,

We have a block of code in script element which is as follows

This script element is part of a process. As soon as I run the process, I get an exception of invalid cast.

I performed certain troubleshooting but it didn't work. Kindly help me in this regard.

Regards,

Poorva Sharma

Like 0

Like

1 comments

Hi Poorva,

 

Please connect the application to Visual Studio and debug the process execution and all the code parts to see which value is transferred to the LenderId variable and what happens if we try to cast this variable to Guid. It's hard to determine the reason without the process itself.

 

Best regards,

Oscar

Show all comments