× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
tgreen reported 2021-12-17T21:04:39Z  · last modified 2021-12-20T14:48:17Z

System generated AquaScript either generates bad scripts, or aqua.project.getServerConnection() doesn't work


Priority Major
Complexity Unknown
Component Open API - Aqua
Version 22.1

I ran a query and needed to save the results to an Excel spreadsheet. Since I knew I was going to have to do this multiple times I thought I'd test out the AquaScript functionality, something I've never done despite having used the product for more than a decade.

From the Save Results screen I clicked on the AquaScript to review it, then click the Generate AquaScript button. (See attached) After generating the script and then opening it, I click Run and it immediately fails with the error (See attached): 

Error on line 2: Wrapped com.aquafold.openapi.AQException: Connection not found: Prod (#2)

Since this is auto-generated code I assume it's correct code but there's a bug in the function, but I don't really know. I tried multiple server connections and tried different ways of specifying the database connection name figuring it might be something silly - like maybe it needed to be "Local Database Servers/Prod". Anyway, spent way too much time trying to find documentation on exactly how the server name needed to be specified without any luck. Whatever the problem is, the fact that the product-generated code immediately fails is a bit unfortunate.

Note, a language reference for AquaScript would be really handy. I looked all over trying to figure out not only this connection issue but also what's the syntax for a loop or error handling and other language syntax. I found API documentation but no language reference. 

 

5 attachments

Issue #15881

New
 
 
Completion
No due date
No fixed build
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017