3

I am facing License Limit Exceeded Exception when trying to insert a new user through Apex rest api class and error is given below

Insert failed. First exception on row 0; first error: LICENSE_LIMIT_EXCEEDED, License Limit Exceeded: []

How can I avoid this exception?

6

There is no solution to this since you have consumed all the license that were allocated for your org .

Deactivate the existing users if you are testing your code .

You can also purchase additional license to avoid this .

  • Yeah......Mohith, I am thinking you are right..... – KS Kumaar Jun 24 '16 at 11:20
  • 2
    @KSKumaar - FYI... if you create a user within a Unit Test, then license limits are not considered. If you are testing code, then try to do it within an Apex Unit Test. – JDB still remembers Monica Jun 24 '16 at 14:42

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.