I am using Confluence Data Center Version. I am trying to execute a query in ScriptRunner by using Create Resource->Local database connection->Preview. While executing the query i am getting the below error:
Error: Cannot change transaction read-only property in the middle of a transaction.
ScriptRunner Version: 6.15.0
Database used in PostgreSQL.
Please find the screenshot for the same.
Hi @raja_sooriya ,
After I had been struggled for some time with this same error, I decided not to make pool for Local Database Connection, but to try to make another resource as Database Connection where I included parameters of my local database. Might not be the best solution but it worked for me.
Are you using the latest ScriptRunner version for Confluence? If not, could you please update your ScriptRunner to the latest release, and retest the query again?
Thank you and Kind Regards,
Hi @Ram Kumar Aravindakshan _Adaptavist_ ,
Can you possibly think of any other solutions to the problem? I was using latest release and was facing the same problem. With some older versions of Scriptrunner I was able to see preview but I am getting error rendering macro. With the latest one I get both error whilst trying to test connection pool and the rendering error.
As you can see it is the same error. As soon as I exclude lines that requesting data from the database pool, macro is rendering with no errors.
Thank you in advance,
Phew, Atlassian Team 2021 blew by. With dozens of demos and a handful of keynotes, you may have missed some of the awesome Confluence Cloud sessions. Don't' worry, you can watch them all here or on Y...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events