Skip to main content

Upload a Licence to Microsoft Dynamics 365 Business Central

Hi folks,

In this article, will see how to upload a License in Business Central with two different ways.

Generally, sometimes our old License gets expired then developer need to upload license to BC database environment or Customer License for specific Roles and Permissions.

Error : Your Program License has expired.

Here two solutions are available for you both are same but using different apps:

1. Using PowerShell ISE

2. Using Business Central Administration Shell

****************
1. Using PowerShell ISE
****************

1
2
3
4
5
6
7
8
9
10
// Script for Upload License using PowerShell ISE
 
Step 1.1- Open PowerShell ISE as Administrator
Step 1.2- Import-Module for Business Central Wave 2, using the following script:
Import-Module 'C:\Program Files\Microsoft Dynamics 365 Business Central\150\Service\NavAdminTool.ps1'
Step 1.3- Using the following script to import the license:
Import-NAVServerLicense -LicenseFile 'C:\license\LS Central-15 Dev License.flf' -ServerInstance BC150
Step 1.4- Restart-Service using the following script:
Restart-NAVServerInstance -ServerInstance BC150
Step 1.5- Get License Information using the following script: 
Export-NAVServerLicenseInformation -ServerInstance BC150

*******************************
2. Using Business Central Administration Shell
*******************************

1
2
3
4
5
6
7
8
9
10
// Upload License using Business Central Development Shell
 
Step 2.1- Open Business Central Administration Shell as Administrator
 
Step 2.2- Using the following script to import the license:
Import-NAVServerLicense -LicenseFile 'C:\license\LS Central-15 Dev License.flf' -ServerInstance BC150
Step 2.3- Restart-Service using the following script:
Restart-NAVServerInstance -ServerInstance BC150
Step 2.4- Get License Information using the following script:
Export-NAVServerLicenseInformation -ServerInstance BC150

Output:


I hope this article will help you when your license gets expired and need to upload a new license to Dynamics 365 Business Central on-Premises.

Stay connected for more articles😉 !!!!

Comments

  1. As I am new to this, from where we can get the new flf license file after license got expired.

    ReplyDelete
    Replies
    1. Hi Dear,
      Sorry for late Responding.
      You have to Contact with your consulting company for Developer Licence.

      Delete

Post a Comment

Popular posts from this blog

Amount In Words in Navision / Business Central

Hi Guys, In this article, we will see how to display amount in words in Microsoft Dynamics Business Central. Here, I am taking an example of Report object  which is widely used in Navision for converting decimal amount field into words. Procedure :-  Step-1 Declare the following Global Variables :         RepCheck:  Report  "Check";         NoText:  array [ 2 ]  of   Text ;         AmountInWords:  Text ; where, (1) RepCheck is a variable of  Report DataType Named as " Check " which is 1401. (2) NoText is a variable of DataType " Text " with array Dimension value as 2 which is defined as shown above. (3) AmountInWords is a variable of DataType " Text " which will store final result of amount in words. Step-2 Now, add the following code in OnAfterGetRecord() trigger of DataItem containing that decimal field value. So in my custom Purchase Order Report, i am adding code in the Purchase Header (DataItem) - OnAfterGetRecord() trigger.   trigger  OnA

Flow Custom field to G/L Entry and other Posted tables : From Purchase Order to Posted Purchase invoice

Hi Readers, In this blog we will see how we can transfer data from " Purchase Header" to "Purchase Invoice Header" & "G/L Entry" table in Business Central. In this example, will create "Remarks" field on Purchase Header table and after posting, flow it to Purchase Invoice Header & G/L Entry tables: Firsly, create required fields ("Remarks") in below mentioned tables by creating table extensions: Purchase Header (38) Purch. Inv. Header (122) Gen. Journal Line (81)  G/L Entry (17) For the Purch. Inv. Header table, you can just create copy the field from purchase header and paste it in  Purch. Inv. Header  table. If the field ID No. is same for that field for both the tables then you don't have to code i.e, it automatically transfer that field data from Purch. Header to Purch. Inv. Header . Step-(1)   tableextension   50104  "Purchase Header Ext"  extends  "Purchase Header" {      fields     {         

Calculate Date : Using Date Formula and CalcDate Function in Navision/BC

 Hi Everyone, In this article we will see how we can Calculate Date by adding and subtracting No. of Days / Months based on CalcDate and DateFormula datatype. Here, I define three variables required for: (1) " No of Days " -  To define No. of Days / Months as required. You can also use these units denoted as: <Unit> = D | WD | W | M | Q | Y (D=day, WD=weekday, W=week, M=month, Q=quarter, Y=year). (2) " From Date " and " To Date "  Date type Variables to store calculated date in it. page   50103  "Date from Date Formula" {     PageType = Card;     ApplicationArea = All;     UsageCategory = Administration;     SourceTable =  Integer ;      layout     {          area( Content )         {              group( General )             {                  field( "No. of Days"; "No. of Days" )                 {                     ApplicationArea = All;                 }             }         }     }      actions     {          area