REST API: Variables info missing when deploy a TI process
Posted: Tue May 12, 2020 12:45 pm
Hi everyone!
I have a question about deploying a TI process with REST API without server restart (for example, hot deploy from test to prod).
I do this by exporting TI to JSON first:
And then with a POST I send this JSON to target server:
So everything is working perfectly except for variables. JSON only contains TI variables names and types. It does not have the information if the variables should be ignored or it is 'other' variable. It also ignores custom variables that have formulas. The result is that in the target server the TI process has all variables set to 'ignore' which is not ideal. The custom variables are not created in target server at all.
If then I examine the *.pro files, there will also be a difference. In the source server the *.pro file contains section with variables info:
While the same section in the target server will be empty:
So this means that not all information is passed when we deploy a TI with that REST API method. Does anyone have any idea how to fix that? Any advice is appreciated!
I have a question about deploying a TI process with REST API without server restart (for example, hot deploy from test to prod).
I do this by exporting TI to JSON first:
Code: Select all
api/v1/Processes('ProcessName')?$select=Name,HasSecurityAccess,PrologProcedure,MetadataProcedure,DataProcedure,EpilogProcedure,DataSource,Parameters,Variables > output.json
Code: Select all
api/v1/Processes -d @"output.json" -H "Content-Type: application/json"
If then I examine the *.pro files, there will also be a difference. In the source server the *.pro file contains section with variables info:
Code: Select all
582,5
VarType=32ColType=827
VarType=32ColType=827
VarType=32ColType=827
VarType=32ColType=827
VarName=V5VarType=32ColType=827VarFormula=V5='TestVar';:VarFormulaDestination=BOTH
Code: Select all
582,0