When I try to save my code in Eclipse I get this error:

cannot deploy while the apex code is currently executing

I don't know why because I am not deploying any code. Any idea how to solve this problem?

| improve this question | | | | |
  • What were you doing just prior to initiating the save? Were you running any tests? What kind of code is this for? Is this a schedulable class or something like that? Please think about relevant details you can share and what kind of plug-ins you may have running in Eclipse. – crmprogdev Apr 13 '16 at 12:46
  • i did testing the page and no test running at that moment.It just a normal code. – Himanshu jasuja Apr 13 '16 at 13:07
  • Even though the test had concluded, Eclipse was likely still downloading the debug logs from your org. That takes time and isn't instantaneous. – crmprogdev Apr 13 '16 at 13:08
  • someone from other system running the batch and now its showing 'organization administration locked salesforce' and other user is trying to save the code.i will try after some time. – Himanshu jasuja Apr 13 '16 at 13:14
  • 1
    Gotta coordinate with your fellow developers. – crmprogdev Apr 13 '16 at 13:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.