Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Error Upgrading to Dynamics GP 2013 - Incorrect syntax near ')' and eConnect_Out_Setup table

(0) ShareShare
ReportReport
Posted on by

When upgrading from GP 10 SP5 to GP 2013 SP1 for all companies I was receiving the error  at the stage of "LOADING STORED PROCEDURES - Create_Requester_Procs_cursor"

The following SQL statement produced an error:  set nocount on  declare @NAME varchar(100) declare @TEXT varchar(8000) declare taCreateRequesterProcs insensitive cursor for   select DOCTYPE from eConnect_Out_Setup (nolock) where MAIN = 1 and DOCTYPE not like '%GetList'  open taCreateRequesterProcs fetch next from taCreateRequesterProcs into @NAME while (@@fetch_status <> -1) begin  if (@@fetch_status <> -2)  begin  select @TEXT = 'exec eConnectOutCreate '+ @NAME + ', 0'  exec (@TEXT)   select @TEXT = 'exec eConnectOutCreate '+ @NAME + ', 1'  exec (@TEXT)   select @TEXT = 'exec eConnectOutCreate '+ @NAME + ', 2'  exec (@TEXT)  end   fetch next from taCreateRequesterProcs into @NAME end  deallocate taCreateRequesterProcs   

ERROR [Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near ')'.

The error is rellated to the eConnect_Out_Setup script that you are suppose to run pre-upgrade.  The script is suppose to scan through all companies and perform an update of the table eConnect_Out_setup, changing the DATACNT column from 73 to 72 for the DOCTYPE of ModiifiedIrem.  The script however does not perform the update and leads tio the above error later.

To correct please manually run the following SQL statement against each company ( I have no time to correct other peoples incorrect cursor sql statements)

Update eConnect_Out_Setup SET DATACNT = 72  where DOCTYPE = 'ModifiedItem'

Happy Upgrading

Michael Nunes
M4 Systems

*This post is locked for comments

  • Richard Wheeler Profile Picture
    75,848 Moderator on at
    RE: Error Upgrading to Dynamics GP 2013 - Incorrect syntax near ')' and eConnect_Out_Setup table

    I backed up the eConnectOut table and then removed the bogus records. I then proceeded with the upgrade and then put the bogus records back into the eConnectOut table.

  • Community Member Profile Picture
    on at
    RE: Error Upgrading to Dynamics GP 2013 - Incorrect syntax near ')' and eConnect_Out_Setup table

    Hey Richard,

    Did you get this fixed?  I'm getting this error and I have fixed the one record for the modifieditem.  There are many others with DATACNT's greater than 72.

    Thanks!

    Cory

  • Richard Wheeler Profile Picture
    75,848 Moderator on at
    RE: Error Upgrading to Dynamics GP 2013 - Incorrect syntax near ')' and eConnect_Out_Setup table

    I have this same problem. However, I do not have any records where the DOCTYPE = 'ModifiedItem'. I do have two records where the datacnt=73. The doctypes on these are 'Item' and 'Project_Acct_Misclog'. Should I try setting them to 72?  What is the purpose of that field and what do the values mean?

  • Verified answer
    Community Member Profile Picture
    on at
    RE: Error Upgrading to Dynamics GP 2013 - Incorrect syntax near ')' and eConnect_Out_Setup table

    Update eConnect_Out_Setup SET DATACNT = 72  where DOCTYPE = 'ModifiedItem'

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Featured topics

Product updates

Dynamics 365 release plans