Question

Customer Invoice email attachment issue

  • 16 September 2021
  • 8 replies
  • 413 views

Userlevel 6
Badge +18

Hi, We created an Email type Custom Event Action using PDF_REPORT_CREATED Event to send out Customer Invoices. We are using the standard IFS report in Apps 10. 

While the Custom Event is firing, we aren’t receiving the correct invoice PDF. Instead the following email with a corrupt looking PDF is getting sent out:

The file cant be opened and gives the following error message:

 

The invoice PDF inside the IFS report archive looks right and can be opened. 

Also, the above attachment come across correctly when we sent it manually using the Email option in the Print Dialogue:

Notice the subject, message and email sender name look different

Has anyone come across this issue before?

Does this anything to do with how the Custom Event Action creation?

TIA,

Srikanth


This topic has been closed for comments

8 replies

Userlevel 7
Badge +18

What does your event action look like?

 

I copied this from a working event action (Apps 9 UPD 13):

                  command_sys.mail(
from_user_name_ => email_from_,
to_user_name_ => email_to_,
text_ => email_body_,
error_text_ => NULL,
attach_ => '&PDF_FILE',
cc_ => NULL,
subject_ => email_subject_,
timer_ => NULL,
audit_ => NULL,
from_alias_ => NULL,
label_ => NULL,
mail_sender_ => NULL);

 

Userlevel 6
Badge +18

Thanks for the info.

Here is how the Event Action looks like right now:

 

Userlevel 7
Badge +18

 

What do you see when you click the blue link that says “1 Attachments”?

Userlevel 7
Badge +21

Hi @Srikanth ,

 

Here’s a the event action we use to send invoice by email to a customer.  The email address comes from the customer record on the payment tab.  It’s setup under the AR Customer Contact section.

Send Invoice By Email

 

Regards,

William Klotz

Userlevel 6
Badge +18

 

What do you see when you click the blue link that says “1 Attachments”?

&PDF_FILE

Userlevel 6
Badge +18

Hi @Srikanth ,

 

Here’s a the event action we use to send invoice by email to a customer.  The email address comes from the customer record on the payment tab.  It’s setup under the AR Customer Contact section.

Send Invoice By Email

 

Regards,

William Klotz

Only difference is Mail Sender is left blank in your screenshot. Let me try this out.

Thanks!

Userlevel 7
Badge +21

Hi @Srikanth ,

 

Hopefully removing the Mail Sender will correct your issue.  We’ve never used the Mail Sender in our Email actions.

 

Regards,

William Klotz

Userlevel 6
Badge +18

We recreated the Event Action with Mail Sender left blank but the issue still persists.