Lot Number some times not being created once job is complete

Hello, i have a issue where some parts are not created lot numbers but other parts are. they are all make to stock job and i have auto receive setup so once the last operation is completed then the lot number should get created and auto receive into inventory tasks place.

But i have about 8 different parts where this process is not fully working and i understand where this is falling over.