Dynamics 365 Blog - Posts from April 2020

These posts are machine-translated.
Currently, only posts from »April 2020« are displayed Filter entfernen

Error "The step failed" during platform update 32 while database synchronisation

If the following error occurs during a platform update of a local VPC...

GlobalUpdate script for service model: AOSService on machine: D365Local
Sync AX database
The running command stopped because the preference variable "ErrorActionPreference" 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.
The step failed
The step: 25 is in failed state, you can use rerunstep command to debug the step explicitly
   at Microsoft.Dynamics.AX.AXUpdateInstallerBase.RunbookExecutor.ExecuteRunbookStepList(RunbookData runbookData, String updatePackageFilePath, Boolean silent, String stepID, ExecuteStepMode executeStepMode, Boolean versionCheck, Parameters parameters)
   at Microsoft.Dynamics.AX.AXUpdateInstallerBase.AXUpdateInstallerBase.execute(String runbookID, Boolean silent, String updatePackageFilePath, IRunbookExecutor runbookExecutor, Boolean versionCheck, Parameters param)
   at Microsoft.Dynamics.AX.AXUpdateInstaller.Program.InstallUpdate(String[] args)
   at Microsoft.Dynamics.AX.AXUpdateInstaller.Program.Main(String[] args)

...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.


 
 
 

Display line in bold in a grid

To display a line bold in a grid, you can overwrite the method displayOption() of the FormDataSource:

public void displayOption(Common _record, FormRowDisplayOption _options)
{
    MyTable myTable = _record as MyTable;
            
    super(_record, _options);
            
    _options.fontBold(false);
            
    if (true)  
    {
        _options.fontBold(true);
    }
}

 
 
 

Access denied when calling a SysOperationController

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.

Access denied: SysOperationController

A MenuItem for a SysOperationController should normally look like this:

Screenshot MenuItem


 
 
 

Use built-in symbols as display method

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:

[SysClientCacheDataMethodAttribute(true)]
public display container displayOnHoldImage()
{
    if (trueContition)
    {
        return ImageReference::constructForSymbol(ImageReferenceSymbol::Pause).pack();
    }
    return connull();
}

 


 
 
 

 

 
 
 
Posts of the actual month
April 2020
MoTuWeThFrSaSu
 12345
6789101112
13141516171819
20212223242526
27282930 
 
© 2006-2025 Heinz Schweda | Imprint | Contact | German version | Mobile version
In order to provide you with better service, this site uses cookies. By continuing to browse the site, you are agreeing to our use of cookies.