Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Error qualifying a lead: Value cannot be null. Parameter name: g

Posted on by Microsoft Employee

Good day to all,

We've been having an issue when attempting to qualify a lead, it's consistently failing on every lead I've tried.

System.ArgumentNullException: Value cannot be null.
Parameter name: g

I've taken the following steps to try and figure out what's going on:

  • Disabled all Plugins and workflows related to QualifyLead, Create (Opportunity) and Update (Opportunity)
  • Verified that my Customizations.xml has no placeholders (as per https://community.dynamics.com/crm/f/117/t/177705)
  • Attempted to check for relationships that are null that shouldn't be, I may be missing something here though

I'm on CRM Online 2016 Update 1, so my ability to look into errors is somewhat limited.

I've provided the request xml and the response from CRM here:

https://gist.github.com/AtomicBlom/fc96e868fb8e42d5a06d52340769ffe9

I'd appreciate any information you may have into this issue. I'm also mighty curious to know what the actual CRM qualification process is, what fields does it use to create the opportunity/contact?

Thanks,

Steven

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error qualifying a lead: Value cannot be null. Parameter name: g

    That certainly seems like it might be related, but I feel like I'm still missing something.

    We have one Business Process Flow for Lead

    • Lead Qualification Workflow

    and three Business Process Flows for opportunity

    • Opportunity Appointment Workflow
    • Opportunity Booking Workflow
    • Opportunity Qualification Workflow

    The lead workflow is purely against the Lead entity, there is no reference to Opportunity, and likewise for the Opportunity Workflow, there is no reference to the lead, and because there is only one entity in the Flow, there is no way to set relationships up (which makes sense to me)

    I spoke with our BA who created these workflows who assured me that Qualification was completing successfully without the BPF referring to the other entity a few weeks ago.

  • Suggested answer
    Nithya Gopinath Profile Picture
    Nithya Gopinath 17,074 on at
    RE: Error qualifying a lead: Value cannot be null. Parameter name: g

    Hi Steven,

    Please refer the following thread. The same issue you are facing is discussed here.

    community.dynamics.com/.../184142

    Hopeit helps.

    Thanks

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans