Skip to main content

Notifications

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.
  • Waed Ayyad Profile Picture
    Waed Ayyad 7,127 Super User 2025 Season 1 on at
    Development Issue : Weird behaviour of a method in d365FO | x++
    Hi Community member,
     
    Can you share your code in order to help you better?
     
    Thanks,
    Waed Ayyad
  • Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,587 Super User 2024 Season 1 on at
    Development Issue : Weird behaviour of a method in d365FO | x++
    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.
  • Layan Jwei Profile Picture
    Layan Jwei 7,634 Super User 2025 Season 1 on at
    Development Issue : Weird behaviour of a method in d365FO | x++
    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

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,979 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,848 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans