2
1
0

We are using maestro. When imported the form to TM we see 'Receipt Render Error' at 'DashBoard - Latest Transactions section'. Is there any solution for this?

in error log the solution is given to increase  timeout.. where exactly to increase the timeout?

SolutionIncrease process timeout configuration  

 

Error details

TypeReceipt Render
NamePhantom JSRender Receipt Service Error
MessagePhantom JSRender Receipt Service Error : completed=false,htmlFilePath=/apps/avoka/transact/manager/work/phantomjs/delivery/2638-151/form.html,programFolder=/apps/avoka/transact/manager/phantomjs,progr  
User MessageReceipt Render Error
SolutionIncrease process timeout configuration  
Context
completed=false
htmlFilePath=/apps/avoka/transact/manager/work/phantomjs/delivery/2638-151/form.html
programFolder=/apps/avoka/transact/manager/phantomjs
programPath=/apps/avoka/transact/manager/phantomjs/phantomjs
controlFilePath=/apps/avoka/transact/manager/phantomjs/rasterize.js
htmlPath=/apps/avoka/transact/manager/work/phantomjs/delivery/2638-151/form.html
pdfPath=/apps/avoka/transact/manager/work/phantomjs/delivery/2638-151/receipt.pdf
pageSizeFormat=A4
pageSizeMargin=0.5cm
pageZoomFactor=0.8
processTimeout=20000 ms
Submission.ID=2638
Form.Code=xxx
Form.Name=Customer Demographics 
Form.Version=16
Organization=NAM 
Fallback Timeout=40000 ms  
Error Stack Trace
ApplicationException: Phantom JSRender Receipt Service Error: Receipt Render Error
	at com.avoka.fc.core.service.phantomjs.PhantomJSRenderReceiptService.rasterize(PhantomJSRenderReceiptService.java:405)
	at com.avoka.fc.core.service.phantomjs.PhantomJSRenderReceiptService.getReceiptDocument(PhantomJSRenderReceiptService.java:302)
	at com.avoka.fc.core.service.AbstractRenderReceiptService.renderReceipt(AbstractRenderReceiptService.java:256)
	at com.avoka.fc.core.service.impl.SubmissionReceiptServiceImpl.createReceiptPdf(
    CommentAdd your comment...

    4 answers

    1.  
      2
      1
      0

      Hi,

      You can see the parameters for a Transact Manager service in its Parameters tab.  This screenshot is from the Dynamic PDF Receipt service, but there should be a similar one for the Phantom JS service.  The parameter name may be different.

        CommentAdd your comment...
      1.  
        2
        1
        0

        Hi Alex,

        It looks like your Phantom JS service is called 'Dynamic PDF Receipt', which is the default name when you add a new Render Receipt service.

        1. Alex Lam

          Unknown User (bfrost) Hi Bill, we already select the largest value in the list, but still got timeout error.


        2. Unknown User (bfrost)

          Hi Alex,

          What version of TM are you using?

          Does it have the 'Dynamic PDF Receipt 2' service template available? 

        3. Alex Lam

          Hi Bill, our TM version is : Transact Manager 5.1.2, Build Number F718301

          There is no Dynamic PDF Receipt 2 service template.  "Dynamic PDF Receipt 2" is for Meastro form PDF receipt generation?


        4. Lin VanOevelen

          I am having the same issue with a Maestro form (17.10) published to TM 5.1.10.

          Interesting observation: when I overwrote the Maestro version with a Composer form archive, the receipt render errors resolved and delivery completed for the previous submissions of the Maestro form.

          But as soon as I published the Maestro form again (either as a form archive or just by updating the FAR file), new submissions had the same error again.

        5. Lin VanOevelen

          Looks like our error was caused by a circular reference causing a time out.

        6. Alex Lam

          But we just can set max to 30s, we still got the timeout issue. It doesn't have any problem for Composer form.

        CommentAdd your comment...
      2.  
        1
        0
        -1

        Hello,

        I got the same issue despite having increased the "processTimeout" to the maximum value. (30 secs)



        The following screenshot shows the templates available on my on-premises installation


        The Maestro Form is from the 17.10.0 release


        The following is the error taken from the log. The process timeout parameter does not change despite having ahcnged the parameter, rebooting the txmanager service and so on

        5:34:11,465 ERROR [com.avoka.fc.core.service.ErrorLogService] (pool-6-thread-1) Name = Phantom JSRender Receipt Service Error
        15:34:11,465 ERROR [com.avoka.fc.core.service.ErrorLogService] (pool-6-thread-1) Context = completed=false,htmlFilePath=/data/avoka/transact/manager/work/phantomjs/delivery/5935-103/form.html,programFolder=/data/avoka/transact/manager/phantomjs,programPath=/data/avoka/transact/manager/phantomjs/phantomjs,controlFilePath=/data/avoka/transact/manager/phantomjs/rasterize.js,htmlPath=/data/avoka/transact/manager/work/phantomjs/delivery/5935-103/form.html,pdfPath=/data/avoka/transact/manager/work/phantomjs/delivery/5935-103/receipt.pdf,pageSizeFormat=A4,pageSizeMargin=0.5cm,pageZoomFactor=0.8,processTimeout=20000 ms,Submission.ID=5935,Form.Code=ANVMGU,Form.Name=FormTest,Form.Version=1.0.1,Organization=OrgTest,Fallback Timeout=40000 ms


        I tried to search on the server intself for xml configurations or phantomjs configuration files but I couldn't find anything.

        Any help would be much appreicated!!

        Thanks,

        Carles

        1. Unknown User (bfrost)

          Hi Carles,

          Try with the v2 receipt service:

           

        2. Carles Tierno

          Hi Bill,

          Many thanks for your answer and assitance.

          I don't have the v2 installed on my TM on-premises server. I tried to create one in "https://maestro.avoka.eu/manager", export it and import it back to my local server but this also prompted a bunch of errors in the log as it doesn't seem to be installed.

          Is there any other feature needed that I might not be aware of?

          Thanks again Bill.

          Carles

        3. Carles Tierno

          Unknown User (bfrost)Just to shed some light, I managed to make it work by replacing all percentage fields by decimal types. The form now renders altought the result is somewhat faulty (text overlap, faulty field arrangement).

          I'm trying ot put together my own receipt via a custom groovy render receipt form. It seems to work altough the receipt is not available through the portal, just in the TM.

          I noticed when using the receipt link URL for a particular submission (i.e https://<your_portal_url>/secure/servlet/FormReceipt.pdf?submitKey=<your_sbumission_key>&renderMode=file#zoom=100) the system prompts an authorization error.

          How can I then grant access to the receipt in the groovy code to the user who is processing the submission?

          Thanks and Kind Regards

        CommentAdd your comment...
      3.  
        1
        0
        -1

        Unknown User (bfrost)  Hi Bill, we got the same error, but we can't find Phantom JS service in TM.  What is the full service name?


          CommentAdd your comment...