External Data Sources (EDS) - Complete Guide
OverviewDirect link to Overview
An External Data Source (EDS) connects a Softyflow application to an external database or service. Applications can use the connection to read or write data, subject to the permissions of the configured account.
Before you start, obtain the server address, credentials and network access required by the source. Keep separate connection settings for Test, UAT and Production. Use an account with only the permissions your application needs.
Choose the source type below, enter its connection settings, then test the connection in the intended environment.
Supported EDS TypesDirect link to Supported EDS Types
Choose one of these source types:
- Relational Databases: MySQL, PostgreSQL, Oracle Database, Microsoft SQL Server
- Cloud Data Warehouses: Snowflake
- API Integrations: Fully customizable REST APIs
- Directory Services: LDAP (currently in Beta)
1. The EDS PageDirect link to 1. The EDS Page
Open External databases from the dock (or the Hub). The list shows every source with its connector type; click Create EDS to add one, or click a source to open its page. Each source has its own page, /ide/database/<id>, with:
- a header with the Back button, the source name, its ID (click to copy) and the save indicator (EDS saved / Unsaved changes: click it to save);
- three tabs: Configuration, Access rights and Tests.
The Configuration tab has two parts:
- General: the Name and the EDS Type, chosen among tiles (MySQL, PostgreSQL, SQL Server, Oracle, Snowflake, API REST and LDAP, in Beta). Changing the type resets the TEST, UAT and PROD configurations, after a confirmation.
- Environments: the settings of TEST, UAT and PROD, one at a time. Copy from copies the configuration of another environment, and Test connection (Test the API for an API source) checks the source with the credentials of the selected environment.

The Flowy AI tab on the right edge (or Ctrl+I) opens the Flowy panel on the page: Flowy can analyse, create, configure and test the source with you. See 5.5. Asking Flowy.
2. EDS Configuration by TypeDirect link to 2. EDS Configuration by Type
Open the source page (see The EDS page), choose a source type, then fill in the settings listed below for each environment.
2.1. MySQLDirect link to 2.1. MySQL
Use this type to connect to a MySQL database.
Configuration Steps:
- In the EDS section, create a new data source and select "MySQL" as the type.
- Fill in the required connection parameters (Host, User, Password, Database) for each environment: TEST, UAT, and PROD.
- (Optional) Configure advanced settings using a JSON object in the
optionsfield for finer control over the connection behavior. - Use the Test connection button for each environment to check that the parameters are correct and the database is reachable. The test uses the saved configuration: your changes are saved first.

Common Advanced Options:
The JSON options field allows for advanced configuration to meet specific security or performance needs.
{
"charset": "utf8mb4",
"timezone": "Z",
"ssl": {
"rejectUnauthorized": true,
"ca": "..."
},
"acquireTimeout": 30000,
"timeout": 60000
}
charset: Defines the character encoding.utf8mb4is highly recommended to support a full range of Unicode characters, including emojis.timezone: Sets the database timezone (e.g.,Zfor UTC).ssl: Configures SSL for a secure, encrypted connection. It is critical to setrejectUnauthorizedtotruein production.acquireTimeout: The maximum time (in milliseconds) to wait for a connection from the pool.timeout: The maximum time (in milliseconds) a query is allowed to run before being aborted.
2.2. PostgreSQLDirect link to 2.2. PostgreSQL
Use this type to connect to a PostgreSQL database.
Connection Parameters: The configuration for PostgreSQL mirrors that of MySQL, requiring the standard host, user, password, and database details.

Advanced Configuration Example:
This JSON object configures a secure PostgreSQL connection with specific timeouts. The ssl object can disable rejection of unauthorized certificates, which is useful for development environments with self-signed certificates, but should be avoided in production.
{
"ssl": {
"rejectUnauthorized": false,
"ca": "...",
"key": "...",
"cert": "..."
},
"statement_timeout": 30000,
"query_timeout": 30000,
"application_name": "Softyflow"
}
statement_timeout: Aborts any statement that takes more than the specified number of milliseconds. This prevents long-running queries from impacting overall database performance.application_name: Sets a custom application name in PostgreSQL logs, making it easier to identify and debug Softyflow-related activities.
2.3. Oracle DatabaseDirect link to 2.3. Oracle Database
Use this type to connect to an Oracle database.
Connection Parameters:
Configuration requires a user, password, and a connectString. The options object can be used to configure the connection pool, which significantly improves performance by reusing established database connections.

Connect String Formats: Softyflow supports multiple standard Oracle connect string formats:
- Easy Connect / Easy Connect Plus:
hostname:port/service_name - Two-Part Naming (TNS) Format: `(DESCRIPTION=...)(CONNECT_DATA=(SERVICE_NAME=...)))
2.4. Microsoft SQL ServerDirect link to 2.4. Microsoft SQL Server
Use this type to connect to Microsoft SQL Server.
Connection Parameters:
The configuration includes user, password, database, and the server address. The options object is particularly important for managing encryption and authentication.

Alternative Authentication Methods: In addition to standard SQL authentication, Softyflow supports Windows Authentication (NTLM) and Azure Active Directory for seamless integration with Microsoft ecosystems.
Windows Authentication (NTLM):
{ "domain": "YOUR_DOMAIN", "authentication": { "type": "ntlm", "options": { "userName": "username", "password": "password" } } }Azure Active Directory Password Authentication:
{ "authentication": { "type": "azure-active-directory-password", "options": { "userName": "user@yourdomain.com", "password": "password" } } }
2.5. SnowflakeDirect link to 2.5. Snowflake
Use this type to connect to a Snowflake data warehouse.
Connection Parameters:
Configuration requires your Snowflake account identifier (e.g., xy12345.east-us-2.azure), username, and password. You can also specify the default database, warehouse, and schema to simplify queries.

Key-Pair Authentication (for MFA):
For enhanced security, especially when multi-factor authentication is enabled, you should use key-pair authentication. This method uses a privateKey and an optional passphrase instead of a password.
{
"authenticator": "snowflake_jwt",
"privateKey": "-----BEGIN ENCRYPTED PRIVATE KEY-----\n...\n-----END ENCRYPTED PRIVATE KEY-----",
"passphrase": "your_key_passphrase"
}
2.6. APIDirect link to 2.6. API
Use an API source to call a REST service from your application. It can connect to an internal service or a third-party platform. See the API guide for more examples.
Basic Configuration:
Set the Base URL (optional) and the Timeout in milliseconds. An empty Timeout means 10,000 ms (it was 1,000 ms before 8.6). Global headers are sent with every request. The Pre-run script runs before every call (token, signature…): its returned value is available as variables in the endpoints and headers. For example, it can fetch an OAuth 2.0 token. The script must return an object (for example return { token };), even an empty one: otherwise the call fails with the error EDS pre-run script must return an object. The script drawer has its own tester (Test the script) with test variables. The API Quick Documentation card on the left lists the variables sent by the components.

Endpoint Configuration:
The Endpoints card has one row per operation. For each one, choose the HTTP method and type the path, relative to the base URL; variables go between double curly braces (for example {{SF_table}}). The three buttons of the row open the Headers of the operation, the Request body (a JavaScript expression whose result is sent as the body, ignored for a GET request; it is stored in the params field of the endpoint) and the Response mapping (a function that returns the data from SF_result); a dot shows the ones that are configured.

Available Endpoint Types:
retrieve: Fetch a single record by its ID.list: Fetch multiple records, with built-in support for pagination and filtering.count: Count the total number of records that match a query.insert: Create a new record.insertMany: Create multiple records in a single API call.update: Modify an existing record.delete: Remove a record.execute: A flexible type for custom operations that do not fit the standard CRUD (Create, Read, Update, Delete) model.
Available Context Variables: Within your endpoint configuration, you can use dynamic context variables to construct your requests, enabling powerful, data-driven integrations.

SF_source: An object containing the query parameters sent from the front-end widget or action (e.g., search terms, filters).SF_table: The name of the table or resource being queried.SF_postData: The data payload forPOST,PUT, orPATCHoperations.SF_limit: The maximum number of records to retrieve (for pagination).SF_sortby: The field name to sort the results by.SF_page: The current page number for pagination.SF_direction: The sort direction (1for ascending,-1for descending).
2.7. LDAP (Beta)Direct link to 2.7. LDAP (Beta)
LDAP connects Softyflow to a directory such as Microsoft Active Directory or OpenLDAP. Use it to look up user information or check a user’s identity. This source type is in Beta.
Connection Parameters:
Enter the server URL, the service account’s bind DN and its password. Use options for extra settings, such as tlsOptions for the secure connection.

LDAPS (Secure LDAP) Configuration:
For a secure connection over SSL/TLS, use the ldaps:// protocol in the URL and provide the necessary certificate authority (CA) information to ensure the server's identity is trusted.
{
"URL": "ldaps://ldap.example.com:636/",
"DN": "cn=service_account,ou=services,dc=example,dc=com",
"password": "service_account_password",
"options": {
"tlsOptions": {
"ca": ["-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----"],
"rejectUnauthorized": true
}
}
}
3. Environment and Access ControlDirect link to 3. Environment and Access Control
3.1. Multi-Environment SetupDirect link to 3.1. Multi-Environment Setup
Softyflow is architected to support a professional DevOps lifecycle by providing three distinct, isolated environments for each EDS configuration:
- TEST: Used for initial development and unit testing on a developer's local machine.
- UAT: A shared environment for User Acceptance Testing and quality assurance, closely mirroring production.
- PROD: The live production environment accessed by end-users.
This fundamental separation allows you to use different database credentials, API endpoints, or server addresses for each stage, creating a safe and reliable deployment pipeline from development to production.
3.2. Role-Based Access Control (RBAC)Direct link to 3.2. Role-Based Access Control (RBAC)
Set which roles can create, read, update or delete data in the Access rights tab: click Add a role, choose the role and keep only the rights it needs among Create, Read, Update and Delete. With no role, nobody can use the source. See Role Management to define those roles.
A new EDS created in the IDE, and each role added with Add a role, starts with the role Everybody and the four rights ticked. Every signed-in user has the role Everybody: with these default rights, every signed-in user can read, write and run free SQL through the source, and the guard of 3.3 does not apply. Untick the rights you do not need, or replace Everybody with the roles that really use the source. (A source created by Flowy starts read only instead, see 5.5.)

Available Permissions:
create: Allows users in the specified group to insert new records.read: Allows users to query and retrieve data.update: Allows users to modify existing records.delete: Allows users to remove records from the data source.
The execute method (a free SQL statement, or the execute operation of an API source) requires the four rights together: one of the user's roles must have Create, Read, Update and Delete on the source. Otherwise the call is refused (403).
3.3. What a Page May Send to a SQL EDSDirect link to 3.3. What a Page May Send to a SQL EDS
Since 8.6, the server checks the SQL text that a page sends to a SQL source (MySQL, PostgreSQL, Oracle, SQL Server, Snowflake) when the user does not have the four rights (Create, Read, Update and Delete) of the source through one of their roles. This text is the source of a widget or an action (a table name, or a SELECT used as source) and a WHERE condition written as text. A table name (orders, sales.orders, "Orders") is always accepted; any other text must stay a single read statement:
- One statement only: no
;. - No write or administration statement, wherever it appears:
INSERT,UPDATE,DELETE,MERGE,UPSERT,DROP,ALTER,CREATE,TRUNCATE,GRANT,REVOKE,EXEC,EXECUTE,INTO,OUTFILE,DUMPFILE. On SQL Server, which runs several statements without;,WAITFOR,BACKUP,RESTORE,SHUTDOWN,KILL,DBCC,BULK… are refused too. - No comment that could hide SQL: no executable comment (
/*! … */), and no line comment (--, or#on MySQL) at the end of the text. - Balanced parentheses.
- No server function that waits, reads files or reaches other servers:
SLEEP,PG_SLEEP,BENCHMARK,LOAD_FILE,PG_READ_FILE,OPENROWSET,OPENQUERY,DBLINK,XP_CMDSHELL,SP_EXECUTESQL, the OracleDBMS_…andUTL_…packages, the SnowflakeSYSTEM$…functions… - Column names must be names: the columns sent in criteria, data or sorting are plain names, optionally qualified (
o.status) or quoted ("Name",`Name`,[Name]); otherwise the error is Invalid column name (Invalid sort column for the sort).
Text between quotes is data and is not checked (status = 'DELETE' is accepted). Common functions (COALESCE, CONCAT, UPPER…) and sub-queries such as id IN (SELECT …) stay allowed.
A refused text gets an HTTP 400 error with an explicit message, for example This SQL query is not a read: DELETE is not allowed, Only one SQL statement is allowed in the SQL source or The server function PG_SLEEP is not allowed in the SQL query. Users who have the four rights through one of their roles are not restricted, nor are the process scripts that run on the server.
Two rules apply to every user:
- An update or a delete without selection is refused (Empty selection: the update was not executed…). To update or delete every row on purpose, send the text query
"1=1". - An environment that the EDS does not configure answers a clear 400 error (EDS "…" is not configured in UAT) instead of an internal error.
A page that sends such SQL text (several statements, a comment at the end, a write in a WHERE…) to a user without the four rights now gets an error. Before upgrading, test the pages that build their SQL source or WHERE as text with a user of the application, and give the four rights only to the roles that really need free SQL.
The guard only protects a source whose rights were narrowed: with the default rights (role Everybody with the four rights, see 3.2), every signed-in user has the four rights and is not restricted.
3.4. Error Messages Sent to the BrowserDirect link to 3.4. Error Messages Sent to the Browser
Since 8.6, the error of an EDS call (connection, query, API call) sent to the browser only keeps diagnostic fields: message, code, status, errno, sqlState, sqlMessage, detail, hint… and, for an API, a bounded extract of the response. The server stack, the connection settings and the request headers are never sent, and the known secrets (passwords, Volt values) are masked. The full error stays in the server logs.
IDE users also receive, with the success or the error of a call, the generated query and the connection configuration as it is used, credentials included: host, user and password are sent resolved, Volt references replaced by their values. Only the Volt values given to the pre-run script of an API source are removed. Keep this in mind when an IDE user debugs a page in front of other people.
4. Integrating with Web Interface WidgetsDirect link to 4. Integrating with Web Interface Widgets
Widgets can read from an EDS to show data in a form. For example, a select field can list items from a database, and a table can show query results.
Configuration and Data BindingDirect link to Configuration and Data Binding
Open the widget’s settings in the Web Modeler. For a widget that supports data binding, choose the EDS, then select a method or enter a query.

The binding process involves:
- Selecting the Data Source: Choosing "EDS" as the data source type.
- Specifying the Database: Selecting the pre-configured EDS connection (e.g., "Test Mysql").
- Defining the Data Retrieval: Writing a SQL query or selecting a predefined method to fetch the required data. For example, a
SELECT id, name FROM categoriesquery could populate a dropdown with category options.
Common Use CasesDirect link to Common Use Cases
- Dynamic Dropdowns: Populating
Selectwidgets with options fetched from a database table, such as a list of countries, products, or user roles. - Data Tables: Displaying records from an external database in a
Tablewidget, with support for pagination, sorting, and filtering. - Autocomplete Fields: Providing suggestions in text inputs by querying a database for matching results as the user types.
- Master-Detail Views: Creating interactive UIs where selecting an item in one widget (e.g., a customer in a list) dynamically updates another widget (e.g., a table showing that customer's orders).
This direct integration abstracts the complexity of data access, allowing developers to focus on building the user experience without writing extensive backend code for data retrieval.
For more detailed implementation examples and advanced configurations, please refer to the Usage in Widgets section of our development guide.
5. Testing: Connection and Tests TabDirect link to 5. Testing: Connection and Tests Tab
5.1. Testing the ConnectionDirect link to 5.1. Testing the Connection
In the Configuration tab, Test connection (Test the API for an API source) checks the selected environment. Tests always use the saved configuration: when you have unsaved changes, they are saved before the test.
Tests run with your own rights on the source, in the selected environment (the roles you have in TEST, UAT or PROD, plus Everybody): Test connection, the tests of the Tests tab, saving a test and the structure discovery. One of your roles there needs Read (for a connection test, the SQL console, the discovery and the read operations), or Create, Update or Delete for a write test (the four rights for an execute that writes). Otherwise the test is refused with a 403 error, for example EDS read access is not granted in TEST. This happens to an administrator who restricted the source to a role they do not have in that environment.
- A successful test displays Connection successful.
- An unsuccessful test returns an error message, the first step to diagnose the problem.
Common error messages include:
- "Connection timed out": Softyflow could not reach the server. This is typically a network issue.
- "Authentication failed" / "Invalid credentials": The username or password is incorrect.
- "Database not found": The server was reached, but the specified database does not exist.
- "SSL/TLS error": There is a problem with the security certificate configuration.
5.2. The Tests TabDirect link to 5.2. The Tests Tab
The Tests tab lets you prepare a request, run it and keep useful inputs, without building a page or a process:
- Choose the Environment (TEST, UAT or PROD). In PROD, a red banner reminds you that the requests run against real data.
- In New or saved test, start a New test or open a saved one.
- Fill in the Request (see below) and click Run test. A test that may create, update or delete data asks for a confirmation first.
- Click Save to keep the inputs of a successful test (name and description are optional). An opened test can be updated with Replace this test; the ⋯ menu offers Save a copy and Delete this test.
Saved tests belong to one environment: New or saved test only lists the tests of the selected environment. An EDS keeps at most 100 saved tests (256 KB in all). They are stored in the EDS itself, as usage examples that Flowy can read and save too (see 5.5). A test stops after 10 seconds.
API sources: choose the Operation (for example Get one item · retrieve); the method and the full URL called are shown below it. Fill in SF_table, SF_source (JSON) and, for write operations, SF_postData. Under Advanced inputs, set the paging and sorting of a list (SF_limit, SF_page, Sort by, Direction) and the Custom variables used in the endpoint paths.

SQL sources: type a query in the SQL console and, if it uses parameters, their values under SQL parameter values. The console runs read queries only (a single statement starting with SELECT, without SQL comments, 50,000 characters at most) and returns the first 50 rows. It also checks the functions the query calls:
- Only common functions are accepted: aggregates (
COUNT,SUM,AVG,MIN,MAX),COALESCE,NULLIF,ISNULL,IFNULL,NVL,CAST,CONVERT, text functions (LOWER,UPPER,TRIM,LENGTH,SUBSTRING,LEFT,RIGHT,CONCAT,REPLACE…), rounding and maths (ROUND,FLOOR,CEIL,ABS,MOD,POWER…), usual date functions (DATE,DATE_TRUNC,DATE_PART,EXTRACT,DATEADD,DATEDIFF,YEAR,MONTH,DAY,NOW,GETDATE,TO_CHAR,TO_DATE…),GREATEST,LEAST,CASE,IIFand the window functions (ROW_NUMBER,RANK,DENSE_RANK,LAG,LEAD,FIRST_VALUE,LAST_VALUE). - Any other function is refused with SQL function is not allowed in an EDS read: … (for example
DATE_FORMAT), and a function qualified by a schema (myschema.myfunction(…)) with Schema-qualified SQL functions are not allowed in EDS reads. - The words
CALL,COPY,LOCK,UNLOCKandFOR(soFOR UPDATEtoo), like the write statements, give This SQL statement is not a permitted read. A query that starts withWITHis refused too (Only SELECT statements are allowed for EDS SQL reads).
These limits apply to the SQL console and to the SQL tests run by Flowy; the pages follow the rules of 3.3.

5.3. SQL Tables and StructureDirect link to 5.3. SQL Tables and Structure
For SQL sources, open SQL tables and structure under the tester and click Discover structure: the tables and views reachable with the connection of the selected environment are listed. Click a table to see its columns (type, nullable, default value), its primary key and its foreign keys. Prepare a read writes a SELECT on the table in the SQL console, and Preview 5 rows shows the first five rows of the table under its structure.

5.4. The Response PanelDirect link to 5.4. The Response Panel
The Response panel shows the result of the last run: Success or Error, the duration, the number of rows or items, and:
- for tabular results, a table view or a JSON view;
- the Response and Sent request tabs (the request actually sent, secrets masked);
- a copy button.
Long results are cut: the displayed response is a sample of about 32 KB, with at most 50 items per list, and Test details then says The displayed response is a truncated sample. When you change the inputs after a successful run, a note reminds you to run the test again. Test details shows the steps of the run.
5.5. Asking FlowyDirect link to 5.5. Asking Flowy
The EDS page has the Flowy panel docked on the right, as in the builder. Open it with the Flowy AI tab on the right edge, or with Ctrl+I (⌘+I on a Mac). Flowy works on the open EDS and on the environment tab selected in the page (TEST, UAT or PROD). On the page of a new EDS, not saved yet, you can ask Flowy to create the source.

- Suggestions: an empty panel suggests requests about the source. They are written in French, whatever the language of the IDE: analyse this EDS and its examples, create an EDS from my documentation, discover the data with an example, discover the SQL tables. To create a source from its documentation, attach the documentation of the API or of the database as a PDF (paperclip).
- Create and configure: Flowy sets the type, the TEST, UAT and PROD settings and the access rights. Flowy is instructed to write credentials as Volt references (
{{volt.NAME}}) rather than in clear, and never to invent a missing URL or password: it asks you for it. Check the saved settings all the same: the configuration itself accepts a password in clear. Only the saved tests are checked by the server: a secret input of a saved test must be a Volt reference, otherwise the save is refused (Use{{volt.NAME}}references for sensitive example inputs). A source created by Flowy is read only by default (role Everybody with the Read right only). - Discover: bounded reads, never stored. For a SQL source: the list of tables (50 per page), the structure of a table and at most 5 sample rows, with queries built by the server (Flowy cannot send free SQL during discovery). For an API source: a read operation or a saved test, with at most 5 items.
- Test: Flowy runs tests as you, without keeping a history, and can save useful inputs as saved tests of the Tests tab.
- Write: Flowy writes to the external system (insert, update, delete, execute) only when you explicitly ask for it, in the environment you name, within your rights on the source.
- At the end of a run, a new EDS opens in the page and a changed EDS reloads. If you have unsaved edits, they are kept and a message asks you to reload the configuration before merging them.
See Flowy AI › On an EDS page.
6. Security Best PracticesDirect link to 6. Security Best Practices
6.1. Credential Management:Direct link to 6.1. Credential Management:
Never hardcode credentials directly in configuration files. Use environment variables or a dedicated secrets management system (like HashiCorp Vault or AWS Secrets Manager) to handle sensitive information. Rotate passwords and API keys regularly.
In the connection settings of an EDS, write a secret as a Volt reference, for example {{volt.CRM_DB_PASSWORD}} in the password field: the value of the environment that runs is used (see Volt). A Volt reference hides the secret in the definition of the EDS and from the end users, not from the IDE users who debug a page: they receive the resolved connection configuration (see 3.4).
6.2. Data Protection:Direct link to 6.2. Data Protection:
Always enable encryption in transit (SSL/TLS) for all database and API connections, especially in UAT and PROD environments. Sanitize all user-supplied inputs on the server-side to prevent SQL injection and other injection attacks.
6.3. Access Control:Direct link to 6.3. Access Control:
Apply the principle of least privilege. Only grant the permissions that a user role absolutely needs to perform its functions. Regularly audit data access logs to monitor for suspicious activity.
6.4. What Softyflow EnforcesDirect link to 6.4. What Softyflow Enforces
Since 8.6, whatever the pages send:
- for a user without the four rights of a SQL source, the SQL text sent as source or WHERE must stay one read statement (see 3.3); the four rights are also needed for the
executemethod; - on a SQL source, an update or a delete without selection is refused for everyone;
- the errors sent to the browser keep diagnostic fields only, secrets masked (see 3.4).
These guards only restrict the users who do not have the four rights. A new EDS, and each role added with Add a role, starts with Everybody and the four rights ticked (see 3.2): untick them, give the four rights only to the roles that really need free SQL, and use a database account limited to what the application needs.
7. TroubleshootingDirect link to 7. Troubleshooting
7.1. Network and Firewall IssuesDirect link to 7.1. Network and Firewall Issues
- Symptom: "Connection timed out" or "Cannot reach server".
- Solutions:
- Verify Host and Port: Double-check that the server address/hostname and port are correct.
- Firewall Rules: Confirm that there are no firewall rules on the Softyflow server, the database server, or any intermediate network device (like a cloud security group) that would block traffic on the specified port.
- Ping/Telnet: From the machine running Softyflow, try to
pingthe database host or usetelnet <host> <port>to check for basic network connectivity.
7.2. Credential and Permission ErrorsDirect link to 7.2. Credential and Permission Errors
- Symptom: "Authentication failed," "Access denied," or similar credential-related errors.
- Solutions:
- Check Credentials: Carefully verify the username, password, and any other authentication tokens (e.g., domain for NTLM).
- User Permissions: Ensure the database user has the necessary permissions. For example, the user must have permission to connect to the database from the Softyflow server's IP address.
- Password Expiration: Check if the service account's password has expired.
7.3. Query and API Endpoint ErrorsDirect link to 7.3. Query and API Endpoint Errors
- Symptom: SQL syntax errors, API endpoint not found (404), or malformed request (400).
- Solutions:
- External Testing: Isolate the issue by testing the exact query or API request using an external tool (like DBeaver for SQL or Postman/cURL for APIs). This helps determine if the problem is in the query itself or in the Softyflow configuration.
- Verify Paths and Methods: For APIs, confirm the
baseURL, endpoint path, and HTTP method are all correct. A common mistake is usingGETinstead ofPOST. - Check Parameters: Ensure that all required parameters, headers, and payload data are being sent in the correct format.
- 400 errors from a page since 8.6: … is not a read, Only one SQL statement is allowed, Unbalanced parentheses, The server function … is not allowed, Invalid column name or Invalid sort column come from the SQL guard: the user lacks the four rights of the source and the page sends SQL text that is not a single read (see 3.3). Empty selection means an update or a delete without a query: send
"1=1"to target every row on purpose. - Error details: the browser only receives diagnostic fields; read the full error in the server logs. As an IDE user, the response of the call also shows the generated query.
7.4. SSL/TLS and Certificate IssuesDirect link to 7.4. SSL/TLS and Certificate Issues
- Symptom: "Untrusted certificate," "Certificate has expired," or "SSL handshake failed."
- Solutions:
- Certificate Validity: Ensure the server's SSL certificate is valid, has not expired, and is issued by a trusted Certificate Authority (CA).
- Self-Signed Certificates: For development environments using self-signed certificates, you may need to configure the connection to trust it (e.g., by setting
rejectUnauthorizedtofalsein the JSON options). This should never be done in production. - Full Certificate Chain: Some databases require the client to have the full certificate chain, including intermediate certificates. Ensure the
caproperty in yourssloptions is configured correctly.
8. Performance OptimizationDirect link to 8. Performance Optimization
8.1. Query Optimization:Direct link to 8.1. Query Optimization:
Ensure database tables have appropriate indexes on columns that are frequently used in WHERE, JOIN, and ORDER BY clauses. Use efficient queries, and always limit result sets with strict filtering and server-side pagination.
8.2. Connection Management:Direct link to 8.2. Connection Management:
Configure connection pooling with appropriate size and timeout settings to balance performance and resource consumption. A properly tuned pool minimizes the overhead of establishing new connections.
8.3. Caching:Direct link to 8.3. Caching:
Cache data that changes rarely, such as a list of countries. Decide when to refresh or clear the cache so users do not see old values.
This comprehensive guide covers all aspects of EDS configuration in Softyflow.