Kafka Integration in pega 7.3.1
I am doing a POC to integrate with Kafka.Trying to use DataSet-Execute in activity and save to Kafka Topic ,sometimes we are getting exception java.lang.RuntimeException: com.pega.dsm.dnode.api.BatchRecordException and sometimes its executed without any exception .
Could anyone help on this how to push data to Kafka using Dataset-Execute.
Attached Activity Code .