"Run Template" on Quotes stuck at "Processing"

Hello community,

Some of my customers request an order confirmation after placing their order. From what I can see, there is no built-in workflow for this in Invoice Ninja. So, I thought I’d try using the “Run Template” feature to achieve this.

I exported my current “Custom Design,” saved it as “Auftragsbestätigungen” and made the necessary adjustments. Then, I clicked on an existing quote, selected “More Actions” > “Run Template,” chose the modified design, and clicked “Run Template” (see screenshot). However, the process remains stuck with the status “Processing”.

I’m not entirely sure if I’m using this feature correctly or if it can even accomplish what I’m aiming for. My expectation was that the quote would generate a new PDF with the “Auftragsbestätigungen” design/template, which I could then download and send to the customer via email.

So, I have two main questions:

1.	Why does the “Run Template” process remain stuck on “Processing”?
2.	Does the “Run Template” function serve the purpose I’m aiming for?

Im using the latest self-hosted docker version v5.10.29. This is what i see in the logs from the application container (docker logs -f invoiceninja-app-1):
—snip—
10.0.10.101 - 25/Sep/2024:18:40:45 +0000 “POST /index.php” 409
2024-09-25 18:40:45 App\Services\Template\TemplateAction … RUNNING
2024-09-25 18:40:46 App\Services\Template\TemplateAction … 224.51ms FAIL
fd4d:6169:6c63:10::101 - 25/Sep/2024:18:40:50 +0000 “POST /index.php” 409
10.0.10.101 - 25/Sep/2024:18:40:55 +0000 “POST /index.php” 409
INFO No scheduled commands are ready to run.

fd4d:6169:6c63:10::101 - 25/Sep/2024:18:41:00 +0000 “POST /index.php” 409
10.0.10.101 - 25/Sep/2024:18:41:05 +0000 “POST /index.php” 409
10.0.10.101 - 25/Sep/2024:18:41:10 +0000 “POST /index.php” 409
fd4d:6169:6c63:10::101 - 25/Sep/2024:18:41:15 +0000 “POST /index.php” 409
fd4d:6169:6c63:10::101 - 25/Sep/2024:18:41:20 +0000 “GET /index.php” 200
—/snip—

Best regards,
Thomas

Hi,

  1. It could be a bug, are there any errors in the browser console and/or storage/logs? It may help to try with the desktop app: Mobile & Desktop Apps - Free Invoicing Software for Small Businesses | Invoice Ninja

  2. Could you update the payment email instead?

Hi!

  1. I’m experiencing the same behavior when trying it on the latest macOS desktop app. You can check the console output in the screenshot. I’ve attached the content of the POST request and the object shown in the screenshot as a text file. I don’t see any storage logs.

  2. I’m not entirely sure what you mean. My goal is to receive a customized PDF document (as defined in the custom design i select when running “Run Template”). Where exactly should I update the payment email?

thanks in advance and BR
Thomas


object.txt (3.6 KB)
POST.txt (3.3 KB)

If you’re seeing the error in both apps I suggest creating an issue on GitHub

ive opened a bug report: “Run Template” on Quotes stuck at “Processing” · Issue #10049 · invoiceninja/invoiceninja · GitHub

1 Like