Checking and finding errors
How to check the configuration, perform a secure test, read the stage data, and fix common errors.
Machine translation
Check the automation before enabling the schedule. For this purpose, a configuration check, a test run, and a progress log are provided.
Three types of verification
| Action | What's going on | Sending to a destination |
|---|---|---|
| Check the configuration | The YAML/JSON syntax, required fields, URL, cron, and JavaScript are checked. HTTP requests are not executed. | No |
| Test launch | The sources and the JavaScript handler are executed. The received data, result, and logs are displayed. | No |
| To run | The full script is running: sources, handler, and destinations. An entry in the history is being created. | Yes |
A test run is safe for appointments because it doesn't record anything in them. At the same time, requests to sources are executed for real. Use read methods without side effects and do not configure the source so that a regular query changes the data.
The result of the test run
The modal window contains three blocks.
Received from the source
Shows the actual response of the source after decoding the format. For steps the data of each source is displayed under its id.
Check it out:
- are the necessary records actually returned?;
- do the names and nesting of the fields match;
- is XML, CSV, or encoding recognized correctly?;
- whether the error HTML page is returned instead of the data.
After the handler
Shows the value returned by the function transform. It will be serialized and sent to the destination during a working startup.
Check the required fields, value types, and result form. For CSV, the assignment expects an array of objects.
Handler logs
The output here is console.log, console.info, console.warn and console.error, as well as a function execution error.
function transform(input, context) {
var rows = Array.isArray(input) ? input : [];
console.info("Получено записей:", rows.length);
var valid = rows.filter(function (row) {
return row.id && row.name;
});
console.info("Подготовлено записей:", valid.length);
console.warn("Пропущено записей:", rows.length - valid.length);
return valid;
}
Do not display the contents of tokens, passwords, or personal data. Known secrets are masked, but it is safer not to transfer them to the log at all.
Launch history
The last launches are displayed at the bottom of the editor. The record shows the time, status, and error if execution failed.
Typical diagnostic procedure:
- Open the last unsuccessful launch.
- Define the error stage: source, handler, or destination.
- Execute Test launch.
- Compare the actual input with the function's expectations.
- After fixing it, check the configuration again and only then perform a full startup.
Common mistakes
| A message or a symptom | Reason | What to do |
|---|---|---|
invalid yaml or field ... not found |
Indentation error, colons, or unknown field. | Use spaces, start formatting, and check the field name against automation configuration. |
only pipeline versions 1 and 2 are supported |
A different version is specified or omitted version. |
Use version: 1, and for an event trigger — version: 2. |
event triggers require pipeline version 2 |
Event triggering is described in schema version 1. | Replace the upper field with version: 2. |
trigger.cron is required or invalid trigger.cron |
There is no correct five-field expression for the schedule. | Check the minute, hour, day of the month, month, and day of the week. |
trigger.cron must not run more often than every 30 minutes |
The schedule triggers automation more than once every 30 minutes. | Increase the interval, for example, use */30 * * * * Instead of */15 * * * *. |
invalid trigger.timezone |
Unknown time zone name. | Use an IANA name, for example Europe/Moscow. |
use either source/destination or steps, not both |
Simple and advanced modes are mixed. | Leave either source + destination, or steps. |
secret ... is not configured |
The variable has been deleted, renamed, or not created. | Create a variable with the exact name from ${secrets.NAME}. |
| A request to a private or local address is prohibited. | The URL leads to an internal network, localhost, or a business address. | Use a securely published HTTPS endpoint or integration gateway. |
| HTTP status is out of range 200-299 | The external service returned an authorization, data, or method error. | Check the URL, method, headers, and rights of the technical account. |
| The response exceeds the limit | The source returned more than 5 MB. | Add a filter, period, pagination, or separate automations. |
| Incorrect characters in the text | The encoding did not match. | For old 1C uploads, try encoding: windows-1251. |
| CSV has become a single column | Incorrect separator is specified. | Ask options.delimiter For example ";". |
| CSV without field names | There is no header in the file or it is set incorrectly header. |
Use header: true for the first row with names, either process the array of values according to the source format. |
| An XML field is sometimes an object, sometimes an array | The XML contains one or more elements of the same name. | In the handler, cast the value to the array via an auxiliary function asArray. |
javascript must define function transform |
The function is missing or declared in an unsupported form. | Announce function transform(input, context) { ... }. |
script timeout |
The code runs longer than the limit. | Remove heavy cycles, reduce data, or increase timeout_seconds up to a maximum of 5. |
scheduled automation exceeded the 60-second execution limit |
The planned launch took longer than 60 seconds to complete. | Reduce the amount of data, the number of steps and repetitions, or divide the exchange into several automations. Manual and test launches are not limited to this limit. |
| An empty object has gone to the destination | The handler did not return anything or input the step indicates a missing field. |
Add return and check it out ${transform.output.field} as a result of the check. |
| CSV assignment does not accept the result | The handler returned an object instead of an array of objects. | Return the array of rows in the future table. |
Checking the destination
Since a test run does not trigger an assignment, first route the work run to the test endpoint of the external system or use a separate test automation. Make sure that:
- the method and URL are correct;
- the token has the right to record;
request.formatmeets API expectations;- the handler result has the required structure;
- restarting does not create unwanted duplicates.
To protect against duplicates, pass an external record ID and, if the API supports this, use an idempotent update operation.
An event from your own service
| The symptom | What to check |
|---|---|
| There is no launch in the preview in the history | This is expected: {preview: true, accepted: false} means an imitation without a working dispatch. Check the published service. |
| The event is missing or disabled | Save the service, create or enable a definition in the tab Events. The code uses the definition, not creates it. |
| SDK does not find the event name | In emitEvent pass the local name report_ready, and in trigger.event — full code custom.service_42.report_ready. |
Received event_id but there is no result |
The event has been accepted into the queue, but the script may still be waiting or fail. Check the activation of automation, its company, conditions, and launch history. |
Answer 409 when sending |
The operation key has already been used with another event or payload. Do not replace the key automatically; find out which operation has already been accepted. |
Answer 429 |
The queue frequency, volume, or capacity is exceeded. Wait for the specified period. When repeating the same operation, use the previous one. requestKey and an immutable payload. |
Answer 503 |
Event verification or reception is temporarily unavailable. Show the error and let me repeat it later, saving the operation key. |
| When automation is enabled, the limit is reported. | Up to 20 enabled scenarios are allowed for a single user event. Disable unnecessary bindings. |
| The call does not work on the phone | The new method is still supported by the built-in web engine, but not by the mobile bridge. |
If the answer is lost, repeating with the same key and data will return the previous one. event_id
with a sign duplicate; this is not a new operation. The protection is valid for at least 24 hours. Do not add endless repetitions and do not create a new key for each attempt.
For user events, up to three launches per company are performed simultaneously. Waiting in line does not mean an error. Detailed restrictions and sample settings: Event-based launch.
Checklist before switching on
- The configuration has been successfully verified.
- The verification launch received the expected data.
- The handler result corresponds to the destination contract.
- There are no tokens or personal data in the logs.
- Separate secret variables and technical accounts are used.
- The schedule and time zone have been checked.
- The assignment is verified on test data.
- Restarting does not create duplicates.
- Only necessary replay attempts are enabled.
- After the first working run, the execution history is checked.
If the problem is related to the format, start with Data formats. If the input is correct, but the result differs from the expected one, check JavaScript handler.
Input artifact errors
The verification run reads the connected real artifacts of the company, but does not trigger the assignment. read artifact ...: not found means that the name is from artifacts or the source is missing from this company; create it first. A missing field error means an invalid alias or path. ${artifacts.alias.field}. Check the JSON case and structure; for an optional field in the condition, use exists. JSON value null It is possible that the absence of an artifact is a mistake. Error 404 when setArtifact does not create a new name. Check for 403 errors using the API license and the law. admin_edit_provider_integrations, 409 — according to the quota. Detailed rules.
Problems importing ZIP
For automation, you need automation.json, YAML/JSON configuration file and .js- the handler. Service package with service.json or a single YAML is not suitable for ZIP import. A version error means an incompatible package or pipeline format. Fix the file, repackage the ZIP and select it again; if there is a verification error, no record is created.
If the creation has passed, but the verification run does not work, check the secret variables, input artifacts, addresses, time zone, and event code of the target company's service. They are not created or reassigned automatically. The import itself does not test external connections and does not run the pipeline. Once created, it remains off until you explicitly change the setting. Complete Import and Export guide.
MAX Notifications
The verification run generates a message, but does not verify delivery at MAX and does not send it. Before enabling automation, confirm the chat in Automation → MAX Chats. You do not need to enter a shared bot token.
| The symptom | What to do |
|---|---|
| The shared bot is not connected yet | Keep automation turned off; the sending setting will appear after the bot is connected by the Synchra24 operator. |
The bot does not respond to /chatid |
Make sure that the command has been sent to a group chat or channel, the bot has the right to write, and the shared bot is available. The response to the command is limited to one message per minute per chat. |
| The code doesn't fit | Enter the last six-digit code you received within 10 minutes. After five incorrect attempts, request a new one, taking into account the frequency limit. |
| Automation cannot be enabled | Make sure that the destination name matches the confirmed connection of this company. For ready-made extensions, it is usually used default. |
| The message did not arrive after the event | Check the activation, conditions, and history. There is no automatic replay for MAX: if the result is uncertain, check the chat first. |
| The bot has been deleted or replaced | Add an active bot with the right to send and confirm the connection again. |
| Several automations are disabled at once | Removing the connection stops sending from all automations using this name. At the same time, the automations themselves can remain turned on and show a destination error. |