How to create unit from npc_units_custom?

I need to create a unit, using declaration in npc_units_custom, but CreateUnitByName is not working. I think, CreateUnitFromTable(handle, vector) should work, but i don't understand what should be in that table. Please, help me to resolve that problem.