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

Community site session details

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

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

(0) ShareShare
ReportReport
Posted on by 950

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

I have the same question (0)
  • TestBot Profile Picture
    950 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
    27,825 Moderator 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.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,351

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 638 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans