SyncData gets error

I am trying to use the following command to syncronize a work object from a macro to the VC:

station.ActiveTask.SyncData(“Module1/workObjBattery”, SyncDirection.ToController, new System.Collections.Generic.List());

However, I always get this error:

The given key was not present in the dictionary.

Apparently the name Module1/workObjBattery is correct. What could have gone wrong here?

Thanks,

Sam

Hi
Looks like this only works if you create a real addin and not thru VSTA.