It is possible to temporarily rename the .MTX file as .MTT, and edit the properties directly:
Format = ####.##
Places Decimal Min = 2
Places Decimal Max = 2
Whole# Min = 1
...and then rename back to .MTX, before rebuilding the map. The data is then sent as 0.00:
<217460-219696-05/20/21 14:53:05>: | PUT data is :
{
"fish" : "Trout",
"weight" : 0.00,
"uom" : "Pounds",
"caught" : "2021-05-20T14:53:02.717Z"
}
<217460-219696-05/20/21 14:53:05>: [put] (rc = 0) OK
...and the data shows as double in Compass.
Thank you.
------------------------------
Paul Brett
IBM Sterling Transformation Extender (ITX) Client Support
------------------------------
Original Message:
Sent: Thu May 20, 2021 09:01 AM
From: Narendra Chimakurthi
Subject: ITX MongoDB Connector - Issue with Defaulting a Decimal Value
Hi Paul,
Thank you for the sample , YesJSON file (being used as a schema/Typetree) include Decimal values When i pass a Number , it is working . But Application requirement is default Amount fields as 0.0 load it as Decimal into Mongo, but when i pass 0.0 Map is converting to 0 making it as Int32
My schema Json has values as below

------------------------------
Narendra Chimakurthi
Original Message:
Sent: Thu May 20, 2021 05:29 AM
From: Paul Brett
Subject: ITX MongoDB Connector - Issue with Defaulting a Decimal Value
Works for me. Does you JSON file (being used as a schema/Typetree) include a decimal value? I think this is key.
Thank you.
------------------------------
Paul Brett
IBM Sterling Transformation Extender (ITX) Client Support
Original Message:
Sent: Wed May 19, 2021 02:19 PM
From: Narendra Chimakurthi
Subject: ITX MongoDB Connector - Issue with Defaulting a Decimal Value
Hi ,
I am facing a issue while loading decimal data to Mongo DB.
I am trying to default some values in my output card while loading to Mongo DB ( Value to be loaded as Decimal),


Data is loading into Mongo through ITX Map as INT32

Expected to load as Double as Below ( which is manually loaded )

------------------------------
Narendra Chimakurthi
------------------------------
#DataExchange
#IBMSterlingTransformationExtender