Can't generate a pdf report using a edited/formatted template

Hi Guys, I'm having a problem when generating a pdf report.

When I use the google docs template made by appsheet, it works just fine but when I edited/formatted it, it won't generate a pdf report.

 

Any tips?

Solved Solved
0 15 267
1 ACCEPTED SOLUTION

Thank you all. This problem is now solved. What I did is I filled up the empty cells (table) and remove <<>> text.. 

View solution in original post

15 REPLIES 15

Are you sure, here you have proper file ID? Double check it, maybe that's the problem.
Zrzut ekranu 2022-04-27 o 15.08.53.png

the doc ID is correct. just a question, can I add 2 tables/pictures, change font size and format, change design in the template?

 

here is a picture of my edited template: 

Cyrus_0-1651068180308.png

 

Can you post the whole thing?

Also, open this app and check if there is any errors on the "Run" section:

https://www.appsheet.com/start/2846dc1c-3bc6-4d82-9ede-dba57ff4096c

Also, I'm not completely sure but maybe you can't have blank values inside <<>>

Can you share a link to/screenshots/error messages regarding that template? we need more information to be able to troubleshoot your issue.

What  appears in Audit History after you attempt to use your template? 
If there are problems in your template the errors are displayed in Audit History.
See https://help.appsheet.com/en/articles/961739-troubleshooting-workflow-emails

 

Steve
Platinum 4
Platinum 4

Also use Save and Verify Data in the app editor to see and template errors.

Steve and I are suggesting this because the most common template problem is that it contains invalid field references or invalid expressions.

You can see those by specifying "Save and Verify Data" rather than doing a simple "Save" after you make any template changes. A simple "Save" does not verify your template changes, only "Save and Verify Data" does that.

This is a performance optimization because "Save and Verify Data" takes significantly more time to verify and save your template. We avoid this verification when you do a simple "Save" to make the save quicker.

When your template is used to generate a PDF, we perform the verifications and we save the errors, if any, to Audit History.

Sir Phil/Sir Steve, thank you for the advise and found an error on my app. Mind if I ask what is this error? I have attached the snip of the error (left side) and my doc template (right side).

Cyrus_0-1651110263113.png

 

 

@Cyrus please attach the whole view of the error and template. We will probably all have problems to solve it without seeing it all in one piece.

New process 2' task 'New Task' Body template. Template variable '<html> <head> <meta content="text/html; charset=UTF-8" http-equiv="content-type" /> <style type="text/css">ol.lst-kix_rz0g7fe24up-2.start{counter-reset:lst-ctn-kix_rz0g7fe24up-2 0}.lst-kix_rz0g7fe24up-6>li{counter-increment:lst-ctn-kix_rz0g7fe24up-6}ol.lst-kix_rz0g7fe24up-7.start{counter-reset:lst-ctn-kix_rz0g7fe24up-7 0}.lst-kix_rz0g7fe24up-3>li{counter-increment:lst-ctn-kix_rz0g7fe24up-3}.lst-kix_rz0g7fe24up-0>li{counter-increment:lst-ctn-kix_rz0g7fe24up-0}ol.lst-kix_rz0g7fe24up-5.start{counter-reset:lst-ctn-kix_rz0g7fe24up-5 0}.lst-kix_rz0g7fe24up-1>li:before{content:"" counter(lst-ctn-kix_rz0g7fe24up-1,lower-latin) ". "}.lst-kix_rz0g7fe24up-0>li:before{content:"" counter(lst-ctn-kix_rz0g7fe24up-0,upper-latin) ". "}ol.lst-kix_rz0g7fe24up-0.start{counter-reset:lst-ctn-kix_rz0g7fe24up-0 0}ol.lst-kix_rz0g7fe24up-6{list-style-type:none}ol.lst-kix_rz0g7fe24up-5{list-style-type:none}ol.lst-kix_rz0g7fe24up-4{list-style-type:none}ol.lst-kix_rz0g7fe24up-3{list-style-type:none}ol.lst-kix_rz0g7fe24up-3.start{counter-reset:lst-ctn-kix_rz0g7fe24up-3 0}ol.lst-kix_rz0g7fe24up-2{list-style-type:none}ol.lst-kix_rz0g7fe24up-1{list-style-type:none}ol.lst-kix_rz0g7fe24up-0{list-style-type:none}.lst-kix_rz0g7fe24up-2>li{counter-increment:lst-ctn-kix_rz0g7fe24up-2}ol.lst-kix_rz0g7fe24up-8.start{counter-reset:lst-ctn-kix_rz0g7fe24up-8 0}.lst-kix_rz0g7fe24up-5>li{counter-increment:lst-ctn-kix_rz0g7fe24up-5}.lst-kix_rz0g7fe24up-2>li:before{content:"" counter(lst-ctn-kix_rz0g7fe24up-2,lower-roman) ". "}.lst-kix_rz0g7fe24up-3>li:before{content:"" counter(lst-ctn-kix_rz0g7fe24up-3,decimal) ". "}ol.lst-kix_rz0g7fe24up-8{list-style-type:none}ol.lst-kix_rz0g7fe24up-7{list-style-type:none}.lst-kix_rz0g7fe24up-8>li{counter-increment:lst-ctn-kix_rz0g7fe24up-8}.lst-kix_rz0g7fe24up-1>li{counter-increment:lst-ctn-kix_rz0g7fe24up-1}.lst-kix_rz0g7fe24up-4>li:before{content:"" counter(lst-ctn-kix_rz0g7fe24up-4,lower-latin) ". "}.lst-kix_rz0g7fe24up-7>li{counter-increment:lst-ctn-kix_rz0g7fe24up-7}ol.lst-kix_rz0g7fe24up-6.start{counter-reset:lst-ctn-kix_rz0g7fe24up-6 0}.lst-kix_rz0g7fe24up-5>li:before{content:"" counter(lst-ctn-kix_rz0g7fe24up-5,lower-roman) ". "}.lst-kix_rz0g7fe24up-8>li:before{content:"" counter(lst-ctn-kix_rz0g7fe24up-8,lower-roman) ". "}ol.lst-kix_rz0g7fe24up-1.start{counter-reset:lst-ctn-kix_rz0g7fe24up-1 0}ol.lst-kix_rz0g7fe24up-4.start{counter-reset:lst-ctn-kix_rz0g7fe24up-4 0}.lst-kix_rz0g7fe24up-6>li:before{content:"" counter(lst-ctn-kix_rz0g7fe24up-6,decimal) ". "}.lst-kix_rz0g7fe24up-4>li{counter-increment:lst-ctn-kix_rz0g7fe24up-4}.lst-kix_rz0g7fe24up-7>li:before{content:"" counter(lst-ctn-kix_rz0g7fe24up-7,lower-latin) ". "}ol{margin:0;padding:0}table td,table th{padding:0}.c18{border-right-style:solid;padding:5pt 5pt 5pt 5pt;border-bottom-color:#000000;border-top-width:1pt;border-right-width:1pt;border-left-color:#000000;vertical-align:middle;border-right-color:#000000;border-left-width:1pt;border-top-style:solid;border-left-style:solid;border-bottom-width:1pt;width:118.5pt;border-top-color:#000000;border-bottom-style:solid}.c2{border-right-style:solid;padding:5pt 5pt 5pt 5pt;border-bottom-color:#000000;border-top-width:1pt;border-right-width:1pt;border-left-color:#000000;vertical-align:top;border-right-color:#000000;border-left-width:1pt;border-top-style:solid;border-left-style:solid;border-bottom-width:1pt;width:156pt;border-top-color:#000000;border-bottom-style:solid}.c20{border-right-style:solid;padding:5pt 5pt 5pt 5pt;border-bottom-color:#000000;border-top-width:1pt;border-right-width:1pt;border-left-color:#000000;vertical-align:top;border-right-color:#000000;border-left-width:1pt;border-top-style:solid;border-left-style:solid;border-bottom-width:1pt;width:171pt;border-top-color:#000000;border-bottom-style:solid}.c9{border-right-style:solid;padding:5pt 5pt 5pt 5pt;border-bottom-color:#000000;border-top-width:1pt;border-right-width:1pt;border-left-color:#000000;vertical-align:middle;border-right-color:#000000;border-left-width:1pt;border-top-style:solid;border-left-style:solid;border-bottom-width:1pt;width:214.5pt;border-top-color:#000000;border-bottom-style:solid}.c16{border-right-style:solid;padding:5pt 5pt 5pt 5pt;border-bottom-color:#000000;border-top-width:1pt;border-right-width:1pt;border-left-color:#000000;vertical-align:middle;border-right-color:#000000;border-left-width:1pt;border-top-style:solid;border-left-style:solid;border-bottom-width:1pt;width:171pt;border-top-color:#000000;border-bottom-style:solid}.c0{margin-left:36pt;padding-top:0pt;padding-bottom:0pt;line-height:1.15;orphans:2;widows:2;text-align:left;height:11pt}.c6{padding-top:0pt;padding-bottom:0pt;line-height:1.15;orphans:2;widows:2;text-align:left;height:11pt}.c1{color:#000000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:11pt;font-family:"Arial";font-style:normal}.c22{color:#000000;font-weight:700;text-decoration:none;vertical-align:...

Cyrus_0-1651129980779.pngCyrus_1-1651130012994.png

 

Just to make sure, is this template in the body of your email or you attach it as attachment and there is another template in your body?

Task: Creating a new file - pdf

Cyrus_1-1651131748457.png

 

That's a weird bug that may not be related to your template, sounds like a problem in the backend.

Try making another template (not via AppSheet's "create" button) with the same data

Thank you all. This problem is now solved. What I did is I filled up the empty cells (table) and remove <<>> text.. 

Top Labels in this Space