The indicated record was used where only a simple variable can be accepted. Review the declaration of variable-name and check that it is the variable you intended to use (possibly you need to qualify it with a component name). Refer to the embedded-language manual for the requirements of this statement.