Wednesday, 2 March 2016

How to enable Remember Username and password in Dynamics GP login screen.

In Dynamics GP2010, 2013, 2015 GP allows you to save username and password so that users need not enter their username or passwords each time they login.

But by default you may see GP would have disabled the Remember user and password checkbox.
How to enable it? Here is the solution.
Solution:
Navigate to   Dynamics GP|Tools|Setup|System|System preferences.



Check the Option Enable Remember User checkbox. Click OK.
So when you login next time you will the remember user and password option enabled.
I have tried this and has worked for me, but unfortunately not all the time and not in all the machine. After a small investigation I found there is a switch inDex.ini to be included. Unfortunately GP didn’t add by itself .So open you Dex.ini file in your GP installation folder. Check for the switch
RememberUser=True
If it is not there then add this Switch to your Dex.ini and open GP again. It works for sure. 


Create Chunk file in dexterity for Dynamics GP

  1. Open Dexterity Utilities
  2. Navigate to File Menu –> Open Source Dictionary (Dictionary you used for your development.)
  3. Go to Utilities ->Extract
  •                   Give a name for your Extracted Dictionary
  •                   Now your Extract dictionary will have all your new forms and reports.
  1. Navigate to File Menu –> Open Destination Dictionary ( Use extracted dictionary created in previous step.)
  2. Go to Transfer ->Dictionary module
  •                   Modified GP Forms and Reports will be updated
  1. Close the Source and Destination Dictionary
  2. Navigate to File Menu –> Open  Editable Dictionary ( Use extracted Dictionary )
  3. Go to Utilities ->Product Information
  •                     Enter the details of your product
  1. Go to Utilities
  2. Auto Chunk
Before performing the above steps its a good and time saving practice to create macro file so that you need not again and again do the above steps.Below are the steps to create macro file in dexterity utilities.
Before creating chunk ,in menu bar you can see a menu named Macro.
  1. click Macro
  2. select Record
That’s it, from then on what ever you do inside the window will be recorded. once you have completed all the above steps stop macro. Next time when creating chunk file just run the macro.
Also do have a look into David Musgrave Best Practice for Dexterity Version and Build Numbers explaining a very important concept that should be followed in chunk creation process.

The type or namespace name 'Dynamics' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) issue in Dynamics GP 2015 R2

Error :

         The type or namespace name 'Dynamics' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) issue in Dynamics GP 2015 R2.
 


Solution :

            Step 1:    Change the .Net framework to 4.5.1 and build the project
          Step 2:    Close the application and Reopen Visual Studio to Run as Administrator


          

Tuesday, 1 March 2016

Microsoft sql server native client 11.0 sql server A.NET framework error occurred during execution of user-defined routine or aggregate "GetAsignedUsers"

Error Message :

 Microsoft sql server native client 11.0 sql server A.NET
framework error occurred during execution of user-defined routine or aggregate "GetAsignedUsers"


Solution :

Run this against your Dynamics database:

exec wfDeployClrAssemblies