Sage 100

 View Only
Expand all | Collapse all

PM_WorkTicketHeader WT Key is screwed up

  • 1.  PM_WorkTicketHeader WT Key is screwed up

    Posted 05-29-2025 15:08

    What controls the Key that is assigned to a new PM work ticket?  My client just went live on PM on Monday, and the work ticket key is strange for new work tickets created.  All work tickets that converted (from WO) - history and open, have their key the same as the work ticket number.  Screen shot shown below of the whacky keys now for new work tickets; this wasn't the case during testing, so something in the remigration caused the key to be weird now for new work tickets.

    Here is the list of open work tickets - under the red line are the new work tickets created since go live.  The ones above the line are converted from WO.  This list is just from a Crystal Report with a dynamic run time parameter - I had to put the key as the data field in the list, with the actual work ticket number as the 'description', otherwise data wouldn't print on the label.  I would love to change the the key so that it matches the work ticket number, but I can't even do that in DFDM.  Is there a place to make the key start creating the same as the work ticket number?



    ------------------------------
    Jane Scanlan
    Partner
    Next Level Manufacturing Consulting Group
    ------------------------------


  • 2.  RE: PM_WorkTicketHeader WT Key is screwed up

    Posted 05-29-2025 15:24

    Unofficially and from testing only here is what I have found:

     

    Sage assigns a new work ticket key by looking at the PM_WorkTicketHistoryHeader and finds the Highest key value in that table and does some sort of increment to get the next key.

     

    The problem I have seen is if a work ticket converted where the work order number in legacy version has an alpha character, then the key assigned during data conversion is also alfa. So the highest key value in work ticket history table is Alpha and then Sage gets really crazy key values going forward.

     

    For one client we found this out during testing so prior to go live, after converting data they had about 30 work orders that converted to alpha keys and they were all "test" work orders. So I used data file display and maintenance to delete those before they created any new work tickets. And then Sage used all numeric keys going forward.

     

    For the record I HATE that the WorkTickeKey field even exists and wish that had never been added. Ther may be a valid reason for that field, but I have not found a reason

     

     

     

    Need additional Sage 100 user licenses?  Talk to me about Sage Software's Buy 4 User Licenses, Get The 5th Free promotion valid until June 30th.

     

    Join us for the 2025 Intermediate Crystal Reports for Sage 100 Online Training: View the details

     

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

    David Overholt

    DWD Technology Group, Inc.

    9921 Dupont Circle Drive West, Suite 300 | Fort Wayne, IN 46825

    260.423.2414 main

    260.399.8655 Direct

    800.232.8913 toll free

    sagesupport@dwdtechgroup.com

    www.dwdtechgroup.com

     

    A black background with white text  Description automatically generated

     






  • 3.  RE: PM_WorkTicketHeader WT Key is screwed up

    Posted 05-29-2025 15:31

    Thank you @David Overholt.  I will look into WT History to see if I can find the orders with these type of goofy keys.  And I agree with you, as I've been hating on this work ticket key which I don't understand why it is needed either.  



    ------------------------------
    Jane Scanlan
    Partner
    Next Level Manufacturing Consulting Group
    ------------------------------



  • 4.  RE: PM_WorkTicketHeader WT Key is screwed up

    Posted 05-29-2025 16:25
    I have run into that as well.   Wish they had the same setup as all the other modules where there is a "Next Work Ticket Number" in the options rather than the last one from history which can for sure give you goofy keys...

     
    Bob Osborn
    ,
    MCSE
    Sr. Consultant, Sage 100
    e:
    p:
    w:
     
        





  • 5.  RE: PM_WorkTicketHeader WT Key is screwed up

    Posted 06-02-2025 11:17

    This also causes issues when doing an Excel Query.  Do I use the WT key or WT number?  To join tables, it is the Key.



    ------------------------------
    Jeff Schwenk
    Owner
    Bottomline Software, Inc.
    Waynesboro VA
    (540) 221-4444

    Improving bottom lines for over 25 years!
    ------------------------------



  • 6.  RE: PM_WorkTicketHeader WT Key is screwed up

    Posted 06-02-2025 16:40

    I believe WorkTicketKey is for the back-end data links, and not intended for the user to ever see, with WorkTicketNo being the value users see. 

    Approach it like GL Account / AccountKey and that should work.

    Yes, it is a pain when querying tables without the WorkTicketNo, having to link to the header... but it is what it is.  (My guess is they needed something to handle potential WO# / WT# duplicates when they finally converted WO history, merging it with WT history from JT/PM...).



    ------------------------------
    Kevin Moyes
    Technical Systems Analyst
    Munjal White Consulting Co.
    Toronto ON
    ------------------------------



  • 7.  RE: PM_WorkTicketHeader WT Key is screwed up

    Posted 06-02-2025 16:51

    After looking at their WO history that converted to PM WT History, I can clearly see now that they used goofy WO numbers back in 2017, that started with a W, so that's what the WT next sequence number was based off - the last highest sequence number it assigned.  Too bad, because from hereon all WT keys will be completely out of sync with their nice, clean numeric work ticket number.  Normally I would not care what the sequence number is, but since this one Crystal report couldn't handle a dynamic, run time parameter using the WT number, after figuring out that the Crystal report wouldn't print data, then I changed the run time data to make the list off the WT Key as the field to select off.  

    Thanks all for the info and guidance!



    ------------------------------
    Jane Scanlan
    Partner
    Next Level Manufacturing Consulting Group
    ------------------------------



  • 8.  RE: PM_WorkTicketHeader WT Key is screwed up

    Posted 06-02-2025 16:53

    This can get moved out of urgent.



    ------------------------------
    Jane Scanlan
    Partner
    Next Level Manufacturing Consulting Group
    ------------------------------



  • 9.  RE: PM_WorkTicketHeader WT Key is screwed up

    Posted 06-03-2025 07:03

    I agree Kevin, the problem is that instead of just starting the work ticket key at 000000000001 and incrementing during the conversion of work order to Production Management, they used the work ticket number as the key and then going forward after the conversion Sage is using the highest key in history and incrementing that to the next key.  I had one client that had created some test work orders using ZZZ0001 and that created keys that start with ZZZ and then some strange set of spaces and numbers behind it so new work tickets created after the upgrade stare with ZZZ and more cryptic values. 

     

    You're correct that at this point it is what it is. But what it is, is not ideal to say the least.

     

    Need additional Sage 100 user licenses?  Talk to me about Sage Software's Buy 4 User Licenses, Get The 5th Free promotion valid until June 30th.

     

    Join us for the 2025 Intermediate Crystal Reports for Sage 100 Online Training: View the details

     

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

    David Overholt

    DWD Technology Group, Inc.

    9921 Dupont Circle Drive West, Suite 300 | Fort Wayne, IN 46825

    260.423.2414 main

    260.399.8655 Direct

    800.232.8913 toll free

    sagesupport@dwdtechgroup.com

    www.dwdtechgroup.com

     

    A black background with white text  Description automatically generated

     






  • 10.  RE: PM_WorkTicketHeader WT Key is screwed up

    Posted 06-03-2025 08:17

    Has this been reported to Sage yet?  Sounds like if not a glitch, at least a hot enhancement item.  If not, I'll make the call.



    ------------------------------
    Susan Pawlowic
    Sage 100 Solutions Architect
    RKL eSolutions, LLC
    spawlowic@rklesolutions.com
    (717) 735-9109 Ext. 4352
    ------------------------------



  • 11.  RE: PM_WorkTicketHeader WT Key is screwed up

    Posted 06-03-2025 11:06

    @Susan Pawlowic I haven't contacted Sage, so if that is something you are able to do it would be much appreciated.  It doesn't make sense to have these keys be created so out of sync because of some conversion programming logic.



    ------------------------------
    Jane Scanlan
    Partner
    Next Level Manufacturing Consulting Group
    ------------------------------



  • 12.  RE: PM_WorkTicketHeader WT Key is screwed up

    Posted 06-03-2025 11:28

    i just tried to duplicate this in my test system by entering work ticket number S1234567 then creating a new work ticket with auto-assign, and it assigned number 95026.  I wonder if the issue occurs only when you're converting from WO?  I have one coming up in a few weeks.  I'll post the results then and if they follow the same pattern as described in this post, will contact Sage then so I have something to show them.  I did have a client self-convert last year and they did not report this issue.



    ------------------------------
    Susan Pawlowic
    Sage 100 Solutions Architect
    RKL eSolutions, LLC
    spawlowic@rklesolutions.com
    (717) 735-9109 Ext. 4352
    ------------------------------



  • 13.  RE: PM_WorkTicketHeader WT Key is screwed up

    Posted 06-03-2025 11:34
    Hi Susan
      I can confirm also that it happens. (really annoying)   My memory is a bit fuzzy, but I think it looks at the last work ticket number in history to get the next number.  

     
    Bob Osborn
    ,
    MCSE
    Sr. Consultant, Sage 100
    e:
    p:
    w:
     
        





  • 14.  RE: PM_WorkTicketHeader WT Key is screwed up

    Posted 06-03-2025 11:44

    So I completed and closed work ticket S1234567, updated all registers, confirmed it appears in the WT_HistoryHeader file, and created a new auto-assign WT which assigned number...95027.  It's not occurring in company PMZ when a work ticket is manually assigned a higher number.  It seems it's either something that occurs in a company that doesn't have the tight controls of a demo company, or it's a WO-to-PM conversion thing.  Has anyone experienced this absent of the WO conversion process?



    ------------------------------
    Susan Pawlowic
    Sage 100 Solutions Architect
    RKL eSolutions, LLC
    spawlowic@rklesolutions.com
    (717) 735-9109 Ext. 4352
    ------------------------------



  • 15.  RE: PM_WorkTicketHeader WT Key is screwed up

    Posted 06-03-2025 12:08

    I'm sure that it is WO to PM Conversion issue. Here is why:

    (note: I'm not necessarily advocating this method, I just know it worked in one very special case).

     

    At one client, prior to converting I went into DFDM and manually edited WO1 (Work Ticket header) and WON (Work Ticket History Header)  and manually deleted all work orders that started with a letter. At this client there were only a handful of records to delete and they were all work orders created as dummy and the client did not want them converted anyway. I did not even mess with WO2 or WOO tables in their case. Their work ticket numbers and work ticket keys all matched and new work tickets also match now.

     

     

     

     

     

    Need additional Sage 100 user licenses?  Talk to me about Sage Software's Buy 4 User Licenses, Get The 5th Free promotion valid until June 30th.

     

    Join us for the 2025 Intermediate Crystal Reports for Sage 100 Online Training: View the details

     

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

    David Overholt

    DWD Technology Group, Inc.

    9921 Dupont Circle Drive West, Suite 300 | Fort Wayne, IN 46825

    260.423.2414 main

    260.399.8655 Direct

    800.232.8913 toll free

    sagesupport@dwdtechgroup.com

    www.dwdtechgroup.com

     

    A black background with white text  Description automatically generated

     






  • 16.  RE: PM_WorkTicketHeader WT Key is screwed up

    Posted 06-03-2025 08:24

    We have found the same thing @David Overholt with the WT Key assignment at conversion.  In one case a fat finger of a part number in the work order field left a record in the work order history table in the old version and became the starting point for the key in the new.  We have added the WT Key field to a customized screen in work ticket inquiry to make DFDM edits to the sub-tables like work ticket step, work ticket detail etc. faster with a quick copy and paste of the key.



    ------------------------------
    Bernie Lehman
    Lehman Wesley & Associates
    ------------------------------