Hello,
Could you please tell us, when you ran the task, the values of a list variable were missing or the variable itself was missing?
Could please let us know when the problem occurred, did you ran the task with Administrator account or Standard User account? Also, did you logged in with same account in which you had created that list variable?
Note: You should have proper rights (Read and Write) on My Documents folder to access user-defined variables. In addition, for security purpose, tasks and variables of every user are accessible in their account only.
For your information, you can also save list of values (office codes) in a text file on your hard drive and using Automation Anywhere, you can read this text file through variable.
Automation Anywhere provides you an option that reads the variables from the text file. You can save the text file to any location.
Go to Tools->Variable Manager and in 'User Variables' click on 'Add New Variable'. Select a variable of type 'List' or 'Value' (as per your requirement) and select the option 'Read from text file' and specify the file from where you would like to read the values.
For better understanding, you can refer to following online example,
http://www.tethyssolutions.com/T12.htm
Hope that helps.