# Kafka Dataset fails when running in Dataflow

**URL:** <https://forums.pega.com/t/kafka-dataset-fails-when-running-in-dataflow/7219>\
**Category:** User Experience\
**Tags:** decision-management, system-administration, user-experience, data-management\
**Created:** [June 3, 2024, 3:14pm UTC](https://forums.pega.com/t/kafka-dataset-fails-when-running-in-dataflow/7219 "2024-06-03T15:14:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![NCORR](https://avatars.discourse-cdn.com/v4/letter/n/b782af/32.png) [@NCORR](https://forums.pega.com/u/NCORR)\
**Post date:** [June 3, 2024, 3:14pm UTC](https://forums.pega.com/t/kafka-dataset-fails-when-running-in-dataflow/7219/1 "2024-06-03T15:14:29Z")

</div>

We are currently setting up a connection from Pega to Kafka (AWS MSK) using Kafka dataset triggered through a Dataflow. The Kafka dataset is configured to use a json datatransform which runs on its own without any issue.

When configured as source in a dataflow and running the same dataflow as a realtime process, the the messages fails at the dataset call with UnsupportedOperationException error.

Created DSS dataset/CLASS\_NAME/DATASET\_NAME/JSONDataTransform/deserialization/useDSMPage as a fix suggested from a previous/similar question : [https://support.pega.com/question/kafka-dataflow-fails-when-parse-json-data-trasform](https://support.pega.com/question/kafka-dataflow-fails-when-parse-json-data-trasform) but the issue still persists.

Is there anything else we could try to fix this?

---

<div class="post-metadata">

**Author:** ![ErvinL46](https://avatars.discourse-cdn.com/v4/letter/e/58956e/32.png) [@ErvinL46](https://forums.pega.com/u/ErvinL46)\
**Post date:** [June 4, 2024, 7:03am UTC](https://forums.pega.com/t/kafka-dataset-fails-when-running-in-dataflow/7219/2 "2024-06-04T07:03:42Z")

</div>

@NathanielC4390

could you share the stack trace of the exception?

---

<div class="post-metadata">

**Author:** ![NCORR](https://avatars.discourse-cdn.com/v4/letter/n/b782af/32.png) [@NCORR](https://forums.pega.com/u/NCORR)\
**Post date:** [June 4, 2024, 3:42pm UTC](https://forums.pega.com/t/kafka-dataset-fails-when-running-in-dataflow/7219/3 "2024-06-04T15:42:22Z")

</div>

@ErvinL46

My bad. It looks like I have setup the DSS incorrectly. Now it is working after the correction
