This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - Error before a part is saved "Failed to get the affected Item Itemtype"

newcomer - Tuesday, July 3, 2012 7:20 AM:

Hi all,

when I create an item of itemtype "Part" everything works fine in the first run. I can enter data, add related parts in the BOM tab... but after the item got saved and unlocked for the first time, it can’t be updated again. The error from the title shows up after I try to save the updated item.

This is the first time we want to use the part itemtype... maybe this behavior is normal and I'm missing something? Otherwise any ideas why I get the error?

Greets

newcomer



Brian - Wednesday, July 4, 2012 7:37 AM:

Hi there,

No this is not normal behaviour for the Part item type.

Have you got any custom code running as Server Events for the Part item type? I'm guessing not since this is the first time you have used the Part item type.

Is that the only error detail you have?

Does it happen if you create a single part with no related items and then try to save and then edit it?

Cheers,

Brian.



newcomer - Wednesday, July 4, 2012 8:36 AM:

Hi,

some updates: Because we don't use any Aras solutions we just exported the part itemtype from a solution database and imported it in our own database. I guess there is something missing in the package we created. What is the best way to find all the stuff the part itemtype requires?

Greets

newcomer



Brian - Wednesday, July 4, 2012 9:37 AM:

Hi there,

I suggest you go and have a look at the Part item type in the solutions database that you exported the package from.

Have a look at all of the Tabs and see what is in that Item type that is not in your database item type. Then you will need to look at the Part form and check for any Methods that are attached to fields or the form itself.

Spend some time looking at the Solutions database and add/edit some Parts in it to get a feel for how it should behave.

Depending on what you are doing and how much data you have in your system you could just export and then import the entire "PLM" solution. That way you will get everything that belongs to that solution as it is defined by Aras.

You will get some stuff you don't need (yet) but that is not a bad thing.

Cheers,

Brian.