{"id":5643,"date":"2014-04-04T15:16:47","date_gmt":"2014-04-04T15:16:47","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/04\/transactioncurrencyid-error-on-callout-collection-of-common-programming-errors\/"},"modified":"2014-04-04T15:16:47","modified_gmt":"2014-04-04T15:16:47","slug":"transactioncurrencyid-error-on-callout-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/04\/transactioncurrencyid-error-on-callout-collection-of-common-programming-errors\/","title":{"rendered":"TransactionCurrencyId error on Callout-Collection of common programming errors"},"content":{"rendered":"<p>Hello,<\/p>\n<p>I just upgraded to CRM 4.0 from version 3.0. After upgrading my Callout to use our new 4.0 web reference, everything works out fine. Then I noticed that there was an error on an entity with N-1 relationship, because there is a mapping in which the target field in entity A is a float, while source\u00a0 field in entity B is money type. This was never a problem in CRM 3.0.<\/p>\n<p>So I created a new money-type field in entity A and create a new mapping with this new field.<\/p>\n<p>However now my callout breaks with the following error message about TransactionCurrencyId:<\/p>\n<p>Event Type:\u00a0\u00a0\u00a0 Error Event Source:\u00a0\u00a0\u00a0 MSCRMCallout Event Category:\u00a0\u00a0\u00a0 None Event ID:\u00a0\u00a0\u00a0 16912 Date:\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 4\/21\/2010 Time:\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 3:25:54 PM User:\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 N\/A Computer:\u00a0\u00a0\u00a0 DEMETOR64 Description: Error: ISV code in organization: 0f3ee4f7-98b0-4f87-be32-b09327775e5a; threw exception: assembly: TimeEntry.dll; class: TimeEntry.TimeEntry; entity: new_timeentry, event: precreate, exception: Unhandled Exception: System.Web.Services.Protocols.SoapException: Server was unable to process request. Detail: \u00a0 <code>0x80040216<\/code><\/p>\n<p>\u00a0 <strong>transactionCurrencyId needs to be supplied to format a transaction money field.<\/strong><\/p>\n<p>\u00a0 Platform \u00a0\u00a0 at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) \u00a0\u00a0 at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) \u00a0\u00a0 at TimeEntry.CrmSdk.CrmService.RetrieveMultiple(QueryBase query) \u00a0\u00a0 at TimeEntry.TimeEntry.CheckInternalTeamMember() \u00a0\u00a0 at TimeEntry.TimeEntry.PreCreate(CalloutUserContext userContext, CalloutEntityContext entityContext, String&amp; entityXml, String&amp; errorMessage) \u00a0\u00a0 at Microsoft.Crm.Extensibility.V3CalloutProxyPlugin.PreCreateAdapter.InternalExecute(IPluginExecutionContext context, String&amp; errorMessage) \u00a0\u00a0 at Microsoft.Crm.Extensibility.V3CalloutProxyPlugin.PreCalloutAdapterBase.Execute(IPluginExecutionContext context)<\/p>\n<p>\u00a0\u00a0 at Microsoft.Crm.Extensibility.V3CalloutProxyPlugin.CalloutAdapterBase.ExecuteAdapter(IPluginExecutionContext context)<\/p>\n<p>I read some blogs and forum, and I have added the field &#8216;Currency&#8217; (transactioncurrencyid) to all the entity forms in question. However this is still not fixing this&#8230;<\/p>\n<p>Is there a code line that I need to add to my callout for this?<\/p>\n<p>Can someone please guide me in the right direction? Thanks in advanced,<\/p>\n<p>Elizabeth K.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello, I just upgraded to CRM 4.0 from version 3.0. After upgrading my Callout to use our new 4.0 web reference, everything works out fine. Then I noticed that there was an error on an entity with N-1 relationship, because there is a mapping in which the target field in entity A is a float, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5643","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5643","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5643"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5643\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5643"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5643"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}