HOW TO load xml from a file in C/AL

In the following example we are going to: open a file, create an InStream object, create an XmlDocument using the DotNet component and load the xml from the InStream.

This example requires that you create the following variables:

Name DataType Subtype
TestFile File
Istream InStream
XmlDoc DotNet
System.Xml.XmlDocument.'System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

HOW TO load xml from a file in C/AL?

TestFile.OPEN('C:\TestFolder\TestFile.xml');
TestFile.CREATEINSTREAM(Istream);

XmlDoc := XmlDoc.XmlDocument();
XmlDoc.Load(Istream);

Did my HOW TO help you? Leave a reply.

Could not load file or assembly Microsoft.Dynamics.Nav.Management.dll HRESULT: 0x80131515

Information
—————————

Could not load file or assembly ‘file:///C:\Program Files\Microsoft Dynamics NAV\70\Service\Microsoft.Dynamics.Nav.Management.dll’ or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
—————————
OK
—————————

Symptoms:
After an update with a new build of Microsoft Dynamics NAV the Microsoft Dynamics NAV Administration tool does not work showing an error message as above.

Solution:

  1. Move the file Microsoft.Dynamics.Nav.Management.dll from the folder
    C:\Program Files\Microsoft Dynamics NAV\70\Service\

    into your Desktop

  2. Right-click on the file, select Properties and in the General tab push the button at the bottom Unblock
  3. Move the file Microsoft.Dynamics.Nav.Management.dll from the Desktop to the original folder
    C:\Program Files\Microsoft Dynamics NAV\70\Service\

Did my solution solve your problem? Leave a comment.

Google Chrome poor resolution on Windows 8.1

To fix this issue I found two solutions, the first one has been marked as “Preferred” because can fix also multiple issues with other software, the second it’s “Easy” to apply. You can also apply both.

Google Chrome poor resolution on Windows 8.1?

Solution (Preferred):
Download and install your video card and monitor drivers.

Solution (Easy):
Navigate into your user folder

C:\Users\<username>\AppData\Local\Google\Chrome\Application

Right-click on chrome -> Properties -> Compatibility tab -> tick “Disable display scalling on high DPI settings” then restart Google Chrome.

Google Chrome poor resolution on Windows 8.1

Did my solution solve your issue? Leave a comment.

Cannot login to Facebook from Windows Phone

Effects:
I connected to https://m.facebook.com/login.php, using my Nokia Lumia 800 with Windows Phone 7.8, but inserting the correct credentials I cannot login: the browser refreshes the page showing the alert “You must login first.”.
I thought I had forgotten my credentials…

Cannot login to Facebook from Windows Phone

Solution:
Go to settings of Internet Explorer and place a tick on “Allow cookies on my phone” check box.

Did my solution solve your problem? Leave a comment.

HOW TO test if a DateFormula variable is empty

We can learn a lot reading Microsoft standard C/AL code.

HOW TO test if a DateFormula variable is empty?

An example is offered in the Table 5088 Profile Questionnaire Line

TESTFIELD("Starting Date Formula",ZeroDateFormula);

Solution:
Create a Global Variable named like ZeroDateFormula of DataType DateFormula and don’t assign any value to it.

Now you can use this variable to test if a DateFormula variable is empty.

IF PeriodLength = ZeroDateFormula THEN
  ERROR(Text001); 

Did my HOW TO help you? Leave a reply.

Exception from HRESULT 0x800AC472

Microsoft Dynamics NAV
—————————

Exception from HRESULT: 0x800AC472
—————————
OK
—————————

Exception from HRESULT 0x800AC472

Exception from HRESULT 0x800AC472

Solution:
Activate Microsoft Office Excel inserting the Product Key then close and reopen it.

Did my solution solve your problem? Leave a comment.

Microsoft Download Center Download button is missing

You want download a file or software from Microsoft Download Center.

In the Install Instructions section is written:

Download the appropriate file for your computer's processor by clicking one of the links below. You can run the package directly from the link or you can also save it on your local disk to install later.

But you cannot see any link or Download button.

Microsoft Download Center Download button is missing

Solution 1:
Change the URL of the page using https:// rather than http://

Solution 2 (from sam2030):
Download Button Unavailable on Windows Update Web Site

Did my solution solve your problem? Leave a comment.