Options

Problem on upgrade to 2015 incorrect syntax near '-'

T222T222 Member Posts: 63
edited 2015-10-04 in NAV Three Tier
Hi ,

I'm doing an upgrade with a database and lots of companies.
Everything is successful except on the last company that I have this error.

on Codeunit 104055
Functionname:Start Upgrade
Error: A call to System.Data.Sqlclient.Sqlcommand.ExecuteNonQuery failed with this message: incorrect syntax near '-'

Can you please help ?

Comments

  • Options
    mark_aumark_au Member Posts: 40
    You have to remove the '-' character from all Company Names that have it.

    I had this issue upgrading a client from 5.0 to 2015 earlier this year, from memory it was one of the steps upgrading the Dimensions to the new 2013+ structure. The code was calling SQL directly with .NET I think, and I couldn't work out how to fix it.

    In the end, I just removed the '-' from their Company Name and the upgrade went through fine.
Sign In or Register to comment.