Microsoft Dynamics Error Messages

Activetoday

By now you probably read David Musgrave's series on Microsoft Dynamics GP and Illegal Characters and have come to realize that the single quote character is perhaps one of the biggest culprits in the errors you are receiving when running reports such as your age trial balances in both receivables and payables. It's enough for the single quote. Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012 When using the Microsoft Dynamics AX development environment, you should adhere to a set of best practices. If you cannot access your Dynamics 365 organization via your web browser, the Dynamics 365 App for Outlook will not be able to access your organization either. If you are unable to access your Dynamics 365 organization with your web browser, contact your Dynamics 365 administrator. Go beyond traditional CRM and ERP applications with Microsoft Dynamics 365—the connected business cloud that brings data, people, operations, and customers together.

I'm still new to using Dynamics NAV and I'm still a junior Dev so I have a few questions:

The Microsoft Terminology Collection is a set of standard technology terms used across Microsoft products. Develop world-ready applications for the Microsoft Windows platform and learn about the international features built into Microsoft’s top products. Translate text and web pages with free. Set up the NT AUTHORITY NETWORK SERVICE account as a SQL Server user who has access to the Microsoft Dynamics CRM databases. To do this, follow these steps: Click Start, point to All Programs, point to Microsoft SQL Server 2005, and then click SQL Management Studio. NOTE For Dynamics CRM 2011 it will be Microsoft SQL Server 2008. My ArcherPoint colleague, the illustrious Matt Traxinger, gave a presentation back at NAVUG Summit 2014 called “Principles of Good Design: Applying The Design of Everyday Things to Microsoft Dynamics NAV.” Matt also gave the presentation internally to the ArcherPoint development staff, and the concept was that we need to consider good.

I need to be able to Log error messages in NAV as they happen, I have the following fields in a table:

1 Entry No. Integer
2 Error Message Integer
3 Object ID Integer
4 Session ID Integer
5 User ID Integer
6 Object Name Text 250

It needs to log that information when an error occurs, I'm not really sure how to do it.

Vadim Kotov
5,5457 gold badges36 silver badges49 bronze badges
Wesley GuastellaWesley Guastella

1 Answer

Microsoft Dynamics Error Messages

I'm not sure if you are trying to log errors in a specific object you are working on.

Error

Typically, I use

in my custom code, when calling other Codeunits. This will give you the error description, which you can insert into your custom error log table.

Here is the documentation:

tbrasch72tbrasch72

Not the answer you're looking for? Browse other questions tagged microsoft-dynamicsdynamics-navcal or ask your own question.

This article is to show examples and explain further into diverse error messages appear during the startup process of Outlook, when using CRM 2015 for Outlook client.

An error occurred promoting this item to Microsoft Dynamics CRM”

Or

“An error occurred promoting this item to Microsoft Dynamics CRM.Item Name=”

“Only items in the default Microsoft outlook store can be promoted to Microsoft Dynamics CRM'

Concerning troubleshooting, Exchange Cache mode needs to be enabled so you are in a supported scenario. For Citrix environments it can be enabled for tests.

Next, look for the Outlook items (emails, Contacts etc.) which have a crmLinkState value of 1,3, or 4.

The below shows how to create the Outlook views for being able to identify the Outlook items which are causing the error messages mentioned at the beginning of this article. Using this outlook view, you will be able to identify those Outlook items with have the above mentioned CRM MAPI object property crmLinkState values.

1. Open the Outlook application with Microsoft Dynamics CRM Client for Outlook Configured. Click on the File option at the top Left corner

2. Now select Options from the File drop down.

3. Select Customize the Ribbon and check the Developer option, then click on OK.

4. Get back to the main page of Outlook and open any email that is tracked successfully. In the email window, click on Developer Tab and choose “Design this form”.

5. On clicking the “Design This Form” option, the page will display the fields on the form with the view set as “User-defined fields in this item”. Here you will find the “crmLinkState” field and since it is tracked successfully it is set to 2. (1 (WillBeLinked), 3 (WillBeUnlinked), 0 Unlinked and 4 (WillBeUnlinkedAndDeleted).)

6. If there isn’t a field by the name “crmLinkState” in any of the views of Select Item, then create one by the same name and Type as Number.

7. Click on Publish and select Publish Form As.

8. Now enter a name for the Form as “CRM Debug Form” and then click on Publish.

9. Once done, get back to the Main Outlook page and click on the Search Bar, then click on the + More icon.

10. In the + More drop down select crmLinkState.

11. Once selected the “crmLinkState” field, we will receive the field under the search bar along with an option to enter the Link State i.e. either 1, 3, 4.

12. Open the emails displayed below and Untrack them.

13. In this way we will have to Untrack all the emails with crmLinkState 1, 3, 4 and we will never receive the error pop up 'An error occurred while promoting this item to Microsoft Dynamics CRM' and 'An error occurred while promoting this item to Microsoft Dynamics CRM.Item Name='

Please Note:

The search functionality of Outlook is limited; you will have to search each folder individually to identify those MAPI objects we were speaking about previously. If you would select search in all folders of Outlook or the mailbox, this won’t work, you will have to run this search query folder by folder.

After you identify the items, you will need to find them in Outlook and untrack them ( set the crmLinkState to 0).
An alternative way to identify the affected outlook items is using MFCMAPI or other MAPI property viewing tools:

The below property of the store taken from MFCMAPI

<property tag = '0x3400000B' type = 'PT_BOOLEAN' >
<ExactNames>PR_DEFAULT_STORE, PidTagDefaultStore</ExactNames>
<Value>False</Value>
</property>

In this scenario, users might have shared mailboxes, other mailboxes then the default mailbox of the Outlook Profile or PST files where they were trying to track emails into CRM. When looking for the emails with a crmLinkState value of 1,3, or 4 you will need to check each folder of the mailboxes one by one as the search performed on the mailbox itself might not yield any result.

Best Regards

EMEA Dynamics CRM Support Team

Common

Share this Blog Article on Twitter

Common Error Messages


Follow Us on Twitter

General Error Messages