PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 05/19/2021 3:09 PM by  Orlando Gray
Migrate Custom Tokens
 7 Replies
Sort:
You are not authorized to post a reply.
Author Messages
SP
Private
Private
Veteran Member
(320 points)
Veteran Member
Posts:122


Send Message:

--
05/18/2012 9:12 AM
    I have the need to migrate a large number of custom tokens (tokendef) from one environment to another.  Does anyone have experience and know of a clean way to accomplish this other than re-keying in tokendef?

    Can it be as simple as a rngdbdump/importdb of the specific records from the gen table 'executable' (presuming the category exists)??
    Jeff White
    Private
    Private
    Veteran Member
    (231 points)
    Veteran Member
    Posts:83


    Send Message:

    --
    05/18/2012 9:23 AM
    Try: dmpunivtkns -u
    Jeff White
    Private
    Private
    Veteran Member
    (231 points)
    Veteran Member
    Posts:83


    Send Message:

    --
    05/18/2012 9:24 AM
    Sorry. Then to load them use: ldunivtkns outfile.dmp
    SP
    Private
    Private
    Veteran Member
    (320 points)
    Veteran Member
    Posts:122


    Send Message:

    --
    05/18/2012 9:41 AM
    I think that gets every custom tokendef from one environment, along with all categories.  I don't want to migrate all the custom categories, but rather just the tokens for one specific category.

    I have dumped executable using "rngdbdump -ct executable -v CATEGORY=PREMCOLL > premium_collections_exe.csv and I have loaded it using importdb.  Everything looks good in the target environment with the exception of the "Title" in tokenddef.  Title is not a field in the EXECUTABLE table. This tells me I'm missing something.    :-o

    Do you have any idea what table houses the "Title" value as seen in tokendef under "User Form ID"
    Jeff White
    Private
    Private
    Veteran Member
    (231 points)
    Veteran Member
    Posts:83


    Send Message:

    --
    05/18/2012 9:53 AM
    Wouldn't it be easier to just migrate them all, then delete the categories that you don't want?
    SP
    Private
    Private
    Veteran Member
    (320 points)
    Veteran Member
    Posts:122


    Send Message:

    --
    05/18/2012 12:56 PM
    Jeff,

    My concern with that approach is where existing tokendef names are the same on the development server vs. production, but where the Command params are different. I would essentially be overwriting production with development parameters.

    After some research, I was finally able to use dmpunivtkns/ldunivtkns with a little bit of clean up. One particular category has over 100 tokens. So I had to be very careful.

    For what it's worth, the table I couldn't find is named, aptly enough, "TITLE." Duh!! (Thanks Kwane) Unfortunately I couldn't easily use rngdbdump on that table, because there was no good key value for the new tokens, and rngdbdump doesn't accept wildcard when dumping by field value (at least not that I could figure out.)

    Thanks for help.
    Stuart Perkins
    Private
    Private
    Basic Member
    (44 points)
    Basic Member
    Posts:18


    Send Message:

    --
    11/15/2019 5:18 AM
    Very old thread and probably not much use anymore...but...

    rngdbdump will allow a range of values in the form of "field=from:to" 
    Orlando Gray
    Analyst
    Private
    Advanced Member
    (83 points)
    Advanced Member
    Posts:31


    Send Message:

    --
    05/19/2021 3:09 PM

    Old, but great.

    Thanks so much for this Stuart.

    You are not authorized to post a reply.