RSS

Tag Archives: hotfix

Check Installed Models Script

I’m working in an environment with 3 different AOSs. I have to maintain many models and hotfixes. Therefore, I need to find a clever way to determine whether or not a specific hotfix was installed on an environment

Download

Use the attached script,  and then execute it in AX Management Shell and follow the prompts.

clip_image002

$found = $false
$server = read-host "Enter the database server that hosts your modelstore database (Default is localhost)"
if ($server -eq ''){ $server='localhost'}

$db = read-host "Enter the name of your AX model store database (Default is MicrosoftDynamicsAx)"
if ($db -eq ''){$db = 'MicrosoftDynamicsAx'}

$kb = read-host "Which KB are you attempting to install?"

while ($kb -eq '')
{
   $kb = read-host "You must enter a Kb to search for, try again (enter a KB now)" 
}

$models = Get-AxModel -server $server -database $db

foreach ($model in $models)
{
    $manifest = Get-AXModelManifest -Server $server -Database $db -model $model.Name 
    $details = $manifest.Details
    if (Select-String -Pattern $kb -InputObject $details)
    {
        $found = $true
        $manifest.Name
        $details
    }
}

if (!$found)
{    
    "KB " + $kb + " was not found in any installed model"
}
 
Leave a comment

Posted by on February 11, 2014 in Installation and Configuration

 

Tags: , , , , ,

Take advantage of Lifecycle Services to find bugs and hotfixes

Thanks to Lifecycle services that can help me quickly investigate bugs and turn issue around in a timely manner.

Step 1: Log into lifecycle services
https://lcs.dynamics.com/

image

Step 2: Create a new project

image

Step 3: Go to my new project

image

Step 4: Go to “Issue Search”

image

Step 5: Search with keywords

image

Step 5: Find your issue and review changes

image

Step 6: Identify objects and merge changes.

In my scenario, this is a simple fix. I was able to copy and paste this application fix to my environment. Some other hot fixes may require kernel change, you need to download the hot fix and run the setup.

image

 
Leave a comment

Posted by on February 6, 2014 in Development

 

Tags: , , , , ,

How to upgrade a new model file form an ISV with conflict

Step 1: Install a model

  1. axutil.exe delete /model:YOUR_EXITING_MODEL_ID /config:”YOUR_AOS”
  2. axutil.exe import /config:”YOUR_AOS” /file:”C:\YOUR_PATH\YOUR_MODEL_FILE.axmodel” /conflict:push /verbose

Step 2: Find Conflict  model

The process will create a conflict model if found image

image

Step 3: Create a project from a conflict model

  1. Open the Development Workspace.
  2. Choose Tools > Model management > Create project from model.
  3. Select the model that will be used as the source of the project content.
  4. Supply the name of the new project to be created.
  5. Click OK. The project will be created that has the elements from the model.

A project will provide project name will be created in private project

Step 4: Resolve conflicts

Go to your project and start selecting a resource that has conflict.

Compare to see the differences between the resource in the patch layer and the resource in the main layer.

There are many ways to resolve the conflict, depending on the resource type and the actual conflict. Some of the ways to resolve the conflict include the following:

  • Use the information and the available actions from the Comparison window to merge changes from the conflict model into an existing layer.
  • Make a change in the resource in an existing model in the current layer. For example, if two different models in the layer have modified the same resource, you could consider creating a new “shared” model in the layer that contains a single version of the resource that can be used by both of the other models.
  • Switch to the patch layer and modify the resource there. In some cases, this is the easiest way to resolve the conflict.

Repeat this process until there isn’t any object to resolve.

 
1 Comment

Posted by on January 15, 2014 in Installation and Configuration

 

Tags: , , , ,

Label does not update after updating a hotfix

When I installed CU7 to my Ax2012R2 environment,  label did not update correctly and this bothered me so much. What I did to fix this is

  1. Stop the AOS
  2. Navigate to C:\Program Files\Microsoft Dynamics AX\50\Application\Appl\[Instance Name].
  3. Delete all *.ald files. The ALD files “Application Label Data”
  4. Start the AOS

image

Before

image

After

image

 
4 Comments

Posted by on December 4, 2013 in Installation and Configuration

 

Tags: , , , ,

Aside

In case you missed it, I’m happy to relay we recently released Dynamics AX 2012 R2 Cumulative Update 7! CU7 includes enhancements to several modules or feature areas, including the highly anticipated Data import, export, migration improvements, and integration with Lifecycle services. AX 2012 R2 CU7 is posted as KB number 2885603, build number 6.2.1000.4051.

Download CU7 and get a head start on some of the new functionality arriving with the R3 release early next year!

Some of the enhancements addressed in this cumulative update include the following:

Download CU7 here

Dynamics AX 2012 Cumulative Update 7 (CU7) is now released!

 
Leave a comment

Posted by on November 11, 2013 in Installation and Configuration

 

Tags: , , , ,

AX2012 R2 – SSRS Report error: #Error text —

In AX 2012 R2, if you will see any errors like this one #Error in SSRS reports randomly,  that means you have to do one of the 2 following solutions:

 Image

Solution #1:

In AX 2012, the service account that is setup in the “BC Proxy account” have always to be used for the SSRS execution account, and SSRS services account.

As a workaround or troubleshooting step, you can add the BCP account to AX with Sys Admin rights, and the report should print properly. This however, is not a long term solution and is a workaround that you can utilize short term until you get the following hotfix installed that should correct the issue:

 Image

  Image

 Solution 2:

Apply this hotfix

KB Article Number (s) : 2844965  
Language: All (Global)  
Platform: i386  

 
Leave a comment

Posted by on November 10, 2013 in Development

 

Tags: , , ,

 
%d bloggers like this: