This topic contains 1 reply, has 2 voices, and was last updated by Adolfo Garza 6 years ago.
-
AuthorPosts
-
September 21, 2018 at 1:46 am #26061
I face an issue in Editing and Saving an Advanced PDF Template in my Sandbox, Iam not changing anything on the Template, its an working and Existing template, but edit and save is causing me an Issue.
Error: “<span style=”background-color: #e0e6ef; font-family: ‘Open Sans’, Helvetica, sans-serif; font-size: 13px;”>For “!” right-hand operand: Expected a boolean, but this has evaluated to a hash+string (wrapper: com.netledger.templates.model.StringModel):</span>
<span style=”font-family: ‘Open Sans’, Helvetica, sans-serif; font-size: 13px; background-color: #e0e6ef;”>==> item.custcolprintonpdf [in template “template” at line 177, column 13]</span><br style=”box-sizing: border-box; font-family: ‘Open Sans’, Helvetica, sans-serif; font-size: 13px;” /><br style=”box-sizing: border-box; font-family: ‘Open Sans’, Helvetica, sans-serif; font-size: 13px;” /><span style=”font-family: ‘Open Sans’, Helvetica, sans-serif; font-size: 13px; background-color: #e0e6ef;”>—-</span><br style=”box-sizing: border-box; font-family: ‘Open Sans’, Helvetica, sans-serif; font-size: 13px;” /><span style=”font-family: ‘Open Sans’, Helvetica, sans-serif; font-size: 13px; background-color: #e0e6ef;”>FTL stack trace (“~” means nesting-related):</span><br style=”box-sizing: border-box; font-family: ‘Open Sans’, Helvetica, sans-serif; font-size: 13px;” /><span style=”font-family: ‘Open Sans’, Helvetica, sans-serif; font-size: 13px; background-color: #e0e6ef;”>- Failed at: #if !item.custcolprintonpdf [in template “template” at line 177, column 7]</span><br style=”box-sizing: border-box; font-family: ‘Open Sans’, Helvetica, sans-serif; font-size: 13px;” /><span style=”font-family: ‘Open Sans’, Helvetica, sans-serif; font-size: 13px; background-color: #e0e6ef;”>—-“</span>
Here custcolprintonpdf is an Checkbox type Transaction line field. Am i missing anything?
-
November 15, 2018 at 11:56 pm #26072
Advanced PDF is pretty buggy. I would recommend saving a backup of the template and then switching to code mode and making your edits there. It helps to remove styles and other code that the editor adds, you can use html-cleaner .com for this. Once you have a simplified code you can work on adding back the style.
-
AuthorPosts
You must be logged in to reply to this topic.