web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

parm method error: is missing argument 1 of type str

(0) ShareShare
ReportReport
Posted on by

When I hit 'save' I get this error.  If I build or rebuild, then I don't get it. 

SaveError.PNG

When I hover over the red lines I see this: "is missing argument 1 of type str"

Here is the method:

    public  CustInvoiceAccount parmInvoiceAcct(CustInvoiceAccount  _InvoiceAccount = InvoiceAccount)
    {
        InvoiceAccount = _InvoiceAccount;

        return InvoiceAccount;
    }

Does anyone know the cause?

Thanks

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,020 Super User 2025 Season 2 on at

    Hi Brianmaric,

    I have seen this behavior in the past. Haven't seen it for a while now. Which version of Dynamics 365 F&O and Visual Studio are you using for development?

  • brianmaric Profile Picture
    on at

    pastedimage1659562985226v1.png

    pastedimage1659563011646v2.png

  • brianmaric Profile Picture
    on at

    public class CreateRMAWizardClass extends SysWizard
    {
        FormName formname()
        {
            formName ret;
        
            ret = formstr(Form1);
    
            return ret;
        }
        
        public  CustInvoiceAccount parmInvoiceAcct(CustInvoiceAccount  _InvoiceAccount = InvoiceAccount)
        {
            InvoiceAccount = _InvoiceAccount;
    
            return InvoiceAccount;
        }
    }

    I found what appears to be the issue.  My form is connected to 'Wizard Class'.  If  I move my parameter methods to this Wizard class, then I do not get a compile error.

    I discovered this by changing the name in the formname method.  When I did this I no longer get the compile error in the Primary Form.

    Of course, this did not fix anything, since it breaks the connection between the Extended Wizard Class and the Primary Form, but it did clue

    me into the fact that the problem resided in how the two talk to each other.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 646 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans