# Data Conversion error

**URL:** https://community.temporal.io/t/data-conversion-error/7556
**Category:** Community Support
**Created:** [March 13, 2023, 11:18am UTC](https://community.temporal.io/t/data-conversion-error/7556 "2023-03-13T11:18:04Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Manish\_Baraskar](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/manish_baraskar/32/3004_2.png) [@Manish\_Baraskar](https://community.temporal.io/u/Manish_Baraskar)
#### Post date: [March 13, 2023, 11:18am UTC](https://community.temporal.io/t/data-conversion-error/7556/1 "2023-03-13T11:18:04Z")

</div>

Hi Maxim/Thiomir

I have one requirement of reading file from SFTP,  
so for that I am using JSch library. I have to read the file on a particular timing so I have created a CRON job.

I have created one activity that will return me ChannelSftp instance after establishing connection to SFTP host. Basically this is the activity which will do connection stuff for me.

But I am getting  
io.temporal.common.convertor.DataConvertorException.

public ChannelSftp getSftpChannel()

This is the activity that I have defined. Anything wrong that I am doing.

---

<div class="post-metadata">

### Author: ![antonio.perez](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/antonio.perez/32/2417_2.png) [@antonio.perez](https://community.temporal.io/u/antonio.perez)
#### Post date: [March 13, 2023, 2:00pm UTC](https://community.temporal.io/t/data-conversion-error/7556/2 "2023-03-13T14:00:12Z")

</div>

Hello @Manish_Baraskar

Do you mean `io.temporal.common.converter.DataConverterException`?

ChannelSftp might not be serializable by the data converter. Can you share the full error?

Another approach could be to instantiate the object ChannelSftp in your worker and pass it to the activity constructor
