I am working on a task in Dynamics 365 finance and operations (x++).
There is a method in my code that is responsible for assigning a value to the variable 'X', X = getValue();
This getValue() method executes a query and returns a value from the table buffer. When the flow is normally executed, this line is skipped and no value is assigned to variable 'X', but when I keep a breakpoint on that line and hit continue, the method is executed and returns a value.


did anyone face this issue? if yes, how did you resolve this?
Suggestions received:
- is there any thread which is stopping this line execution : During debugging I only had one thread running.
- DO a full Model build and restart IIS : I did, but it didn't help.