Answered by:
onSave error

Question
-
Hi,
We are getting a error when we try to save an appointment.
we are running CRM 2011 on premises and have updated to rollup 12 we have another environment that is running crm 2011 rollup 6 and that works fine. We have stripped out all the javescript but still get the error.
Has anyone got any ideas what this could be and how to fix it?
Regards
Aidan
- Edited by Aidan Friday, May 24, 2013 9:21 AM further detail
- Changed type JLattimerMVP, Moderator Friday, May 24, 2013 1:35 PM
Friday, May 24, 2013 9:20 AM
Answers
-
Appointment_main_system_library.js is not a standard microsoft library, is the old javascript code moved to a CRM 2011 webresource because your environment is a migration from CRM 4.0 environment.
and because you have this issue after you upgraded to rollup12, you need to rewrite the ccde inside that library with CRM 2011 Xrm javascript.
My blog: www.crmanswers.net
- Proposed as answer by JLattimerMVP, Moderator Friday, May 24, 2013 1:35 PM
- Marked as answer by Payman BiukaghazadehEditor Tuesday, May 28, 2013 3:36 PM
Friday, May 24, 2013 12:15 PM -
I guess your installation is upgraded from 4.0. Old JS is collected in the Appointment_main_library.js. In this you will find function Form_onsave() which contains your js which give you the error.
- Marked as answer by Payman BiukaghazadehEditor Tuesday, May 28, 2013 3:36 PM
Friday, May 24, 2013 12:17 PM
All replies
-
Check if Your empty JavaScript library is referenced OnSave.
Friday, May 24, 2013 12:03 PM -
In the form there are no on save methods referenced. only one that is as part of the save button on the ribbon is Appointment_main_system_library.js. and this is a microsoft standard one i think.Friday, May 24, 2013 12:09 PM
-
Appointment_main_system_library.js is not a standard microsoft library, is the old javascript code moved to a CRM 2011 webresource because your environment is a migration from CRM 4.0 environment.
and because you have this issue after you upgraded to rollup12, you need to rewrite the ccde inside that library with CRM 2011 Xrm javascript.
My blog: www.crmanswers.net
- Proposed as answer by JLattimerMVP, Moderator Friday, May 24, 2013 1:35 PM
- Marked as answer by Payman BiukaghazadehEditor Tuesday, May 28, 2013 3:36 PM
Friday, May 24, 2013 12:15 PM -
I guess your installation is upgraded from 4.0. Old JS is collected in the Appointment_main_library.js. In this you will find function Form_onsave() which contains your js which give you the error.
- Marked as answer by Payman BiukaghazadehEditor Tuesday, May 28, 2013 3:36 PM
Friday, May 24, 2013 12:17 PM