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 :
Dynamics 365 Community / Forums / Finance forum / DB sync fails after cr...
Finance forum

DB sync fails after creating new data entity

(0) ShareShare
ReportReport
Posted on by

the standard Applicant education entity is not public , so I try to create a copy of it and make  it pubic the module was build successfully then try to sync the data base the below error is faced , how can I fix this issue ? 

5102.Untitled.png

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    298,174 Super User 2025 Season 2 on at
    RE: DB sync fails after creating new data entity

    Hi Maram,

    Try to first build all models and then perform the database synchronization. In some cases, this might help.

  • André Arnaud de Calavon Profile Picture
    298,174 Super User 2025 Season 2 on at
    RE: DB sync fails after creating new data entity

    Hi Maram,

    Try to first build all models and then perform the database synchronization. In some cases, this might help.

  • maram fraij Profile Picture
    on at
    RE: DB sync fails after creating new data entity

    When I review the sync log I found the below errors:

    Database synchronization completed (646948 ms). Errors found.

    Managed Data Sync Entity Worker encountered an exception, but is continuing because ContinueOnError is true. View Name and ID: 'WHSQtyOnLoadView(13531)' Exception: System.FormatException: String was not recognized as a valid DateTime.

    The error actually in standards view WHSQtyOnLoadView which never touched and it ddoes not contain a  date time field

    Does any one have any idea to resolve this issue ?

  • maram fraij Profile Picture
    on at
    RE: DB sync fails after creating new data entity

    I try to create a copy of staging table but the issue is not resolved.

    Also I roll back in all of my work but the issue is not resolved event that the sync was performed successfully before I creating the entity, it  there a way to know which object causing this error during the sync ?

  • Suggested answer
    Ajit Profile Picture
    8,755 on at
    RE: DB sync fails after creating new data entity

    Create a copy of standard staging table and assign that in your custom entity. And also regenerate staging table by right clicking on the entity and then DB Sync. That should resolve your issue.

  • Sukrut Parab Profile Picture
    71,699 Moderator on at
    RE: DB sync fails after creating new data entity

    Try changing name of staging table to something different and then generate staging table again and see if that helps. 

  • maram fraij Profile Picture
    on at
    RE: DB sync fails after creating new data entity

    I use the same staging table used in standard entity  , Does this have any effect ??

  • maram fraij Profile Picture
    on at
    RE: DB sync fails after creating new data entity

    I change the label and both 'Public entity name' and 'Public collection name' are already filled with unique values  but still face the same issue

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    298,174 Super User 2025 Season 2 on at
    RE: DB sync fails after creating new data entity

    Hi Maram,

    Like Sukrut mentioned, the label should be unique. But also the properties 'Public entity name' and 'Public collection name' should have unique values. These last two mentioned properties should differ from each other and should not be used on another data entity. If you have copied it and didn't change them, make them unique.

  • Suggested answer
    Sukrut Parab Profile Picture
    71,699 Moderator on at
    RE: DB sync fails after creating new data entity

    Make sure to change the label to something else if you haven't changed it and then try to sync.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

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

Leaderboard > Finance

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans