Forum Discussion

Mickey_San_Miguel's avatar
4 years ago

"ItemIsLockedException" When Creating an ItemType Object

Hi Aras Community,

I'm having an issue and I'm hoping the community can help me solve it!  I'm running into a an issue when creating a relationship on an ItemType with a workflow. I'm unable to create/save my new ItemType while getting an arbitrary  error of "ItemIsLockedException".

When I remove the workflow from my new ItemType I'm able to create and save an object no problem. When I add the workflow back on, I can fill out my form, but as soon as I try to save my item it gives me the lock error. 

I'm happy to help with any other info you might need. 

Thank you in advance!

-Mickey S. 

8 Replies

  • Your Workflow seems to do "something" automatic, but it´s not easy to tell.

    1. Do you have fully build the Workflow by yourself? Do you use Workflow Methods?

    2. Is your Workflow connected to a Lifecycle?

    3. Do you just get the error message when adding a relationship, or also in other scenarios?

    4. Is your Relationship ItemType the same as your parent ItemType, or do you link a different ItemType?

    • Mickey_San_Miguel's avatar
      Mickey_San_Miguel
      Ideator III

      Hi there!

      Thanks for you response. I've added some details about the questions you had. 

      1. Do you have fully build the Workflow by yourself? Do you use Workflow Methods? I copied an existing workflow which was close enough for what we needed for me to make some modifications on. .No workflow methods. 

      2. Is your Workflow connected to a Lifecycle? Yes, the ItemType (manufacturing part request) contains a lifecycle and workflow. 

      3. Do you just get the error message when adding a relationship, or also in other scenarios? The error message happens when I try and create a new manufacturing part request. It allows me to fill out the form, although once I try and save my request, It spits out the "ItemIsLockedException" error. 

      4. Is your Relationship ItemType the same as your parent ItemType, or do you link a different ItemType? See Screenshot

      • angela's avatar
        angela
        Catalyst II

        Hi Mickey,

        I think you´re missing an blank start activity in your workflow.

        It´s hard to describe, but take a look at some of the OOTB workflows. They always have an "Start" activity with settings "automatic activity".