IOM TypeInitializationException error with Login
I have been trying to use IOM on 11SP9 but I'm unable to get this code working... // url = "">myserver/InnovatorServer"; url = "">myserver/.../InnovatorServer.aspx"; var myConnection = IomFactory.CreateHttpServerConnection(url, db, user, password); var objItemRes = myConnection.Login(); if (objItemRes.isError()) { MessageBox.Show("Login error " + objItemRes.dom.InnerText); } It gives this error: 999 HTTP Error HttpServerConnection System.TypeInitializationException: The type initializer for 'Aras.Net.WindowsAuthenticationHelper' threw an exception. My project is build on .NET 4.5.2 and I have referenced IOM.dll Version 11.0.0.6549 (1/19/2017) What can be wrong?9.3KViews0likes8Commentsusing the SQL item type as a view
Querying a SQL view I built in SSMS from an Aras server method: string SQL_View = "innovator.my_custom_sql_view"; string SQL = "select * from " + SQL_View; Item SQL_qry = inn.applySQL(SQL); This is quick for me because I do a lot in SQL, but I know it is bad practice. So, I want to replace this SQL injection using IOM: I created a new SQL item, type=View, with the contents from the custom SSMS view. What is the correct C# code to get the view results? Item SQL_qry = inn.newItem("SQL", "get"); SQL_qry.setProperty("keyed_name", SQL_View); SQL_qry = SQL_qry.apply(); This code just gets the SQL item, not the contents of the View. I couldn't find anything in the Programmers guide for this, and the Blog posts were only about Stored Procedures, not Views. I'm thinking it should work the same way, but I haven't figured out the correct IOM syntax. Thanks, Paul SheehySolved7.8KViews0likes4CommentsWorkflow Activity Completion
I am trying to complete workflow assignment with AML but it is acing weird. My request xml looks like given below: <Item action="EvaluateActivity" type="Activity"> <Activity>DE33049EBA694267A44CA41A002E7C51</Activity> <ActivityAssignment>99E2CFE208154E4FBD70E75DE6AB4B74</ActivityAssignment> <Paths><Path>2312B2C556DC4C028F740433E629C934</Path>Submit</Paths> <DelegateTo>0</DelegateTo> <Tasks><Task Completed="1">03D548CE54834C27BDB7974175C8A43F</Task> <Task Completed="1">DEB21FCD697942DC91DFCBECB21747A4</Task></Tasks> <Variables><Variable id="451171CA8A144AD8B87E065216208B02">vb cvbnvxn</Variable> </Variables> <Authentication mode=""/> <Comments>xcbxcvb xcxcbx</Comments> <Complete>0</Complete> </Item> My response reads like the following: <SOAP-ENV:Envelope><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>The action "",EvaluateActivity is not supported.</faultstring><detail><af:legacy_detail>The action "",EvaluateActivity is not supported.</af:legacy_detail></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope> Further more response in nash with the same request is following: <SOAP-ENV:Envelope xmlns:SOAP-ENV="">schemas.xmlsoap.org/.../"><SOAP-ENV:Body><SOAP-ENV:Fault xmlns:af="">www.aras.com/.../faultcode><faultstring><![CDATA[Failed to get the Activity Tasks.]]></faultstring><detail><af:legacy_detail><![CDATA[Failed to get the Activity Tasks.]]></af:legacy_detail><af:legacy_faultstring><![CDATA[Workflow: EvaluateActivity: Specified Tasks are not found for Activity]]></af:legacy_faultstring></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope> I looked at the request xml using Admin->saveRequest setting and my xml matches with what is sent by the official client. What am I missing?7.7KViews0likes4Commentsapply PE_createNewRevision from client method
hello, My initial goal is to have a confirm pop up when using the action to create a new revision.(for parts) I have an action that run a simple client method like this: if(confirm("creation of new major revision")) { //here i want to launch the PE_CreateNewRevision } I've tried with applyMethod but the method doesn't seem to apply on the part instance. Any help on understanding this is much appreciated. thanks lucasSolved6.1KViews0likes10CommentsHow can I get the IOM SDK 11.0?
I couldn't find IOM.dll file which is referenced in 11.0 of the Programmer's Guide. "A .NET version of IOM.dll can be found in the \Utilities\Aras Innovator <Version> IOM SDK\.NET directory on the CD Image and may be copied to another location and referenced by .NET project" Where is this Utilities folder? There's none in Aras Innovator installation directory and no CD Image available on the website. Could anyone provide the .dll file?5.7KViews0likes5CommentsRetrieving Related Items
I need to take a "Requirement Document" item_number, find all the related "Requirement Document Requirements" and their "Requirements". Looking at the solution for Unit 8 in the v12 Developing Solutions guide I got a pretty good idea how to do this, but I really am just confused on why the (deprecated) "getRelationships" is used after "fetchRelationships" (which, the deprecation warning says to use instead). Also, I don't need all the information from the related item, but the built-in function doesn't accept a list of properties for use in "select". Anyway, why get then fetch? And, what would I do to trim down the result set to only include properties of the child relationships? Guide content: result.fetchRelationships(“Design Request Document”); Item relationships = result.getRelationships("Design Request Document”); My function, which works, but has a warning causing my aforementioned confusion, and it uses the for loop that seems to do nothing. I found adding "related_id" to the list of properties in my first get actually returns the child "Requirement". So confused. /* TODO: Take in Requirement Document item_number after using hard-coded value for development. RD-000001-0000 */ Innovator innovator = this.getInnovator(); var reqDocNum = this.getProperty("item_number", "RD-000001-0000"); // TODO: Remove default value. // Handle invalid input (with user facing error message) if (String.IsNullOrEmpty(reqDocNum)) return innovator.newError("Valid Requirement Document Number required."); // var reqDoc = this.newItem("Requirement Document", "get"); reqDoc.setAttribute("select", "name"); reqDoc.setProperty("item_number", reqDocNum); reqDoc = reqDoc.apply(); // Handle not reqDoc found (with user facing error message) if (reqDoc.isEmpty()) return innovator.newError("No Requirement Document found for: " + reqDocNum); // Fetch relationships of type Requirement Doc Requirement reqDoc.fetchRelationships("Requirement Doc Requirement", "chapter,name,classification,is_released,state,major_rev,minor_rev,req_rm_text,related_id"); Item relationships = reqDoc.getRelationships("Requirement Doc Requirement", "item_number,name,classification,bl_release_state,state,major_rev,minor_rev,req_rm_text"); int count = relationships.getItemCount(); reqDoc.setProperty("RDR_COUNT", count.ToString()); for (int i = 0; i < count; i++) { Item reqDocReq = relationships.getItemByIndex(i); Item childRelationships = reqDocReq.getRelatedItem(); } return reqDoc; I tried to get things right, first with this AML... <AML> <Item type="Requirement Document" action="get" select="name"> <item_number>RD-000001-0000</item_number> <Relationships> <Item type="Requirement Doc Requirement" action="get" select="chapter,is_released,major_rev,minor_rev,related_id"> <related_id> <Item type="Requirement" action="get" select="item_number,name,classification,bl_release_state,state,major_rev,minor_rev,req_rm_text"> </Item> </related_id> </Item> </Relationships> </Item> </AML>3.4KViews0likes0CommentsSet the property of type item to null value if the item is null
I am setting a property of type item using the setPropertyItem from JavaScript code as below: var Item = innovator.newItem("Material", "get"); Item.setAttribute("select","id"); Item.setProperty("id", gridRow.entity.ExistingVariantMaterialId); Item =Item.apply() if(Item!==null){ partVariantItem.setPropertyItem("material", Item); } Now if i want to reset this property to null value if the item is null ,so how can i do that,please help2.7KViews0likes0CommentsError while creating a Project from ARAS.IOM api
Hi, I am trying to create a Project using Aras.IOM API. I have given all the mandatory fields values, like target start date, target finish date, project name etc.... but still error is thrown: <SOAP-ENV:Envelope xmlns:SOAP-ENV="">schemas.xmlsoap.org/.../" xmlns:i18n="">www.aras.com/I18N"><SOAP-ENV:Body><SOAP-ENV:Fault><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></faultactor> <faultstring>Method server_update_schedule failed: FAILURE: WBS_ID is null</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope> Am I missing some file values?? Looks like WBS_ID is null but what should be its default value?2.7KViews0likes3Comments