Leave feedback
  • Question

    Error preview template engine in composition center

Enter a new topic
  • loke kk loke kk
    1 likes 368 views

    Hi Expertise,

     

    I'm trying to exposing template engine into composition center. I get error when try to preview it on the composition center. Below are the error message from Control Center.

     

    0309 163943 (5026) 3 Sender of job set to:
    0309 163943 (1730) 3 preproc message:input < servicerequest=http://schemas.streamserve.com/uid/service/storedmessage/1.0/TE/preview/1
    0309 163943 (1731) 2 Doing message:input < servicerequest=http://schemas.streamserve.com/uid/service/storedmessage/1.0/TE/preview/1
    0309 163943 (1739) 2 Process:Template Engine (v. 10) > http://schemas.streamserve.com/uid/connector/correspondancepreviewhtml/1.0(null)
    0309 163943 (5220) 4 Entering external service: Template Engine
    0309 163943 (0145) 4 Service controller: Received invoke request targeting service Template Engine
    0309 163943 (0050) 1 TemplateEngine: Template: C:\ManagementGateway\5.6.2\root\applications\TemplateEngineEmail\dev\..\data\template_engine_template\HTMLTemplate.html (line 14): Failed to invoke method (maybe non-existing): toBase64.
    0309 163943 (0368) 4 Service controller: Failed to invoke service: Template Engine.
    0309 163943 (5221) 4 Leaving external service: Template Engine
    0309 163943 (5105) 3 Receiver of created document set (Document, reciever):,
    0309 163943 (1723) 2 JobEnd:servicerequest=http://schemas.streamserve.com/uid/service/storedmessage/1.0/TE/createdocument/1

    0309 163943 (0000) 4 Processing queue item: 7B7AC455-1FF6-4BE7-88EA-B3D8872DE024, connector: 75817C3E-20C6-42db-B84A-FEB6D43753DE
    0309 163943 (0201) 1 Failed to process queue item 8FC4D803-74A5-40CC-9CFB-B4983564ACB1
    0309 163943 (0000) 4 Finished processing queue item: 7B7AC455-1FF6-4BE7-88EA-B3D8872DE024, connector: 75817C3E-20C6-42db-B84A-FEB6D43753DE.

     

    Attached the screen capture of the template html and also the composition center.

     

    Is it something wrong with my TEL script?

     

    Thank you.

     

    Best Regards,

    kk.Loke

     

    Thursday 09 March, 2017
  • Best Answer
    loke kk loke kk
    0 likes

    Hi Shaik,

     

    I just solve this error. This error accur was because I did not specified the Image name that i want to access from the script.

     

    Below are the correct script:-

    <p><img src="data:image/png;base64,$docdef.Image1.CIMB_actnow70.toBase64()"> </p>

    I though it will same as the section in storyteller, it will preview what i drag n drop into the section, but it seem the template engine cannot same as storyteller that can direct access to the image or text.

    This made life not easy, I need to know what the resource name that drop in into the section and then use the name to add inside the html file... 

     

    Thank you Shaik for your help.

     

    Best regards,

    kk.loke

    Friday 10 March, 2017
  • loke kk loke kk
    0 likes

    The screen capture as attached.

    Thursday 09 March, 2017
  • Shaik Mohammad Mukthiar Ahmed Shaik Mohammad Mukthiar Ahmed
    0 likes

    Hi loke kk,

    Can share me the tomcat streamstudio logs file..

    Thursday 09 March, 2017
  • loke kk loke kk
    0 likes

    Hi Shaik,

    streamstudio log file as per attached.

     

    Thank you.

     

    Best Regards,

    kk.loke

    Thursday 09 March, 2017

    Attached files

  • loke kk loke kk
    0 likes

    Hi Shaik,

     

    I just solve this error. This error accur was because I did not specified the Image name that i want to access from the script.

     

    Below are the correct script:-

    <p><img src="data:image/png;base64,$docdef.Image1.CIMB_actnow70.toBase64()"> </p>

    I though it will same as the section in storyteller, it will preview what i drag n drop into the section, but it seem the template engine cannot same as storyteller that can direct access to the image or text.

    This made life not easy, I need to know what the resource name that drop in into the section and then use the name to add inside the html file... 

     

    Thank you Shaik for your help.

     

    Best regards,

    kk.loke

    Friday 10 March, 2017