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 NAV (Archived)

SQL error during data upgrade

(0) ShareShare
ReportReport
Posted on by 2,390

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

I have the same question (0)
  • Verified answer
    keoma Profile Picture
    32,729 on at

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

  • Suggested answer
    Saurav.Dhyani Profile Picture
    14,380 Super User 2025 Season 2 on at

    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
    NavTech Profile Picture
    2,390 on at

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

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 NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans