If after the death of a person, the last rites are not performed according to the law or if that person dies prematurely, then the family associated with that person has to face Pitra Dosh. It is not affected in a single generation but is more affected.