Investigate the cause of of undefined additional_info field. upong checking refund orders has no additional_info_field in magento API. Add validation condition when sale type is refund then let the additional_info_fields blank.