Quantcast
Channel: My Errors & My Solutions
Viewing all 123 articles
Browse latest View live

HOW TO choose columns to show in Drop Down window in NAV

$
0
0

My Errors & My Solutions
My Errors & My Solutions - It Could Happen To You

In the installation of NAV using RoleTailored Client (RTC) when you set the TableRelation field’s property in the definition of a table, automatically, in the Pages that will display this field, will show a DropDownList control.

If the user click the drop-down button it will display a windows a list of fields with the primary key columns plus a text field only if his name will be Name or Description (both case-sensitive).

An example of the Drop Down window is available opening Vendor Card for the field Payment Terms Code as in the following image:
Drop Down window in NAV

HOW TO choose columns to show in Drop Down window in NAV?

Design the table using Microsoft Dynamics NAV Development Environment then click on the menu View -> Field Groups and create a line with Name DropDown (case-sensitive) and in the Group insert the list ordered of the columns that you want display in the window linked with the DropDownList control.

Note: it’s not important the ID number, to work the system require the name will be exactly DropDown (case-sensitive), you cannot create more than one line with the same Name.

An example of the property is available in the table 3 Payment Terms as in the following image:
HOW TO choose columns to show in Drop Down window in NAV

Did my HOW TO help you? Leave a reply.

HOW TO choose columns to show in Drop Down window in NAV
Sergio Castelluccio


“Documents.library-ms” is no longer working

$
0
0

My Errors & My Solutions
My Errors & My Solutions - It Could Happen To You

“Documents.library-ms” is no longer working.

Documents.library-ms is no longer working.

Solution 1:

  1. go to Libraries in Windows Explorer
  2. right-click whichever folder gives you an error and select Delete
  3. right-click on the Libraries folder and select Restore Default Libraries

Solution 2:
Restore your system using a previous restore point.

Did my solution solve your problem? Leave a reply.

“Documents.library-ms” is no longer working
Sergio Castelluccio

HOW TO Copy from Excel and Paste as Picture without gridlines

$
0
0

My Errors & My Solutions
My Errors & My Solutions - It Could Happen To You

The title of this post contains exactly the words I used to search on Google.
Why for this simple task I’m writing a post?
Because in this case, as happens often, the task is easy but we should know the logic behind the software and functionalities we want use.
To clarify the concept: we want

"Paste as Picture hiding the gridlines"

rather then

"Copy as Picture without gridlines"

HOW TO Copy from Excel and Paste as Picture without gridlines?

The correct tile of the this post should be

HOW TO Copy as Picture without gridlines from Excel

Click Copy -> Copy as Picture…

Copy as Picture

Under Appearance section, select “As shown when printed“, then click OK

Copy Picture As shown when printed

When you’ll paste it, for example in a Word document, the image will be without gridlines.

Did my HOW TO help you? Leave a reply.

HOW TO Copy from Excel and Paste as Picture without gridlines
Sergio Castelluccio

HOW TO configure SMTP Mail Setup using GMAIL

$
0
0

My Errors & My Solutions
My Errors & My Solutions - It Could Happen To You

Sometimes for testing purpose could be useful configure the SMTP Server in NAV using your GMAIL account

HOW TO configure SMTP Mail Setup using GMAIL?

HOW TO configure SMTP Mail Setup using GMAIL

SMTP Server: smtp.gmail.com
SMTP Server Port: 587
Authentication: Basic
User ID: your full Gmail address (e.g. example@gmail.com)
Password: your Gmail password
Secure Connection: Yes

Did my HOW TO help you? Leave a reply.

HOW TO configure SMTP Mail Setup using GMAIL
Sergio Castelluccio

HOW TO configure SMTP Mail Setup using HOTMAIL

$
0
0

My Errors & My Solutions
My Errors & My Solutions - It Could Happen To You

Sometimes for testing purpose could be useful configure the SMTP Server in NAV using your HOTMAIL/LIVE account

HOW TO configure SMTP Mail Setup using HOTMAIL?

SMTP Server: smtp.live.com
SMTP Server Port: 25
Authentication: Basic
User ID: your full Hotmail/Live address (e.g. example@hotmail.com or example@live.com)
Password: your Hotmail/Live password
Secure Connection: Yes

Did my HOW TO help you? Leave a reply.

HOW TO configure SMTP Mail Setup using HOTMAIL
Sergio Castelluccio

Streams cannot be used with client-side invoked automation objects

$
0
0

My Errors & My Solutions
My Errors & My Solutions - It Could Happen To You

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

Streams cannot be used with client-side invoked automation objects.
—————————
OK
—————————

Streams cannot be used with client-side invoked automation objects

Solution:
Use DotNET DataTypes instead of Automation.

For example:
An Automation Subtype ‘Microsoft XML, v6.0′.DOMDocument can be changed with
a DotNet Subtype System.Xml.XmlDocument

Did my solution solve your problem? Leave a reply.

Streams cannot be used with client-side invoked automation objects
Eclipses

You cannot create an Automation object on Microsoft Dynamics NAV Server. You must create it on a client computer.

$
0
0

My Errors & My Solutions
My Errors & My Solutions - It Could Happen To You

—————————
Microsoft Dynamics NAV Development Environment
—————————
You cannot create an Automation object “AutomationVariable” on Microsoft Dynamics NAV Server. You must create it on a client computer.

—————————
OK
—————————

You cannot create an Automation object {AutomationVariable} on Microsoft Dynamics NAV Server. You must create it on a client computer

Solution:
Replace

CREATE(AutomationVariable)

with

CREATE(AutomationVariable,FALSE,TRUE)

Did my solution solve your problem? Leave a reply.

You cannot create an Automation object on Microsoft Dynamics NAV Server. You must create it on a client computer.
Eclipses

Method not found

$
0
0

My Errors & My Solutions
My Errors & My Solutions - It Could Happen To You

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

Method ‘Page43.a60Action123a62_a45_OnAction’ not found.
—————————
OK
—————————

Method not found

Method not found

Solution:

  1. open in Design the Page as from the error message (in my case it was Page 43)
  2. press Ctrl+Alt+F4 or go in View -> Page Actions
  3. delete the value from the column “Name” (in my case it was Release)
  4. exit and save the object

Tips & Tricks: To find what is the action the error message is referring, in the message, after the word “Action” there is the value of the ID property (in my case it was 123)

Did my solution solve your problem? Leave a reply.

Method not found
Eclipses


TableData does not exist

$
0
0

My Errors & My Solutions
My Errors & My Solutions - It Could Happen To You

—————————
Microsoft Dynamics NAV Development Environment
—————————
TableData 404 does not exist.
—————————
OK
—————————

TableData 404 does not exist

TableData does not exist

Cause:
You are trying to import from a fob file an existing table in which was changed the value of the property DataPerCompany.

Solution:

  1. delete the Table with number as from the error message (in my case it was 404)
  2. import the object

Related Post: TableData 2000000001 does not exist.

Did my solution solve your problem? Leave a comment.

TableData does not exist
Eclipses

Failed to write session data

$
0
0

My Errors & My Solutions
My Errors & My Solutions - It Could Happen To You

Warning: Unknown: open(/home/content/123456/123456/tmp/sess_abc123456abc123456, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0

Cause:
In my case these warnings appeared after I migrate my website in GoDaddy.

Solution:
Contact the support of your provider and ask to create the folder

/home/content/123456/123456/tmp

as from the error message (I inserted 123456 for example, in you case number will be different).

Did my solution solve your problem? Leave a comment.

Failed to write session data
Eclipses

Microsoft Download Center Download button is missing

$
0
0

My Errors & My Solutions
My Errors & My Solutions - It Could Happen To You

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:
Change the URL of the page using https:// rather than http://

Did my solution solve your problem? Leave a comment.

Microsoft Download Center Download button is missing
Eclipses

Exception from HRESULT 0x800AC472

HOW TO test if a DateFormula variable is empty

$
0
0

My Errors & My Solutions
My Errors & My Solutions - It Could Happen To You

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.

HOW TO test if a DateFormula variable is empty
Eclipses

Cannot login to Facebook from Windows Phone

$
0
0

My Errors & My Solutions
My Errors & My Solutions - It Could Happen To You

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.

Cannot login to Facebook from Windows Phone
Eclipses

Google Chrome poor resolution on Windows 8.1

$
0
0

My Errors & My Solutions
My Errors & My Solutions - It Could Happen To You

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.

Google Chrome poor resolution on Windows 8.1?

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

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.

Did my solution solve your issue? Leave a comment.

Google Chrome poor resolution on Windows 8.1
Eclipses


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

$
0
0

My Errors & My Solutions
My Errors & My Solutions - It Could Happen To You

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.

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

HOW TO load xml from a file in C/AL

$
0
0

My Errors & My Solutions
My Errors & My Solutions - It Could Happen To You

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.

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

Working with dates in NAV

$
0
0

My Errors & My Solutions
My Errors & My Solutions - It Could Happen To You

To work following the standards avoids future issues.

In this post I’d like to suggest a way to convert dates in NAV.

Working with dates in NAV

A date in your system can have different formats depending on the preferences of your country and language.

You can come across different errors, for example Server and Client with different settings or ambiguous date because valid between two different formats (e.g. 05/04/2015 that could be DD/MM/YYYY or MM/DD/YYYY)

To avoid this confusion there is an International Standard that is the standard XML format that returns the date in the following format

YYYY-MM-DD

In NAV you can use the FORMAT Function (Code, Text) with the following declaration:

String := FORMAT(Value[, Length][, FormatStr/FormatNumber])

and using the FormatStr = 9 to return a string in XML format

FORMAT(varDate,0,9);

Note: Leaving the Length = 0 then the entire value is returned.

This example requires that you create the following variables:

Name DataType Subtype
varDate Date

Example:

varDate := DMY2DATE(5,4,2015);
MESSAGE(FORMAT(varDate,0,9));

It will return
Working with dates in NAV

How to convert from a string in XML format back to a field or variable of type Date?

To convert a string in a date in NAV we need to call the EVALUATE Function with the following declaration:

[Ok :=] EVALUATE(Variable, String[, Number])

It’s interesting that also in this function we can use Number = 9 to set that the string expected will be in XML format.

Using the standard XML format you will work in accordance to the standards and the configuration of your Server or Client, language or preference in your system will not affect your work and each date will be converted always in the same manner.

Remind that you can use the same functions and logic working with DateTime.

Did my post help you? Leave a reply.

Working with dates in NAV
Eclipses

Error fetching plugins in WordPress.com

$
0
0

My Errors & My Solutions
My Errors & My Solutions - It Could Happen To You

Accessing to your site on WordPress.com, it appears a warning
Warning on WordPress.com
and clicking to the warning will appear the following message:
This site cannot be accessed.
Disconnect Site

This site cannot be accessed. Disconnect Site
If you click on the menu Plugins the error message will be:
Error fetching plugins on YourSiteName
Error fetching plugins

If otherwise when you saw the warning you decided click on Disconnect Site then the error will move to the Plugin in your site that will not be able to connect to WordPress.com and when you will click the button Connect Jetpack a warning will be showed as follows:
Your website needs to be publicly accessible to use Jetpack: site_inaccessible
Error Details: The Jetpack server was unable to communicate with your site [HTTP 403]. Ask your web host if they allow connections from WordPress.com. If you need further assistance, contact Jetpack Support: http://jetpack.me/support/

site_inaccessible

Cause:
Jetpack WordPress plugin is being blocked from accessing the XML-RPC file into your site. You can test the access using a URL like

http://www.yourwebsite.com/xmlrpc.php

Information:
If you contact Jetpack support in their answer will be written

"Unfortunately, blocking XML-RPC is not a great solution for fighting security risks.  It's akin to selling your car because you don't want it to be stolen.

Your site's XML-RPC file is kind of like a communication gateway to your site.  Jetpack, the WordPress Mobile Apps, and other plugins and services will use this file to communicate to your site.  If this is blocked, you will have other issues pop-up down the road for the same reasons.

I would suggest contacting your hosting provider and asking them again to unblock your site's XML-RPC.  The most popular hosting providers out there have managed to find other ways to protect their servers without having to hinder your site and your ability to use services with your WordPress.

If they refuse to make any changes, and if you want to use apps and plugins like Jetpack, I'd suggest looking for a new host."

Considerations:
As suggested by Jetpack support you could ask to your provider to fix this issue but I prefer fix it by myself :-)

Solution:
Add the following lines in your .htaccess file

# BEGIN Unblock XML-RPC
<FilesMatch "xmlrpc.php$">
order deny,allow
allow from all
</FilesMatch>

# END Unblock XML-RPC

to allow access the XML-RPC file to everyone and install a plugin like Disable XML-RPC Pingback to block pingback requests as recommended by Jetpack’s author too (source: https://wordpress.org/support/topic/allow-xmlrpcphp-for-jetpack-only).

Did my solution solve your problem? Leave a comment.

Error fetching plugins in WordPress.com
Eclipses

HOW TO gain access to local drives in RDP

$
0
0

My Errors & My Solutions
My Errors & My Solutions - It Could Happen To You

Often when you are connected to a computer in a Remote Desktop Connection (RDP) you need to have access to your local drives or local files.

HOW TO gain access to local drives in RDP?

  1. Click Start, point to All Programs (or Programs), point to Accessories, point to Communications, and then click Remote Desktop Connection.
    Remote Desktop Connection
  2. Click Show Options and then click the Local Resources tab.
  3. Click More under Local devices and resources.
    Remote Desktop Connection - Local Resources
  4. Select the check box next to Drives (you could select some drives clicking the plus sign to show detail data) then click OK.
    Remote Desktop Connection - Choose local devices and resources
  5. Click the General tab, Type the name of the Computer and the Username (with format Domain\Username) and then click Connect.
  6. Type your Password and then click OK.

Did my HOW TO help you? Leave a reply.

HOW TO gain access to local drives in RDP
Eclipses

Viewing all 123 articles
Browse latest View live