Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Export to BYOD Fails for Custom Data Entity after republishing.

(0) ShareShare
ReportReport
Posted on by 97

We have a custom data entity that has been in place for several years that is incrementally pushed to our BYOD database every hour across all legal entities.  Earlier this week, one of the legal entity jobs began failing due to a timeout.  It is the first LE to execute.  The remaining LEs ran to completion, but the first timed out after 1 hour.  We were able to perform a full push for this LE, but the next incremental attempt would fail again.

To troubleshoot/resolve this issue we republished the data entity and attempted to perform a full push for all LEs, however we now have a bigger problem.  Most of the LEs are now failing after successfully pushing a subset of the data to the byod.  There are a few LEs that are succeeding but have a very small amount of data.  The document log gives the following error for the Export stage "Export execution failed for entity <data entity>: Export failed while copying data from staging to target:".  In addition, the Infolog for the Export stage gives the following error:  "BYOD export failed final attempt.  Could not export data from target to destination."  The Target stage give the following error: "Package Execution Failed for Entity Store".  

In addition to republishing the data entity we have regenerated the mapping, enabled and disabled change tracking, all to no avail.

We are running 10.0.23 in production and I've noted that there is chatter here that a similar issue was identified in 10.0.25 and fixed in 10.0.26.  Unfortunately, we are in the process of upgrade to 10.0.26 and we have recreated the issue in a 10.0.26 environment.  There have been no recent changes to the data entity in question.  The largest LE has only around 300K rows in this table, so it is not an excessive amount of data.

There are many data entities being pushed to the BYOD in production and all seem to be doing fine.  Also note that I am able to successfully export the data entity for an LE to excel without issue.

Can anyone suggest a possible solution or next step to troubleshooting this?

  • huijij Profile Picture
    19,811 on at
    RE: Export to BYOD Fails for Custom Data Entity after republishing.

    I am glad to know that your issue has been resolved.Thank you for your sharing.

  • Suggested answer
    Mark Schurmann2 Profile Picture
    97 on at
    RE: Export to BYOD Fails for Custom Data Entity after republishing.

    Well, I guess I needed to type a detailed explanation to figure this out.  

    The issue was a unique key violation.  Error messaging from D365 is not particularly helpful in this regard.  

    The solution was to drop the primary key on the BYOD database table.  

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,302 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,108 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans