PowerServer will use the transaction object name to map with the database cache name. But when the transaction object is defined as an argument of a function, as shown below, PowerServer will get different transaction name from PowerBuilder.

transaction ltr_tmp
ltr_tmp = create transaction
  • PowerBuilder will get ltr_tmp as the transaction object name.

    For example,

  • PowerServer will get atr_transobject as the transaction object name.

Defining the transaction object as an instance variable or global variable can ensure PowerBuilder and PowerServer get the same transaction object name.