12-19-2019, 12:54 PM
Hi Dan,
Are you experiencing the error with new transaction or previously created transactions? The original issue is that large transaction are compressed, but were being saved into the database with a couple extra characters, causing the decompression to fail. The fix only fixes new transactions.
If you try to decompress / undo a transaction a corrupted transaction, you can use this code to fix it:
Let me know if you have any different issues with the transaction system.
Thanks!
Celton
Are you experiencing the error with new transaction or previously created transactions? The original issue is that large transaction are compressed, but were being saved into the database with a couple extra characters, causing the decompression to fail. The fix only fixes new transactions.
If you try to decompress / undo a transaction a corrupted transaction, you can use this code to fix it:
Code:
from pyasm.search import Search
from pyasm.common import Common
transaction = Search.get_by_code("sthpw/transaction_log", "TRANSACTION00001945")
trans = transaction.get_value("transaction")
trans = trans.lstrip("zlib:'b")
trans = trans.rstrip("'")
trans = "zlib:%s" % trans
# test
print(Common.decompress_transaction(trans))
transaction.set_value("transaction", trans)
transaction.commit()
Let me know if you have any different issues with the transaction system.
Thanks!
Celton