Notifications
Announcements
No record found.
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,
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).
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:
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.
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.
This is not custom entity and it is not being modified either ->
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 451 Most Valuable Professional
André Arnaud de Cal... 428 Super User 2025 Season 2
BillurSamdancioglu 239 Most Valuable Professional