Load a chart of accounts, trial balance, and supporting documents with a Turbo AI process
Starting with version 16.7.4, a Turbo AI process feeds data directly into the Accounts module through the Account Analysis component. Prepare the data in the flow as it comes from your system, then map your columns to the module fields. There’s no need to rename columns to a fixed name or submit the import spreadsheet.
The component loads three types of data, each in its own mode:
Businesses and Accounts: businesses, companies, account groups, and accounts.
Trial Balance: the balance for each account in the month.
Supporting Documents: supporting entries for each account.
Before you start
The component is available only in Turbo AI processes. In Standard processes, data is still loaded using the gallery templates, as described in the “Implementation via Process” article.
Have a root folder for the module. The person who saves the component and the person who runs the process must have access to it; without access, nothing will be saved.
First, add the steps to the flow that retrieve and prepare the data: the trial balance file, the list of supporting documents, and the account records.
A component works in one mode. To load records, a trial balance, and supporting documents, use one component for each mode.
Important: The component does not load closing groups, group settings (auto-approval, workflow lock, reconciliation threshold, closing start date, and map code), or owners. Each account it loads is placed in its own closing group. If you need to group accounts together or configure the group, use the chart of accounts spreadsheet; owners are still managed on the business page or through the owner import.
Step by step
Add the component: In the flow editor, open Add Steps and, under Analysis and Export, select Account Analysis.
Connect the sources: Connect the outputs of the steps that will feed the module to the component. The same output can be used for more than one entity, such as a single record set containing a business, an account group, and an account.
Open the settings: Double-click the component.
Choose the destination folder: Under Destination Folder, select the root folder. The load creates businesses under it and saves companies, account groups, accounts, trial balances, and supporting documents there.
Choose the mode: Under Mode, select Businesses and Accounts, Trial Balance, or Supporting Documents. The list of entities changes based on the mode and follows the load order.
Choose a source for each entity: Open each entity and select its Source. An entity with no source is set to Do not load and will not be loaded.
Review the field mapping: Under Field Mapping, each Destination Field is already linked to a Source Column with a similar name and type. Review each row and change anything that isn’t correct. Fields marked with an asterisk are required.
Save and publish: Click Save, then open Finish at the top of the editor and select Publish.
Run the process: The data is loaded when the process runs, for the selected reference date. The month of that date is the closing month that receives the data.
Tip: Automatic mapping recognizes common column names, such as Cod_Negocio (mapped to Business Code), Montante (mapped to Amount), or Data Início (mapped to Start Date). If the names are very different, it may select the wrong column, so it’s worth reviewing each field before saving.
Fields for each entity
Entity | Required fields | Optional fields |
|---|---|---|
Business | Business Code, Name, Folder Name | |
Company | Business Code, Company Code, Name | Identification Number |
Account Group | Business Code, Order, Name | |
Account | Business Code, Account Type, Account Group, Number, Name | Active |
Trial Balance | Business Code, Company Code, Account Number, Opening Balance, Debit, Credit, Closing Balance | |
Supporting Document | Business Code, Company Code, Account Number, Amount, Entry Type | Description, Start Date, End Date |
The account number must use the same format in the account records and trial balance: digits only, including leading zeros. If the formats differ, the balance won’t be matched to the account.
Track the load
After the process runs, open it and select the component in the steps selector. The Close Load panel shows three sections:
Load Runs: Each run, with its reference date, status (Completed or Error), duration, rows read, and rejections. Click a row to view its details.
Load Summary: The number of items for each entity that were created, updated, deleted, deactivated, reactivated, skipped, rejected, or flagged with warnings. For supporting documents, deleted items are entries from the previous run of the same process that were replaced by the new run. Click any row to open the item list.
Run Log: The start and end of the load for each entity, including the rows saved and rejected.
What the load does in each situation
Account no longer included: It is not deleted. It is deactivated, with its owners and due dates retained, and the details show how many open closings it affects. If it appears in a later load, it is reactivated.
Duplicate row: Two identical rows are saved once. If their contents differ, the last one is used. If the difference is in a field that identifies the record, such as an account’s account group or a company’s CNPJ, that field is left unchanged and the case appears under Skipped. If the record did not already exist, it is rejected because there is no previous value to retain.
Invalid supporting document row: Only that row is rejected. The other accounts receive the new supporting documents, and the account in the rejected row keeps its existing supporting documents. If the row doesn’t identify the account (account number, business, or company is blank), the entire load fails.
Warnings: A company with no CNPJ and a trial balance closing balance that differs from opening balance plus debit minus credit are saved and appear under Warnings for you to review. For this process-based load, enter credit as a positive number. The sign is different in the fixed-column trial balance (CreditAmount), where credit is entered as a negative number (see “Trial Balance Configuration”).
More than one process in the same month
Each entry stores the process that created it. This means multiple processes can load supporting documents for the same folder and month: rerunning one of them replaces only its entries, while those from the others remain on the account. Running the same process twice for the same month does not duplicate entries.
On the Account Analysis page, when you edit a group, a process-loaded entry has an icon next to its type that opens the source process (tooltip: “Open the analysis that created this entry.”).
Common issues
The load didn’t save anything: Check that the person who saved the component and the person who ran the process have access to the destination folder.
The component turned red in the flow: A required field isn’t mapped. The message below the component identifies it.
An entity wasn’t loaded: It has no source (Do not load). Select a source and save.
The load shows an Error status: Open the Run Log to see which entity it stopped at. A supporting document row with no identifiable account causes the entire load to fail.
Related articles
Implementation via Process.
Trial Balance Configuration.
Company and Account Records.
Bulk Import.