Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Workflow Exception

Posted on by 1,240

Hi All,

After i click "Approve" button, i get the following warning message in event viewer and the batch wont be passed to next step of the workflow.

Event Type: Warning
Event Source: Microsoft.Dynamics.Workflow
Event Category: None
Event ID: 0
Date:  21/05/2009
Time:  3:07:06 PM
User:  N/A
Computer: WORKFLOW-WEBSERVER
Description:
Action:
SubmitTaskAction

Current User LogOnName:
Domain\workflow.app

Input parameters:

Exception type:
System.ArgumentException

Exception message:
logOnName

Stack Trace:
   at Microsoft.Dynamics.Workflow.Common.ArgumentHelper.CheckArgumentAsNetworkUser(String userName, String argumentName, String classMethodName)
   at Microsoft.Dynamics.Workflow.WorkflowSecurityManager.CheckAccess(String logOnName, WorkflowAssociationKey workflowAssociationKey, WorkflowSecurityGroup[] workflowSecurityGroups)
   at Microsoft.Dynamics.Workflow.Schedule.ApproversSequence.IsTaskChangeAllowed(Object sender, ConditionalEventArgs e)
   at System.Workflow.Activities.CodeCondition.Evaluate(Activity ownerActivity, IServiceProvider provider)
   at System.Workflow.Activities.IfElseActivity.Execute(ActivityExecutionContext executionContext)
   at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext)
   at System.Workflow.ComponentModel.CompositeActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext)
   at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(Activity activity, ActivityExecutionContext executionContext)
   at System.Workflow.ComponentModel.ActivityExecutionFilter.Execute(Activity activity, ActivityExecutionContext executionContext)
   at System.Workflow.ComponentModel.FaultAndCancellationHandlingFilter.Execute(Activity activity, ActivityExecutionContext executionContext)
   at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)
   at System.Workflow.Runtime.Scheduler.Run()


For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

 Could anyone please help me?

Thanks.


 

*This post is locked for comments

  • sbprasad Profile Picture
    sbprasad 115 on at
    RE: Workflow Exception

    Hello,

    I'm having other issues in which for lot of users  i see this error in evetlog on sharepoint

    - <Event xmlns="schemas.microsoft.com/.../event">

    - <System>

     <Provider Name="Microsoft.Dynamics.Workflow" />

     <EventID Qualifiers="0">0</EventID>

     <Level>2</Level>

     <Task>0</Task>

     <Keywords>0x80000000000000</Keywords>

     <TimeCreated SystemTime="2014-06-16T20:18:06.000000000Z" />

     <EventRecordID>946</EventRecordID>

     <Channel>Dynamics</Channel>

     <Computer>xxxxxxxxxxxxxx</Computer>

     <Security />

     </System>

    - <EventData>

     <Data>Action: SubmitForApproval Current User LogOnName: DOMAINJET\xxxxx Input parameters: <RequestObjects> <ArrayOfBusinessObjectSubmissionInformation xmlns:xsi="www.w3.org/.../XMLSchema-instance" xmlns:xsd="www.w3.org/.../XMLSchema"> <BusinessObjectSubmissionInformation> <WorkflowName>Dynamics GP Purchase Order Approval Workflow</WorkflowName> <OriginalDueDays xsi:nil="true" /> <DueDays xsi:nil="true" /> <Comment /> <BusinessObjectKey> <KeyParts> <KeyPart xsi:type="KeyPartOfString"> <Name>PoNumber</Name> <PartValue>PO073565</PartValue> </KeyPart> </KeyParts> </BusinessObjectKey> </BusinessObjectSubmissionInformation> </ArrayOfBusinessObjectSubmissionInformation> <CompanyKey xmlns:xsi="www.w3.org/.../XMLSchema-instance" xmlns:xsd="www.w3.org/.../XMLSchema" xmlns="schemas.microsoft.com/.../01"> <Id>1</Id> </CompanyKey></RequestObjects> Exception type: System.Threading.ThreadAbortException Exception message: Thread was being aborted. Stack Trace: at Microsoft.SharePoint.Workflow.SPWorkflowManager.RunWorkflowElev(SPWorkflow workflow, Collection`1 events, SPWorkflowRunOptionsInternal runOptions) at Microsoft.SharePoint.Workflow.SPWorkflowManager.StartWorkflowElev(Object context, SPWorkflowAssociation association, DateTime elevationTimeUtc, SPWorkflowEvent startEvent, SPWorkflowRunOptions runOptions) at Microsoft.SharePoint.Workflow.SPWorkflowManager.<>c__DisplayClass11.<StartWorkflow>b__10(SPSite superUserSite, SPWeb superUserWeb) at Microsoft.SharePoint.SPSecurity.<>c__DisplayClassc.<RunWithSystemSiteAndWeb>b__a() at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2() at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode) at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param) at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode) at Microsoft.SharePoint.Workflow.SPWorkflowManager.StartWorkflow(Object context, SPWorkflowAssociation association, SPWorkflowEvent startEvent, SPWorkflowRunOptions runOpts) at Microsoft.SharePoint.Workflow.SPWorkflowManager.StartWorkflow(Object context, SPWorkflowAssociation association, String eventData, SPWorkflowRunOptions runOptions) at Microsoft.SharePoint.Workflow.SPWorkflowManager.StartWorkflow(SPListItem item, SPWorkflowAssociation association, String eventData) at Microsoft.Dynamics.Workflow.WorkflowManager.StartWorkflow(BusinessObjectSubmissionInformation submissionInformation, WorkflowAssociation wfAssoc, OrganizationKey organizationKey, Int32 itemId, User securityUser) at Microsoft.Dynamics.Workflow.WorkflowManager.SubmitForApprgive oval(Collection`1 submissions, OrganizationKey organizationKey)</Data>

     </EventData>

     </Event>

    Any idea what might be the issue?

    Thanks

    Banu

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Workflow Exception

    This was the resolution I gave in the blog. But this was for an old MOSS version.

    The issue was with Service Accounts for MOSS as well as not importing the user profiles for Shared Services Provider (SSP).

    While configuring the MOSS, I used same account which is a farm administrator also for all service accounts. Certain Service accounts provide read-only access to the SharePoint databases. So, the account with which I’m trying to approve is being denied access due to the fact that the system is not able to identify this user as an administrator despite the fact that the said account is a workflows administrator in the web services security console as well.

    Adding to this, there is one step in MOSS configuration where we have to import all Active directory users into the shared services provider. I skipped this step too initially. After correcting these issues, the workflows started working absolutely perfect. So, We have to be 100% sure that we configure web services for Dynamics GP, MOSS correctly in order to ensure the workflows run successfully. Any small misconfiguration would lead to a failure of workflows.

  • sbprasad Profile Picture
    sbprasad 115 on at
    RE: Workflow Exception

    Hi,

    I'm having the same issue. do you know exact solution to the problem. I tried accessing but  it looks like i dont have access to the blog.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Re: Re: Workflow Exception

     Hi

    Thanks for the reply. Funny thing is it is my own article on my own blog that is. I just put that article after I resolved this issue. :)

  • GrapeFruit Profile Picture
    GrapeFruit 1,240 on at
    Re: Re: Workflow Exception

    i cant remember how i resolved the issue. But check this http://janakirammp.blogspot.com/2009/11/workflows-error.html

    may be helpful.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Workflow Exception

    Hi

    Were you able to resolve this issue thereafter? I'm also facing the exact issue in my environment. Could you please post back the Solution for this that you worked on to resolve the same

    Help on this is highly appreciated

    Thanks

    Janakiram 

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans