We have created plug-in to write custom function in appian called as fn!mydataap

We have created plug-in to write custom function in appian called as fn!mydataappend and it accepts input param as Emplyee (CDT). After we deployed into appin we are able to see the custom function but when we call the function in appian we are getting below error. Could you please suggest what is the reason for that and solution.

Caused by: com.appiancorp.suiteapi.common.exceptions.AppianException: Unable to find a required instance of Employee. (APNX-1-4158-006)
          at com.appiancorp.process.expression.CustomFunction.evaluate(CustomFunction.java:597)
          at com.appiancorp.process.expression.CustomFunction.evalDynamic(CustomFunction.java:197)
          at com.appiancorp.process.expression.CustomFunction.eval0(CustomFunction.java:188)
          at com.appiancorp.core.expr.Evaluable.eval(Evaluable.java:213)
          at com.appiancorp.process.expression.ExpressionEvaluator.evaluate(ExpressionEvaluator.java:295)
          at com.appiancorp.core.expr.AppianScriptContextTop.evalExternalFunction(Appi...

OriginalPostID-186615

OriginalPostID-186615

 Discussion posts and replies are publicly visible