How to use activity of a different class in a data transform

So, I’m using @pxExecuteAnActivity to call an activity in my data transform, but I noticed an error while tracing it.

The error is as below:

Failed to find a ‘RULE-OBJ-ACTIVITY’ with the name ‘TESTREPORT’ that applies to ‘MainApp-FW-Test-Work’. There were 2 rules with this name in the rulebase, but none matched this request. The 2 rules named ‘TESTREPORT’ defined in the rulebase are:
2 unrelated to applies-to class ‘MainApp-FW-Test-Work’, for example: ‘Data-Admin-Operator-ID’.

How do i resolve this? I’m in 8.8 version

@Ebhavya

In the primaryPage parameter pass a page name whose pxObjClass is equal to the applies to class of your activity that you wish to call.

Remember to create the page prior to the execution.