Notifications
Announcements
No record found.
I have read some tutorials for configuration AOS to enable debugging on the server side. But All of them are for AX 2012.
I want to know how can I debug my server side method which is written in the custom view in dynamic 365?
All code in D365FO runs on server. So, general D365FO debugging process will work.
I insert a break-point in my server method which is assigned to the computed column. this break point is not hit. By any chance is there any configuration I have missed?
Computed columns aren't run-time, but compile time. When a computed column field from your view or DE is read no code fires - it's pure SQL.
What do you mean with "my server method which is assigned to the computed column"? On what element is this element and when is it called?
As a side question Nikolaos - code that runs in batch. I've had an issue where I needed to debug a job while it is running in batch (I couldn't let it run in the session). Is there a way to achieve debugging when a job is run in batch?
Pete,
if you want to debug a batch you should attach to the batch server process instead of w3wp/iisexpress.
Nastran, computed columns are not executed in Dynamics server (AOS), they are executed in SQL Server. Dynamics installer / sync engine simply tells SQL Server to create the computed column during database synchronization. You can't debug database sync, or the execution of the logic in the computed column.
To test the computed column, try this:
If your view synchronized:
Go to SQL Server Management Studio and find the view that you created a computed column to.
Right-Click > Script View as > CREATE to and you will get the VIEW definition where you will be able to see what computed column you have created.
If your view did not synchronize but compiled:
Try creating a similar method in a runnable class and info it as a message, so you know what you are getting.
Dear Pete ,
I have a veiw with prodcalcTrans datasource. my goal is adding resource name as a computed column to this view. Because the resource name is obtained by display method and it is not stored as a field in prodcalctrans table. so In my view I have three fields (1) resource (2) calcType (3) resourceName(which is computed column).
And if you want to test the value it's getting when just open that view in Table browser or select in SQL Server Management Studio.
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