<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Decimal (18,9) value in SQL from Appian</title><link>https://community.appian.com/discussions/f/data/22959/decimal-18-9-value-in-sql-from-appian</link><description>Hello, 
 Client wants to have Decimal(18,9) in SQL db as this DB is being used by others as well. But when we try to insert it using Appian either it converts to exponential or gives error as CDT field we have created decimal type. 
 
 If I am doing todecimal</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Decimal (18,9) value in SQL from Appian</title><link>https://community.appian.com/thread/89045?ContentTypeID=1</link><pubDate>Tue, 14 Dec 2021 10:34:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:708a28a2-831f-434f-a504-d04c823dcdd5</guid><dc:creator>pooja</dc:creator><description>&lt;p&gt;Thanks for the suggestion but&amp;nbsp;it is giving error&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;An error occurred while trying to write to the entity &amp;quot;CO_TEST_BASE1123&amp;quot; [id=49b9c55e-18cf-4f44-b9e3-ad62fb06f852@1514, type=CO_TEST_BASERATE (id=8968)] (data store: LOAN_BUSINESSDATASTORE). Details: org.hibernate.exception.SQLGrammarException: could not load an entity: [COTESTBASERATEDT7997#1.234568e+18]: com.microsoft.sqlserver.jdbc.SQLServerException: Error converting data type nvarchar to numeric. Data: TypedValue[it=8968,v={1.234568e+18}]&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Decimal (18,9) value in SQL from Appian</title><link>https://community.appian.com/thread/89025?ContentTypeID=1</link><pubDate>Mon, 13 Dec 2021 16:58:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:17e07023-b6c8-44e3-9d04-4f6ecda1341b</guid><dc:creator>hrishikeshd997</dc:creator><description>&lt;p&gt;You can keep the CDT field type in Appian as string and map it to a DECIMAL (18, 9) column in the back end database. For instance the xsd element in your cdt can be as follows -&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;xsd:element name=&amp;quot;decValue&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;xsd:string&amp;quot;&amp;gt;
    &amp;lt;xsd:annotation&amp;gt;
        &amp;lt;xsd:appinfo source=&amp;quot;appian.jpa&amp;quot;&amp;gt;@Column(name=&amp;quot;decValue&amp;quot;, columnDefinition=&amp;quot;DECIMAL&amp;quot;)&amp;lt;/xsd:appinfo&amp;gt;
    &amp;lt;/xsd:annotation&amp;gt;
&amp;lt;/xsd:element&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;On the Appian interface, use a text field to capture this value from user but make sure it is validated for decimal (18, 9) or else database write will fail.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>