Deploy-sree-data-model

From PTAGISWiki

Jump to: navigation, search

The two strategies for deploying data models are:

  • copy datasource.xml from the target platform and make all your gui edits in that file which you then copy back to the target
  • isolate the XML stanzas that pertain to your data model and cut and paste those into the datasource.xml on the target

Both methods are prone to error, but the risks are easier to contain with the second method.

The structure of datasource.xml looks like this:

The new data model to be deployed is highlighted at the bottom.

An unexpected difficulty is that the datasource.xml file on production is an older format and contains a mess of datasources:

I'll try to open the file through Report Designer's query builder and save it with a trivial change. That should convert the file to the latest version. After 15 minutes of trying to open the file, it could be that Report Designer has hung. Waiting just a bit more, the Report Builder finished. I was able to then save and close the query builder and that wrote out a version 6.0 copy of datasource.xml.

The chunk of XML that needs to be cut and pasted is quite large, so a graphical editor like gedit is probably a better tool to use than vi.

Personal tools