Quick question why i cannot set transaction name on this one.
TransactionManager.Instance.ForceCloseTransaction() t = Transaction(doc, 'SetParameterValue') t.Start() for e in elements: for p, v in zip(parameters, values): e.SetParameterByName(p, v) output.append(e) t.Commit() #Assign your output to the OUT variable OUT = output
and here’s the error message
Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed.
Traceback (most recent call last):
File “”, line 50, in
Exception: Starting a new transaction is not permitted. It could be because another transaction already started and has not been completed yet, or the document is in a state in which it cannot start a new transaction (e.g. during failure handling or a read-only mode, which could be either permanent or temporary).
here’s a simple script where it’s failing.
Thanks in Advance.