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, ...
Answered

Extended Form datasource create new record even the setup not allow that

(0) ShareShare
ReportReport
Posted on by 618

Hi...

I have added another data source to the WHSWorkTable form. The properties of this new data source are set as follows:

But if I change a value from WhsWorkTable a new record in SalesTable should be created... Can anyone tell me, why?

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    303,679 Super User 2026 Season 1 on at

    Hi Christian,

    Initially when looking at the properties, I would agree with you that this data source is read-only. Is there some additional X++ logic created? Have you used the Debugger to find a cause of record insertions?

  • Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at

    Can you comment the super call for create, write methods of this form datasource and check?

  • Mohit Rampal Profile Picture
    12,573 Moderator on at

    Hi, As Andre mentioned, please add breakpoint in SalesTable insert method and check call stack to investigate when and why record is getting created in this table.

  • Christian Busche Profile Picture
    618 on at

    André,

    the error occurs because some values of mandatory fields in SalesTable are missing, like AccountNum etc. So I put a breakpoint in validateWrite() method of SalesTable table code...

    So there are no additional x++ code... But probably external code... but I think, that doesn't matter?

  • Christian Busche Profile Picture
    618 on at

    In a standard extension, the standard code must be run through with next(), even if it is a custom extension. The code does not compile...

  • GirishS Profile Picture
    27,843 Moderator on at

    What is the join type you set on the newly added DataSource?

    If adding table as DataSource is the issue you can go with adding a view to the DataSource if it's for viewing purpose only.

    Thanks,

    Girish S.

  • Verified answer
    Martin Dráb Profile Picture
    239,029 Most Valuable Professional on at

    Setting properties like "Allow Create" to No doesn't prevent the system from creating records in joined table.

    You need to use CoC on your new data source to implement this behavior. Don't call 'next' in either validateWrite() or write(). validateWrite() should always return true while write() will simply do nothing.

    It'll compile if implemented correctly, this is an exception of the rule that 'next' must be called.

  • GirishS Profile Picture
    27,843 Moderator on at

    Refer to the below thread which talks about the same issue and see if it helps your scenario.

    https://community.dynamics.com/365/financeandoperations/f/dynamics-365-for-finance-and-operations-forum/472455/category-name-on-all-forms-with-category-id/1297363

    Thanks,

    Girish S.

  • Suggested answer
    Christian Busche Profile Picture
    618 on at

    Martin,

    you made my day... Thx...

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
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 617

#2
André Arnaud de Calavon Profile Picture

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

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 298 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans