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