327: if ar_doc_transfer_standard.isDebugOn then
328: ar_doc_transfer_standard.debug('AR_TRANSFER_DOCUMENT.build_batch_error_message(+)');
329: end if;
330: fnd_message.set_name('AR', 'AR_DOC_TRS_BODY');
331: WF_NOTIFICATION.WriteToClob(document,fnd_message.get||fnd_global.newline||fnd_global.newline);
332: ar_notification_standard.parseDocumentId(document_id, l_item_type, l_item_key);
333: l_request_id := wf_engine.getItemAttrText(itemType => l_item_type,
334: itemKey => l_item_key,
335: aname => 'USER_AREA1');
336: l_exception_type := wf_engine.getItemAttrText(itemType => l_item_type,
337: itemKey => l_item_key,
338: aname => 'USER_AREA2');
339: for err_rec in err_csr loop
340: WF_NOTIFICATION.WriteToClob(document, err_rec.exception_message||fnd_global.newline);
341: end loop;
342: document_type := 'text/plain';
343: if ar_doc_transfer_standard.isDebugOn then
344: ar_doc_transfer_standard.debug('AR_TRANSFER_DOCUMENT.build_batch_error_message(-)');