cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Does anyone know how to migrate softypes from a test system to a production system?

tgudobba
14-Alexandrite

Does anyone know how to migrate softypes from a test system to a production system?

I've used LoadFromFile to export my SoftType & the result is 3 files, SoftType_0.xml, SoftType_1.xml, & SoftType_2.xml.

I then copy those files to my production server, and again, use LoadFromFile to import.

The files SoftType_0.xml & SoftType_1.xml are imported properly without any errors.

The file SoftType_2.xml hangs for hours without completing.

I've made sure the global attributes used in this soft type already exist.

We're using 10.2

1 ACCEPTED SOLUTION

Accepted Solutions
tgudobba
14-Alexandrite
(To:tgudobba)

Turns out the reason it was hanging was because it was overwriting existing soft types.

We ended up wiping out most of our other types, and this was all on the production server.

It did not do this on the test server, so we thought we were safe.

We had some backups from July that we were able to re-import & most are back. However, we had to rebuild some from scratch.

Bottom line, I am very upset with this poor, unclear process. This seems like a rudimentary task that we should be able to do without fear of messing anything up.

Unless someone can let me know why this happened & how I can prevent it from happening again, I will perform this task manually from now on.

View solution in original post

7 REPLIES 7

Do you have anything in the MS log? If not just enable the verbose from Site > Utilities > Server Status > Monitoring tools > set log level , com.ptc.core.lwc.server.TypeDefinitionLoader to ALL and retry the load

Thank you

Binesh Kumar

tgudobba
14-Alexandrite
(To:BineshKumar1)

Thanks for the tip Binesh. I've enabled the logging for TypeDefinitionLoader to ALL.

I retry the load & it looks like it goes through OK without any errors, but it still does not finish.

I have reloaded this type back into our test server & it works OK. Completes within one minute.

bsindelar
6-Contributor
(To:tgudobba)

Does any data of what you're intending to load in the XMLs call out the test server's hostname URL that may need to be changed to the production system's URL?  This isn't very common in my experience...

I assume the complexity of what was built in the test system makes it too lengthy to implement "manually" in production, which is why you are going the LoadFromFile route, yes?

tgudobba
14-Alexandrite
(To:bsindelar)

Thanks for the feedback Bob.

I reviewed these XMLs & did not see anything. It does call out the domain, but these are the same for our test & production.

This one isn't too complex, but we have others that have quite a bit of work involved in the constraints & layouts.

The file with the highest number is the only file you need to load.  You can just throw away the others, they are intermediate files that the exporter uses to build the final one (with the highest number). We are using Windchill 10.2 M030.  We move types between development, integration, demo, test, and production all the time.  You can even make a change in development, export the type, load it into another system and your change is there.

You could try taking a thread dump of the Method Server while the load is hung. The thread dump will show what the loader thread is doing at that time, and may point to the reason for the hang. Article CS107636 discusses different methods for taking thread dumps of Windchill processes.

tgudobba
14-Alexandrite
(To:tgudobba)

Turns out the reason it was hanging was because it was overwriting existing soft types.

We ended up wiping out most of our other types, and this was all on the production server.

It did not do this on the test server, so we thought we were safe.

We had some backups from July that we were able to re-import & most are back. However, we had to rebuild some from scratch.

Bottom line, I am very upset with this poor, unclear process. This seems like a rudimentary task that we should be able to do without fear of messing anything up.

Unless someone can let me know why this happened & how I can prevent it from happening again, I will perform this task manually from now on.

Top Tags