Skip to main content

Notifications

Announcements

No record found.

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

Posted on by 932

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 932 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,828 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

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,584 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,864 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans