<?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>Random unknown value writing to DB instead of value in PM?</title><link>https://community.appian.com/discussions/f/data/38995/random-unknown-value-writing-to-db-instead-of-value-in-pm</link><description>I have an issue I&amp;#39;m stuck on. We have this value writing to the DB for this column: It writes this exact value for about 75% of entries. The weirdest thing is, this value is not in the values in the PM. This is from the script task where the values are</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Random unknown value writing to DB instead of value in PM?</title><link>https://community.appian.com/thread/147539?ContentTypeID=1</link><pubDate>Thu, 24 Apr 2025 21:34:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cc37b8cf-1971-4583-99a3-224491ebac57</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;I would bet on something (rule input, process variable etc) that has an unexpected type somewhere.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random unknown value writing to DB instead of value in PM?</title><link>https://community.appian.com/thread/147533?ContentTypeID=1</link><pubDate>Thu, 24 Apr 2025 17:30:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:44ee1de7-45d7-4618-8a80-476e66f32e77</guid><dc:creator>KristinForeyt</dc:creator><description>&lt;p&gt;I will continue to look into it. It&amp;#39;s odd because it was working fine before, not sure what changed as we weren&amp;#39;t working on any code/objects related to this piece. Thank you for taking the time to reply!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random unknown value writing to DB instead of value in PM?</title><link>https://community.appian.com/thread/147532?ContentTypeID=1</link><pubDate>Thu, 24 Apr 2025 17:24:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e05a73b5-e188-44a0-a7ad-bd118f900c50</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Then I&amp;#39;m guessing something goes haywire at some point while a number is being converted - it&amp;#39;s hard to say without seeing the code / process steps involved.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random unknown value writing to DB instead of value in PM?</title><link>https://community.appian.com/thread/147527?ContentTypeID=1</link><pubDate>Thu, 24 Apr 2025 14:52:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1f47d8a8-4799-4e39-b0e8-cf664b38ce8e</guid><dc:creator>KristinForeyt</dc:creator><description>&lt;p&gt;The field is text, and the DB field is varchar:&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/16/pastedimage1745506332724v1.png" alt=" " /&gt;&lt;br /&gt;Most of our numbers associated with this app (filing #s, etc.) have a type of text because the value for some of them can get so long that it exceeds the integer value.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random unknown value writing to DB instead of value in PM?</title><link>https://community.appian.com/thread/147526?ContentTypeID=1</link><pubDate>Thu, 24 Apr 2025 14:34:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d13e40a8-c098-4806-86df-eba60e9143c8</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Look how similar your mystery value is to the &amp;quot;negative integer overflow&amp;quot; (the lowest negative integer you can store before it overflows).&amp;nbsp; The most curious thing here is that it&amp;#39;s slightly off.&amp;nbsp; But either way, this suggests to me that the value is being set to something totally bonkers, like an accidentally blank but not null value, or something else.&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/16/pastedimage1745505216123v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Oh wait - are you trying to save a field of type &amp;quot;text&amp;quot; to an integer field?&amp;nbsp; I expect that might have highly unexpected results (like the above).&amp;nbsp; Why can&amp;#39;t you either make your DB field TEXT or change your RecordType field type to INTEGER?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>