# "message": "You need to specify either \`text\` or \`text\_target\`."

**URL:** <https://discuss.huggingface.co/t/message-you-need-to-specify-either-text-or-text-target/64693>\
**Category:** Beginners\
**Created:** [December 5, 2023, 5:39pm UTC](https://discuss.huggingface.co/t/message-you-need-to-specify-either-text-or-text-target/64693 "2023-12-05T17:39:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![noone0802](https://avatars.discourse-cdn.com/v4/letter/n/b5a626/32.png) [@noone0802](https://discuss.huggingface.co/u/noone0802)\
**Post date:** [December 5, 2023, 5:39pm UTC](https://discuss.huggingface.co/t/message-you-need-to-specify-either-text-or-text-target/64693/1 "2023-12-05T17:39:52Z")

</div>

When I try to perform Hugging Face Batch Transform in AWS sagemaker, I am getting this error. Sometimes it works fine if we give batch size as 250 and this error everytime shows up when we give Batch size as 500. I also mentioned truncate=true in my input data. But, still no luck  
Thank you in advance! Any help would be great…
