Acumatica Business Central Sage Intacct STACK Takeoff & Estimate Velixo Classic Velixo CLI
Acumatica Business Central Sage Intacct STACK Takeoff & Estimate Velixo Classic Velixo CLI

SI.REPORT

Overview

SI.REPORT runs a Sage Intacct report and returns its contents to your workbook. Use it for data that you already report on in Sage Intacct, and for data that Sage Intacct makes available only through a report, such as who approved a transaction.

The function reads four types of report:

  • Custom reports, built in the Custom Report Writer. A custom report without grouping returns its lines. A custom report with grouping returns summary rows for the innermost groups. See the Output section.

  • Interactive custom reports, built in the Interactive Custom Report Writer.

  • Standard reports, the reports built into Sage Intacct, such as the trial balance.

  • Stored reports. A stored report is the saved output of an earlier report run, kept in Sage Intacct under an ID.

To list the reports in the company, with the type and name to pass to SI.REPORT, use SI.EXPANDREPORTRANGE. To find the run-time filters of a custom or interactive report, use SI.REPORTDEFINITION.

Velixo retrieves the whole report, however many rows it has. You can't limit or page the results.

SI.REPORT calculates in Excel only.

Sage Intacct runs custom, interactive and standard reports in a queue, so a report can take from several seconds to several minutes to return. While it runs, the cell shows #BUSY!. Each time SI.REPORT runs a standard report, Sage Intacct also saves the output as a new stored report. A stored report returns the data saved at the time of that run, not current data. To read a newer run, use the ID of a newer stored report. SI.EXPANDREPORTRANGE lists stored reports by ID, highest first, and its Description column gives Sage Intacct's code for the report, such as gl_tb for the trial balance, and the time of each run. Reading a stored report can take more than a minute if Sage Intacct still has to prepare it.

Syntax

=SI.REPORT(
    ConnectionName,
    ReportType,
    ReportName,
    Arguments,
    TableOutputCell
)

Arguments

Argument

Required / Optional

Description

ConnectionName

Optional

The name of one Sage Intacct connection, as defined in Connection Manager.

If you omit it, the function runs on all your Sage Intacct connections and returns their results side by side, each under a row with the connection's name. A connection that can't return the report shows an error in its own block. See Multiple connections per formula. If you use TableOutputCell, name one connection: with several connections, the function returns an error.

ReportType

Required

The type of report.

Accepted values: custom, interactive, standard, stored. Letter case is ignored.

For a custom or interactive report, the value must match how the report was built. The Report type column of SI.EXPANDREPORTRANGE shows it.

ReportName

Required

Depends on ReportType:

  • custom or interactive: the report name, exactly as it appears in Sage Intacct. The name is case-sensitive.

  • standard: the report's service in the Sage Intacct REST API, for example general-ledger/trial-balance.

  • stored: the ID of the stored report, not its name, for example 533.

SI.EXPANDREPORTRANGE lists the value to use for every report.

Arguments

Optional

Values for the report's run-time filters, as a range or array with exactly two columns: the name in the first column and the value in the second.

Rows with an empty name are skipped. Each name can appear only once, whatever its letter case. A stored report ignores this argument.

You can build the array with VX.SETTINGS. See the section Building the Arguments range.

Default value: no filter values.

TableOutputCell

Optional

A cell reference. If you specify it, the results are written to an Excel table whose top-left corner is that cell, and the formula cell shows where the table is. See Table Mirroring.

If you omit it, the results spill from the formula cell.

Building the Arguments range

Custom and interactive reports

Take the filter names from the ID column of the Argument rows that SI.REPORTDEFINITION returns. A name must start with a letter or an underscore and contain only letters, digits, underscores, periods and hyphens.

For dates, add a suffix to the filter name. Letter case of the suffix is ignored:

  • For a single date, add .DATE, for example ASOFDATE.DATE. Velixo converts the Excel date to the format that Sage Intacct expects.

  • For a date range, add two rows, one with .FROM_DATE and one with .TO_DATE, for example AP_BILL.WHENDUE.FROM_DATE and AP_BILL.WHENDUE.TO_DATE. Both rows must have a value.

The report definition doesn't say which filters take a date or a date range. Check the report's filters in Sage Intacct.

Always add .DATE, .FROM_DATE or .TO_DATE to a date filter. Without a suffix, Sage Intacct can't read the value as a date and returns an error, for example As of Date '…' is not valid, and the cell shows #N/A.

Standard reports

Name each argument after the report's field in the Sage Intacct REST API, with a period between levels, for example timePeriod.dateRange.startDate or dimensions.location.id. Each part of a name starts with a letter or an underscore and contains only letters, digits and underscores. To find a report's fields, see the Sage Intacct REST API reference.

For a field that holds a list, write the position in the list as a number that starts at 0, for example glAccountRange.0.id. A name can't start with a position, and positions can't skip a number or have a leading zero.

When the last part of the name is date or ends in Date, such as startDate, Velixo converts an Excel date to the format that Sage Intacct expects. For any other date, enter the date as text, for example 2025-01-01.

Enter an ID with leading zeros, such as location 010, as text, so that Excel keeps the zeros.

Output

The output depends on the report type. For a custom report, the Report type row of SI.REPORTDEFINITION usually shows which layout applies: tabular for a report without grouping, summary for a report with grouping.

For custom and interactive reports, the function returns a header row followed by the report rows. Column headings use the labels from Sage Intacct, including any square brackets, for example Total paid [AP bill detail]. If two different columns have the same label, the second one gets the column's Sage Intacct path in parentheses. Values that look like plain numbers are returned as numbers. Values with leading zeros or thousands separators stay text.

Interactive reports

One row per report line. The columns come in the order Sage Intacct sends them, which can differ from the order in the Sage Intacct report. Sage Intacct doesn't send grand totals for interactive reports, so they aren't included. True and false values are returned as the text True or False.

Custom reports without grouping

One row per report line. If the report has grand totals, they follow the lines, and a first column headed Grand total is added:

  • On line rows, the column is empty.

  • On each total row, it names the function, for example Sum Total. Columns totalled with the same function share one row. Columns without that total are empty.

A count grand total counts the values in its column. This can differ from the number of records that Sage Intacct shows under the report.

Custom reports with grouping

One row per group at the innermost grouping level. For example, a report grouped by project, then vendor, then record ID returns one row per record ID. The columns are:

  1. Function: the aggregate function for the row, for example Sum.

  2. The grouping columns, headed with their Sage Intacct field names, such as VENDORNAME.

  3. One column for each aggregated column, headed with its label.

If the report calculates several functions for a column, for example a sum and an average, each group returns one row per function.

Compared with the same report in Sage Intacct:

  • Subtotals for the outer grouping levels and grand totals aren't included.

  • Individual lines aren't included.

  • Columns that are neither grouped nor aggregated aren't included.

These differences come from the data that Sage Intacct returns to Velixo.

Standard and stored reports

The function returns the report as Sage Intacct lays it out in its CSV export, with no separate header row. For example, a trial balance starts with the report's title rows, then the column headings, then one row per account. Every stored report uses this layout, including the stored output of a custom report.

If you use TableOutputCell, the table's columns are headed 1, 2, 3 and so on.

Examples

Return an interactive report

=SI.REPORT("Intacct", "interactive", "AP Bills")

Description: returns all rows of the interactive report AP Bills.

Result: a header row with the report's column labels, then one row per report line.

si-report-interactive-report.png

Filter a custom report by a date

SI.REPORTDEFINITION lists ASOFDATE as an Argument row of the report. It takes a date, so you add .DATE. Enter the name in A2 and the date in B2:

A2

B2

ASOFDATE.DATE

12/31/2026

=SI.REPORT(
    "Intacct",
    "custom",
    "AP Aging by Project",
    A2:B2
)

Description: runs the custom report AP Aging by Project as of December 31, 2026.

Result: one row per record ID, with the Function column (Sum), the grouping columns NAME, VENDORNAME and RECORDID, and the aging columns -0, 1-30, 31-60, 61-90, 91- and Total.

si-report-custom-report-by-date.png

Pass the date with VX.SETTINGS

=SI.REPORT(
    "Intacct",
    "custom",
    "AP Aging by Project",
    VX.SETTINGS("ASOFDATE.DATE", TODAY())
)

Description: runs the same report as of today, without a range of arguments on the sheet.

si-report-vx-settings.png

Run a trial balance

Enter the arguments in A1:B3:

A

B

timePeriod.dateRange.startDate

1/1/2025

timePeriod.dateRange.endDate

12/31/2025

dimensions.location.id

BEAVERTON

=SI.REPORT("Intacct", "standard", "general-ledger/trial-balance", A1:B3)

Description: runs the 2025 trial balance for location BEAVERTON. The cell shows #BUSY! until Sage Intacct finishes the run.

Result: a row with the location, an empty row, two rows of column headings (account number and name, opening balance, debits, credits, adjustments and closing balance), one row per account, and a Totals row.

si-report-trial-balance.png

Read a stored report

=SI.REPORT("Intacct", "stored", "533")

Description: returns the saved output of the run with ID 533, without running the report again.

si-report-stored-report.png

Return the report as an Excel table

=SI.REPORT("Intacct", "interactive", "AP Bills", , Report!A1)

Description: writes the report to an Excel table that starts in cell A1 of the Report sheet. The formula cell shows where the table is.

si-report-table-output-cell.png
The AP Bills report as an Excel table that starts in cell A1 of the Report sheet, with filter buttons on the Sage Intacct column labels

Troubleshooting

  • The 'name' report does not exist. Check the spelling and letter case of ReportName. Check that ReportType matches the Report type column of SI.EXPANDREPORTRANGE: a custom report isn't found as interactive, and the reverse.

  • Sage Intacct is still running the report 'name'. A standard report took longer than 10 minutes. The message names the stored report that will hold the output. Read it later with the stored type and that ID.

  • 'name' is not the service of a Sage Intacct standard report. Use the service name that SI.EXPANDREPORTRANGE lists for the report, such as general-ledger/trial-balance.

  • Sage Intacct has no stored report with the id 'id'. No stored report has that ID. SI.EXPANDREPORTRANGE lists the IDs.

  • REST-1047 - The value for the key field does not match pattern … With the stored type, ReportName holds a report's name instead of a stored report's ID. Use the ID, a number such as 533.

  • Sage Intacct is still producing the stored report 'id' as CSV. Sage Intacct didn't finish preparing the stored report within 2 minutes. Recalculate the formula in a minute.

  • Sage Intacct could not run the report 'name'. Sage Intacct failed the run of a standard report. The message quotes Sage Intacct's reason and names the stored report of the run.

  • The result doesn't change after you change the report or its data in Sage Intacct. Velixo keeps results until you refresh. Select any Velixo Refresh option, or clear the cache. See Refresh features (NX).

  • As of Date '…' is not valid. A date filter of a custom or interactive report has no suffix. Add .DATE, or .FROM_DATE and .TO_DATE, to the filter name.

  • The custom report returned no results. The report has no rows for the filter values you used. Check the values, or run the report in Sage Intacct with the same values.

  • The report declares more than one column labeled "label". Sage Intacct returns those columns as one column with no value. Rename one of them in Sage Intacct.

  • The license for connection 'name' does not support the functions in the 'QR' module. Your Velixo license doesn't include the Sage Intacct query functions. Follow the link in the message to upgrade.

  • Sage Intacct user 'user' is not authorized to retrieve 'Custom report (name)'. Ask your Sage Intacct administrator for permission to run the report.

  • Errors in the Arguments range:

    • The report arguments range should contain two columns. Select exactly two columns.

    • The report argument name was specified more than once. Each name can appear only once, whatever its letter case. ASOFDATE and ASOFDATE.DATE count as the same filter.

    • name is not a valid Sage Intacct report argument name. Check the name against the rules in the section Building the Arguments range.

    • For name, both FROM_DATE and TO_DATE must be specified. Add the missing row, or a value for it.

    • The report argument list name has no position n. List positions start at 0 and can't skip a number.

    • The report arguments name1 and name2 conflict. One name sets a value where the other needs a group or a list, for example dimensions and dimensions.location.id. Remove one of them.

  • The values don't match Sage Intacct. Pass the same filter values that the report used in Sage Intacct. For a custom report with grouping, see the section Custom reports with grouping.

  • SI.EXPANDREPORTRANGE: lists the reports SI.REPORT reads, with their type and name.

  • SI.REPORTDEFINITION: lists a custom or interactive report's filters, columns, groupings and totals.

  • SI.XQUERY: queries Sage Intacct REST API objects.

  • SI.QUERY: queries Sage Intacct XML API objects.