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

Announcements

No record found.

News and Announcements icon
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,165 Super User 2026 Season 1 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,061 Super User 2026 Season 1 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 576 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 366

#3
Adis Profile Picture

Adis 256 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans