Error in Sales Invoice Print Format – “Error in Print Format on line 675”

Hi Team,

We are facing an issue while printing the Sales Invoice.

We have customized the Sales Invoice print format by combining:

  • Sales Invoice

  • Delivery Note

  • E-Way Bill details

Issue:
While printing the Sales Invoice, the system throws the following error:

“Error in Print Format on line 675”

We faced a similar issue around 2 weeks ago. At that time, we found that:

  • The E-Way Bill number was generated successfully

  • But the E-Way Bill log was not generated

After clicking:
E-Way Bill → Fetch Data

the E-Way Bill log details were created, and then the Sales Invoice print format worked correctly.

Current Problem:
This time, we are not able to see the “Fetch Data” inside the E-Way Bill button of the Sales Invoice. Because of this, the print format is failing again.

Has anyone else faced this issue or knows why the E-Way Bill log details are not being generated even after successful E-Way Bill generation, and why the “Fetch Data” option is not visible inside the E-Way Bill button on the Sales Invoice?

Any help would be appreciated.

Thanks.

Please verify whether the E-Way Bill Log exists for the affected invoice and review the custom print format code at line 675 to add null checks for missing E-Way Bill data