<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged overflow-error</title>
<link>https://overflow.efficy.io/?qa=tag/overflow-error</link>
<description>Powered by Question2Answer</description>
<item>
<title>Overflow while converting variant of type (Double) into type (Integer) on Efficy.OpenEditContextRelation</title>
<link>https://overflow.efficy.io/?qa=4256/overflow-converting-variant-integer-openeditcontextrelation</link>
<description>&lt;p&gt;During a migration from Efficy 2012 to Efficy 11.1 The following code in a serverscript gives an Overflow error :&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Message: &quot;Overflow while converting variant of type (Double) into type (Integer)&quot;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The code which throws this error :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;var editSource = Efficy.OpenEditContextRelation(ntOppo, ntProd, k_Opportunity, K_Product, k_Relation);
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Parameters passed to the functions are the following:&lt;/p&gt;

&lt;p&gt;Key = 203703&lt;/p&gt;

&lt;p&gt;DetailKey = 17012&lt;/p&gt;

&lt;p&gt;K_Relation = &lt;strong&gt;752975747&lt;/strong&gt; (which is stored in the SQL DB as an int correctly)&lt;/p&gt;

&lt;p&gt;Is there a reason why this doesn't work properly in Efficy 11.1?&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4256/overflow-converting-variant-integer-openeditcontextrelation</guid>
<pubDate>Thu, 16 May 2019 10:14:15 +0000</pubDate>
</item>
</channel>
</rss>