<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="https://www.schweda.net/style_feed.css" ?>
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    xmlns:atom="http://www.w3.org/2005/Atom"	
	xmlns:dc="http://purl.org/dc/elements/1.1/" > 
<channel>
    <title>schweda.net - Blog</title>
    <link>https://www.schweda.net/</link>
    <description>schweda.net - Blog - Blog-Beitraege</description>
    <language>de-at</language>
    <copyright>Copyright 2006-2026</copyright>
    <generator>schweda.net</generator>
    <managingEditor>heinz.schweda@schweda.net (Heinz Schweda)</managingEditor>
    <webMaster>heinz.schweda@schweda.net (Heinz Schweda)</webMaster>
    <category>Blog</category>
	<atom:link href="https://www.schweda.net/blog_rss.php?bid=684" rel="self" type="application/rss+xml" />
<item>
<title><![CDATA[DuplicateKeyException in Tabelle LogisticsLocationRole beim Datenupgrade von AX 2012 auf Dynamics 365 for Finance and Operations]]></title>
<description><![CDATA[
<p>Beim <strong>Datenupgrade</strong> eines AX 2012 R2 auf <strong>Dynamics 365 for Finance and Operations</strong> hatte ich beim Ausf&uuml;hren des &quot;DataUpgrade-Packages&quot; bei Schritt 8 folgende Fehler:
</p>


<blockquote>

<p>Infolog diagnostic message: &#39;Cannot create a record in Roles (LogisticsLocationRole). Role: F?hrendes Unternehmen, Head company. The record already exists.&#39; on category &#39;Error&#39;.&nbsp;<br />
Application configuration sync failed. &nbsp;&nbsp;
</p>

</blockquote>


<p>Bzw.
</p>


<blockquote>

<p>Infolog diagnostic message: &#39;Cannot create a record in Roles (LogisticsLocationRole). Role: Stabile Organisation, Stable organization. The record already exists.&#39; on category &#39;Error&#39;. 08/20/2019 14:52:12: Application configuration sync failed.
</p>

</blockquote>


<p>Ursache waren zwei Datens&auml;tze in der Tabelle <em>LogisticsLocationRole</em>, die in der Quellumgebung (AX 2012 R2) &uuml;ber den Hotfix KB4048614 erstellt wurden. Dieser Hotfix ist interessanterweise genau jener, den man vor einem Upgrade von AX 2012 R2 auf D365 einspielen soll.
</p>


<p>In meinem Szenario konnte ich &uuml;ber das nachstehende Statement die Datens&auml;tze l&ouml;schen, und den Schritt 8 erfolgreich neu starten.
</p>


<pre class="pre_blog_sqlcode">
delete from LOGISTICSLOCATIONROLE
where type = 104 or type = 105

</pre>


<p><a href="https://www.schweda.net/pictures/blogpics/d365_ax2012_upgrade_logisticslocationrole.png" rel="lightbox" target="_blank"><img alt="Tablebrowser LogisticsLocationRole" height="304" src="https://www.schweda.net/pictures/blogpics/d365_ax2012_upgrade_logisticslocationrole.png" style="border-style:solid; border-width:0px" title="Tablebrowser LogisticsLocationRole" width="769" /></a>
</p>]]></description>
<category>Microsoft Dynamics 365 for Finance and Operations</category>
<pubDate>Mon, 04 May 2020 19:20:00 +0200</pubDate>
<link>https://www.schweda.net/blog_d365.php?bid=684</link>
<comments>https://www.schweda.net/blog_d365.php?bid=684</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_d365.php?bid=684</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_d365.php?bid=684</wfw:commentRss>
</item>
</channel>
</rss>	
