Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Unexpected error: Operation is not valid due to the current state of the object.

Hi Team,   I am getting this error "Unexpected error: Operation is not valid due to the current state of the object".   What am I doing? 1. we created a function which needs 2 parameters - 1st p...
  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi, 

     

    Finally, I found the solution to this issue.

    for example: below is my function

    fn_function = (a as number) =>

    let 

     a = a 

    in 

    a 

     

    now here since on both the side we have the same variable name. it gives the error. so I changed the function to below:

    fn_function = (b as number) =>

    let 

     a = b 

    in 

    a 

     

    then the issue got solved.