Sales Order Invoices don't get emailed from BOI script when run with Windows Task Scheduler.

I created a BOI script that selects a batch of invoices, PDF's them, emails them, updates and PDF's the sales register and updates and PDF's the DTR in 2022 Advanced.  The script works fine when run manually from the desktop.  When running it from Windows Task Scheduler, the invoices don't get PDF'd and they don't get emailed but the sales register and DTR both get PDF'd.  The Task Scheduler task is set up under the same Windows login as I am using when triggering the script manually and it's set to run elevated.  The BOI script logs into Sage with the same user/pw as I use when running manually.  The "old" fix for this was to copy the [PAPERLESS] section from sota.ini to pvx.ini.  However, there is no [PAPERLESS] section in sota.ini anymore.  Any suggestions would be appreciated.

Parents
  • 0

    Have you watched it being run from the Windows Task Scheduler to see if any error messages occurred during the process?  Have you thought of putting a [PAPERLESS} section back into the sota.ini   What is happening just before the invoices are to be emailed out?

Reply
  • 0

    Have you watched it being run from the Windows Task Scheduler to see if any error messages occurred during the process?  Have you thought of putting a [PAPERLESS} section back into the sota.ini   What is happening just before the invoices are to be emailed out?

Children
  • 0 in reply to BigLouie

    I did think of adding the [PAPERLESS] section manually but I wasn't sure if what i have from 2016 would work in 2022.  Here's what i have:

    [Paperless]
    Name=Sage 100 ERP
    Driver==UAlMFOcHU'UUU'UUlc4G]GfAfMuGlRGFuM88U4GOFu]]H'fH4]8GAHFGuFHRMURUlcH'HffOFARUcGll4ucfUAf'4GucMGMR8G8Hl8OuGMuR
    Printer=Sage 100 PDF Converter
    Version=5.0

    I believe that the Version would need to be changed and I'm not sure that the driver info would be appropriate since the Amuni driver changed.