Customer Engagement & Dynamics CRM Forum

 View Only
  • 1.  Workflows started failing with Invalid Argument error

    Posted Jul 30, 2019 02:38 PM
    Hello,

    We have a situation with many different workflows failing since past 2-3 days with the error message (Invalid Argument)
    In the details section I can see the error message: Expected Non-empty string Parameter name: settingName

    Not sure what changed suddenly. Anyone has any idea?


    ------------------------------
    Sunil Raheja
    Aha Apps
    Glen Allen VA
    https://www.ahaapps.com/microsoft-dynamics-crm/
    ------------------------------


  • 2.  RE: Workflows started failing with Invalid Argument error

    TOP CONTRIBUTOR
    Posted Jul 31, 2019 08:52 AM
    Sunil - with several workflows failing, a change to a security role could be a likely culprit.  If it is set to run as the owner, has the workflow owner changed or the security role for that owner changed?  If it is set to run as the user who triggered the workflow, has that user's security role changed?  Also, what is the scope of the workflow?  If it is set to user, you might need to set it to organization.

    I am generally able to spot why a workflow failed by looking at the details in the error and which step failed but when that isn't really clear, I take one instance of the failed workflow and look at the record (or records) that it touches and follow the steps the workflow takes navigating through the records.  Sometimes that allows you to see where a step isn't working because some field or value isn't what you expect.  We have integrations pushing data into our environment, so sometimes a change to an integration might push data in differently or be missing a value  needed by my workflow.

    ------------------------------
    Jill Vazquez
    Technical Specialist - CRM
    Bioventus, LLC
    Durham NC
    ------------------------------



  • 3.  RE: Workflows started failing with Invalid Argument error

    Posted Aug 01, 2019 09:23 AM
    Thanks Jill for your response. 

    We reached out to Microsoft and found out that some of their servers running the Async service had issues and that affected many different orgs.
    For us, it resulted in some 20000 workflows failing. MS fixed the servers, but these workflows are not in Failed state. We are still in touch with MS for a solution to start all those failed workflows.

    ------------------------------
    Sunil Raheja
    Aha Apps
    Glen Allen VA
    https://www.ahaapps.com/microsoft-dynamics-crm/
    ------------------------------



  • 4.  RE: Workflows started failing with Invalid Argument error

    Posted Jul 04, 2022 12:31 AM
    Hello,

    I am a little late to the conversation.
    Currently, I am facing a similar error for workflow.
    However, the 'Invalid Argument' error occurred just once on a record.

    Following are observations while looking for reason -:
    • Error occurred on all workflows related to the record.
    • Error did not occur on other records.
    • The security role point made me look for records where same user is owner, but workflow does not throw on other records error where the user is owner.
    • When I ran the workflows again on that record, they got run successfully. (Just fyi, my user is System Administrator)

    Error detail -:
    System.ArgumentNullException: Value cannot be null.
    Parameter name: dataFromFileStore


    ------------------------------
    Aakarsh Dhawan
    AD
    ------------------------------



If you've found this thread useful, dive deeper into User Group community content by role