Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Run directly without error, but error is found while debuging

(2) ShareShare
ReportReport
Posted on by 55
Hi exports,
 
I am facing a strange issue. In D365, the compilation is completed successfully. It works fine (no error) with the incorrect result. So I try to debug to find the issue. However, the error is thrown out while debugger is attached.
Can anyone give me some advice? Thanks.
 
The debugger is attached, and error is found, saying that update must within TTS. (In fact, the record is actually select forupdate and in TTS).
Notice that the new LOT is empty.
 
But when running without debugger, the new LOT is generated and records are updated with the same code.
 
 
Categories:
  • Verified answer
    YQ-12070237-0 Profile Picture
    55 on at
    Run directly without error, but error is found while debuging
    Case closed by rebuiling solution.
  • YQ-12070237-0 Profile Picture
    55 on at
    Run directly without error, but error is found while debuging
    Hi Andre,
     
    I am using VS Professional 2019, and it is updated to latested version(16.11.45). This function is published to prod environment and running without any error.
  • Verified answer
    André Arnaud de Calavon Profile Picture
    294,125 Super User 2025 Season 1 on at
    Run directly without error, but error is found while debuging
    Hi,
     
    What type of development environment are you using? In case this is a new UDE development environment, did you deploy the models to the online environment after the successful build?

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,125 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,871 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans