Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

G/L Entry table date format issue when trying to restore a database

Posted on by Microsoft Employee

The G/L Entry table contains a field with a date value that cannot be used with SQL Server.

*This post is locked for comments

  • Suggested answer
    4BzSoftware Profile Picture
    4BzSoftware 6,071 on at
    RE: G/L Entry table date format issue when trying to restore a database

    Hi Ajifatou,

    It seems your backup contains 0D (denotes date January 1, 0000) that is outside the valid range for a SQL DATETIME, a run-time error occurs. The earliest valid date in SQL Server for a DATETIME is 01-01-1753 00:00:00:000.

    To solve the issue:

    1. Restore the backup to a Native NAV database (*.fdb file).

    2. Convert January 1, 0000 to 01-01-1753 00:00:00:000.

    3. Backup again (*.fbk file).

    4. Restore the backup to SQL version.

  • Suggested answer
    Mouli Kaku Profile Picture
    Mouli Kaku 515 on at
    RE: G/L Entry table date format issue when trying to restore a database

    1) may be Check the regional options Advanced, Language for Non-unicode programs and ensure they are the same on backup and restore machines

    2) Check the data format make sure both systems have same format and try

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: G/L Entry table date format issue when trying to restore a database

    Hi Mouli, I have tried this before posting but currently my database is empty am trying to restore a database backup i took earlier and is giving that error during the restoration.

  • Suggested answer
    Mouli Kaku Profile Picture
    Mouli Kaku 515 on at
    RE: G/L Entry table date format issue when trying to restore a database

    Please use try steps from Saurav's Blog

    https://saurav-nav.blogspot.co.uk/2012/12/nav-2013-upgrade-part-iv-sql-migration.html

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans