Error while creating delivery note using copy to function

I am getting below error while I try to create delivery note using copy to function in sales invoice. Could anyone explain what is going on

This bug was due to having custom field without name. Fixed in the latest version (18.7.41)