Skip to content
This documentation is currently in preview, therefore subject to change.

Convert Excel Document

The Convert Excel Document action takes an Excel workbook (.xls, .xlsx) - the template - with optional embedded template expressions, injects data into it, and exports the result to the specified output format.

Parameters

NameTypeDescription
DocumentBinaryThe source Excel file content (.xls or .xlsx), typically the output of a Get file content action.
Output FormatStringDesired target format. One of: Csv, Html, MHtml, Pdf, Svg, TabDelimited, Tiff, Tsv, xlsx.
Include WorksheetsString (optional)Semicolon-delimited list of worksheet names to convert. If omitted, all worksheets are processed.
Data SourcesJSON object (optional)One or more named data sources that feed your template regions. Keys must match the names of your template ranges or tables (see Excel Template Syntax).

Optional Parameters per Output Format

CSV
NameTypeDescriptionOptions
Format StrategyEnumHow cell values are representedCellStyle, DisplayString, DisplayStyle, None
Keep Separators For Blank RowBooleanRetain delimiters on empty rowsYes, No
Quote TypeEnumWhen to wrap values in quotesNormal, Always, Minimum, Never
SeparatorStringSingle‑character field delimitere.g. ,, ;, \t
Trim Leading Blank Row And ColumnBooleanRemove empty rows/columns at the startYes, No
Merge AreasBooleanWhether to combine merged cells into one output cellYes, No
HTML
NameTypeDescriptionOptions
Export Bottom Row DataBooleanInclude placeholder data below true worksheet rangeYes, No
Export DataEnumScope of data to exportAll, Table
Export Grid LinesBooleanShow Excel-style grid linesYes, No
Export Hidden WorksheetBooleanInclude sheets marked hiddenYes, No
Export Print Area OnlyBooleanRestrict output to defined print areaYes, No
Hidden Column DisplayEnumHow to treat hidden columnsHidden, Remove
Hidden Row DisplayEnumHow to treat hidden rowsHidden, Remove
HTML Cross StringEnumCross‑sheet linking behaviorCross, CrossHideRight, Default, FitToCell, MSExport
Export CommentsBooleanInclude cell commentsYes, No
Presentation PreferenceBooleanOptimise for on‑screen displayYes, No
Width ScalableBooleanAllow dynamic width scalingYes, No
Merge AreasBooleanPreserve merged cell layoutsYes, No
MHTML
NameTypeDescriptionOptions
Export Bottom Row DataBooleanInclude placeholder data below true worksheet rangeYes, No
Export DataEnumScope of data to exportAll, Table
Export Grid LinesBooleanShow Excel-style grid linesYes, No
Export Hidden WorksheetBooleanInclude sheets marked hiddenYes, No
Export Print Area OnlyBooleanRestrict output to defined print areaYes, No
Hidden Column DisplayEnumHow to treat hidden columnsHidden, Remove
Hidden Row DisplayEnumHow to treat hidden rowsHidden, Remove
HTML Cross StringEnumCross‑sheet linking behaviorCross, CrossHideRight, Default, FitToCell, MSExport
Export CommentsBooleanInclude cell commentsYes, No
Presentation PreferenceBooleanOptimise for on‑screen displayYes, No
Width ScalableBooleanAllow dynamic width scalingYes, No
Merge AreasBooleanPreserve merged cell layoutsYes, No
PDF
NameTypeDescriptionOptions
All Columns In One Page Per SheetBooleanFit all columns horizontally on a single pageYes, No
Calculate FormulaBooleanEvaluate formulas before exportYes, No
ComplianceEnumPDF standard conformancepdf14, pdf15, pdf16, pdf17, pdfA1a, pdfA1b, pdfA2a, pdfA2b, pdfA2u, pdfA3a, pdfA3b, pdfA3u
Gridline TypeEnumStyle of gridlinesDotted, Hair
One Page Per SheetBooleanForce one page per worksheetYes, No
Output Blank Page When Nothing To PrintBooleanGenerate blank PDF if no printable contentYes, No
Page CountIntegerMax number of pages to render12147483647
Page IndexInteger0‑based index of the first page to renderDefault: 0
CompressionEnumImage compression inside PDFFlate, LZW, None, RLE
Merge AreasBooleanPreserve merged cell layoutsYes, No
SVG
NameTypeDescriptionOptions
All Columns In One Page Per SheetBooleanFit all columns horizontally on a single pageYes, No
Merge AreasBooleanPreserve merged cell layoutsYes, No
TabDelimited
NameTypeDescriptionOptions
Format StrategyEnumHow cell values are representedCellStyle, DisplayString, DisplayStyle, None
Keep Separators For Blank RowBooleanRetain delimiters on empty rowsYes, No
Quote TypeEnumWhen to wrap values in quotesAlways, Minimum, Never, Normal
SeparatorStringSingle‑character field delimitere.g. \t
Trim Leading Blank Row And ColumnBooleanRemove empty rows/columns at the startYes, No
Merge AreasBooleanWhether to combine merged cells into one output cellYes, No
TIFF
NameTypeDescriptionOptions
All Columns In One Page Per SheetBooleanFit all columns horizontally on a single pageYes, No
Merge AreasBooleanPreserve merged cell layoutsYes, No
TSV
NameTypeDescriptionOptions
Format StrategyEnumHow cell values are representedNone, CellStyle, DisplayString, DisplayStyle
Keep Separators For Blank RowBooleanRetain delimiters on empty rowsYes, No
Quote TypeEnumWhen to wrap values in quotesAlways, Minimum, Never, Normal
SeparatorStringSingle‑character field delimitere.g. \t
Trim Leading Blank Row And ColumnBooleanRemove empty rows/columns at the startYes, No
Merge AreasBooleanWhether to combine merged cells into one output cellYes, No
XLSX
NameTypeDescriptionOptions
Merge AreasBooleanPreserve merged cell layoutsYes, No

Returns

NameTypeDescription
File contentString (base64‑encoded)The converted file’s string content, base64 encoded. Can be passed directly to file-creation actions.

Example

AB
1Name:<<[Person.FirstName]>> <<[Person.LastName]>>
2Address:
3<<[Person.Address.Number]>>, <<[Person.Address.Street]>>
4<<[Person.Address.City]>>
5<<[Person.Address.Postcode]>>

Troubleshooting

Click to expand common errors and fixes

Invalid or Missing Document Payload

Cause:
Document input is empty, truncated, or not valid binary.

Fix:

  • Provide the complete workbook binary/base64.
  • Validate that the payload decodes to a valid .xls/.xlsx file before conversion.

Unsupported or Incorrect Output Format

Cause:
Output Format string is misspelled or not one of the supported values.

Fix:

  • Verify the exact format name (e.g., .pdf, .csv, .xlsx) and correct any typos.
  • Confirm that format-specific options supplied are valid for the chosen format.

Named Worksheets Not Found

Cause:
Worksheet names in Include Worksheets do not match the workbook (case or spelling mismatch), or the sheet does not exist.

Fix:

  • Use exact worksheet names, ensuring that they match.

Template Expressions / Data Binding Failures

Cause:
Template placeholders reference data source keys that are missing or malformed. Syntax errors in template expressions.

Fix:

  • Ensure Data Sources keys exactly match template identifiers.
  • Validate template expression syntax and test with representative data.
  • Provide default/fallback values where appropriate.

CSV/TSV/TabDelimited Output Problems

Cause:
Invalid separator character, mismatched quote settings, or improper handling of empty rows/columns.

Fix:

  • Use a single-character separator and verify quote strategy settings.
  • Enable or disable “Keep separators for blank row” and trimming options according to expectations.
  • Test with sample data containing edge cases (commas, quotes, empty rows).

PDF Layout, Pagination or Scaling Issues

Cause:
Page size, print area, scaling, or column fit settings cause unexpected page breaks, clipped columns, or blank pages.

Fix:

  • Adjust page sizing, “One Page Per Sheet” / fit options, and page index/page count as needed.
  • Preview with small samples to tune layout options.

Formulas Not Evaluated or Stale Results

Cause:
Formula evaluation option disabled or workbook stores formulas that rely on external references.

Fix:

  • Enable formula calculation before export if evaluation is required.
  • Ensure formulas do not depend on unavailable external data, or pre-compute values in the workbook.

Merged Cells, Hidden Rows/Columns, or Comments Omitted

Cause:
Format options configured to remove merged areas, hidden rows/columns, or comments.

Fix:

  • Toggle merge/hidden/comment options to include those elements when necessary.
  • Verify behavior with a small test workbook that contains the elements in question.

Password-Protected or Corrupted Workbook

Cause:
Workbook is encrypted, password protected, or corrupted.

Fix:

  • Provide an unprotected, valid workbook.
  • Repair or recreate corrupted files before conversion.

Large File Performance or Resource Limits

Cause:
Very large workbooks or many high-resolution embedded images cause timeouts or high resource usage.

Fix:

  • Reduce workbook size (remove/resize images).
  • Split very large workbooks into smaller parts.
  • Convert only required worksheets.
  • Test with representative samples.

Invalid Format-Specific Option Values

Cause:
Integer bounds exceeded, invalid enum values, or conflicting options supplied.

Fix:

  • Validate option ranges (e.g., page count within allowed bounds).
  • Use documented enum values.
  • Remove conflicting options and retest.

Generic Runtime or Transient Failures

Cause:
Malformed inputs, intermittent conversion service issues, or unexpected internal errors.

Fix:

  • Reproduce the issue with a minimal workbook and option set.
  • Validate inputs (binary, format name, option values).
  • Retry the conversion to rule out transient failures.

Quick Checklist

  • Document contains the full .xls/.xlsx binary/base64 payload.
  • Output Format is one of the supported values and spelled correctly.
  • Include Worksheets (if provided) matches exact sheet names.
  • Data Sources keys match template identifiers and data is valid JSON.
  • Format-specific options (separator, quote type, page index, compression, merge handling) are valid and consistent with the chosen format.
  • Workbook is not password protected or corrupted.
  • Test conversions on small representative workbooks to validate layout, encoding, and special cases (merged cells, hidden rows, comments, formulas).