Hi, I have a JSON dataset saved into a LONG TEXT t...
# advancedpdf
j
Hi, I have a JSON dataset saved into a LONG TEXT type custom transaction body field. I had some code in an advanced PDF that stopped working on printing a PDF in the UI a few days ago. No changes to the template in 2 years and even historical transactions that printed last week now not working. Any ideas?
Copy code
<#if (data?eval)?? ><!-- Failed to "?eval" string with this error: --><!--GGG-->
    <#assign m = data?eval />

    <#list m as packId>

        <#if !uniqueCartons?seq_contains(packId.result.values.custrecord_sps_package_ucc)>
            <#assign uniqueCartons = uniqueCartons + [packId.result.values.custrecord_sps_package_ucc]/>
            <#assign uniqueCartonsDetails = uniqueCartonsDetails + [{"key": packId.result.values.custrecord_sps_package_ucc, "cartonID": packId.result.values.custrecord_sps_package_ucc, "name": packId.result.values.name, "weight": packId.result.values.custrecord_sps_pk_weight?number, "cartonQty": packId.result.values.custrecord_sps_package_qty?number }]/>
        </#if>

    </#list>

    <#assign cartonContent = [] />
    <#assign packageInside = [] />
    <#assign packageInsideStr = '' />

    <#list uniqueCartonsDetails as cartons>

        <#list m as packs>

            <#if cartons.cartonID == packs.result.values.custrecord_sps_package_ucc >