Wednesday 23 October 2013

No device error in Dynamics Ax.

Recently I wanted to avoid that the infolog pops-up with several

'No Device'

error messages when opening the AX client with ConfigKey Telephony Integration enabled.
This error message is caused by the ActiveX component for the phone integration on form smmPhone which returns an error for each phone device which is offline.

I did the following code changes to prevent the error message:

\Forms\smmPhone\Designs\Design\ActiveX:axPhone\Methods\onEvent_TapiError

void onEvent_TapiError(int errorCode)
{;
    if(errorCode != -2147483582) // Avoid 'No Device' Error
        error(this.errorMsg(errorCode));
}

                                                                          (OR)
This error comes as a result of the Microsoft Dynamics File being unable to locate the CmxPhone.ocx File in this path: C:\Program Files\Microsoft Dynamics AX\Common

To solve this error:

1. Close Axapta

2. Copy the “smmPhone.ocx” file from this path : C:\Program Files (x86)\Microsoft Dynamics AX\Common and paste it here: C:\Program Files\Microsoft Dynamics AX\Common

3. Next, you rename the file to “CmxPhone.ocx”

4. After you do this, you open the command line (cmd) and enter in this command: regsvr32 "C:\Program Files\Microsoft Dynamics AX\Common\CmxPhone.ocx" 
(Note: This command registers the file on the system)

5. Press Enter. Open Axapta back up and the software should open without the error message popping back up.

No comments:

Post a Comment