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 :
Microsoft Dynamics SL (Archived)

Upgrade database error V6.0 to SL2011 SP2

(0) ShareShare
ReportReport
Posted on by

I am upgrading our V6.0x database to 2011 SP2 and am getting an error at the completion of the Database Upgrade Utility.  However, I can open the database in SL2011.  I am concerned that unresolved upgrade issues may result in errors down the road.

After running the ‘Synchronize all Ownership & Security’ script I am running the ‘V4.1x/4.2x/4.5x/5.x/6.0x to SL2011 SP2’ where I get the error:  “Process completed unsuccessfully”

The DBBuild.txt log file shows the following errors.

1.

Database Name: XXX

Error Code: -2146232060

Error Text: There is already an object named 'DF_Item2Hist_BegQty' in the database.

Could not create constraint. See previous errors.

Dropping All Constraints For Item2Hist

(I believe this is from : exec dmg_define_table_defaults 'Item2Hist')

2.

Database Name: XXX

Error Code: -2146232060

Error Text: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.

The statement has been terminated.

I believe this is from: (exec ut_build_indexes '%')

3.

Database Name: YZA

Error Code: -2146232060

Error Text: Cannot find the object 'CY-FYTime', because it does not exist or you do not have permission.

Statement: GrantSuAppPermissions

Note:

If I run the Synchronize Ownership script again I get a failure listing the same one as #3

Database Name: YZA

Error Code: -2146232060

Error Text: Cannot find the object 'CY-FYTime', because it does not exist or you do not have permission.

Statement: GrantSuAppPermissions

Any Help here is greatly appreciated!

*This post is locked for comments

I have the same question (0)
  • Carolyn Kolpien Profile Picture
    on at

    Hi SOFTADMIN,

    Let's try and resolve the timeout error first.  See KB 2558944

    "Process completed unsuccessfully" error message on the "Database Maintenance (98.290.00)" screen during a Microsoft Dynamics SL database upgrade

    mbs.microsoft.com/.../KBDisplay.aspx

  • Carolyn Kolpien Profile Picture
    on at

    Hi SOFTADMIN,

    You also could try to run the Rebuild Indexes and Stored Procedures on the upgraded database just to make sure that all indexes are created properly.  I don't recognize the CY-FYTIME object.

  • Verified answer
    Community Member Profile Picture
    on at

    Carolyn,

    Thank you for taking the time to look into this for us.  

    Fortunately I found the problem.  A previous developer had created about 25 stored procedures in my application database for a remote access application that has not been used in years.  These procedures were causing the timeout and CY-FYTime object reference.  Once I removed these procedures all of the database upgrade processes passed and we are 'Good to Go!"

    Thanks again!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics SL (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans