I am using getdatasubsetdownloadlinkfromrule and following the steps in document

I am using getdatasubsetdownloadlinkfromrule and following the steps in documentation.
forum.appian.com/.../Download_DataSubset_Plugin.html

When I complete selecting the filter, URL is getting generated but when I click on the link, 500 - Internal Server Error is showing up. We tried several solution provided in other post but nothing worked. We were forced to move the report to a process model using a different plugin. Attaching the code snippet here. Appreciate any help.

Report_HomeScreen.txt

OriginalPostID-164135

OriginalPostID-164135

  Discussion posts and replies are publicly visible

Parents
  • Hi, I'm currently facing the same issue. Everything goes well until using getdatasubsetdownloadlinkfromrule. My rule, very similar to your Report_getExportableDataSubset, returns the correct exportable data subset when isolated. But when when calling it like this:

    local!exportUri: getdatasubsetdownloadlinkfromrule(
    rule: rule!CTQG_ToExportableDataSubset,
    input: a!toJson(
    {
    datasubset: local!exportDatasubset,
    fieldNames: cons!FIELDNAMES_FOREXPORT,
    fieldLabels: cons!FIELDLABELS_FOREXPORT,
    filename: rule!FILENAME_FOREXPORT()
    }
    )
    )

    It always returns null and leads to the Error 500 issue.

    I would appreciate some insight if you have any.

    Thanks
Reply
  • Hi, I'm currently facing the same issue. Everything goes well until using getdatasubsetdownloadlinkfromrule. My rule, very similar to your Report_getExportableDataSubset, returns the correct exportable data subset when isolated. But when when calling it like this:

    local!exportUri: getdatasubsetdownloadlinkfromrule(
    rule: rule!CTQG_ToExportableDataSubset,
    input: a!toJson(
    {
    datasubset: local!exportDatasubset,
    fieldNames: cons!FIELDNAMES_FOREXPORT,
    fieldLabels: cons!FIELDLABELS_FOREXPORT,
    filename: rule!FILENAME_FOREXPORT()
    }
    )
    )

    It always returns null and leads to the Error 500 issue.

    I would appreciate some insight if you have any.

    Thanks
Children
No Data