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 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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans