EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB43715: How to create automated scripts for MicroStrategy Object Manager 9.4.x-10.x to create, import and undo packages?


Community Admin

• Strategy


This knowledge base article documents how to create automated scripts for MicroStrategy Object Manager 9.4.x-10.x to create, import and undo packages.

In Strategy 9.4.x-10.x, it is possible to setup a system to automate creating, importing and undoing Packages for Object Manager entirely from command line. This involves use of the command line projectmerge utility and xml configuration files.
Creating a package is already covered under KB34262. This gives the steps to create an xml file using an Object Manager container package. The workaround from KB43711 must be used to allow for use of undo packages.
To create an XML file to use to import the package and create the undo package the Object Manager GUI must be used but this is only for creation of the XML file. The steps for this are below.
1. Start the normal import package dialog in Object Manager
2. Choose both import and create undo package
3. Choose the option to only create the XML file as seen below.

ka04W000000Od04QAC_0EM440000002CnU.jpeg

4. Select a test package to import
5. Proceed which will create an XML file.
Once this XML file is created it can be used with the same Project Merge command line utility as used to create the package. The same steps can be used with the undo package as the selected package to create an XML file for importing the undo package. Both of these files must be modified to point to the correct package names and to have their options changed from keepboth to replace per KB43711 like above.
This leads to three XML files. The first file creates a package, the second imports the package and creates an undo package, the third imports the undo package. Each can be called from command line Project merge with the following syntax


Projectmerge -fXMLfilename.xml

Once all three commands are setup they can be configured inside of batch files that can be run by any desired third party scheduling software to completely automate the process of migrating objects between environments.


Comment

0 comments

Details

Knowledge Article

Published:

April 10, 2017

Last Updated:

June 23, 2017