# Invoicing with AutoPrint BPM

**URL:** <https://www.epiusers.help/t/invoicing-with-autoprint-bpm/78620>\
**Category:** Epicor ERP 10\
**Tags:** e10, bpm\
**Created:** [May 13, 2021, 9:30pm UTC](https://www.epiusers.help/t/invoicing-with-autoprint-bpm/78620 "2021-05-13T21:30:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tsantaniello](https://www.epiusers.help/letter_avatar_proxy/v4/letter/t/e36b37/32.png) [@tsantaniello](https://www.epiusers.help/u/tsantaniello)\
**Post date:** [May 13, 2021, 9:30pm UTC](https://www.epiusers.help/t/invoicing-with-autoprint-bpm/78620/1 "2021-05-13T21:30:40Z")

</div>

Hi, I created a group with 2 invoices in AR invoice entry. I posted the invoices, but the last step is to EDI the invoices using a BPM and report style. Essentially, the BPM checks if the EDIReady flag is set to true; and then creates the EDI text file (invoice) using the report style. I get the following error from the System Monitor:

Failed to submit autoprint report. Error: Ice.BLException: No invoices selected to print.  
at Erp.Services.Rpt.ARInvFormSvc.ExValidateParam() in C:\_releases\ERP\ERP10.2.700.0\Source\Server\Services\Rpt\ARInvForm\ARInvForm.cs:line 314  
at Ice.Core.TaskServiceBase`1.SubmitUsingTaskAgent(IceRow parameterRow, String agentID, Int64 agentSchedNum, Int32 agentTaskNum, String maintProgram) in C:\_Releases\ICE\ICE3.2.700.0\Source\Server\Internal\Lib\TaskLib\TaskBase\TaskServiceBase.cs:line 311  
at Erp.Services.Rpt.ARInvFormSvc.SubmitToAgent(ARInvFormTableset ds, String agentID, Int64 agentSchedNum, Int32 agentTaskNum, String maintProgram) in C:\_releases\ERP\ERP10.2.700.0\Source\Server\Services\Rpt\ARInvForm\ARInvForm.Designer.cs:line 116  
at Epicor.Customization.Bpm.DBD9BE451FA1DE4A9CA3A80A657AF9A0DD.PostTranDirective\_EDIAutoprint\_C6CE8334C0164E87A1B00C5C5CEC2664.A001\_AutoPrintAction()

Any assistance would be gladly appreciated.

Thanks  
Tony

---

<div class="post-metadata">

**Author:** ![tsantaniello](https://www.epiusers.help/letter_avatar_proxy/v4/letter/t/e36b37/32.png) [@tsantaniello](https://www.epiusers.help/u/tsantaniello)\
**Post date:** [May 13, 2021, 10:41pm UTC](https://www.epiusers.help/t/invoicing-with-autoprint-bpm/78620/2 "2021-05-13T22:41:16Z")

</div>

Problem solved. One of the Report Parameters returned to default when I changed the report style.

---

<div class="post-metadata">

**Author:** ![Dikshat](https://www.epiusers.help/letter_avatar_proxy/v4/letter/d/22d042/32.png) [@Dikshat](https://www.epiusers.help/u/Dikshat)\
**Post date:** [November 6, 2023, 5:30pm UTC](https://www.epiusers.help/t/invoicing-with-autoprint-bpm/78620/3 "2023-11-06T17:30:47Z")

</div>

can you send me the code how you are calling the BPM to auto print. I am also trying to achieve the same thing.
