How to merge 2 Test Cases together & make it work?

Capture

I have two different test cases & would like to merge it to become one test case/ test suite. I copied the script from test case A to test case B. However, when i try to copy the variables(script mode), it prompting error message as image above. How can i do this?

There isnt any reason why you shouldnt be able to do this so there must be something wrong with the script you are trying to save. Do the variables show up correctly in the non script mode ?

Do the variables show up correctly in the non script mode: Yes