Issues while generating PDF

257 views
Skip to first unread message

vinod...@gmail.com

unread,
May 8, 2016, 7:40:41 AM5/8/16
to Fujitsu RunMyProcess Developer Community, Vinod Varma, vk
Hi

I am following instructions in https://docs.runmyprocess.com/Developer_Guide/Process/Design/PDF to generate a PDF.

I am facing a couple of issues.
1. I do not find any option to upload files under Desktop > Files. I have uploaded file to project and using URL of that file in place of Uploaded XSL files (in section "Configuration of the process to use your template") as file uploaded is not listed
2. It does not seem to generate PDF. I have created a web interface which will start process, created variables and set values as illustrated. I tried using my own XSL file and the one given at the end of article. But it does not seem to generate PDF.

Am I missing something? Request help


Thanks in advance


Regards


Vinod

Bidisha Das

unread,
May 8, 2016, 10:32:19 AM5/8/16
to suppor...@runmyprocess.com
Hi,
Kindly follow the steps exactly as mentioned here: https://docs.runmyprocess.com/Developer_Guide/Process/Design/PDF

Please check with the xsl file configuration properly.First,try with the xsl file provided in the link above and check if you can create pdf file through process. After that,you can try with your own xsl file and sending values from Web Interface.

Here are some links for your reference:






Kindly go through all of them and let me know if it helped in resolving your issue.


Thanks & Regards
Bidisha

vinod...@gmail.com

unread,
May 10, 2016, 5:19:43 AM5/10/16
to Fujitsu RunMyProcess Developer Community

Hi Bidisha

Thanks for the support.

I tried to follow the steps as mentioned in document and the links as illustrated in the attached screenshots.

I have tried both generated XSL file as well the one downloaded from the link. I am attaching them also

However, I am finding error as below:
2016-05-10T08:46:28+0000 - Task "generate PDF" (id: 1[0] - status: ACTIVE): Bad Request (400) - java.lang.ArrayIndexOutOfBoundsException: 14 (1 attempt)

Request help

Regards


Vinod

04_pdf_gen_03.png
Doc2PDFSampleXML.xml
05_error_screen-02.png
05_error_screen-01.png
04_pdf_gen_02.png
04_pdf_gen_01.png
03_var_2.png
03_var_1.png
02_file_url.png
01_file_uploaded.png
xsl_fo_example_1 (1).xsl
xsl_fo_example_1.xsl

Pankaj Kumar

unread,
May 10, 2016, 5:55:57 AM5/10/16
to Fujitsu RunMyProcess Developer Community
Hi,

As per screen print, you are using two variable "client name" and "client location" which are defined in "my_var_main" and passed to xsl file. You are also using an array named "users_array" in xsl file which I am not able to see in "my_var_main". Please try to remove the array mapping from xsl file.

Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support


--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/d79b0d4e-b047-4b6b-be63-e7319f9160f1%40runmyprocess.com.

vinod...@gmail.com

unread,
May 10, 2016, 6:17:41 AM5/10/16
to Fujitsu RunMyProcess Developer Community
Hi Pankaj

Thanks for the quick reply.

I have modified the file (new content is attached) removing references to user_array . But issue persists

Request help

Regards


Vinod

revised.xsl

Pankaj Kumar

unread,
May 10, 2016, 6:40:10 AM5/10/16
to Fujitsu RunMyProcess Developer Community
Hi,

As you are not using any array to populate the table, please remove the below nodes from your xsl file.

 <fo:block space-after="10pt" space-after.conditionality="retain" line-height="1.3190500000000002" font-family="Calibri" font-size="11pt" language="FR" xmlns:st1="urn:schemas-microsoft-com:office:smarttags">
              <fo:inline>
                <fo:leader leader-length="0pt" />Users list</fo:inline>
            </fo:block>
            <fo:table font-family="Calibri" language="FR" start-indent="0pt" border-top-style="solid" border-top-color="black" border-top-width="0.5pt" border-left-style="solid" border-left-color="black" border-left-width="0.5pt" border-bottom-style="solid" border-bottom-color="black" border-bottom-width="0.5pt" border-right-style="solid" border-right-color="black" border-right-width="0.5pt" xmlns:st1="urn:schemas-microsoft-com:office:smarttags">
              <fo:table-column column-number="1" column-width="230.3pt" />
              <fo:table-column column-number="2" column-width="230.3pt" />
              <fo:table-body start-indent="0pt" end-indent="0pt">
                <fo:table-row>
                  <fo:table-cell padding-top="0pt" padding-left="5.4pt" padding-bottom="0pt" padding-right="5.4pt" border-left-style="solid" border-right-style="solid" border-left-color="black" border-right-color="black" border-left-width="0.25pt" border-right-width="0.25pt" border-top-style="solid" border-bottom-style="solid" border-top-color="black" border-bottom-color="black" border-top-width="0.25pt" border-bottom-width="0.5pt" background-color="white">
                    <fo:block space-after="0pt" space-after.conditionality="retain" line-height="1.147" font-family="Calibri" font-size="11pt" language="FR">
                      <fo:inline>
                        <fo:leader leader-length="0pt" />Name</fo:inline>
                    </fo:block>
                  </fo:table-cell>
                  <fo:table-cell padding-top="0pt" padding-left="5.4pt" padding-bottom="0pt" padding-right="5.4pt" border-left-style="solid" border-right-style="solid" border-left-color="black" border-right-color="black" border-left-width="0.25pt" border-right-width="0.25pt" border-top-style="solid" border-bottom-style="solid" border-top-color="black" border-bottom-color="black" border-top-width="0.25pt" border-bottom-width="0.5pt" background-color="white">
                    <fo:block space-after="0pt" space-after.conditionality="retain" line-height="1.147" font-family="Calibri" font-size="11pt" language="FR">
                      <fo:inline>
                        <fo:leader leader-length="0pt" />Age</fo:inline>
                    </fo:block>
                  </fo:table-cell>
                </fo:table-row>
              </fo:table-body>
            </fo:table>



Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support

vinod...@gmail.com

unread,
May 10, 2016, 7:08:20 AM5/10/16
to Fujitsu RunMyProcess Developer Community
Hi Pankaj

Thanks for the quick response

I have revised specified lines and issue persists. Please find attached the revised.xsl file

Please let me know if I am missing something. Request help

Regards


Vinod
revised_01.xsl

Pankaj Kumar

unread,
May 10, 2016, 7:10:53 AM5/10/16
to Fujitsu RunMyProcess Developer Community
Hi,

Please share the error details you are getting now.

Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support

vinod...@gmail.com

unread,
May 10, 2016, 7:30:53 AM5/10/16
to Fujitsu RunMyProcess Developer Community
Hi


I am getting the same error. Please find the screenshot attached

Regards


Vinod
PDF_gen_error.png

Sweta Suman

unread,
May 11, 2016, 9:18:36 AM5/11/16
to suppor...@runmyprocess.com
Hi Vinod,

Closing the ticket as issue was resolved in screen sharing session.


Thanks,
Sweta 
Fujitsu RunMyProcess





--

Reply all
Reply to author
Forward
0 new messages