Getting an Error while Printing the Sales Invoice

Hello India Compliance Team,

We have done the IRN Generation in the Sales Invoice, but the same is showing in the EInvoice Summary Report,but the same in the Invoice Data: Json is not showing anything. It is showing blank
and While Printing the Sales Invoice it is showing the below Error.

Can you help on this

I think, it’s a custom print format so please check it in the code and resolved it.