cubewise-code / bedrock

Bedrock is TM1 Best Practice assets built from years of TM1 experience
Other
79 stars 74 forks source link

}bedrock.cube.data.export - Transaction log left disabled when ProcessQuit is called #383

Closed mmastrolonardo closed 8 months ago

mmastrolonardo commented 1 year ago

Describe the bug The Transaction Log of the cube will be left disabled, even if it was enabled before the process being executed, when the ProcessQuit functions at lines 950 and 999 are called.

To Reproduce Steps to reproduce the behavior:

  1. Go to process '}bedrock.cube.data.export'
  2. Run it with a wrong 'pFilter' parameter and pStrictErrorHandling = 1 and pCubeLogging = 0 and pZeroTarget = 0
  3. Result is that ProcessQuit at line 950 will be called and the Transaction Log (LOGGING property) of the cube will be left disabled even if it was enabled before the process being executed:

image

Expected behavior Before executing the ProcessQuit functions at lines 950 and 999, the LOGGING property of the cube should be restored, by calling the CubeSetLogChanges function.