I'll take a stab in the dark here with a list of items you need to check for.
Number one; check the Set Enterprise Call Data Step(in the script) and verify the Location Variable and the User.Layout (in the Expanded Call Variables tab)
Number two; in Desktop Administrator(web gui), ensure there is an equivalent UserLayout Name as defined in the script and within this LayoutList(Services Configuration>Enterprise Data) ensure the field of Location is selected (considering what I'm seeing from your message you probably need to recreate the Field(Services Configuration>Fields)
Hopefully this gets you moving in the right direction...