Cycles render black - material preview good

Hi Blenderheads.

I try to make a material. In the 3D window material mode seems to be ok. When hit render the material simple black. If i bypass the color mix node and use only one material or a mix shader all ok. There is a lamp and some emitting faces in the scene. I was try another build, i got the same result. Mac 10.8.4


Use a Mix Shader not a colour mix node. You need a shader node to input into the Material Output node. Note the green node input/output, a green output should go into a green input.

Any colour mix nodes should feed into a shader node.

Thank for your quick reply. I was change to mix shader but i want to know why my setup work in material view and why not in render.