web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Development Issue : Weird behaviour of a method in d365FO | x++

(1) ShareShare
ReportReport
Posted on by 2
 

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.

/Uploaded

/Uploaded

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.
I have the same question (0)
  • Layan Jwei Profile Picture
    8,112 Super User 2025 Season 2 on at
    Hi Community member,

    So if without debugging and you put info(X);  -- it appears empty on the UI all the time?

    Can you shows us the full code when you call this getValue method.. and can you show us what is inside this method?

    Thanks,
    Layan Jweihan
  • Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    To understand your issue more, we need to look into your code. 
     
    And what does this mean like, 'flow is normally executed'. Is it a batch job this is executed and your are attaching to IIS or it can be vice versa. So please give us full details about the code and how does it gets triggered.
  • Waed Ayyad Profile Picture
    9,039 Super User 2025 Season 2 on at
    Hi Community member,
     
    Can you share your code in order to help you better?
     
    Thanks,
    Waed Ayyad

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 646 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans