The specified state is not supported for the variable.
Change the program so that it does not attempt this operation.