"Classification cannot be changed after saving the item" error using the .Net API to update requirement
I am using Aras 11 SP15. I am trying to update a requirement I created. Here is my code: using System; using System.Collections.Generic; using Aras.IOM; namespace TestArasProject { public static class Program { public static void Main(string[] args) { HttpServerConnection conn = IomFactory.CreateHttpServerConnection(serverUrl, dbName, username, password); Innovator inn = IomFactory.CreateInnovator(conn); conn.Login(); Item updateItem = inn.newItem(requirement, "edit"); string internalId = "FB20D91203DC4E3EB30DBA0CFBE4FD0F"; updateItem.setAttribute("where", "[" + requirement.Replace(' ', '_') + "]." + "config_id" + " = '" + internalId + "' AND [" + requirement.Replace(' ', '_') + "]." + "is_current" + "='1'"); // updating the name of the requirement updateItem.setProperty("req_rm_title", "Test Requirement" + Guid.NewGuid()); Item result = updateItem.apply(); Console.WriteLine(result); Console.WriteLine(result.isError()); Console.ReadLine(); conn.Logout(); } } } I am getting the following error: <SOAP-ENV:Envelope xmlns:SOAP-ENV="">schemas.xmlsoap.org/.../" xmlns:i18n="">www.aras.com/I18N"><SOAP-ENV:Body><SOAP-ENV:Fault> <faultcode>1</faultcode> <faultactor /> <faultstring>Classification cannot be changed after saving the item.</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope> I checked the XML which was getting created to update, this XML did not even contain the Classification property nor am I trying to update it. Here is the XML: <Item isNew=\"1\" isTemp=\"1\" type=\"re_Requirement\" action=\"edit\" where=\"[re_Requirement].config_id = '3AFD850B785E43F1B854EE404469FA87' AND [re_Requirement].is_current='1'\"> <req_title>2019_06_24_12_25_42_850_-{AB}</req_title> </Item> I noticed that Classification (Type) is a default value on UI still I need to explicitly pass it through the API. This is not the case with Risk or Complexity type of fields. How do I update a requirement?20KViews0likes14CommentsError for the New Workflow for Components
Hi, I would like to simplify the Express ECO workflow for "component" classification Parts. I created a new Express ECO workflow by saving as the original. I am using an internal method to get different workflows for different classifications. So I defined the new workflow for the "Components" in the method. I deleted "In Planning" activity in this new workflow. However, I get the below. I can not understand what the exact error is and how to fix it. "Aras.Server.Core.ItemIsLockedException" thanks Duygu17KViews0likes10CommentsFilter List from Part Classification
Hi, instead of classification field in the PART item type, if we want to define subtypes in a separate field in the PART form how can we configure the filter list? For example, we have component types as Capacitors, Resistors, etc. For Capacitors, we have a detailed subtype list and we want to define them as filter list. thank you Duygu13KViews0likes6Comments[Part Classification] How to create AML to add classification for Part
Hi everyone, As my picture above, I want to use AML to edit Part and set value Item Class, Class Path and some value like m_Capacitance Uni, etc. I'm just a newbie in Aras. So please help me or let me know some keywords to resovle this issue. Thanks a lot.Solved6.1KViews0likes2CommentsDynamic Workflow for DCO
Hi, I want to have multiple workflows for different DCO subclasses. I've seen a code here but I can not work with it. the code is : switch (classification) { case "DCO I": wflMapName = "Express DCO-I"; break; case "DCO II": wflMapName = "Express DCO-II"; break; } Item wflMap = inn.getItemByKeyedName("Workflow Map",wflMapName); Item wfl = this.instantiateWorkflow(wflMap.getID());5.6KViews0likes2CommentsExtended Classification issue
Hi, Trying to set up a small tree. I could build the tree with 6 classes, and 10 attributes with attribute inheritance from parent to child class. But I am not able to Restrict Selection To Only Leaf Classes Restrict Selection To Only Leaf Classes set to true Restrict Selection To A Single Class set to true Error : apply "Restrict Selection to only Leaf Classes" preference for the "XXX" xClassificationTree because there are items with conflicted classification. Anyone saw this before?2.8KViews0likes1CommentLoad xClass and xProperties, and link xProperties to multiple xClasses from AML
We want to load 1k+ xclasses to Aras, we are talking about 4k+ xproperties here. When we are running AML for creating relations xClass_xProperty_Flatten and xClass_xPropertyDefinition to link them to class tree, it fails with error : <faultstring><![CDATA["xClass_xProperty_Flatten" can be added or deleted or updated only in XTree context]]></faultstring> <detail> <af:legacy_detail><![CDATA["xClass_xProperty_Flatten" can be added or deleted or updated only in XTree context]]></af:legacy_detail> <af:exception message=""xClass_xProperty_Flatten" can be added or deleted or updated only in XTree context" type="System.ArgumentException" /> </detail> I can load property definitions, but not classes, but can’t map the properties to classes. How can we mass create and reuse these xProperty definitions in more than one class from AML, by creating relations correctly?2.4KViews1like2Comments