Hi to all!
For one of our customers we have created a custom button in the PurchTable form that when clicked calls a custom Data entity to export the selected purchase order and convert it from XML to a JSON through a transformation.
Now here is the issue we are encoutering in production environment: when used with an "admin" user, everything works like a charm. When one of our client users try to use it, it does not. It seems to be a permissions problem: the given error changed while we let the user access the various tables and DMFs involved. But at this point we have added all the known DMFs and tables, and still it does not work with users that are not admins.
Do you have any ideas of what could be missing, or how can we find what's generating the problem?
Don't hesitate to ask me for further details if you need them to better understand the problem. Thank you!
Dear Steve,
thank you for your feedback! I have sent your links to my colleague that's working on the issue. I will let you know if we find a solution as soon as I will have a feedback from him.
Regards,
Andrea
Hi Andrea Casagrande,
I found some similar thread, hope it can help you.
If these could solve your issue, I recommend you re-post it at the forum:
community.dynamics.com/.../dynamics-365-for-finance-and-operations-forum
Hi Steve!
We have moved to a dev environment to be able to debug the error and see where it was originated (as in PROD we can't do this).
We have found that it stops when it do the insert() on the DMFDefinitionGroup table. That table has been added to the role of the user, with no success. We added the data management role to the user too, but still it does not work.
Here is the error we have
I have put a red line under the button we have created.
UPDATE: One of my collegue that is working on the issue on another machine receives just one line of error (instead of the three you see in the screenshots) that says:
Cannot create a record in Definition Groups (DMFDefinitionGroup). Security policy permission denied
Hope this helps.
Hi Andrea Casagrande,
Have you assigned the permission of all related tables to user?
Could you share the error message you got?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,524 Super User 2024 Season 2
Martin Dráb 228,493 Most Valuable Professional
nmaenpaa 101,148