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

Community site session details

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

'Field # must be filled in.' Issue when joining InventNonConformanceTable to additional form data sources

(0) ShareShare
ReportReport
Posted on by 55

Hi All,

I am attempting to add Vendor name to the InventNonConformanceTable form. I add VendTable as a data source to the form with 'join source' set as InventNonConformanceTable, and 'Link Type' as OuterJoin. I then add DirPartyTable as a Reference Data Source on VendTable. 

This setup shows all the correct records and info that I expect. The issue is on records in InventNonConformanceTable that have no corresponding records in VendTable. When editing and saving these InventNonConformanceTable lines, I get errors on required fields in VendTable. 

"Field 'Group' must be filled in."
"Field 'Currency' must be filled in."
"Field 'Vendor account' must be filled in."

From searching around, I think this has to do with Optional Record Mode being set to 'ImplicitCreate' on the VendTable data source. When I edit a row in InventNonConformanceTable and save, it is running some validation from VendTable, even though I have AllowCreate and AllowEdit set to No for VendTable. This property is greyed out and not able to be changed.

Some of our non-conformances will not have associated vendor accounts/names, and for those records we just expect those fields to be blank, which is achieved with the outer join above. Due to the validation above, however, we can't edit these lines.

Is there a proper way to skip the validations from VendTable, or am I joining incorrectly? Any help or suggestions are greatly appreciated. Thank you! 

I have the same question (0)
  • GirishS Profile Picture
    27,825 Moderator on at
    RE: 'Field # must be filled in.' Issue when joining InventNonConformanceTable to additional form data sources

    Hi Cody,

    Instead of adding a vend table as a datasource to the form,  add a display method for vendor name which will avoid the above issue you mentioned.

    Thanks,

    Girish S.

  • Suggested answer
    nunomaia Profile Picture
    23 Moderator on at
    RE: 'Field # must be filled in.' Issue when joining InventNonConformanceTable to additional form data sources

    If you need to only display information, you need to make data source as readonly to avoid inserting records when adding records to table InventNonConformanceTable.

    If performance is not an issue, you use can a display method.  

  • Cody M Profile Picture
    55 on at
    RE: 'Field # must be filled in.' Issue when joining InventNonConformanceTable to additional form data sources

    The reason I didn't do a display method was so that the field could be searched on and sorted.

    The non-conformance records and fields should be able to be edited/created/deleted, but the fields from the joined VendTable I have set to read only because we don't want the records in VendTable to be changed or added.

    pastedimage1662655931254v1.png

    pastedimage1662656026217v2.png

    Is this possible, to allow editing records on InventNonConformanceTable without inserting records into the joined VendTable or facing the validation logic on VendTable? 

  • Verified answer
    GirishS Profile Picture
    27,825 Moderator on at
    RE: 'Field # must be filled in.' Issue when joining InventNonConformanceTable to additional form data sources

    Create a new view with Vendtable as a datasource.

    Add the newly created view as a datasource to the InventNonCoformanceTable - Add the relation between non conformance table and the view in the init method of view datasource using add link.

    Try to add the vendor name from the view  and check whether the error is throwing for your scenario.

    This is just a workaround for your issue.

    Thanks,

    Girish S.

  • Martin Dráb Profile Picture
    236,289 Most Valuable Professional on at
    RE: 'Field # must be filled in.' Issue when joining InventNonConformanceTable to additional form data sources

    You can override validateWrite() and write() methods of VendTable data source to avoid saving. Don't call super(); write() should be empty and validateWrite() should always return true.

  • nunomaia Profile Picture
    23 Moderator on at
    RE: 'Field # must be filled in.' Issue when joining InventNonConformanceTable to additional form data sources

    Martin suggestion, you can find several references in standard code.

    For example, in Sales Order avoiding to save in inventory dimensions.  

  • Cody M Profile Picture
    55 on at
    RE: 'Field # must be filled in.' Issue when joining InventNonConformanceTable to additional form data sources

    I followed this suggestion from Girish using views and adding the relations and it worked great. Thank you!

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,188

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 593 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans