Friday, June 14, 2013

Dynamics GP – Not able to change the user password

One of our customer reported that they cannot change their user’s password and got the below error message.

“The creation of login failed for an unknown reason. Contact your SQL Server administrator for assistance.”

Error:



We have analyzed and found the cause of the issue as follows,

Cause:
The user (Demo User) does not have a corresponding SQL login.



However, the user is present in the GP (TWO) company database and the DYNAMICS database.



Resolution:
To resolve this issue, User ID needs to be re-created. Follow the below steps to recreate the issue:
1. Note down the tasks, roles, company access assigned for the particular user.
2. Go to Microsoft Dynamics GPàToolsàSetupàSystemàUser.
3. Delete the particular user.
4. Make sure that the particular user is deleted from GP (TWO) company database and DYNAMICS database in the SQL Server.
5. Now, recreate the user with the same User ID and assign the corresponding roles and tasks.



Hope this helps!!!

Revaluation Journals & Reclassification journals


Revaluation Journals
This journal can be used for changing the inventory value of items, for example after a physical inventory.
The revaluation journal lets you see the existing value of an item and assign a new value to it.

Correction of Incorrect Posted Documents
If you have posted a document, for example a purchase order, and discover that some of the information on the lines was incorrect, you can correct this posted document.
In the following, an incorrect posted purchase order is used as an example.
There are three ways of correcting a posted purchase order:
·         Creating an identical credit memo and a new purchase order in order to reverse the posting.
·         Revaluing the posted items.
·         Creating a credit memo and posting it with an item charge.
Here we have taken the second option that is revaluing the Posted items
Path of using Revaluation journals is shown below
Warehouse->Inventory->Revaluation journals


In the above screen
Document no:  you can give your own document no or through no. series also we can generate automatic no series.
Item No: Select the item number which was posted with wrong cost in the purchase order
Applies-to Entry: Select the entry for which cost posted wrongly


Then enter the actual cost need to post for that item in Unit Cost (Revalued) column.
 
if you post this line, it will automatically adjust that cost of that old entry.
So if you go to the respective entry you will find the difference. Like below


Go to the item card and click on Inventory field and select the entry for which we have posted the latest cost.
Then click on the Cost Amount (Actual) field it shows the cost entries posted for that entry.


In which we can see all the entries posted against that item including adjustment entries.
Reclassification Journals:

Similarly you use the Item Reclassification Journal window to adjust inventory when you transfer items between different locations or between bins. 

Thursday, June 13, 2013

Use of Shared Variables in Dynamics CRM 2011 Plugins

Introduction of Shared Variables in MS CRM2011 Plug-in might not been used by most of us, as we are not aware of its unique feature. This Shared Variables will be useful for sharing the data during complex plug-in development by sharing the data between plug-ins registered on both the pre and post events.

Any values can be stored in the plugin context of Pre-event will be available in the Post-event of the plugin. This way we can avoid storing the values in a custom attribute. Certain data validation which needs to be done at post-event can be achieved by passing the value from pre-event of the plugin. This also helps for performing business logics like updating related records asynchronously.

The below code snippet illustrates the usage of Shared Variable.  This sample explains the data validation done at post-event operation based on the value received from the pre-event operation where a flag is updated with a value at the pre-event level and sent to the post-event through shared variable.

Pre-Create (Entity Name) Plug-in
if (pluginContext.MessageName == "Create")
                        {
                            if (pluginContext.InputParameters.ContainsKey("Target") && pluginContext.InputParameters["Target"] is Entity)
                            {
                                Entity targetEntity = context.InputParameters["Target"] as Entity;
                                if (targetEntity != null)
                                {
                                    bool setFlag = false;

                                    //Check data validation for attributes                                  
                                    string country = targetEntity.Attributes["address1_country"];
                                    OptionSetValue industryCode = (OptionSetValue)target.Attributes["industrycode"];
                                   
                                    // Country is US and Industry Type is Accounting are Preferred 
                                    if (country.ToLower() == "us" && industryCode.Value == 1)
                                    {
                                        setFlag = true;
                                    }                                   
                                    pluginContext.SharedVariables.Add("flag", setFlag);
                                }
                            }
                        }

Post-Create (Entity Name) Plug-in
if (pluginContext.MessageName == "Create")
                        {
                            if (pluginContext.InputParameters.ContainsKey("Target") && pluginContext.InputParameters["Target"] is Entity)
                            {
                                Entity targetEntity = pluginContext.InputParameters["Target"] as Entity;
                                if (targetEntity != null)
                                {
                                    if (pluginContext.SharedVariables.ContainsKey("flag"))
                                    {
                                        bool recievedFlag = (bool) pluginContext.SharedVariables["flag"];
                                        if (recievedFlag)
                                        {

                                        }
                                    }
                                }
                            }
                        }

This method lets you to pass data between plug-ins without having to customize the system by creating hidden fields on entities.

Note: SharedVariables (collection of key/value pairs) property is available in the IPluginExecutionContext of the execution pipeline.

Thursday, June 6, 2013

Synchronize MS CRM 2011 Reports with Report Server

Many of you have wondered about missing the out of box reports after installing MS CRM 2011 and SSRS connector or while you reconstructed the environment after a crash. Probably you might have unknowingly deleted the CRM OOB reports in CRM or Report Manager.


Don’t worry about this; as these OOB reports can be brought back anytime into CRM with the provision or tool provided by MS. You can manually synchronize the reports using the Tools available PublishReports.exe in \Program Files\Microsoft CRM\Tools folder on CRM server.

Run this in the command prompt:
Syntax – PublishReports.exe  <OrganizationName>>




Once this completed you can see the OOB Reports back in MS CRM 2011.


Hope this is helpful!!

Friday, May 31, 2013

How to set a password for a field in Dynamics GP without customization?

There are scenarios in which management doesn't allow to edit sensitive fields like Item Cost, Price, etc. by a GP user without knowing a password. This is one of the most essential needs for any customer in their daily business routine.

We quite often receiving questions like,

“Is there any way I can set a password for a particular field before editing?”

“Would it be possible to hide or disable a particular field?”

“Is there any add-ons available to set the security for the fields?”

The questions may be different but the answer/solution is one which is Field Level Security tool available in GP. If the tool has been already registered then we can set the password in no time. Otherwise, purchase this tool from your Partner.

Let us see how to set a password for Standard Cost field in Item Maintenance window.

Before following the below steps make sure the Field Level Security is registered in GP.
(Microsoft Dynamics GPàToolsàSetupàSystemàRegistration)



Prompt password for editing Item standard cost for a particular user:

1. Go to: Microsoft Dynamics GPàToolsàSetupàSystemàField Level Security.

2. In the Field Level Security window, click the Add button.



3. Enter Field Security ID and Description then click the below marked lookup button to open Resource Description window.



4. In the left pane of the Resource Description window, expand Microsoft Dynamics GP then select desired product and module.



5. Then expand the Item Maintenance form and select the desired window. In the right pane double click the desired field you want to set password.



6. Select the Security Mode as “Password After”.



7. Enter the Password ID.



8. Click Add button.



9. In the Password Maintenance window enterPassword ID, Description and Password and click Save.



10. Click Save in the Field Security Maintenance window.



11. In the Field Level Security Window, select User and Company to set password protection and mark the Field Security ID then click Apply button.



12. Finally click OK button.


13. Login with the user that you had set the password protection in Field Level Security.

14. If the user tries to modify the Standard Cost then system will prompt for a password.



Other Security Features available in Field Level Security

You can select the following security modes from the Field Level Security Maintenance window to give security to fields, forms, or windows.

Password Before   You must enter a password before getting access to a field.
Password After   You must enter a password after modifying a field for the changes to be saved.
Warning Before   A warning will be displayed and access to that field will be denied.
Lock Field   You can’t use or modify the field.
Disable Field   The field will be displayed but it will not be available.
Hide Field   The field won’t be displayed.
Password Window   You must to enter a password before access to the window is permitted.
Disable Window   Enter the system administrator’s password to have access to the window.
Password Form   Users or classes must enter the correct password before access to the form is permitted.
Disable Form   You must enter the system administrator’s password to modify the form.

Hope this helps!!!

Crystal report print Engine Errors in Dynamics SL

We got one requirement to Export report into PDF format while Printing the  invoice under Flexible Billing. We did some customization in the Invoice Print screen for the PDF Export Functionality. Also we faced several issues during the implementation in Production server. Here are the workarounds to rectify the below issues.
  
Crystal report print engine: 544 Access to reports denied. Another program may be using it.

This below error has been shown during the PDF Export into specified share folder.


Solution:


Ensure the SHARE and NTFS permissions to the mapped folder for the current user.

Crystal report print engine Error: 999 – Operation not yet implemented.


Solution:

1.   To make ensure if there are custom tables without proper access rights and give proper rights to SL Users.
2.   Fonts used in the report not supported by the system and Sub reports may be causing the problem.
Cannot start print job and Crystal Print Engine Error 567
When we try to print a report in Microsoft Dynamics SL you receive the following error messages.

Error Message 1

Crystal reports Helper Application for Solomon IV
Cannot start print job.
Report: <C:\sol\Solomon\Usr_Rpts\<XXXXX>.RPT

Error Message 2

Crystal Print Engine Error 567 – Error in File <C:\sol\Solomon\Usr_Rpts\<XXXXX>.RPT>; Page header or footer longer than a page.

To resolve this problem, use either of the following resolutions.

Solution:
  • Renaming the customized reports in \USR_RPTS. This forces the standard report to be run from the module directory. If the problem still continues to occur, use the following steps.
  • If there is a backup of the report file (Xxxx.rpt), restore the file from the backup.
  • Log off the workstation and then log back on. Make sure that you have the appropriate permissions to print.

Hope this post will be helpful for solving Crystal report issues with Microsoft Dynamics SL.

Creating New Entity for Outlook Synchronization in Dynamics NAV


          This article assumes that the user already had hands on experience on the outlook synchronization with the standard entities in the Microsoft Dynamics NAV.
          
Consider a scenario of creating an entity for the customer table. Likewise you can create any table as an entity from the Dynamics NAV db.


Steps to be followed:

1.       In the Navigation pane, go to AdministrationàApplication setupàMicrosoft Outlook Integration.
2.       Select Outlook synch. Entities.
3.       Press F3 to insert a new entity. Enter the code as “CUST” also you can specify the Description as Microsoft Dynamics NAV Customer.
4.       Choose “Table No” as 18. The Table Name will appear automatically
5.       Now in the Outlook Item, Press F6 and choose Contact Item.
      
      Note: Consider creating a customer in the contact format in the outlook.



6.       Link the customer table field with the corresponding outlook property of the contact item.
7.       Select the Synch.Entity menu item and choose Fields. Now outlook Fields window open for you.
8.       Link the field with the corresponding outlook property like the image below           

9.       The Salespersoncode is the user-defined. So the outlook property needs to be typed manually

             Note:
                I have synchronized the customer based on the salesperson code. For example, the customer who           are all having Salesperson code =RS needs to be filter.

10.   Press Escape and get out of the window.
11.   Your New Entity is ready to work now.
12.   In the Navigation pane à go to outlook Synch. User Setup which is next to Outlook Synch. Entity
13.   Here you need to create a new setup for the Customer.
                 a.       Select the User ID
                 b.      Synch. Entity Code as CUST.
                 c.       The condition as Salesperson code=CONST(RS).
14.   Before proceeding further, you can check once whether we have assigned any customer as salesperson code RS. Now your screen will look like below.
       



Settings in Outlook:

1.       Click settings
2.       Now in the Connection tab. Click Test Connection for the changes will be refreshed in the settings.
3.       Now in the Folders Tab we can able to see the New Empty Text box for selecting the folder for the new entity (“Microsoft Dynamics NAV Customer”).
4.       Click browse and select any newly created contact folder. It won’t allow you to select any other folder. Since in the Navision we have configured to the Contact Item only.
5.       If you need Filters you can also apply.
6.       Click Apply and then Ok.
7.       Now Click Full synchronization.
8.       The details of the customer who is having the Salesperson code as RS will be displayed.

Keep creating more entities....