# DataReader: cannot handle optional currency symbol

**URL:** <https://forum.cloverdx.com/t/datareader-cannot-handle-optional-currency-symbol/439>\
**Category:** CloverDX Platform\
**Created:** [November 14, 2008, 12:00am UTC](https://forum.cloverdx.com/t/datareader-cannot-handle-optional-currency-symbol/439 "2008-11-14T00:00:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![achan](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@achan](https://forum.cloverdx.com/u/achan)\
**Post date:** [November 14, 2008, 12:00am UTC](https://forum.cloverdx.com/t/datareader-cannot-handle-optional-currency-symbol/439/1 "2008-11-14T00:00:00Z")

</div>

Hi,

This is my FMT:

\<?xml version="1.0" encoding="UTF-8"?\> 

my data looks like this:

amount code  
$1000 a  
$2000 b

if I read this input and directly pass it out to a DataWriter, I got:

amount code  
$1,000 a  
$2,000 b

However, if I have data that looks like:

amount code  
1000 a  
2000 b

I got this errors like this:

WARN [INPUT\_0] - amount (numeric) cannot be set to “1000” in field # 1  
of record # 1

looks like it cannot handle optional currency symbol, but it can handle optional commas…

any suggestions?

Thanks,  
al

---

<div class="post-metadata">

**Author:** ![avackova](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@avackova](https://forum.cloverdx.com/u/avackova)\
**Post date:** [November 18, 2008, 8:40am UTC](https://forum.cloverdx.com/t/datareader-cannot-handle-optional-currency-symbol/439/2 "2008-11-18T08:40:06Z")

</div>

Hello,  
we use java.text.NumberFormat for parsing/formatting data in numeric field, so the behavior of parsing clover data field is the same like NumberFormat.

---

<div class="post-metadata">

**Author:** ![achan](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@achan](https://forum.cloverdx.com/u/achan)\
**Post date:** [November 18, 2008, 11:11pm UTC](https://forum.cloverdx.com/t/datareader-cannot-handle-optional-currency-symbol/439/3 "2008-11-18T23:11:38Z")

</div>

Hi Agata,

Thanks for the clarification…

al
