Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7604297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T23:52:28+00:00 2026-05-30T23:52:28+00:00

I used the Apex Test Execution screen to run all the test cases in

  • 0

I used the Apex Test Execution screen to run all the test cases in a sandbox org.

Several of the test cases passed and then progress appeared to hang on one test case which was previously working.

I then used the Abort button to try and cancel the test execution which appeared to work.

Now any subsequent attempts to run tests never progress past the Queued state.

ApexTestQueueItem stuck in Queued State

Selecting an individual apex class and using the synchronous Run Test button results in the following error message:

Organization Administration Locked

The changes you requested require
salesforce.com to temporarily lock your organization’s administration
setup. However, the administration setup has already been locked by
another change. Please wait for the previous action to finish, then
try again later.

Trying to save changes to an Apex Class from Eclipse gives the error:

  • Save error: Unable to perform save on all files: The changes you requested require > salesforce.com to temporarily lock your organization’s administration setup. However, the
    administration setup has already been locked by another change. Please wait for > the previous action to finish, then try again later. (ALREADY_IN_PROCESS)

If I query the ApexTestQueueItem table there appear to be 3 test cases stuck with the Processing status.

ApexTestQueueItem stuck in Processing

How can I clear out these ApexTestQueueItems from the Processing state? I’m assuming that this will get me past the Organization Administration lock.

I did check the Setup Audit Trail and the only recent changes were from my user to Apex Classes.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T23:52:30+00:00Added an answer on May 30, 2026 at 11:52 pm

    Updated

    My support case got escalated to the “Senior Support Team”. They did something to my sandbox and advised that it is a known issue and to only run test cases for one class at a time via the Apex Class UI (E.g. https://xyz.salesforce.com/01pL00000000001).

    I should not run the test cases via:

    • The Apex Test Execution UI
    • Manually creating ApexTestQueueItem records
    • Apex Classes – [Run All Tests]

    I’m assuming that Eclipse is OK at the moment for individual test cases as it isn’t async in nature.

    I’d like to be able to tell you what exactly they did to my problem sandbox orgs but I’m not sure at the moment. Hopefully a parallel question on the developerforce forum will produce some answers – Using Apex Test Execution results in a “Organization Administration Locked” that doesn’t clear

    Some interesting info from Twitter:

    “…been working on it all day. Hope to have the fix out next wk.” – Rich Unger

    “@rich_unger great to hear, thanks for update, any short term workaround? if not, I’ll move my code to another org until then” – Michael Gallagher. “@mjgallag24 workaround is to not use async testing” – Rich Unger

    So to answer my own question of “How can I clear out these ApexTestQueueItems from the Processing state?”

    Answer: You can’t currently if you are experiencing the “known issue”. The only option is to raise a support case and wait for Salesforce to clear it.


    I’ve tried the following anonymous apex to clear the apex test cases out of the processing queue:

    List<ApexTestQueueItem> items = [Select Id,ApexClassId,Status,ExtendedStatus,ParentJobId from ApexTestQueueItem where Status != 'Completed'];
    for(ApexTestQueueItem atqi : items) {
        atqi.Status = 'ABORTED';
    }
    update items;
    

    This doesn’t seem to have the desired result as on a subsequent SOQL query to ApexTestQueueItem the Status column remains unchanged.

    I went looking for the Apex job under [Administration Setup > Monitoring > Apex Jobs] but none of the records where JobType=TestRequest appeared.

    Next I tried aborting the job using anonymous apex:

    System.abortJob('707L0000000FgZIIA0');
    

    The AsyncApexJob changed Status to ‘Aborted’.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I used to work with eclipse for nearly all the languages I need. I'm
I bid for a freelance gig earlier, coding in the Apex language, used for
Used railsready, then passenger w/ apache2, finally copied my app to /home/myapp. Inserted the
Used http://www.ilbcfreeware.org/software.html - I only get static from the files that ilbc_test.exe creates. Does
I have an APEX class that is used to send an email out each
I used CouchDB 1.1.1 with self-signed certs fine for some time. Then, I purchased
We used tinymce in our application and trying to migrate to CKEDITOR . All
Used to be quite happy with the Ctrl + Shift + F10 shortcut in
We used the undocumented xp_fileexist stored procedure for years in SQL Server 2000 and
I used the LINQ to SQL designer in Visual Studio to create an object

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.