web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

upgrading from GP2010 (11.00.2320) (SP4) GP2013 SP1

(0) ShareShare
ReportReport
Posted on by

We are facing issue while upgrading from GP2010 (11.00.2320) (SP4) GP2013 SP1. The error we are getting while running the upgrade utilities

The following SQL statement produced an error:
CREATE PROCEDURE uprCreateTrxDatafromTimecards @EmpID char(15),@PaySched char(15),@YEAR1 smallint, @PERIODID smallint,
@O_iErrorState INT OUTPUT AS declare @cDBName char(5), @Note_Index numeric(19,5), @CompID int, @BatchID char(15), @cGETMSG12424
char(255), @iStatus int, @CompTrxNum int, @curEmpID char(15), @curJobTitle char(7), @curDept char(7), @curDivisionCode char(15), @curTimeCode char(15),
@curTrxDate datetime, @curUnitsToPay numeric (19,5), @curHrlyPayRate numeric (19,5), @curDaysWorked int, @curWeeksWorked int, @curAccureTimeBenefits tinyint,
@curCompTrxNum int, @curPayCode char(7), @NextAttendanceTrx int, @curSTATECD char(3), @curLOCALTAX char(7), @curSUTASTAT char(3), @curWRKRCOMP char(7),
@curSHFTCODE char(7), @curSHFTPREM numeric (19,5), @curUNIONCD char(7), @O_SQL_Error_State int select @BatchID = dbo.uprGetEmpBatchPrefix(@EmpID)
select @BatchID = RTRIM(@BatchID) + '-' + CONVERT(varchar,@PERIODID) select @cDBName = db_name() exec @iStatus = DYNAMICS..smGetMsgString 12424,
@cDBName, @cGETMSG12424 output, @O_SQL_Error_State output select @CompID = CMPANYID from DYNAMICS..SY01500 where INTERID = @cDBName
if not exists(select * from UPR10301 where BACHNUMB=@BatchID and UPRBCHOR = 1) begin exec @iStatus = DYNAMICS..smGetNextNoteIndex @CompID, 0,
@Note_Index output, @O_SQL_Error_State output insert into UPR10301 (BACHNUMB, UPRBCHOR, BCHCOMNT, UPRBCHFR, POSTEDDT, UPRBCHMK,
MKDBYUSR, MSCBDINC, RECPSTGS, NOFPSTGS, CNTRLTRX, CTRLEMPCT, APPROVL, APPRVLDT, APRVLUSERID, NOTEINDX) values( @BatchID, 1,
@cGETMSG12424, 1, '', 0, '', 0, 0, 0, 0, 1, 0, '', '', @Note_Index) end else update UPR10301 set CTRLEMPCT=CTRLEMPCT+1 from UPR10301
where BACHNUMB=@BatchID and UPRBCHOR = 1 DECLARE PayrollTrx CURSOR FOR select TimeCardDtl.EMPLOYID, TimeCardDtl.JOBTITLE,
TimeCardDtl.DEPRTMNT, EmpMstr.DIVISIONCODE_I,TimeCardDtl.TRXDATE, TimeCardDtl.UNTSTOPY, PAYRTAMT, TimeCardDtl.DAYSWRDK, TimeCardDtl.WKSWRKD,
TimeCardDtl.PayCode, TimeCardDtl.STATECD,TimeCardDtl.LOCALTAX, EmpPayCode.SUTASTAT, EmpPayCode.WRKRCOMP, EmpPayCode.SHFTCODE,
SHFTPREM = case SHFTTYPE when 0 then SHFTAMT when 1 then EmpPayCode.PAYRTAMT * (ShiftCode.SHFTPCT / 100) else 0.0 end, EmpMstr.UNIONCD
from UPR10501 TimeCardDtl, UPR00100 EmpMstr, UPR00400 EmpPayCode left outer join UPR41500 ShiftCode ON (EmpPayCode.SHFTCODE = ShiftCode.SHFTCODE)
where TimeCardDtl.EMPLOYID = @EmpID and EmpMstr.EMPLOYID = @EmpID and EmpPayCode.EMPLOYID = @EmpID and TimeCardDtl.Pay_Schedule = @PaySched and
TimeCardDtl.YEAR1 = @YEAR1 and TimeCardDtl.PERIODID = @PERIODID and TimeCardDtl.UNTSTOPY <> 0.0 and EmpPayCode.PAYRCORD = TimeCardDtl.PayCode
OPEN PayrollTrx; FETCH NEXT FROM PayrollTrx INTO @curEmpID, @curJobTitle, @curDept, @curDivisionCode, @curTrxDate, @curUnitsToPay,@curHrlyPayRate,
@curDaysWorked, @curWeeksWorked, @curPayCode, @curSTATECD,@curLOCALTAX, @curSUTASTAT, @curWRKRCOMP, @curSHFTCODE, @curSHFTPREM,
@curUNIONCD; WHILE @@FETCH_STATUS = 0 Begin exec uprGetNextCompTrx @CompTrxNum output, @O_SQL_Error_State output exec @iStatus =
DYNAMICS..smGetNextNoteIndex @CompID, 0, @Note_Index output, @O_SQL_Error_State output insert into UPR10302 values( @CompTrxNum, @BatchID,
@curEmpID, 1, 0, @curPayCode, @curTrxDate, @curTrxDate, @curUnitsToPay*100, @curHrlyPayRate, 0.0, 0.0, 0.0, 0.0, @curDaysWorked, @curWeeksWorked,
@curDept, @curJobTitle, @curSTATECD, @curLOCALTAX, @curSUTASTAT, @curWRKRCOMP, 'WFUSER', CONVERT(DATE,GETDATE()), '', 0, 0, @Note_Index,
0.0, @curSHFTCODE, @curSHFTPREM, '', @curUNIONCD) FETCH NEXT FROM PayrollTrx INTO @curEmpID, @curJobTitle, @curDept, @curDivisionCode, @curTrxDate,
@curUnitsToPay,@curHrlyPayRate, @curDaysWorked, @curWeeksWorked, @curPayCode, @curSTATECD,@curLOCALTAX, @curSUTASTAT, @curWRKRCOMP, @curSHFTCODE,
@curSHFTPREM, @curUNIONCD; end CLOSE PayrollTrx; DEALLOCATE PayrollTrx; if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[TAST0130]') and
OBJECTPROPERTY(id, N'IsUserTable') = 1) and (1 = (select TAACCRUE from TAST0130 where COMPANYCODE_I = @cDBName)) begin DECLARE TimeCodesTrx CURSOR
FOR select TimeCardDtl.EMPLOYID, TimeCardDtl.JOBTITLE, TimeCardDtl.DEPRTMNT, EmpMstr.DIVISIONCODE_I, TimeCodes.TIMECODE_I,TimeCardDtl.TRXDATE,
TimeCardDtl.UNTSTOPY, TimeCardDtl.DAYSWRDK, TimeCardDtl.WKSWRKD, TimeCodes.ACCRUETIMEBENEFITS_I, PayTrxDtl.COMPTRNM, TimeCardDtl.PayCode
from UPR10501 TimeCardDtl, UPR10302 PayTrxDtl, UPR00100 EmpMstr, TATM0130 TimeCodes where TimeCardDtl.EMPLOYID = @EmpID and TimeCardDtl.
Pay_Schedule = @PaySched and TimeCardDtl.YEAR1 = @YEAR1 and TimeCardDtl.PERIODID = @PERIODID and TimeCardDtl.UNTSTOPY <> 0.0 and
PayTrxDtl.EMPLOYID = @EmpID and TimeCardDtl.PayCode = PayTrxDtl.UPRTRXCD and PayTrxDtl.BACHNUMB = @BatchID and TimeCardDtl.TRXDATE =
PayTrxDtl.TRXBEGDT and TimeCardDtl.DEPRTMNT = PayTrxDtl.DEPRTMNT and TimeCardDtl.JOBTITLE = PayTrxDtl.JOBTITLE and TimeCardDtl.STATECD =
PayTrxDtl.STATECD and TimeCardDtl.LOCALTAX = PayTrxDtl.LOCALTAX and TimeCardDtl.SHFTCODE = PayTrxDtl.SHFTCODE and EmpMstr.EMPLOYID =
@EmpID and TimeCardDtl.PayCode = TimeCodes.PAYRCORD OPEN TimeCodesTrx; FETCH NEXT FROM TimeCodesTrx INTO @curEmpID, @curJobTitle,
@curDept, @curDivisionCode, @curTimeCode, @curTrxDate, @curUnitsToPay, @curDaysWorked, @curWeeksWorked, @curAccureTimeBenefits, @curCompTrxNum,
@curPayCode; WHILE @@FETCH_STATUS = 0 Begin exec @iStatus = dbo.hrGetNextAttendanceTrx @NextAttendanceTrx OUTPUT, @O_SQL_Error_State OUTPUT;
exec @iStatus = DYNAMICS..smGetNextNoteIndex @CompID, 0, @Note_Index output, @O_SQL_Error_State output insert into TATX1030 values( @NextAttendanceTrx,
@curEmpID, @curJobTitle, @curDept, @curDivisionCode, @curTimeCode, @curTrxDate, @curTrxDate, @curUnitsToPay * 100, 0, @curDaysWorked, @curWeeksWorked,
0, @curAccureTimeBenefits, 0, '', '', 1, @BatchID, @curCompTrxNum, 0, @curPayCode, 'WFUSER', CONVERT(DATE,GETDATE()), CONVERT(TIME,DateAdd(ms, -DatePart
(ms,getdate()), getdate())), @Note_Index); update TATM2030 set HOURSAVAILABLE_I = @curUnitsToPay * 100 from TATM2030 TaMstrYrMax, TATX1030 TaTrxDtl
where TaMstrYrMax.EMPID_I = @EmpID and TaMstrYrMax.TIMECODE_I = @curTimeCode and TaMstrYrMax.YEAR1 = @YEAR1 and TaTrxDtl.EMPID_I = @EmpID and @curTimeCode =
TaTrxDtl.TIMECODE_I and TaTrxDtl.ACCFLG = 1 update TATM1030 set HOURS_I = TaMstrTypes.HOURS_I + @curUnitsToPay * 100, HOURSAVAILABLE_I = TaMstrTypes.HOURSAVAILABLE_I -
@curUnitsToPay * 100, DAYSWRDK = @curDaysWorked - TaMstrTypes.DAYSWRDK, WKSWRKD = @curWeeksWorked - TaMstrTypes.WKSWRKD from TATM1030 TaMstrTypes,
TATX1030 TaTrxDtl where TaMstrTypes.EMPID_I = @EmpID and TaMstrTypes.TIMECODE_I = @curTimeCode and TaTrxDtl.ACCFLG = 0 FETCH NEXT FROM TimeCodesTrx INTO @curEmpID,
@curJobTitle, @curDept, @curDivisionCode, @curTimeCode, @curTrxDate, @curUnitsToPay, @curDaysWorked, @curWeeksWorked, @curAccureTimeBenefits, @curCompTrxNum, @curPayCode;
end CLOSE TimeCodesTrx; DEALLOCATE TimeCodesTrx; end insert into UPR30500 select EMPLOYID, Pay_Schedule, YEAR1, PERIODID, Workflow_Status from UPR10500 where EMPLOYID =
@EmpID and Pay_Schedule = @PaySched and YEAR1 = @YEAR1 and PERIODID = @PERIODID and (Workflow_Status = 3 or Workflow_Status = 6) insert into UPR30501 select EMPLOYID,
Pay_Schedule, YEAR1, PERIODID, TRXNUMBER, TRXDATE, PayCode, UNTSTOPY, DEPRTMNT, JOBTITLE, STATECD, LOCALTAX, SHFTCODE, DAYSWRDK, WKSWRKD, SEQNUMBR,
CMMTTEXT from UPR10501 where EMPLOYID = @EmpID and Pay_Schedule = @PaySched and YEAR1 = @YEAR1 and PERIODID = @PERIODID and UNTSTOPY <> 0.0
insert into UPR30502 select EMPLOYID, Pay_Schedule, YEAR1, PERIODID, TRXNUMBER, LNSEQNBR, STRTTIME, ENDTIME, UNTSTOPY from UPR10502 where EMPLOYID =
@EmpID and Pay_Schedule = @PaySched and YEAR1 = @YEAR1 and PERIODID = @PERIODID delete UPR10500 where EMPLOYID = @EmpID and Pay_Schedule =
@PaySched and YEAR1 = @YEAR1 and PERIODID = @PERIODID delete UPR10501 where EMPLOYID = @EmpID and Pay_Schedule = @PaySched and YEAR1 = @YEAR1 and PERIODID =
@PERIODID delete UPR10502 where EMPLOYID = @EmpID and Pay_Schedule = @PaySched and YEAR1 = @YEAR1 and PERIODID = @PERIODID return(@@ERROR)


ERROR [Microsoft][SQL Server Native Client 10.0][SQL Server]Invalid column name 'PAYRCORD'.

My environment information:

OS: Win 2008 R2

SQL: MS SQL 2008 R2 SP2

We started the upgrade process from GP10, upgrade from GP10 to GP2010 was successful but when we started upgrade from GP2010 to GP2013 SP1 we started encountering the above error message.

Please help us to resolve this issue.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Thomas Newcomb Profile Picture
    1,810 on at

    Hi Mohammed!

    It seems that a stored procedure or table was not properly upgraded in a previous upgrade. I would recommend creating a case with us here at Microsoft Dynamics GP so we can look into this deeper then we can on the forums.

    ~Thomas Newcomb

    ------------------------------------------

    Microsoft Dynamics GP Support

    ------------------------------------------

    This posting is provided "AS IS" with no warranties, and confers no rights

  • Community Member Profile Picture
    on at

    Hi Thomas,

    I can't create new case from customer source site. Do you have support email ID for MS GP.

  • Suggested answer
    soma Profile Picture
    24,410 on at

    Please have a look on the below link.

    community.dynamics.com/.../285784.aspx

    Hope this helps!!!

  • Community Member Profile Picture
    on at

    Hi Soma,

    Thank you for your updates. I followed the link, unfortunately its didn't help. I believe last update for payroll didn't go well. I dropped the stored procedure for payroll and tried again updates. Its give another error. Please find below.

    *********************************************************************************************

    The following SQL statement produced an error:

    create procedure GLReverseHistYear  @YearToOpen INT,  @O_iErrorState INT = NULL OUTPUT  as BEGIN  declare @sql1 NVARCHAR(4000),  @sql2 NVARCHAR(4000),  @sql3 NVARCHAR(4000),  @ColumnName VARCHAR(100),  @l_cBBF     VARCHAR(255),   @l_cPANDL   VARCHAR(255),   @l_cINTERID CHAR(5),  @l_nStatus  INT,   @l_nError   INT   declare @sql4 table (aaGLHdrID int)   set @l_cINTERID = DB_NAME()   exec    @l_nStatus = DYNAMICS.dbo.smGetMsgString 12030, @l_cINTERID, @l_cBBF output, @O_iErrorState output   select @l_nError = @@error   if @l_nStatus = 0 and @l_nError <> 0   select @l_nStatus = @l_nError   if ( (@l_nStatus <> 0) or (@O_iErrorState <> 0) )   return (@l_nStatus)    exec    @l_nStatus = DYNAMICS.dbo.smGetMsgString 12125, @l_cINTERID, @l_cPANDL output, @O_iErrorState output   select @l_nError = @@error   if @l_nStatus = 0 and @l_nError <> 0   select @l_nStatus = @l_nError   if ( (@l_nStatus <> 0) or (@O_iErrorState <> 0) )   return (@l_nStatus)    set @O_iErrorState = 0   if (select count(*) from syscolumns c inner join sysobjects o on c.id = o.id   where o.type = 'U' and o.name = 'GL20000')  <>  (select count(*) from syscolumns c inner join sysobjects o on c.id = o.id   where o.type = 'U' and o.name = 'GL30000')  begin  set @O_iErrorState = 21125  return @O_iErrorState  end   declare T_cursor cursor for   select c.name from syscolumns c inner join sysobjects o on o.id = c.id   where o.name = 'GL20000' and c.name not in ('OPENYEAR', 'DEX_ROW_ID') order by c.name   set @sql1 = ''   open T_cursor  fetch next from T_cursor into @ColumnName   while (@@fetch_status <> -1)  begin  set @sql1 = @sql1+','+rtrim(@ColumnName)  fetch next from T_cursor into @ColumnName   end   close T_cursor  deallocate T_cursor   declare T_cursor cursor for   select c.name from syscolumns c inner join sysobjects o on o.id = c.id   where o.name = 'GL30000' and c.name not in ('HSTYEAR', 'DEX_ROW_ID') order by c.name   set @sql2 = ''   open T_cursor  fetch next from T_cursor into @ColumnName   while (@@fetch_status <> -1)  begin  set @sql2 = @sql2+','+rtrim(@ColumnName)  fetch next from T_cursor into @ColumnName   end   close T_cursor  deallocate T_cursor   if @sql1 <> @sql2  begin  set @O_iErrorState = 21125  return @O_iErrorState  end   set @sql3 = 'insert into GL20000 (OPENYEAR'+@sql1+') select HSTYEAR'+@sql2+' from GL30000   where HSTYEAR = '+cast(@YearToOpen as varchar(4))   exec sp_executesql @sql3  if @@Error <> 0  begin  set @O_iErrorState = 21126  return @O_iErrorState  end   delete GL30000 where HSTYEAR = @YearToOpen   delete GL10111 where YEAR1 = @YearToOpen  delete MC30001 where HSTYEAR = @YearToOpen  delete GL10110 where YEAR1 = (@YearToOpen+1) and PERIODID = 0  delete MC00201 where OPENYEAR = (@YearToOpen+1) and PERIODID = 0   delete GL20000 where OPENYEAR = (@YearToOpen+1) and SOURCDOC in (@l_cBBF, @l_cPANDL)   if (select count(*) from syscolumns c inner join sysobjects o on c.id = o.id   where o.type = 'U' and o.name = 'GL20001')  <>  (select count(*) from syscolumns c inner join sysobjects o on c.id = o.id   where o.type = 'U' and o.name = 'GL30001')  begin  set @O_iErrorState = 21127  return @O_iErrorState  end   declare T_cursor cursor for   select c.name from syscolumns c inner join sysobjects o on o.id = c.id   where o.name = 'GL20001' and c.name not in ('OPENYEAR', 'DEX_ROW_ID') order by c.name   set @sql1 = ''   open T_cursor  fetch next from T_cursor into @ColumnName   while (@@fetch_status <> -1)  begin  set @sql1 = @sql1+','+rtrim(@ColumnName)  fetch next from T_cursor into @ColumnName   end   close T_cursor  deallocate T_cursor   declare T_cursor cursor for   select c.name from syscolumns c inner join sysobjects o on o.id = c.id   where o.name = 'GL30001' and c.name not in ('HSTYEAR', 'DEX_ROW_ID') order by c.name   set @sql2 = ''   open T_cursor  fetch next from T_cursor into @ColumnName   while (@@fetch_status <> -1)  begin  set @sql2 = @sql2+','+rtrim(@ColumnName)  fetch next from T_cursor into @ColumnName   end   close T_cursor  deallocate T_cursor   if @sql1 <> @sql2  begin  set @O_iErrorState = 21127  return @O_iErrorState  end   set @sql3 = 'insert into GL20001 (OPENYEAR'+@sql1+') select HSTYEAR'+@sql2+' from GL30001   where HSTYEAR = '+cast(@YearToOpen as varchar(4))   exec sp_executesql @sql3  if @@Error <> 0  begin  set @O_iErrorState = 21128  return @O_iErrorState  end   delete GL30001 where HSTYEAR = @YearToOpen   delete GL20001 where OPENYEAR = (@YearToOpen+1) and SOURCDOC in (@l_cBBF, @l_cPANDL)   if exists (select * from dbo.sysobjects where name = 'AAG40000')  begin   insert into @sql4   select a.aaGLHdrID   from AAG30000 a join AAG30001 b on a.aaGLHdrID = b.aaGLHdrID   WHERE a.YEAR1 = (@YearToOpen + 1) and b.SOURCDOC in (@l_cBBF, @l_cPANDL)  group by a.aaGLHdrID  order by a.aaGLHdrID   INSERT INTO AAG30000 SELECT aaGLHdrID, JRNENTRY, RCTRXSEQ, YEAR1,   aaTRXType, aaGLTRXSource, aaTRXSource, GLPOSTDT, Ledger_ID   FROM AAG40000 WHERE YEAR1 = @YearToOpen   INSERT INTO AAG30001 (aaGLHdrID,aaGLDistID, INTERID, CorrespondingUnit,   ACTINDX, ACCTTYPE, aaBrowseType, DECPLACS, DEBITAMT, CRDTAMNT,   ORDBTAMT,ORCRDAMT,CURNCYID,CURRNIDX, RATETPID,EXGTBLID,  XCHGRATE,EXCHDATE,TIME1,RTCLCMTD, DENXRATE,MCTRXSTT, SEQNUMBR,  aaCustID,aaVendID,aaSiteID,aaItemID,EMPLOYID, aaCopyStatus, SOURCDOC, aaChangeDate,aaChangeTime)   SELECT aaGLHdrID,aaGLDistID, INTERID, CorrespondingUnit,   ACTINDX, ACCTTYPE, aaBrowseType, DECPLACS, DEBITAMT, CRDTAMNT,   ORDBTAMT,ORCRDAMT,CURNCYID,CURRNIDX, RATETPID,EXGTBLID,  XCHGRATE,EXCHDATE,TIME1,RTCLCMTD, DENXRATE,MCTRXSTT, SEQNUMBR,  aaCustID,aaVendID,aaSiteID,aaItemID,EMPLOYID, aaCopyStatus, SOURCDOC, aaChangeDate,aaChangeTime   FROM AAG40001 WHERE exists(SELECT 1 FROM AAG40000   WHERE AAG40000.aaGLHdrID = AAG40001.aaGLHdrID and YEAR1 = @YearToOpen)   INSERT INTO AAG30002 (aaGLHdrID,aaGLDistID,aaGLAssignID, DEBITAMT,CRDTAMNT,  ORDBTAMT,ORCRDAMT,aaAssignedPercent, DistRef,NOTEINDX)  SELECT aaGLHdrID,aaGLDistID,aaGLAssignID, DEBITAMT,CRDTAMNT,  ORDBTAMT,ORCRDAMT,aaAssignedPercent, DistRef,NOTEINDX  FROM AAG40002 WHERE exists(SELECT 1 FROM AAG40000   WHERE AAG40000.aaGLHdrID = AAG40002.aaGLHdrID and YEAR1 = @YearToOpen)   INSERT INTO AAG30003 (aaGLHdrID, aaGLDistID, aaGLAssignID, aaTrxDimID, aaTrxCodeID)   SELECT aaGLHdrID, aaGLDistID, aaGLAssignID, aaTrxDimID, aaTrxCodeID   FROM AAG40003 WHERE exists(SELECT 1 FROM AAG40000   WHERE AAG40000.aaGLHdrID = AAG40003.aaGLHdrID and YEAR1 = @YearToOpen)   DELETE AAG40001 WHERE exists(SELECT 1 FROM AAG40000   WHERE AAG40000.aaGLHdrID = AAG40001.aaGLHdrID and YEAR1 = @YearToOpen)   DELETE AAG40002 WHERE exists(SELECT 1 FROM AAG40000   WHERE AAG40000.aaGLHdrID = AAG40002.aaGLHdrID and YEAR1 = @YearToOpen)   DELETE AAG40003 WHERE exists(SELECT 1 FROM AAG40000   WHERE AAG40000.aaGLHdrID = AAG40003.aaGLHdrID and YEAR1 = @YearToOpen)   DELETE AAG40000 WHERE YEAR1 = @YearToOpen   DELETE AAG30002 WHERE exists(SELECT 1 FROM AAG30001   inner join AAG30000 on AAG30001.aaGLHdrID = AAG30000.aaGLHdrID WHERE AAG30001.aaGLHdrID = AAG30002.aaGLHdrID  and YEAR1 = (@YearToOpen + 1) and SOURCDOC in (@l_cBBF, @l_cPANDL))   DELETE AAG30003 WHERE exists(SELECT 1 FROM AAG30001  inner join AAG30000 on AAG30001.aaGLHdrID = AAG30000.aaGLHdrID WHERE AAG30001.aaGLHdrID = AAG30003.aaGLHdrID and YEAR1 = (@YearToOpen + 1) and SOURCDOC in (@l_cBBF, @l_cPANDL))   DELETE AAG30001 WHERE exists(SELECT 1 FROM AAG30000  WHERE AAG30000.aaGLHdrID = AAG30001.aaGLHdrID and YEAR1 = (@YearToOpen + 1) and SOURCDOC in (@l_cBBF, @l_cPANDL))  DELETE AAG30000 WHERE aaGLHdrID in (select aaGLHdrID from @sql4)  end   UPDATE SY40101 set HISTORYR = 0 WHERE YEAR1 = @YearToOpen  if exists (select * from SY40101 WHERE YEAR1 = (@YearToOpen-1))  begin  UPDATE GL40000 set LSTCLSDT = (SELECT LSTFSCDY FROM SY40101 WHERE YEAR1 = (@YearToOpen-1))   end END    

    ERROR [Microsoft][SQL Server Native Client 10.0][SQL Server]Invalid column name 'Ledger_ID'.

  • Community Member Profile Picture
    on at

    How we can remove the payroll module. Is there any sql script for removing HR & Payroll tables. We are not using this module.

  • Community Member Profile Picture
    on at

    Hi Soma,

    I tired the above link. But still we can't upgrade. HR module not enabled in our live data and payroll by automatically comes while GP10 installation. I have removed payroll stored procedures as well and again received the same error. stored procedure error. 'PAYRCORD'

  • Thomas Newcomb Profile Picture
    1,810 on at

    Hi Mohammed!

    I do apologize that I didn't respond sooner! I do not believe that there is an email address to create a case however I do have the MBS Support phone number on hand.

    1-888-477-7877

    Hope this helps!

    ~Thomas Newcomb

    ------------------------------------------

    Microsoft Dynamics GP Support

    ------------------------------------------

    This posting is provided "AS IS" with no warranties, and confers no rights

  • Community Member Profile Picture
    on at

    Hi Mohammed,

    Brother will you please let me know if your issue is resolved? I am also facing same issue but in my case I have successfully installed 2013SP1 and while upgrading it from 2013SP1 to 2013R2 I am getting this error.

    Please let me know if your issue is resolved and what steps you have followed.

    Thanks & Regards,

    Sanjay

  • Community Member Profile Picture
    on at

    Hi All,

    I have also faced this issue while upgrading GP 2013SP1 to GP2015R2. I have uninstalled GP 2013R2 and reinstalled GP 2013SP1 with Payroll module. Later I upgraded GP from 2013SP1 to 2013R2. I havent recieved any error later in 2013R2 as well 2015R2.  

  • Community Member Profile Picture
    on at

    Hi Mohammad,

    Do you have GP 2010 SP3 or SP4 setup?

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Dan Liebl Profile Picture

Dan Liebl 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans