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.
http://social.microsoft.com/Forums/en-US/crmdevelopment/thread/a113c062-3879-4a79-8236-ac60fdfbf2bc/
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.
http://blogs.microsoft.co.il/blogs/rdt/archive/2011/04/04/accessing-dynamics-crm-2011-organization-service-it-s-all-about-timing.aspx
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.
http://blogs.microsoft.co.il/blogs/rdt/archive/2011/04/04/accessing-dynamics-crm-2011-organization-service-it-s-all-about-timing.aspx
I am trying to create account entity on dynamics crm side, through java code.
ReplyDeleteI 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.