For example, you’ve created a lot of envelopes on the Development server and all
of them use test Sender and/or Receiver ID, Test Indicator = T and so on. You need to
change and move these envelopes to your Production environment but it would take a lot of time
changing them one by one.
You can export the envelopes you want to change into an XML file, open this file in a text editor and make your changes. Here are the step-by-step instructions:
- Go to Deployment -> Resource Management -> Import/Export
- Click on the Export -> Go button
- Select “XML Document” (default) and click the “Next” button:
- Select “No” for “Do you wish to export resources based on a tag name?” (default)
and click the “Next” button:
- Select “Standard” for ” Which type of export should be performed on versioned resources?”
(default) and click the “Next” button:
- Select “Trading Partner Data” and click “Next”:
- Select “Envelopes” and click “Next”:
- Select “No” for ” Export Private Certificates ?” (default) and click the “Next”
- Select the envelopes you want to change and click “Next”:
- Enter the Passphrase (you’ll need it when you do Import) and click “Next”:
- Click “Finish”:
- Download Export.xml file:
- Open it in any text editor. I prefer to use special XML editors, but it’s possible
to use MS Notepad:
- Select Edit -> Replace (or click Ctrl + H), enter appropriate values and click
- Save the file.
- Import it into appropriate instance of GIS.
- To change Test Indicator from “T” to “P” for X12 ISA envelopes you should open the file in a text editor and search for all the “InterchangeTestIndicator” strings. You’ll see the following strings:
And you need to replace
- You shouldn’t use this method to change Envelopes’ names/IDs – it won’t work properly. You could use this method only for Sender/Receiver IDs, Comments, Test Indicators and so on.
- You shouldn’t use global replace method to change strings like “NAME” to “SHORT_NAME” or “A” to “B” because you could change things you don’t want to change, including XML elements’ names. This method works perfectly for changing Sender and Receiver IDs, i.e. unique strings like 1234567890 to 0987654321.
You also can make the appropriate changes in the GIS/SI database (tables gis_admin.envelope and gis_admin.envelope_parms) but I wouldn’t recommend it.