Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

SQL error during data upgrade

Posted on by 2,382

I am getting below error during data upgrade into 2015 .

A call to System.Data.SqlClient.SqlCommand.ExecuteNonQuery failed with this message: Subquery returned more
than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is
used as an expression.
The statement has been terminated.

Some sql subquery is returning more than value . Is there any way I can trace the value on which this is the error. Is there any way to debug this.

*This post is locked for comments

  • Verified answer
    NavTech Profile Picture
    NavTech 2,382 on at
    RE: SQL error during data upgrade

    I run the profiler and got some wrong data in document dimension table . fixed it .

  • Suggested answer
    Saurav.Dhyani Profile Picture
    Saurav.Dhyani 17,965 Super User 2024 Season 2 on at
    RE: SQL error during data upgrade

    What is the company name in the database.

    After NAV 2013 R2 microsoft suggest to remove all special characters from company name before doing a data migration.

  • Verified answer
    keoma Profile Picture
    keoma 32,675 on at
    RE: SQL error during data upgrade

    You could rerun data upgrade and run sql profiler before starting upgrade.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans