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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

Custom DataSource : Query missing QueryBuildDataSource for FormDataSource Error

(0) ShareShare
ReportReport
Posted on by 534

Hi Everyone,

I am trying to add a custom Data Source to the Inventory Transactions form (InventTransNew) using a Form Extension.

My goal is to add the SettleTransId field from my custom view (XXX_InventSettlementView) to the form’s Data Grid. The important requirement is that SettleTransId users can filter and sort by this column.

I followed the approach below, but I am getting the following error:

Query missing QueryBuildDataSource for FormDataSource XXX_DataSourceSettlement.

What I have done

1. Created a custom view

I created the following view:

XXX_InventSettlementView

The view contains the SettleTransId field that I want to display on the InventTransNew form.

2. Created a custom relation

I created a custom relation on the InventTransOrigin table with the following properties:

  • Cardinality: ZeroOne

  • Related Table: XXX_InventSettlementView

  • Related Table Cardinality: ExactlyOne or ZeroOne

  • Relationship Type: Association

  • Normal Relation:

InventTransOrigin.InventTransId == XXX_InventSettlementView.InventTransId

3. Added a custom Data Source to the form

I added a custom Data Source called:

XXX_DataSourceSettlement

I also configured its properties as shown in the attached screenshots.

The problem

When I run the form, I receive this error:

Query missing QueryBuildDataSource for FormDataSource XXX_DataSourceSettlement.

I am not sure what I am missing in the Form Extension Data Source or View/Relation configuration.

Form : InventTransNew


Custom Data Source property: XXX_DataSourceSettlement

Could someone please guide me on how to correctly add this custom Data Source to InventTransNew so that the SettleTransId field is available in the grid and users can filter and sort on it?

Best Reagrds

I have the same question (0)

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288 Super User 2026 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 270 Most Valuable Professional

#3
Anton Venter Profile Picture

Anton Venter 217 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans