Skip to main content
Dynamics 365 Community / Forums / Finance forum / "Purchase order &...
Finance forum
Answered

"Purchase order "XXXX" Function ProjbudgetTransactionLine_Virtual::construct has been incorrectly called." while PO confirm in D365FO

editSubscribe (0) ShareShare
ReportReport
Posted on by 930

Hi All,

I am importing Purchase order header and lines , which includes project as well using excel import using x++. 

After importing the Purchase order , i am cinfirming the PO manually.

I am getting the below error.

Purchase order "XXXX" Function ProjbudgetTransactionLine_Virtual::construct has been incorrectly called."

7120.MicrosoftTeams_2D00_image-_2800_12_2900_.png

Kindly provide any suggestions where i went wrong. thank you

  • Shaik146 Profile Picture
    Shaik146 930 on at
    RE: "Purchase order "XXXX" Function ProjbudgetTransactionLine_Virtual::construct has been incorrectly called." while PO confirm in D365FO

    Thanks Girish. I had resolved the error from your suggestions.

  • Verified answer
    GirishS Profile Picture
    GirishS 27,799 Super User on at
    RE: "Purchase order "XXXX" Function ProjbudgetTransactionLine_Virtual::construct has been incorrectly called." while PO confirm in D365FO

    Hi Test Bot,

    I hope you have access to visual studio.

    Navigate to the class you mentioned. You can see that if any one of the arguments is empty this error is throwing.

    Debugged the code and find out which parameter values are missing.

    I attached the screenshot for your reference.

    2046.Capture.PNG

    Thanks,

    Girish S.

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,068 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,591 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans