Export SQL to Excel Smart Service for multiple sheets

Hi,

we need to extract data from our db from 2 different tables and inserting them in 2 different sheets of an excel template.

I have created the excel template with the 2 sheets, and I have created a simple process model with 2 Export SQL to Excel Smart Service:

1. The first one extract the data from the first table, fill the first sheets of the excel template, save the document on the Temporary Documents folder and within the Process Model on the pv!output_document

2.The second one should use this output_document as template, extract the data from the DB and fill the Excel. To do so I have set as:

Document_to_overwrite: pv!output_document

Excel_base_template: pv!output_document because it is necessary to use the generated excel of the first step as new template

but something goes wrong and the Alert is this:

There is a problem with task “Copy of Export SQL to Excel” in the process ...

OriginalPostID-257270

  Discussion posts and replies are publicly visible

Parents
  • Are you able to find the document in <APPIAN_HOME>/appian/_admin/accdocs2/8/10023067.xlsx ? Is that file actually the template file? If it is the template, you need to generate a new file based on the template and not overwrite the existing file. There is also a readme file attached to the Excel Tools shared component page (forum.appian.com/.../summary ):
    "Document_to_overwrite If a document generated should overwrite another existing document, use this.
    Useful if you are invoking this to write to different sheets of an excel document.
    Excel_base_template The excel template on which the output will be written to.. "
Reply
  • Are you able to find the document in <APPIAN_HOME>/appian/_admin/accdocs2/8/10023067.xlsx ? Is that file actually the template file? If it is the template, you need to generate a new file based on the template and not overwrite the existing file. There is also a readme file attached to the Excel Tools shared component page (forum.appian.com/.../summary ):
    "Document_to_overwrite If a document generated should overwrite another existing document, use this.
    Useful if you are invoking this to write to different sheets of an excel document.
    Excel_base_template The excel template on which the output will be written to.. "
Children
No Data