Tuesday, August 9, 2011

CRM 2011 Error Message “An error occurred when verifying security for the message.”

This is a very strange error that we got with the CRM server that we were working with. After getting this error we started researching and found some URL’s containing information regarding this.  The answer we finally got was very strange.

The reason for this is the server was in a different time zone and our development machines were in a different time zone. When we changed the development machine time zone and go the time equal to the server time, the error disappears and we were able to get the result. Very strange ha… one might be wondering whether CRM is not working with different time zones, but it is. I will be searching on this bit more just to find out why this is happening.

The URL that helped me is below.


Further to this after searching we found out in the client machines didn't counter the day light saving  and once we started this to counter it we didn't even have to change the Time Zone. This issue is because server is trying to synchronize  the time and since the times are not getting correctly synched we are getting this generic message.

Refer the URL below.


1 comment:

  1. I am trying to create account entity on dynamics crm side, through java code.
    I am getting error "An error occurred when verifying security for the message.". So, after googling the issue I found that the client and server time should be in sync. My timezone is "IST", so I guess the urn I should be using is "crmapac:dynamics.com" (correct me if I am wrong). The wsdl provides "crmna:dynamics.com", so I changed it to the "crmapac". I also made changes in the stubs generated through the wsdl.
    Still this error persists. Also, this error is not consistent. Sometimes I do get '401 Unauthorized'.
    I need to do this urgently.
    Kindly, help me with this.


Retrieving Calendar of a Bookable Resource in Dynamics

There are occasions where we need to retrieve working days and working times of a resource in Dynamics grammatically. This is quite possible...