Hi Babu,
Since this is Legacy, this error is usually caused by an encryption/decryption mismatch between GP and MR. The 'sa' account should always work because it is not encrypted. You'll want to do the following:
1. On a machine where GP is installed and working, check the ODBC (you will need this for later):
-Open File Explorer.
-Browse to C:\Windows\SysWOW64.
-Run odbcad32.exe.
-Under the System DSN tab, select the GP ODBC and click Configure.
-Take a screenshot of the exact value entered on the Server field. You will need this for later.
2. If you have other installs of GP, check that the Server field matches on those as well. Each of those fields has to be the same because it is used for the encryption of the GP logins.
3. Re-deploy MR legacy:
-Get all users out of Management Reporter and make a backup of the ManagementReporter SQL database.
-Log into the MR server with a network account that is configured as an Administrator in MR and a sysadmin in SQL.
-Start the MR Configuration Console.
-Select the legacy integration from the left under ERP Integrations and click the Remove button at the top-right.
-Click File -> Configure.
-Select the GP Legacy option and click Next.
-Enter the value you confirmed from the GP ODBC into the Database Server field. Enter the text exactly (space and case sensitive).
-Use the ‘sa’ account and select the DYNAMICS database from the drop-down.
-Click Next and Configure.
-Once deployed, select the legacy integration from the left and click the Import button.
-Enter ‘sa’ credentials again.
-Mark the “Skip Import” button next to any companies that aren’t “Already Imported”.
-Click the Import Companies button at the bottom-right.
-You may receive a message for each company saying something about updating the connection string. Click Yes or Ok through all of them.
4. You can now test MR. The ‘sa’ credentials should always work. If the GP credentials fail, you will need to have the user reset and re-encrypt them. This needs to be done from a machine where you verified the GP ODBC field is set exactly like you deployed MR:
-Log into GP with the user account in question.
-Change the GP password.
-Close GP, re-open it, and log in with the new password. Don’t skip this step as this is when it becomes re-encrypted.
-Restart MR Report Designer and test the login again.