Hello,
It's a diesel, as far as I know they don't like air in the fuel system. The fuel filter was empty when you installed it, then probably the fuel lines also emptied when they were disconnected...
I don't know the procedure to fix it, but probably there is one.