bbrinkmann - Tuesday, October 7, 2008 10:03 AM:
I am having a problem with two ECNs that will not promote from ECN Planning to Update Documents.
The error I get is:
"Failed to apply the method Affected Item Handling to the ECN item: All Affected Items must be released."
All of the items on my ECN are in the preliminary lifecycle and I created this ECN to release them.
I am using the unmodified workflow that is bundled with Aras Innovator.
My installed version is 9.0.1 Build 5430.
Any help would be appreciated.
-Bill
Ron - Tuesday, October 7, 2008 10:13 AM:
Hi Bill
On your ECN what action did you have for the documents? if action was set to change, then the items would have to be released first
For new item action should be set to Add
Hope this helps
Ron
bbrinkmann - Tuesday, October 7, 2008 10:53 AM:
Ron,
Thanks for the quick reply.
I do have all the documents action set to Add.
I wish the buffer dump listed exactly what items the system is having trouble with.
-Bill
Ron - Tuesday, October 7, 2008 11:16 AM:
On the ECN workflow, when promoted to In-Planning should change the state of the workflow to In Work. at this transition from In Planning to In Work a method is triggered to change the state of the affected item. By default this method is handled by the identity Aras PLM, did you modify or change the permissions?
Also the permissions for New Documents must include this "Aras PLM" Identity, have you made any changes to the default permissions for documents?
Ron
bbrinkmann - Tuesday, October 7, 2008 12:08 PM:
I haven't changed permissions for anything, New Documents included.
-Bill
Ron - Tuesday, October 7, 2008 1:12 PM:
When you get the error msg, can you copy the buffer and paste it here.
Ron
bbrinkmann - Tuesday, October 7, 2008 2:21 PM:
Ron,
Thanks again for you help.
Here is the error message buffer.
BR,
Bill
Failed to apply the method Affected Item Handling to the ECN item: All Affected Items must be released.Utilities: ApplyAML: Workflow: RunThroughPathAndActivateActivity: Workflow: ActivateActivity: LifeCycle: PromoteItem: at System.Environment.get_StackTrace() at Aras.Server.Core.XML.SetErrorMessage(XmlDocument xmlDom, Int64 faultCode, String errorMessage, String dbMessage, String serverMessageXml) at Aras.Server.Core.Utilities.ApplyAML(XmlDocument& amlDom, XmlDocument& responseDom, TextWriter writer) at Aras.Server.Core.Utilities.ApplySoapAction(String& soap_action, XmlDocument& inDom, XmlDocument& outDom, Boolean sec_chk, TextWriter writer) at Aras.Server.Core.Startup.soap_action_dispatch() at Aras.Server.Core.Startup.soap_action_dispatch_errorhandler() at Aras.Server.Core.Startup.innovatorserver_main_dispatch() at Aras.Server.Core.Startup.innovatorserver_main() at ASP.innovatorserver_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Page.Render(HtmlTextWriter writer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.innovatorserver_aspx.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) at System.Web.HttpApplication.ApplicationStepManager.ResumeSteps(Exception error) at System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) at System.Web.HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr) at System.Web.Hosting.ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
Ron - Tuesday, October 7, 2008 3:31 PM:
Bill
Have you had other problems with releasing documents using the ECN process? Your original post states you are having problems with "two" ECN's or is this issue with any ECN? are you assigning a superseding number to the ECN (same as affected)?
The Method "Affected Item Handling" looks to see if the item is released if the action is other then Add, if the action is Add, it handles things a little different. This method is triggered at the ECN transition from In Planning to In Wrok on the Lifecycle map for ECN.
Assuming that you have setup the ECN assignments correctly and you are completing the task by selecting the correct action "Complete" and no changes have been made to permissions or lifecycle (both in New Document and ECN), this should work fine.
Perhaps someone else might have a better idea as to why. I would like very much to find out what the real issues is, please post your findings. I was just playing around in my Beta enviroment and I can not reproduce this message.
Ron
bbrinkmann - Tuesday, October 7, 2008 4:39 PM:
Ron,
No, I haven't had any other problems with releaseing documents using the ECN process. That is why these two ECNs are puzzling.
The only thing I can think of is somehow something was corrupted with these two ECNs. I am going to try and create new ECNs to release the documents and see what happens.
Thanks again for your help.
Bill
RobMcAveney - Wednesday, October 15, 2008 2:33 PM:
Bill -
Any luck with this? I have a couple other thoughts if not:
- Just to reiterate, if Action is set to Add then the Affected Number column must be blank and the Superseding Number column must contain an unreleased item. This is a common problem that can result in the error message you posted.
- The only other way I know of to get this error is if the item referenced by Affected Number is not in the Released state. You're right that the error message could definitely give more info as to which item is a problem. The best way to check manually is to go through the Affected Numbers one by one, click the link and check the state on the form that pops up.
Regards -
Rob
wings - Monday, December 15, 2008 5:12 PM:
Didn't want to hijack this thread but really I wanted to ask a question under the same subject. Mine was set to Add which is to have the first release of set of documents. I've gone through every other step but when I got to "ECN Audit" and tried to complete the activity, the system gave me an error, here is the dump:
Failed to apply the method Affected Item Promotion to the ECN item: Error promoting Superseding Item: Failed to set the item state: The value of the effective_date property specified for the Document is invalid. A value is required and it must be greater than or equal to the release date...Utilities: ApplyAML: Workflow: RunThroughPathAndActivateActivity: Workflow: ActivateActivity: LifeCycle: PromoteItem: at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at Aras.Server.Core.XML.SetErrorMessage(XmlDocument xmlDom, Int64 faultCode, String errorMessage, String dbMessage, String serverMessageXml) at Aras.Server.Core.Utilities.ApplyAML(XmlDocument& amlDom, XmlDocument& responseDom, TextWriter writer) at Aras.Server.Core.Utilities.ApplySoapAction(String& soap_action, XmlDocument& inDom, XmlDocument& outDom, Boolean sec_chk, TextWriter writer) at Aras.Server.Core.Startup.soap_action_dispatch() at Aras.Server.Core.Startup.soap_action_dispatch_errorhandler() at Aras.Server.Core.Startup.innovatorserver_main_dispatch() at Aras.Server.Core.Startup.innovatorserver_main() at ASP.innovatorserver_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) at System.Web.UI.Page.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.innovatorserver_aspx.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) at System.Web.HttpApplication.ApplicationStepManager.ResumeSteps(Exception error) at System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) at System.Web.HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr) at System.Web.Hosting.ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
Can someone give me a hint?