Migrations - What can go wrong
Posted by: Brent Martin in PeopleTools on Oct 23, 2007
Don't you hate it when you ask for a project to get migrated to Test, and it doesn't work there? Then you do some research, and it's missing some critical PeopleCode or SQL and the users are getting big ugly errors and questioning the quality of your work. Okay, maybe it's not always that dramatic, but it is always frustrating.
Here's some of the reasons things don't always get migrated and what you can do:
It’s not in the project. Just because you insert the App Engine doesn’t mean you inserted the App Engine sections. Just because you inserted a record definitition doesn’t mean the SQL/Record PeopleCode got inserted. Just because you inserted a page doesn’t mean the Page Pcode got inserted, and just because you inserted a component doesn’t mean the (almost useless) menu that refers to it got inserted, or the pages it refers to, or the component PeopleCode got inserted. Review the “Upgrade Tab” of your project to make sure all of the components are really in your project before you request that migration! Or better yet -- use the F7 key to insert everything you touch into your project as you work.
The upgrade flags weren’t set right. Once again, check the upgrade tab. Make sure the “Upgrade” flag is set for EVERYTHING that you want to migrate. Also, make sure the Action is set to Copy.
The object is locked in the target environment. This usually happens in special circumstances (like migrating code back to the development environment when applying patches). I guess it COULD happen if you have change control turned on in your target environment, but I can't think of a reason why you'd do that.
It did get migrated, but you don’t have security to see it. Lots of times the security that worked great for you in development won’t work in other environments because frankly nobody uses the ALLPAGES permission list except in DV. Part of the migration request should be a note to your security administrator to set it up in security after the migration.
The person migrating made a mistake. This happens less than you might think. The actual migration process is pretty much a no-brainer. But mistakes can happen and the person migrating might accidentally unselect an object type, or migrate it to the wrong environment. Usually it’s easy to open the project in the target environment to make sure it exists, then double-click on whatever object you want to check to make sure it’s there. You can do this even if you have read-only app designer access.
That's all I can think of. Did I miss anything?

written by Chris Heller, October 24, 2007
written by Ramesh, October 25, 2007
Make sure that Done falg is unchecked in the upgrade tab for the objects you want to migrate.
written by George Sabini, October 28, 2007
But recall that a test environment isn't only to test the code itself, but it's also meant to test everything around operationalizing the code. That includes testing the migration. DEV->TST migration failures are acceptable. TST->QA and certainly QA->PRD migrations are not. Sounds like your project might want to set the expectations of the testers that they're actually testing the migrations as well as the code. Of course, that's not sometimes possible due to team dynamics. The time of the testers might be more valuable than the developer's / administrator's time or there might be perception concerns. Then certainly the last step of the migration should be a validation by the developer / migration requestor to confirm that the migration occured completely and correctly.
written by Matt, November 05, 2007
written by Sumit Kedia, October 22, 2008
I have a problem in migrating the people code from DEV to TEST. All the objects are getting migrated there, but the people code that i have changed fro them in the DEV is not getting reflected in the TEST.
I took the record, edited the people code, added to a project..build it...copied it to a File.
In the TEST, i copied the project From File. All the objects are gettng reflected here except fro the modified peoplecode.
PS. the Upgrade tab thning which has been explained above has been tried but with no result.
