Error:
You receive the following error when you upgrade Dynamics GP Toolbox to 18.3.1.
A get/change first operation on table 'RSTB_WindowFieldTriggers' failed accessing SQL data. [Microsoft][SQL Server Native Client 11.0][SQL Server]Could not find stored procedure 'DYNAMICS.dbo.zDP_RSTB005F_2'. [Microsoft][SQL Server Native Client 11.0][SQL Server]Invalid column name 'RSTB_Tool_Code'. [Microsoft][SQL Server Native Client 11.0][SQL Server]Invalid column name 'RSTB_PopUp_ID'. [Microsoft][SQL Server Native Client 11.0][SQL Server]Invalid column name 'RSTB_Datatype'. [Microsoft][SQL Server Native Client 11.0][SQL Server]Invalid column name 'RSTB_Trigger_Description'.
Resolution:
Recreate the RSTB005 table with data. The steps to do this are:
- Make a complete restorable backup and have all users exit the system.
- Run the following statement against the Dynamics database in SQL Server Management Studio:
select * into RSTB005BAK from RSTB005
- Run the following statements to verify the RSTB005BAK is populated correctly:
select * from RSTB005 select * from RSTB005BAK
- If the two tables have the same number of rows, log into Dynamics GP and recreate the RSTB005 table.
- Go to Microsoft Dynamics GP | Maintenance | SQL.
- Select DYNAMICS for the Database.
- Select Dynamics GP Toolbox for the Product.
- Highlight RSTB Window Field Triggers.
- Mark all 6 checkboxes on the right.
- Click Process.
- Back in SQL Server Management Studio, run the following statement against the Dynamics database:
insert into RSTB005 (USERID,CMPANYID,RSTB_Trigger_Tag,RSTB_Tool_Code,PRODID,FORMNAME,RESID,WINNAME,WINDSPNM,RSTB_Window_Resid,FIELDNAM,RSTB_Field_Resid,RSTB_PopUp_ID,RSTB_Datatype,RSTB_Trigger_Description) select USERID,CMPANYID,RSTB_Trigger_Tag,RSTB_Tool_Code,PRODID,FORMNAME,RESID,WINNAME,WINDSPNM,RSTB_Window_Resid,FIELDNAM,RSTB_Field_Resid,RSTB_PopUp_ID,RSTB_Datatype,RSTB_Trigger_Description from RSTB005BAK
- Run the following statements to verify the RSTB005 is populated correctly:
select * from RSTB005 select * from RSTB005BAK
- If the two tables have the same number of rows, run the following statement to drop the temporary table:
Drop Table RSTB005BAK
- Re-run the Dynamics GP Toolbox upgrade following the steps in our Knowledgebase article: