Skip to main content
Question

Issue in Batch Transfer Handler While sending attachments in mail


Forum|alt.badge.img+4

I have a scenario to send attachements through mail. I’m using Batch_Transfer_Handler_API.Download_From_Db method in code to read files. When I execute the code, I get following error.

Failed to read binary data from database: Entity instance not found. (DOCUMENT_FILE_DATA - DOC_CLASS=PROPOSAL, DOC_NO=1000014, DOC_SHEET=1, DOC_REV=A1, DOC_TYPE=VIEW, FILE_NO=1.0) 
Caused by: ifs.fnd.base.SystemException: Failed to read binary data from database: Entity instance not found. (DOCUMENT_FILE_DATA - DOC_CLASS=PROPOSAL, DOC_NO=1000014, DOC_SHEET=1, DOC_REV=A1, DOC_TYPE=VIEW, FILE_NO=1.0) 
Caused by: ifs.fnd.base.DatabaseException: Entity instance not found. (DOCUMENT_FILE_DATA - DOC_CLASS=PROPOSAL, DOC_NO=1000014, DOC_SHEET=1, DOC_REV=A1, DOC_TYPE=VIEW, FILE_NO=1.0)
 

2 replies

Amila Samarasinghe
Superhero (Partner)
Forum|alt.badge.img+14

Hi @Bharath_C 

Does it work when you try to view the document from the application? Also make sure it has a view file connected since you are trying to download the view file. Also check the file_no you are sending is correct.

 

Thanks


Mathias Dahl
Superhero (Employee)
Forum|alt.badge.img+32
  • Superhero (Employee)
  • 2856 replies
  • August 3, 2022

@Bharath_C Did you solve the problem? The error “Entity instance not found” always means that there is no record with those key values. Could it be that you need to use ORIGINAL instead of VIEW?

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings