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, ...
Unanswered

Which class is the best way to debug data entity import ?

(0) ShareShare
ReportReport
Posted on by 596

Hi all,

If we're facing error while import data using Data Management, staging table is inserted successfully, where is the best place to put breakpoint to start trace the issue ?

Thanks,

I have the same question (0)
  • Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    There is no unviersal best place for all possible errors. You really should take into account what error you're getting and where.

    If you want out help with it, please share the error message with us and the line of code throwing it (if you were able to find it).

  • Voltes Profile Picture
    596 on at

    Hi Martin,

    Thanks, this is actually related to my other thread ->

    community.dynamics.com/.../data-entity-for-import-security-privileges

    At the last thread from me about import Security Role, where by I have error when using data entity : Security role metadata customizations entity

    So when trying to move from staging to target table, it is throwing this error:

    pastedimage1675751436659v1.png

    That "TRYROLEA" is my role which I have imported at 1st sequence before this "problematic" data entity. So I want to know what object it need ?

    Basically I just want to import new Role, which later will need to import Duty -> Privileges -> Permissions. 

    Thanks,

  • Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    It seems that you're talking about a custom entity and you didn't do enough debugging to know where the error is thrown.

    I know nothing about code of your custom entity, therefore it's impossible to comment on it. If you have some code in mapEntityToDatasource() or so, definitely put a breakpoint there.

    You can also add a breakpoint to Info.add (and enable debugging of Application Platform module). Then attach the debugger to the web server (usually IIS Express) and run the import directly (not in batch). If you used a batch, you'd have to attach the debugger to batch.exe). It may stop on a breakpoint or an exception.

  • Voltes Profile Picture
    596 on at

    This is not custom entity and it is not being modified either ->

    pastedimage1675752961120v1.png

  • Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    All right, let me explicitly state the name of the entity you want to talk about: SystemSecurityRoleCustomizationsEntity. It'll make it clear for people trying to help you, it'll allow copying the name and it'll also allow search engines to find this thread if someone is looking for information about this entity. Next time, please share such information as the very beginning.

    The first thing I would debug is persistEntity() method of SystemSecurityRoleCustomizationsEntity.

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
Martin Dráb Profile Picture

Martin Dráb 451 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans