Search code examples
pega

Why does the error occurs then I try to utilize pzRDExportWrapper in Pega 7.1.8?


I have a task to export a repeat grid's content to Excel. I have read an article, but I still can't realize how to properly use it. I tried to repeat article's steps to provide pzRDExportWrapper, but after I click "Save" button I get the error:

Method: Rule-Obj-Activity instance not found: Sb-FW-CTrackFW-Work.pzRDExportWrapper. Details: Invalid value for Activity name passed to ActivityAssembler.

Could anybody give me any suggestions? Thank you.


Solution

  • You invoke activity from another activity which applies to class Sb-FW-CTrackFW-Work. Rule Resolution use primary context Sb-FW-CTrackFW-Work class and try invoke activity pzRDExportWrapper from it and you get error (because rule resolution can't found invoked activity in this class).

    Activity pzRDExportWrapper applies to Rule-Obj-Report-Definition class. Try invoke from it.

    Try activity step as below:

        Call Rule-Obj-Report-Definition.pzRDExportWrapper
    

    Or use step page for this step which defined as applies to Rule-Obj-Report-Definition class(you can declare it on Pages&Classes tab)