Skip to main content

Notifications

Dynamics 365 general forum
Unanswered

SQL Exception: Input Query Length Exceeding Maximum Limit in Dataverse Integration

Posted on by 865

Hello,

We are currently integrating using AppService to push data to Dataverse in a production environment, following this logic:

  • We retrieve data from an API to extract the customer's email and compare it with CRM.
  • If the account does not exist, we create the account.
  • We serialize the create/update lists separately.
  • Using a parallel "for each" loop, we send data in batches of 1,000 records per batch back to CRM APIs after generating the token.

We tried reducing the batch size to 10 records and even one record per batch and running the process without the parallel "for each" loop. However, in all cases, the calls are still failing.

When we trigger the process, the code fails with the attached error, suggesting that the query length is being exceeded. We have not found a way to catch which field is failing in order to increase its length.

Is there any investigation tool that could help identify the issue? We created a pre-validation plugin to check all field lengths, but it seems the plugin is not being triggered, indicating the process isn't even reaching the insert step in Dataverse.

Unfortunately, the customer cannot provide us with access to the production environment due to the sensitivity of their data.

Any assistance would be greatly appreciated.

Best regards,
Julien

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

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,445 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,334 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans