Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

"0x80041103 Query Builder Error" on subgrid where fetch xml contains order and link entity tags

(0) ShareShare
ReportReport
Posted on by 50

Hi everyone,

I modified manually fecthxml in a saved query inside the customization.xml file because i need to order by attributes retrieved using link-entity .

After this change, even if the query is correct , not always but often, when records have a change, in the subgrid the error message "0x80041103 query build error" shows up  . Following image represents the error.

query-builder-error.png

What are guidelines to construct Fetch xml query for views of entities?

Or the problem is in the view layout?

Thanks in advance

Eugenia

  • Eugenia Tenneriello Profile Picture
    50 on at
    RE: "0x80041103 Query Builder Error" on subgrid where fetch xml contains order and link entity tags

    Thanks Leo

    but changing columns doesn't fit the user requirements.

    Regards

  • Suggested answer
    LeoAlt Profile Picture
    16,331 Moderator on at
    RE: "0x80041103 Query Builder Error" on subgrid where fetch xml contains order and link entity tags

    Hi partner,

    Since you want to order your records in subgrid by link-entity attributes, why don't you add the attributes into the column directly?

    For example, I have a contact subgrid on account form as we know, and I want to order the contacts by the related leads created on time. So I add the lead created on time attribute as a column in contact associated view.

    pastedimage1585105807811v1.png

    Save and publish.

    We could see that the column has been added to subgrid successfully and we could order the list by this field directly.

    pastedimage1585105956654v2.png

    If you still want to use fetch xml, I recommend you to raise a ticket to Microsoft and let the engineers help you on the server side.

    Regards,

    Leo

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 the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 149 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 61 Most Valuable Professional

#3
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 53 Super User 2025 Season 1

Overall leaderboard

Product updates

Dynamics 365 release plans