Wednesday, January 31, 2018

New PowerShell Cmdlets in NAV 2018

bash-148836

Following are the new PowerShell cmdlets introduced in NAV 2018


Cmdlet

Description

Restart-NAVServerInstance

Restarts a Dynamics NAV Server instance.

Start-NAVServerInstance

Starts a Dynamics NAV Server instance.

Stop-NAVServerInstance

Stops a Dynamics NAV Server instance.

Set-NAVApplication

Sets the application version or application family fields in the application database connected to the specified Dynamics NAV Server instance.

Set-NAVTenant

Specifies settings for a tenant that is mounted on a Dynamics NAV Server instance.

Start-NAVAppDataUpgrade

Upgrades a NAV App to a specified tenant.

Sync-NAVApp

Synchronizes an app to the specified tenant's database.

Share:

Job Queue Entry is Missing/Deleted

computer-644457

Last week one of the issues i have received is the Job Queue entry which was scheduled is missing or getting deleted after it is run, if you are one of those who is having this issue then below is the reason for the issue.

T he Job Queue Entry gets deleted is because of the way we setup the job queue to run, when we setup the Job Queue it has options to setup as Recurrence which we basically telling the system to run this Job on a specific day at a specific time


image


If we don’t setup this tab and then it is more like one time job you want to run and in that case once the Job is ran it will delete the entry.

If you have any other tips or suggestions, please do share them in the comments below.

Share:

Tuesday, January 16, 2018

Cumulative Update 01 for Microsoft Dynamics NAV 2018 has been released

Cumulative Update 01 includes all application and platform hotfixes and regulatory features that have been released for Microsoft Dynamics NAV 2018.

The cumulative update is intended mainly for solutions that are experiencing the problems described in the Knowledge Base article linked to below. However, you are advised to always keep your solution updated with the latest cumulative update. If you are in doubt about whether this cumulative update addresses your specific problem, or if you want to confirm whether any special compatibility, installation, or download issues are associated with this cumulative update, support professionals in Customer Support Services are ready to help you. For more information, see http://support.microsoft.com/contactus/.

The cumulative update includes hotfixes that apply to all countries and hotfixes specific to the following local versions:

Where to find Cumulative Update 01

You can download the cumulative update from KB4058601  – Cumulative Update 01 for Microsoft Dynamics NAV 2018.

You can press one of the countries in list above for a direct download or you can download the cumulative update from the Microsoft Download Center.

Microsoft Dynamics NAV 2018 is also available from containers. Containers are a way to wrap up an application into its own isolated box, you can pull the cumulative update container from the Docker Hub.

To learn more about other Cumulative Updates already released for Microsoft Dynamics NAV 2018 please see KB  4072483.

Warning

Before you install a cumulative update in a production environment, take the following precautions:

  1. Test the cumulative update in a non-production environment.
  2. Make a backup of the system or computer where the cumulative update is to be installed.
  3. This Cumulative Update can require a database upgrade.

Additional Information

For information about how to install the cumulative update, see How to Install a Microsoft Dynamics NAV 2018 Cumulative Update.

Source: https://blogs.msdn.microsoft.com/nav/2018/01/08/cumulative-update-01-for-microsoft-dynamics-nav-2018-has-been-released/

Share:

Sunday, January 14, 2018

Print the document to a specific printer

printer-2178754_1920

In one of my previous posts, I have discussed how to download and print a remote file. Here is the blog link

http://www.navisionworld.com/2017/09/how-to-print-remote-file-from-nav.html

The solution in the above post will print the file to the default printer and recently I was working on a modification where I have to print the file to a specific printer instead of the default printer and couple of readers of my blog post also asked how to do this, so I would like to share today the solution for it.

I was checking online to modify my old solution to print to a specific printer and few suggested to me to use the arguments property of the ProcessStartInfo and also the below MSDN example suggests the same, but unfortunately, I was not successful using that property.

https://msdn.microsoft.com/en-us/library/system.diagnostics.processstartinfo.verbs(v=vs.110).aspx

image

To solve this issue I have found another solution which is to use the Print Document and in fact, I think this is an easy solution when compared to the other solution in my previous post.

Below is the function for it.

PROCEDURE PrintFile@1000000018(FilePath@1000000002 : Text[250]);

VAR

PrinterName@1240060002 : Text;

PrintDocument@1240060003 : DotNet "'System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.System.Drawing.Printing.PrintDocument";

PrinterSettings@1240060004 : DotNet "'System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.System.Drawing.Printing.PrinterSettings";

BEGIN

PrinterName := 'MF8200C Series';

PrintDocument := PrintDocument.PrintDocument;

PrintDocument.DocumentName := FilePath;

PrinterSettings := PrinterSettings.PrinterSettings;

PrinterSettings.PrinterName := PrinterName;

PrintDocument.PrinterSettings := PrinterSettings;

PrintDocument.Print;

MESSAGE('Complete');

END;

If you have any other tips or suggestions, please do share them in the comments below.
Share:

Friday, January 5, 2018

January 2018 Cumulative Updates for NAV 2013, 2013 R2, 2015, 2016 and 2017

Here are links to the release notes and download link for the CU's released.

NAV 2013 – Cumulative Update 58

You can download the cumulative update from KB4058596

NAV 2013 R2 – Cumulative Update 51

You can download the cumulative update from KB4058597

NAV 2015 – Cumulative Update 39

You can download the cumulative update from KB4058598

NAV 2016 – Cumulative Update 27

You can download the cumulative update from KB4058599

NAV 2017 – Cumulative Update 14

You can download the cumulative update from KB4058600

Share:

Thursday, January 4, 2018

Could not Load file or Assembly error after applying Cumulative Update

road-sign-1274312_1920

Last week I have applied the Cumulative Update 50 for NAV 2013 R2 on my local machine.  After I have applied the Cumulative Update I have tried to open NAV Administration Tool to restart the NAV Services but I have encountered the below error

image

The tool was not able to open the management dll , so I have browse to the service folder and reviewed the properties of Microsoft.Dynamics.Nav.Management.dll and found that it was blocked.

To unblock the dll I have clicked the Unblock check mark as shown in the below fig. and then tried to open the NAV Administration tool which then opened without any issues

If you get could not load file or assembly, be sure to check the properties of the file.


image

If you have any other tips or suggestions, please do share them in the comments below.

Share: