Pm.set_data in 4.2.0

Can you provide an minimum example to reproduce the problem?