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

Notifications

Announcements

No record found.

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)
  • Suggested answer
    Khushhal Garg Profile Picture
    1,514 on at

    Did you change data type on entity or table? Error is saying type conversion issue

    6153.pastedimage1569261910331v1.png

  • Suggested answer
    Sukrut Parab Profile Picture
    71,710 Moderator on at

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

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    301,130 Super User 2025 Season 2 on at

    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.

  • maram fraij Profile Picture
    on at

    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

  • maram fraij Profile Picture
    on at

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

  • Sukrut Parab Profile Picture
    71,710 Moderator on at

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

  • Suggested answer
    Ajit Profile Picture
    8,755 on at

    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.

  • maram fraij Profile Picture
    on at

    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 ?

  • maram fraij Profile Picture
    on at

    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 ?

  • André Arnaud de Calavon Profile Picture
    301,130 Super User 2025 Season 2 on at

    Hi Maram,

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

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