Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Upgrading from GP2010 to GP2016 - CREATE TRIGGER [uprWF_DD20100UpdateTrigger] ON DD20100

Posted on by Microsoft Employee

I am trying to upgrade a client from GP2010 to GP2016.  I get the following error message

The following SQL statement produced an error:

CREATE TRIGGER [uprWF_DD20100UpdateTrigger] ON DD20100 FOR UPDATE AS declare   @EmpID char(15), @Inactive smallint, @DDREMAIN int, @INDXLONG int, @Error_State int, @WorkflowInstanceID char(37), @WorkflowStepInstanceID char(37) if update(Workflow_Status) and ((select Workflow_Status from inserted)=6 or (select Workflow_Status from inserted)=3) begin select @EmpID = (select EMPLOYID from inserted) select @Inactive = (select INACTIVE from DD20100 where EMPLOYID = @EmpID) delete DD00100 where EMPLOYID = @EmpID insert into DD00100   select EMPLOYID, INACTIVE, DDREMAIN, INDXLONG from DD20100 where EMPLOYID = @EmpID delete DD00200 where EMPLOYID = @EmpID insert into DD00200 select EMPLOYID, INDXLONG, INACTIVE, DEDNMTHD, DEDUCTON, DDPRE, DDPRECNT, DDPCT, DDAMTDLR, DDACTNUM, DDTRANUM, DDTRANS from DD20101 where EMPLOYID = @EmpID delete DD20101 where EMPLOYID = @EmpID end  

Then I get

'Column name or number of supplied values does not match table definition'

I tried creating the DD20100 table and then restarting the upgrade - this worked for all of the companies except for one.  Does anyone know how to get around it?

Thanks!

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Upgrading from GP2010 to GP2016 - CREATE TRIGGER [uprWF_DD20100UpdateTrigger] ON DD20100

    Hi Mariano,

    It turns out the client had added columns to the DD00100 and DD00200 tables.  So when the create trigger was trying to insert into those tables the columns specified did not match.  Thank you for the suggestion :)

    Thanks,

    Brigitte

  • Suggested answer
    Mariano Gomez Profile Picture
    Mariano Gomez 26,225 on at
    RE: Upgrading from GP2010 to GP2016 - CREATE TRIGGER [uprWF_DD20100UpdateTrigger] ON DD20100

    I would also suggest recreating the DD20101 to make sure the structure matches.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans