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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Cannot hit to debug in updatedataentitysource

(0) ShareShare
ReportReport
Posted on by 512

Hi,

I have a problem regarding to debug in updatedataentitysource method of data entity. Even, I attached the breakpoint or throw and error but cannot  hit to debug.

Do you have any idea?

  /// 
    public boolean updateEntityDataSource(DataEntityRuntimeContext _entityCtx, DataEntityDataSourceRuntimeContext _dataSourceCtx)
    {
        boolean ret;
    
        throw Global::error("Hit Test");

        this.validateWriteSalesLineDataSource(_dataSourceCtx,_entityCtx);
        ret = super(_entityCtx, _dataSourceCtx);
    
        return ret;
    }

Thank you and Regards,

CJ

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,162 Moderator on at

    Moved to D365 Finance forum since the question seems to not be about Dynamics AX.

    Most likely it's because the code is executed by the batch service and not IIS, but you have attached your debugger to IIS (World Wide Web Publishing Service). Try to attach the debugger to D365FO batch service instead.

    If this is not the case, please share more details about your situation.

  • Suggested answer
    Pete Alberts Profile Picture
    3,542 on at

    Hi Christian

    I agree with Nikolaos. Another option is to test with the Excel add-in. Or postman (if you are familiar with it). In my opinion it takes a lot of time to test through data management. The 2 mentioned paths are much quicker. And then you can debug as usual.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 422 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans