<?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 - Dynamics 365 Blog</title>
    <link>https://www.schweda.net/</link>
    <description>schweda.net - Dynamics 365 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?icid=3&amp;wdl=en" rel="self" type="application/rss+xml" />
<item>
<title><![CDATA[Run unit tests via Powershell]]></title>
<description><![CDATA[
<p>To run unit tests on a development environment via Powershell, you can use SysTestConsole.exe:
</p>


<pre class="pre_blog_axcode">
.&#092;SysTestConsole.exe /test:NameOfTestClass1,NameOfTestClass2 /database:axdb
</pre>


<p><a href="https://www.schweda.net/pictures/blogpics/d365_systestconsole1.jpg" rel="lightbox" target="_blank"><img alt="SysTestConsole" height="82" src="https://www.schweda.net/pictures/blogpics/d365_systestconsole1.jpg" style="border-style:solid; border-width:0px" title="SysTestConsole" width="1003" /></a>
</p>]]></description>
<category>Microsoft Dynamics 365 for Finance and Operations</category>
<pubDate>Thu, 22 Apr 2021 08:14:00 +0200</pubDate>
<link>https://www.schweda.net/blog_d365.php?bid=705&amp;wdl=en</link>
<comments>https://www.schweda.net/blog_d365.php?bid=705&amp;wdl=en</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_d365.php?bid=705&amp;wdl=en</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_d365.php?bid=705&amp;wdl=en</wfw:commentRss>
</item>
<item>
<title><![CDATA[Microsoft Dynamics 365 - Translation Service]]></title>
<description><![CDATA[
<p>Are you familiar with Microsoft Dynamics 365 - Translation Service in LCS?
</p>


<p>With it you can translate your label files fully automated - very cool!
</p>


<p>Details can be found <a href="https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/lifecycle-services/use-translation-service" target="_blank" title="Translation Service">here</a>.
</p>]]></description>
<category>Microsoft Dynamics 365 for Finance and Operations</category>
<pubDate>Wed, 30 Sep 2020 11:57:00 +0200</pubDate>
<link>https://www.schweda.net/blog_d365.php?bid=704&amp;wdl=en</link>
<comments>https://www.schweda.net/blog_d365.php?bid=704&amp;wdl=en</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_d365.php?bid=704&amp;wdl=en</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_d365.php?bid=704&amp;wdl=en</wfw:commentRss>
</item>
<item>
<title><![CDATA["Cannot create a file when that file already exists"  during data upgrade from AX 2012 to Dynamics 365 for Finance and Operations]]></title>
<description><![CDATA[
<p>During the data upgrade of an AX 2012 R2 to Dynamics 365 for Finance and Operations I had the following errors when running the &quot;DataUpgrade-Package&quot; at step 9:
</p>


<blockquote>Error during AOS start: Cannot create a file when that file already exists.
</blockquote>


<p>In my case, restarting the environment hosted on Azure and restarting the step helped.
</p>]]></description>
<category>Microsoft Dynamics 365 for Finance and Operations</category>
<pubDate>Thu, 04 Jun 2020 19:19:00 +0200</pubDate>
<link>https://www.schweda.net/blog_d365.php?bid=702&amp;wdl=en</link>
<comments>https://www.schweda.net/blog_d365.php?bid=702&amp;wdl=en</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_d365.php?bid=702&amp;wdl=en</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_d365.php?bid=702&amp;wdl=en</wfw:commentRss>
</item>
<item>
<title><![CDATA[DuplicateKeyException in table LogisticsLocationRole during data upgrade from AX 2012 to Dynamics 365 for Finance and Operations]]></title>
<description><![CDATA[
<p>During the data upgrade of an AX 2012 R2 to Dynamics 365 for Finance and Operations I had the following errors when running the &quot;DataUpgrade-Package&quot; at step 8:
</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>This was caused by two records in the LogisticsLocationRole table that were created in the source environment (AX 2012 R2) by hotfix KB4048614. Interestingly, this hotfix is exactly the one that should be applied before upgrading from AX 2012 R2 to D365.
</p>


<p>In my scenario, I was able to use the statement below to delete the records and successfully restart step 8.
</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&amp;wdl=en</link>
<comments>https://www.schweda.net/blog_d365.php?bid=684&amp;wdl=en</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_d365.php?bid=684&amp;wdl=en</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_d365.php?bid=684&amp;wdl=en</wfw:commentRss>
</item>
<item>
<title><![CDATA[Error "The step failed" during platform update 32 while database synchronisation]]></title>
<description><![CDATA[
<p>If the following error occurs during a platform update of a local VPC...
</p>


<blockquote>

<p>GlobalUpdate script for service model: AOSService on machine: D365Local<br />
Sync AX database<br />
The running command stopped because the preference variable &quot;ErrorActionPreference&quot; or common parameter is set to Stop: System.Management.Automation.RuntimeException: An exception of type System.Net.WebException occurred when making an http request to: http://127.0.0.1/ReportServer. Refer to the log file for more details.<br />
The step failed<br />
The step: 25 is in failed state, you can use rerunstep command to debug the step explicitly<br />
&nbsp; &nbsp;at Microsoft.Dynamics.AX.AXUpdateInstallerBase.RunbookExecutor.ExecuteRunbookStepList(RunbookData runbookData, String updatePackageFilePath, Boolean silent, String stepID, ExecuteStepMode executeStepMode, Boolean versionCheck, Parameters parameters)<br />
&nbsp; &nbsp;at Microsoft.Dynamics.AX.AXUpdateInstallerBase.AXUpdateInstallerBase.execute(String runbookID, Boolean silent, String updatePackageFilePath, IRunbookExecutor runbookExecutor, Boolean versionCheck, Parameters param)<br />
&nbsp; &nbsp;at Microsoft.Dynamics.AX.AXUpdateInstaller.Program.InstallUpdate(String[] args)<br />
&nbsp; &nbsp;at Microsoft.Dynamics.AX.AXUpdateInstaller.Program.Main(String[] args)
</p>

</blockquote>


<p>...it might help to start the Reporting Services manually using the Reporting Services Configuration Manager for SQL Server 2016 and then continue the update process at the failed step.
</p>]]></description>
<category>Microsoft Dynamics 365 for Finance and Operations</category>
<pubDate>Mon, 27 Apr 2020 10:32:00 +0200</pubDate>
<link>https://www.schweda.net/blog_d365.php?bid=695&amp;wdl=en</link>
<comments>https://www.schweda.net/blog_d365.php?bid=695&amp;wdl=en</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_d365.php?bid=695&amp;wdl=en</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_d365.php?bid=695&amp;wdl=en</wfw:commentRss>
</item>
<item>
<title><![CDATA[Display line in bold in a grid]]></title>
<description><![CDATA[
<p>To display a line bold in a grid, you can overwrite the method <strong>displayOption()</strong> of the FormDataSource:
</p>


<pre class="pre_blog_axcode">
public void displayOption(Common _record, FormRowDisplayOption _options)
{
    MyTable myTable = _record as MyTable;
            
    super(_record, _options);
            
    _options.fontBold(false);
            
    if (<em>true</em>)  
    {
        _options.fontBold(true);
    }
}
</pre>]]></description>
<category>Microsoft Dynamics 365 for Finance and Operations</category>
<pubDate>Fri, 24 Apr 2020 11:24:00 +0200</pubDate>
<link>https://www.schweda.net/blog_d365.php?bid=682&amp;wdl=en</link>
<comments>https://www.schweda.net/blog_d365.php?bid=682&amp;wdl=en</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_d365.php?bid=682&amp;wdl=en</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_d365.php?bid=682&amp;wdl=en</wfw:commentRss>
</item>
<item>
<title><![CDATA[Access denied when calling a SysOperationController]]></title>
<description><![CDATA[
<p>If the following error occurs when calling a SysOperationController, a possible cause may be that the properties Enum Type Parameter, Enum Parameter and Parameters are not filled in the calling MenuItem.
</p>


<blockquote>

<p>Access denied: SysOperationController
</p>

</blockquote>


<p>A MenuItem for a SysOperationController should normally look like this:
</p>


<p><a href="https://www.schweda.net/pictures/blogpics/d365_menuitemsysopsimplesync.png" rel="lightbox" target="_blank"><img alt="Screenshot MenuItem" height="625" src="https://www.schweda.net/pictures/blogpics/d365_menuitemsysopsimplesync.png" style="border-style:solid; border-width:0px" title="Screenshot MenuItem" width="435" /></a>
</p>]]></description>
<category>Microsoft Dynamics 365 for Finance and Operations</category>
<pubDate>Thu, 16 Apr 2020 08:43:00 +0200</pubDate>
<link>https://www.schweda.net/blog_d365.php?bid=691&amp;wdl=en</link>
<comments>https://www.schweda.net/blog_d365.php?bid=691&amp;wdl=en</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_d365.php?bid=691&amp;wdl=en</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_d365.php?bid=691&amp;wdl=en</wfw:commentRss>
</item>
<item>
<title><![CDATA[Use built-in symbols as display method]]></title>
<description><![CDATA[
<p>If you want to include one of the symbols included in Dynamics 365 for Finance and Operations as a display method, the following is an example:
</p>


<pre class="pre_blog_axcode">
[SysClientCacheDataMethodAttribute(true)]
public display container displayOnHoldImage()
{
    if (trueContition)
    {
        return ImageReference::constructForSymbol(ImageReferenceSymbol::Pause).pack();
    }
    return connull();
}
</pre>


<p>&nbsp;
</p>]]></description>
<category>Microsoft Dynamics 365 for Finance and Operations</category>
<pubDate>Wed, 08 Apr 2020 09:50:00 +0200</pubDate>
<link>https://www.schweda.net/blog_d365.php?bid=700&amp;wdl=en</link>
<comments>https://www.schweda.net/blog_d365.php?bid=700&amp;wdl=en</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_d365.php?bid=700&amp;wdl=en</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_d365.php?bid=700&amp;wdl=en</wfw:commentRss>
</item>
<item>
<title><![CDATA[Error "The step failed" during platform update 32 while updating retail self service]]></title>
<description><![CDATA[
<p>If the following error occurs during a platform update of a local VPC...
</p>


<blockquote>

<p>GlobalUpdate script for service model: RetailSelfService on machine: D365Local<br />
Update Retail self service.<br />
UpdateRetailSelfService.ps1 failed.<br />
The step failed<br />
The step: 52 is in failed state, you can use rerunstep command to debug the step explicitly<br />
&nbsp; &nbsp;at Microsoft.Dynamics.AX.AXUpdateInstallerBase.RunbookExecutor.ExecuteRunbookStepList(RunbookData runbookData, String updatePackageFilePath, Boolean silent, String stepID, ExecuteStepMode executeStepMode, Boolean versionCheck, Parameters parameters)<br />
&nbsp; &nbsp;at Microsoft.Dynamics.AX.AXUpdateInstaller.Program.InstallUpdate(String[] args)<br />
&nbsp; &nbsp;at Microsoft.Dynamics.AX.AXUpdateInstaller.Program.Main(String[] args)
</p>

</blockquote>


<p>...it might help to start the Azure storage emulator&nbsp;and then continue the update process at the failed step.
</p>]]></description>
<category>Microsoft Dynamics 365 for Finance and Operations</category>
<pubDate>Sun, 29 Mar 2020 15:29:00 +0200</pubDate>
<link>https://www.schweda.net/blog_d365.php?bid=698&amp;wdl=en</link>
<comments>https://www.schweda.net/blog_d365.php?bid=698&amp;wdl=en</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_d365.php?bid=698&amp;wdl=en</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_d365.php?bid=698&amp;wdl=en</wfw:commentRss>
</item>
<item>
<title><![CDATA[Remove label file on a development environment]]></title>
<description><![CDATA[
<p>If you should get into the embarrassment of having to delete a label file on a development environment, you should case check afterwards whether fragments of this label file are still left in the following directories:
</p>


<ul>
	
<li>C:&#092;AOSService&#092;PackagesLocalDirectory&#092;MyModel&#092;MyModel&#092;AxLabelFile
</li>
	
<li>C:&#092;AOSService&#092;PackagesLocalDirectory&#092;MyModel&#092;Resources (also in subdirectories per language)
</li>

</ul>]]></description>
<category>Microsoft Dynamics 365 for Finance and Operations</category>
<pubDate>Sat, 28 Mar 2020 18:10:00 +0100</pubDate>
<link>https://www.schweda.net/blog_d365.php?bid=699&amp;wdl=en</link>
<comments>https://www.schweda.net/blog_d365.php?bid=699&amp;wdl=en</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_d365.php?bid=699&amp;wdl=en</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_d365.php?bid=699&amp;wdl=en</wfw:commentRss>
</item>
<item>
<title><![CDATA[Simple time measurement in code]]></title>
<description><![CDATA[
<p>To measure the execution time of a function/logic, you can use System.Diagnostics.Stopwatch:
</p>


<pre class="pre_blog_axcode">
System.Diagnostics.Stopwatch watch = new System.Diagnostics.Stopwatch();
watch.Start();
// ... do something
watch.Stop();
info(strFmt(&quot;%1ms&quot;, watch.ElapsedMilliseconds));
</pre>]]></description>
<category>Microsoft Dynamics 365 for Finance and Operations</category>
<pubDate>Sun, 15 Mar 2020 18:03:00 +0100</pubDate>
<link>https://www.schweda.net/blog_d365.php?bid=675&amp;wdl=en</link>
<comments>https://www.schweda.net/blog_d365.php?bid=675&amp;wdl=en</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_d365.php?bid=675&amp;wdl=en</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_d365.php?bid=675&amp;wdl=en</wfw:commentRss>
</item>
<item>
<title><![CDATA[[BPFrameworkFatalException]:A fatal exception occured in the Best Practices framework]]></title>
<description><![CDATA[
<p>I have had the problem in the past that the BP test did not find all expected deviations or even the following error was issued:
</p>


<blockquote>

<p>[BPFrameworkFatalException]:A fatal exception occured in the Best Practices framework.
</p>

</blockquote>


<p>In all these cases it has helped to disable the following rule:&nbsp;<strong>BPCheckTableDimensionFields</strong>
</p>


<p><a href="https://www.schweda.net/pictures/blogpics/d365_bpdisablebpchecktabledimensionfields.png" rel="lightbox" target="_blank"><img alt="D365 Best practice rules" height="434" src="https://www.schweda.net/pictures/blogpics/d365_bpdisablebpchecktabledimensionfields.png" style="border-style:solid; border-width:0px" title="D365 Best practice rules" width="743" /></a>
</p>


<p>I found the decisive tip in the <a href="https://community.dynamics.com/365/financeandoperations/f/dynamics-365-for-finance-and-operations-forum/308386/ax2012-vs-finops-bp-checks" target="_blank">Dynamics 365 Community</a>
</p>]]></description>
<category>Microsoft Dynamics 365 for Finance and Operations</category>
<pubDate>Thu, 05 Mar 2020 19:49:00 +0100</pubDate>
<link>https://www.schweda.net/blog_d365.php?bid=697&amp;wdl=en</link>
<comments>https://www.schweda.net/blog_d365.php?bid=697&amp;wdl=en</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_d365.php?bid=697&amp;wdl=en</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_d365.php?bid=697&amp;wdl=en</wfw:commentRss>
</item>
<item>
<title><![CDATA[How to get dimension display value for ledgerDimension field]]></title>
<description><![CDATA[
<p>If you want to determine the display value of a financial dimension stored as <em>RefRecId </em>by code, you can use the following function from the <strong>LedgerDimensionFacade:</strong>
</p>


<pre class="pre_blog_axcode">
DimensionDisplayValue displayValue = 
LedgerDimensionFacade::getDisplayValueForLedgerDimension(ledgerJournalTrans.LedgerDimension);
</pre>]]></description>
<category>Microsoft Dynamics 365 for Finance and Operations</category>
<pubDate>Fri, 28 Feb 2020 08:04:00 +0100</pubDate>
<link>https://www.schweda.net/blog_d365.php?bid=693&amp;wdl=en</link>
<comments>https://www.schweda.net/blog_d365.php?bid=693&amp;wdl=en</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_d365.php?bid=693&amp;wdl=en</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_d365.php?bid=693&amp;wdl=en</wfw:commentRss>
</item>
<item>
<title><![CDATA[Control FormViewOption of a form through code]]></title>
<description><![CDATA[
<p>To control the FormViewOption of a form, you can use code like the following:
</p>


<pre class="pre_blog_axcode">
public static void setFormViewOption(
    FormRun _formRun,
    FormViewOption _formViewOption = FormViewOption::Details
    )
{
    if (_formRun
        &amp;&amp; _formRun.viewOptionHelper())
    {
        _formRun.viewOptionHelper().setViewOption(_formViewOption);
    }
}
</pre>


<p>&nbsp;
</p>]]></description>
<category>Microsoft Dynamics 365 for Finance and Operations</category>
<pubDate>Thu, 20 Feb 2020 07:13:00 +0100</pubDate>
<link>https://www.schweda.net/blog_d365.php?bid=696&amp;wdl=en</link>
<comments>https://www.schweda.net/blog_d365.php?bid=696&amp;wdl=en</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_d365.php?bid=696&amp;wdl=en</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_d365.php?bid=696&amp;wdl=en</wfw:commentRss>
</item>
<item>
<title><![CDATA[Suppress Best-Practice Deviations]]></title>
<description><![CDATA[
<p>In principle, every solution in <strong>Dynamics 365 for Finance and Operations</strong> should be free of best-practice deviations, but sometimes there is the need to suppress them.
</p>


<p>Such a case are for example, event handlers that have a predefined parameter profile, but if one of these parameters is not used, it causes a BP deviation.
</p>


<pre class="pre_blog_axcode">
class MyFreeTextInvoiceHeaderFooterTmpEH
{
    [DataEventHandler(tableStr(FreeTextInvoiceHeaderFooterTmp), DataEventType::Inserting)]
    public static void FreeTextInvoiceHeaderFooterTmp_onInserting(Common sender, DataEventArgs e)
    {
        FreeTextInvoiceHeaderFooterTmp freeTextInvoiceHeaderFooterTmp;
    
        freeTextInvoiceHeaderFooterTmp = sender;
    
        if (freeTextInvoiceHeaderFooterTmp.CompanyBankAccount == &quot;&quot;)
        {
            freeTextInvoiceHeaderFooterTmp.CompanyBankName = &quot;Unknown&quot;;
        }
    }
}
</pre>


<p>With the above EH, the following BP deviation would be output because the parameter <em>e</em> is not used:
</p>


<blockquote>

<p>BP Rule: [BPParameterNotUsed]:The parameter &#39;e&#39; is not used.
</p>

</blockquote>

<br /><a class="div_blog_category_gotodetail" href="https://www.schweda.net/blog_d365.php?bid=672" target="_self" title="Weiterlesen...">Weiterlesen...</a>]]></description>
<category>Microsoft Dynamics 365 for Finance and Operations</category>
<pubDate>Sat, 18 Jan 2020 11:10:00 +0100</pubDate>
<link>https://www.schweda.net/blog_d365.php?bid=672&amp;wdl=en</link>
<comments>https://www.schweda.net/blog_d365.php?bid=672&amp;wdl=en</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_d365.php?bid=672&amp;wdl=en</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_d365.php?bid=672&amp;wdl=en</wfw:commentRss>
</item>
<item>
<title><![CDATA[Exception during Platform update 30]]></title>
<description><![CDATA[
<p>When I recently wanted to update a local D365-VPC with Platform Update 30, the following error occurred at Step 19:
</p>


<blockquote>

<p>GlobalUpdate script for service model: AOSService on machine: D365Local<br />
Sync AX database<br />
The running command stopped because the preference variable &quot;ErrorActionPreference&quot; or common parameter is set to Stop: System.Management.Automation.RuntimeException: An exception of type System.Net.WebException occurred when making an http request to: http://127.0.0.1/ReportServer. Refer to the log file for more details.<br />
The step failed
</p>

</blockquote>


<p>The reason for this error was quickly found - after downloading the VHD from LCS, the name of the virtual computer was changed, but not all neccessary steps were done.&nbsp;As a result, SQL Reporting Services had a problem, a new database had to be entered here. How this works, and what else you have to consider when renaming a VHD, can be found <a href="https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/migration-upgrade/vso-machine-renaming" target="_blank" title="Rename a local development (VHD) environment">here</a>.
</p>]]></description>
<category>Microsoft Dynamics 365 for Finance and Operations</category>
<pubDate>Fri, 17 Jan 2020 08:05:00 +0100</pubDate>
<link>https://www.schweda.net/blog_d365.php?bid=673&amp;wdl=en</link>
<comments>https://www.schweda.net/blog_d365.php?bid=673&amp;wdl=en</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_d365.php?bid=673&amp;wdl=en</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_d365.php?bid=673&amp;wdl=en</wfw:commentRss>
</item>
<item>
<title><![CDATA[Error "The step failed" during platform update 30 in connection with reporting services]]></title>
<description><![CDATA[
<p>If the following error occurs during a platform update of a local VPC...
</p>


<blockquote>

<p>Executing step: 19<br />
GlobalUpdate script for service model: AOSService on machine: D365FOSHLocal<br />
Sync AX database<br />
The running command stopped because the preference variable &quot;ErrorActionPreference&quot; or common parameter is set to Stop: System.Management.Automation.RuntimeException: An exception of type System.Net.WebException occurred when making an http request to: http://127.0.0.1/ReportServer. Refer to the log file for more details.<br />
The step failed<br />
The step: 19 is in failed state, you can use rerunstep command to debug the step explicitly<br />
&nbsp; &nbsp;at Microsoft.Dynamics.AX.AXUpdateInstallerBase.RunbookExecutor.ExecuteRunbookStepList(RunbookData runbookData, String updatePackageFilePath, Boolean silent, String stepID, ExecuteStepMode executeStepMode, Boolean versionCheck, Parameters parameters)<br />
&nbsp; &nbsp;at Microsoft.Dynamics.AX.AXUpdateInstallerBase.AXUpdateInstallerBase.execute(String runbookID, Boolean silent, String updatePackageFilePath, IRunbookExecutor runbookExecutor, Boolean versionCheck, Parameters param)<br />
&nbsp; &nbsp;at Microsoft.Dynamics.AX.AXUpdateInstaller.Program.InstallUpdate(String[] args)<br />
&nbsp; &nbsp;at Microsoft.Dynamics.AX.AXUpdateInstaller.Program.Main(String[] args)
</p>

</blockquote>


<p>...may be the reason that the computer name of the VHD has been changed, but not all steps recommended by Microsoft have been performed.
</p>


<p>What they are can be found here:&nbsp;<a href="https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/migration-upgrade/vso-machine-renaming" target="_blank" title="docs.microsoft.com">https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/migration-upgrade/vso-machine-renaming</a>
</p>


<p>&nbsp;
</p>


<p>&nbsp;
</p>]]></description>
<category>Microsoft Dynamics 365 for Finance and Operations</category>
<pubDate>Wed, 15 Jan 2020 07:21:00 +0100</pubDate>
<link>https://www.schweda.net/blog_d365.php?bid=679&amp;wdl=en</link>
<comments>https://www.schweda.net/blog_d365.php?bid=679&amp;wdl=en</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_d365.php?bid=679&amp;wdl=en</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_d365.php?bid=679&amp;wdl=en</wfw:commentRss>
</item>
<item>
<title><![CDATA[Display financial dimension as display method]]></title>
<description><![CDATA[
<pre class="pre_blog_axcode">
[SysClientCacheDataMethodAttribute(true)]
public display DimensionDisplayValue displayLedgerDimensionValue()
{
    return LedgerDimensionFacade::getDisplayValueForLedgerDimension(this.LedgerDimension);
}
</pre>]]></description>
<category>Microsoft Dynamics 365 for Finance and Operations</category>
<pubDate>Fri, 03 Jan 2020 15:52:00 +0100</pubDate>
<link>https://www.schweda.net/blog_d365.php?bid=685&amp;wdl=en</link>
<comments>https://www.schweda.net/blog_d365.php?bid=685&amp;wdl=en</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_d365.php?bid=685&amp;wdl=en</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_d365.php?bid=685&amp;wdl=en</wfw:commentRss>
</item>
<item>
<title><![CDATA[Error "Argument to method getFieldValue out of range" during import using a data entity]]></title>
<description><![CDATA[
<p>When importing data via a self-created data entity that also contains financial dimensions for a self-created table, I recently had the problem that the import always failed with the following error:
</p>


<blockquote>

<p>Argument to method getFieldValue out of range
</p>

</blockquote>


<p>During debugging it turned out that a field name could not be determined in the method <em>DimensionDynamicAccountDataEntityResolver.getEnumValue()</em>. However, the responsible method <em>DictDataEntityField.dynamicDimensionEnumartionField()</em> is not visible.
</p>

<br /><a class="div_blog_category_gotodetail" href="https://www.schweda.net/blog_d365.php?bid=678" target="_self" title="Weiterlesen...">Weiterlesen...</a>]]></description>
<category>Microsoft Dynamics 365 for Finance and Operations</category>
<pubDate>Fri, 20 Dec 2019 14:25:00 +0100</pubDate>
<link>https://www.schweda.net/blog_d365.php?bid=678&amp;wdl=en</link>
<comments>https://www.schweda.net/blog_d365.php?bid=678&amp;wdl=en</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_d365.php?bid=678&amp;wdl=en</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_d365.php?bid=678&amp;wdl=en</wfw:commentRss>
</item>
<item>
<title><![CDATA[Add a field of type LedgerDimension to a (new) table.]]></title>
<description><![CDATA[
<p>In Dynamics 365 for Finance and Operations, only a few steps are required to add a field of type <strong>LedgerDimension </strong>- that is, a field that is to include financial dimensions - to a (new) table:
</p>


<ol>
	
<li>Create a New Foreign-Key Relationship to the <em>DimensionAttributeValueCombination </em>Table
</li>
	
<li>Select RecId as the index of this relation.<br />
	A new field is now generated in the table and the relation to this field is created.
</li>
	
<li>he Extends property of this new field should now be changed to <em>DimensionDynamicAccount</em><br />
	The field can now be renamed, for example, LedgerDimension.
</li>
	
<li>Now another new field must be inserted that derives <em>LedgerJournalACType </em>from BaseEnum.
</li>

</ol>


<p>The following steps are necessary to display such a field in a (separate) form:
</p>


<ol>
	
<li>Place both created fields in the design using Drag &amp; Drop
</li>
	
<li>A Segmented Entry Control is created for the field that is to contain the dimension (for example, LedgerDimension).
</li>
	
<li>The following properties must now be adjusted in the properties of this control
	
<ul>
		
<li>Controller Class: <em>DimensionDynamicAccountController</em>
</li>
		
<li>Account type field: The field extended from <em>LedgerJournalACType </em>must be entered here.
</li>
	
</ul>
	
</li>

</ol>


<p>Depending on the class that is stored in the Controller Class property of the Segmented Entry Control, further settings may have to be made, although not all of them are always permitted.&nbsp;For more information see <a href="https://docs.microsoft.com/de-at/dynamics365/unified-operations/dev-itpro/financial/segmented-entry-control-metadata-specification" target="_blank">https://docs.microsoft.com/de-at/dynamics365/unified-operations/dev-itpro/financial/segmented-entry-control-metadata-specification</a>
</p>]]></description>
<category>Microsoft Dynamics 365 for Finance and Operations</category>
<pubDate>Mon, 16 Dec 2019 09:14:00 +0100</pubDate>
<link>https://www.schweda.net/blog_d365.php?bid=670&amp;wdl=en</link>
<comments>https://www.schweda.net/blog_d365.php?bid=670&amp;wdl=en</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_d365.php?bid=670&amp;wdl=en</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_d365.php?bid=670&amp;wdl=en</wfw:commentRss>
</item>
<item>
<title><![CDATA[Error during platform update 30 in connection with Management reporter]]></title>
<description><![CDATA[
<p>If the following error occurs during a platform update of a local VPC...
</p>


<blockquote>

<p>Executing step: 42<br />
GlobalUpdate script for service model: MROneBox on machine: localhost<br />
Update the financial reporting database<br />
Job AutoGlobalUpdateMR job failed<br />
The step failed<br />
The step: 42 is in failed state, you can use rerunstep command to debug the step explicitly<br />
&nbsp; &nbsp;at Microsoft.Dynamics.AX.AXUpdateInstallerBase.RunbookExecutor.ExecuteRunbookStepList(RunbookData runbookData, String updatePackageFilePath, Boolean silent, String stepID, ExecuteStepMode executeStepMode, Boolean versionCheck, Parameters parameters)<br />
&nbsp; &nbsp;at Microsoft.Dynamics.AX.AXUpdateInstaller.Program.InstallUpdate(String[] args)<br />
&nbsp; &nbsp;at Microsoft.Dynamics.AX.AXUpdateInstaller.Program.Main(String[] args)
</p>

</blockquote>


<p>...may be the reason that the computer name of the VHD&nbsp;has been changed, but not all steps recommended by Microsoft have been performed.
</p>


<p>What they are can be found here:&nbsp;<a href="https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/migration-upgrade/vso-machine-renaming" target="_blank" title="docs.microsoft.com">https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/migration-upgrade/vso-machine-renaming</a>
</p>


<p>&nbsp;
</p>


<p>&nbsp;
</p>]]></description>
<category>Microsoft Dynamics 365 for Finance and Operations</category>
<pubDate>Sat, 14 Dec 2019 17:09:00 +0100</pubDate>
<link>https://www.schweda.net/blog_d365.php?bid=681&amp;wdl=en</link>
<comments>https://www.schweda.net/blog_d365.php?bid=681&amp;wdl=en</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_d365.php?bid=681&amp;wdl=en</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_d365.php?bid=681&amp;wdl=en</wfw:commentRss>
</item>
<item>
<title><![CDATA[Add symbols to buttons, MenuItems and tiles using the Normal Image property]]></title>
<description><![CDATA[
<div class="div_table_100_wo_border">

<div class="div_tablerow">

<div class="div_tablecolumn" style="padding-right:10px">

<p>To add an image/icon to a button, menu item or tile you can use the <strong>Image Location</strong> and <strong>Normal Image</strong> properties.
</p>


<p>In Dynamics 365 for Finance and Operations&nbsp;the <em>Image location</em> &quot;Symbol&quot; has been added, if you use it you have to enter the name of a symbol in <em>Normal Image</em>.
</p>


<p>Which symbol names are available&nbsp;can be found under:<br />
<a href="https://mbs.microsoft.com/customersource/Global/AX/downloads/hot-fixes/AXSymbolFont" target="_blank" title="docs.microsoft.com">https://mbs.microsoft.com/customersource/Global/AX/downloads/hot-fixes/AXSymbolFont</a>
</p>


<p>See more:<br />
<a href="https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/user-interface/action-controls#button-images" target="_blank" title="docs.microsoft.com">https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/user-interface/action-controls#button-images</a>
</p>

</div>


<div class="div_tablecolumn" style="width:30%">

<p><a href="https://www.schweda.net/pictures/blogpics/d365_normalimage_property.png" rel="lightbox" target="_blank"><img alt="Property Nomal Image" height="169" src="https://www.schweda.net/pictures/blogpics/d365_normalimage_property.png" style="border-style:solid; border-width:0px; padding-left:10px" title="Property Normal Image" width="362" /></a>
</p>

</div>

</div>

</div>]]></description>
<category>Microsoft Dynamics 365 for Finance and Operations</category>
<pubDate>Thu, 12 Dec 2019 15:38:00 +0100</pubDate>
<link>https://www.schweda.net/blog_d365.php?bid=676&amp;wdl=en</link>
<comments>https://www.schweda.net/blog_d365.php?bid=676&amp;wdl=en</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_d365.php?bid=676&amp;wdl=en</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_d365.php?bid=676&amp;wdl=en</wfw:commentRss>
</item>
<item>
<title><![CDATA[Hide enum values in form]]></title>
<description><![CDATA[
<p>To hide certain values in a form control derived from a base enum, you can use the <em>enter()</em> method.
</p>


<pre class="pre_blog_axcode">
[Control(&quot;ComboBox&quot;)]
class LedgerJournalTypeCB
{
    public void enter()
    {
        super(); 

        this.delete(enum2str(LedgerJournalACType::Vend));
        this.delete(enum2str(LedgerJournalACType::Cust));
    }
}
</pre>]]></description>
<category>Microsoft Dynamics 365 for Finance and Operations</category>
<pubDate>Thu, 31 Oct 2019 20:39:00 +0100</pubDate>
<link>https://www.schweda.net/blog_d365.php?bid=674&amp;wdl=en</link>
<comments>https://www.schweda.net/blog_d365.php?bid=674&amp;wdl=en</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_d365.php?bid=674&amp;wdl=en</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_d365.php?bid=674&amp;wdl=en</wfw:commentRss>
</item>
<item>
<title><![CDATA[Run best-practice checks from the command line]]></title>
<description><![CDATA[
<p>Usually the best practice checks are run during the build of a project/a solution. Sometimes, however, it can be quite practical to run them separately from a build.
</p>


<p>Therefore Microsoft offers us the XppBp-Tool, see&nbsp;<a href="https://docs.microsoft.com/en-us/dynamics365/unified-operations/dev-itpro/dev-tools/author-best-practice-rules" target="_blank" title="Write best practice rules">https://docs.microsoft.com/en-us/dynamics365/unified-operations/dev-itpro/dev-tools/author-best-practice-rules</a> (at the bottom).
</p>


<p>This tool is located in the <em>PackagesLocalDirectory&#092;bin</em> directory and can be used as follows:
</p>


<pre class="pre_blog_axcode">
Xppbp.exe 
&nbsp;   -module:MyModel 
&nbsp;   -model:MyModel 
&nbsp;   -metadata:&quot;C:&#092;AOSService&#092;PackagesLocalDirectory&quot; 
    -all
</pre>]]></description>
<category>Microsoft Dynamics 365 for Finance and Operations</category>
<pubDate>Sun, 06 Oct 2019 16:16:00 +0200</pubDate>
<link>https://www.schweda.net/blog_d365.php?bid=665&amp;wdl=en</link>
<comments>https://www.schweda.net/blog_d365.php?bid=665&amp;wdl=en</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_d365.php?bid=665&amp;wdl=en</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_d365.php?bid=665&amp;wdl=en</wfw:commentRss>
</item>
<item>
<title><![CDATA[Install and use Dynamics Application checker]]></title>
<description><![CDATA[
<p>A colleague of mine has brought to my attention the <strong>Dynamics Application Checker</strong>, which can be used to implement advanced best practice checks.
</p>


<p>The used XQuery files can be downloaded from GitHub. How to use them I try to describe here.
</p>


<ol>
	
<li><strong>Install BaseX (and Java if needed)</strong><br />
	<a href="https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/dev-tools/install-basex?tabs=admin" target="_blank">https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/dev-tools/install-basex?tabs=admin</a><br />
	&nbsp;
</li>
	
<li><strong>Download and extract files from GitHub</strong><br />
	<a href="https://github.com/microsoft/Dynamics365FO-AppChecker">https://github.com/microsoft/Dynamics365FO-AppChecker</a><br />
	The files must be unpacked into the corresponding directory, e.g. C:&#092;AOSService&#092;PackagesLocalDirectory&#092;Bin&#092;AppCheckerRules<br />
	&nbsp;
</li>
	
<li><strong>Build model</strong><br />
	In Visual Studio, under <em>Dynamics 365 &gt; Builds models</em>, select the desired model and select the <em>Run App Checks</em>&nbsp;option:<br />
	&nbsp;
</li>
	
<li><strong>Check result</strong><br />
	Now corresponding entries should appear in the <em>ErrorList </em>if BP deviations have been detected.<br />
	<a href="https://www.schweda.net/pictures/blogpics/d365_applicationchecker_result.png" rel="lightbox" target="_blank"><img alt="Error list" height="175" src="https://www.schweda.net/pictures/blogpics/d365_applicationchecker_result.png" style="border-style:solid; border-width:0px" title="Error list" width="788" /></a><br />
	<br />
	In addition, a file <em>AppCheckerResult.xml</em> is stored in the packages directory, where the detected deviations can also be viewed.
</li>

</ol>

<br /><a class="div_blog_category_gotodetail" href="https://www.schweda.net/blog_d365.php?bid=666" target="_self" title="Weiterlesen...">Weiterlesen...</a>]]></description>
<category>Microsoft Dynamics 365 for Finance and Operations</category>
<pubDate>Wed, 04 Sep 2019 18:01:00 +0200</pubDate>
<link>https://www.schweda.net/blog_d365.php?bid=666&amp;wdl=en</link>
<comments>https://www.schweda.net/blog_d365.php?bid=666&amp;wdl=en</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_d365.php?bid=666&amp;wdl=en</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_d365.php?bid=666&amp;wdl=en</wfw:commentRss>
</item>
</channel>
</rss>	
