Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Answered

Funtion BudgetControlSourceDocumentLineToBeDeleted::instance has been incorrectly called in PR

Posted on by 24
Hi all,
              When I am trying to delete my Purchase Requisition lines this error has showing but line is deleting successfully 
  /Funtion BudgetControlSourceDocumentLineToBeDeleted::instance has been incorrectly called/ any suggestion?
  • GirishS Profile Picture
    GirishS 27,826 Super User on at
    Funtion BudgetControlSourceDocumentLineToBeDeleted::instance has been incorrectly called in PR
    When I asked is there any customization done - You said there is no customizations.
    Anyways you solved the issue. Good to hear.
     
    Thanks,
    Girish S.
  • Verified answer
    Arjun Venkatesan Profile Picture
    Arjun Venkatesan 24 on at
    Funtion BudgetControlSourceDocumentLineToBeDeleted::instance has been incorrectly called in PR
    Hi Mr.Girish S
        Thanks for the suggestion, Found the solution BudgetControlSourceDocumentLineToBeDeleted::instance  method I need to initiate the transaction level.
    Now my error is cleared.

    Really thanks for the support and Reply's 
     
    Thanks,
    Arjun Venkatesan
  • GirishS Profile Picture
    GirishS 27,826 Super User on at
    Funtion BudgetControlSourceDocumentLineToBeDeleted::instance has been incorrectly called in PR
    Yes, I understood. instance method of BudgetControlSourceDocumentLineToBeDeleted has been called inside the table 'BudgetControlSourceDocumentLineToBeDeletedTmp' - Method name - 'createBudgetControlSourceDocumentLineToBeDeletedTmp' - Add the break point here and debug - Find out the classed that are called from the call stack - You can also add a debugger on the PurchReqLine table delete method.
     
    Thanks,
    Girish S.
  • Arjun Venkatesan Profile Picture
    Arjun Venkatesan 24 on at
    Funtion BudgetControlSourceDocumentLineToBeDeleted::instance has been incorrectly called in PR
    Hi Mr.Girish.S ,
       Thanks for your reply, There is no customization. This error came when I tried to remove my Purchase Requisition Line record. But the record is deleted successfully.

     I have no idea, if I need to do any BudgetControl setup/parameter for Purchase Requisition.
  • GirishS Profile Picture
    GirishS 27,826 Super User on at
    Funtion BudgetControlSourceDocumentLineToBeDeleted::instance has been incorrectly called in PR
    Hi Arjun,
     
    When did the error starts throwing? Do you have any customization on that?
    We cannot accurately say this is the issue for this type of error - You need to debug the code and find out where the error is thrown.
     
    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... 287,914 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,549 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans