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

Troubleshooting Guide

This page serves as a comprehensive troubleshooting guide, consolidating information from across Build a Doc documentation. Use this resource to diagnose and resolve common issues with document generation, templates, connectors, and integrations.


Quick Reference by Feature


Authentication and API Keys

Key Not Working

Symptoms: Flow fails with authentication error

Solutions:

  1. Verify the key was copied correctly (no extra spaces)
  2. Check key status in customer portal (not revoked)
  3. Verify subscription is active
  4. Try creating a new key

See Generate an API Key for setup instructions.


Lost API Key

Problem: You’ve lost your API key

Solutions:

  1. You cannot retrieve it - keys are never shown again after creation
  2. Create a new key in the customer portal
  3. Update your Power Automate connections
  4. Revoke the lost key in the portal (if you know which one)

401 Unauthorised

Message: Invalid API key or API key not found

Causes:

  • API key is missing
  • API key is incorrect (typo or truncated)
  • API key has been revoked
  • Subscription has lapsed

Resolution Steps:

  1. Copy API key directly from customer portal (don’t type manually)
  2. Verify no extra spaces before or after the key
  3. Confirm key is active in the portal
  4. Check subscription is active
  5. Create a new key if necessary

See Authenticate the Connector for detailed steps.


403 Forbidden - Feature Not Available

Message: Feature not available for your subscription

Causes:

  • Action requires higher tier plan
  • API key is valid but subscription lacks permission

Resolution:


403 Forbidden - Quota Exceeded

Message: Monthly quota exceeded

Causes:

  • Document generation quota reached
  • API call limit reached

Resolution:

  • Wait for quota reset (next billing cycle)
  • Upgrade to higher plan
  • See Limits and Quotas for plan details

Customer Portal

Subscription Not Found

Problem: “Subscription not found” error when accessing portal

Cause: Signed in with wrong account

Solution: Sign out and sign in with the purchasing account


Page Stuck Loading

Problem: Portal page won’t load

Causes:

  • Cached authentication issue
  • Browser cache problems

Solutions:

  • Clear cookies
  • Use a private/incognito browser window
  • Try a different browser

Confirmation Email Not Received

Problem: Haven’t received activation email

Causes:

  • Marketplace processing delay
  • Email in spam folder

Solutions:

  • Wait up to 15 minutes
  • Check spam/junk folder
  • Contact support if still not received

Invalid or Expired Token

Problem: Token error when activating subscription

Causes:

  • Token missing or expired
  • Marketplace API error

Solutions:

  • Reopen the configuration link from the confirmation email
  • Retry later if marketplace API error
  • Contact support if persistent

Power Platform Connectors

Connection Failed

Symptoms: Cannot create or authenticate connector

Solutions:

  • Verify the API key is correct (no extra spaces)
  • Check that the API key is active in the customer portal
  • Try using a private/incognito browser window
  • Clear browser cache and cookies

See Configure the Power Platform Connector for setup instructions.


Connection Disappeared

Symptoms: Previously working connection no longer available

Solutions:

  • Check if the connection was deleted
  • Verify you’re signed in with the correct account
  • Re-create the connection if necessary

Connection Configuration Issues

Problem: Flow fails even with valid API key

Troubleshooting Checklist:

  1. Check the flow run history and inspect the failing action’s error for HTTP status code and request ID
  2. Confirm which connection the flow is using (connection dropdown inside the action)
  3. Recreate the connection:
    • Select a Build a Doc action
    • Select ‘Change Connection’
    • Click + Add new connection
    • Paste the API key
    • Save
  4. If the error indicates rate limits, check your subscription quota/usage in the portal
  5. If network errors appear, test connectivity from your environment to the Build a Doc API endpoints

Power Automate Flows

File Not Found / Permissions Error

Causes:

  • Wrong OneDrive file ID or file path
  • Incorrect SharePoint site URLs or file paths
  • Flow account lacks access
  • Insufficient read permissions

Solutions:

  • Re-select the file in the action to ensure correct file ID/path
  • Verify SharePoint site URLs and file paths are correct
  • Confirm the connected OneDrive account has permission to the file
  • Confirm Power Automate service account has read access to the document library
  • Use the file picker in SharePoint actions instead of manual paths

Trigger Not Firing

Causes:

  • Manual trigger not activated
  • Missing required inputs
  • Trigger phrase condition evaluating to false

Solutions:

  • Save the flow and run it using the Power Automate button (or the expected trigger)
  • Provide required manual-trigger inputs
  • Check condition logic for exact text matching
  • Consider case sensitivity (use toLower() for case-insensitive matching)
  • Check for extra whitespace in trigger phrases

Blank or Missing Fields in Output

Causes:

  • JSON keys don’t match template placeholders
  • Wrong data source name
  • Property name typo or casing error
  • Property doesn’t exist in data source

Solutions:

  • Make JSON property names exactly match template placeholders (case-sensitive)
  • Verify data source name matches template identifier exactly
  • Validate the payload structure using Compose or Parse JSON
  • Check tag names match JSON keys: use dot notation <<[Customer.Name]>> not <<[CustomerName]>>
  • Use Preview Templates with Sample Data to test

Wrong File Extension

Causes:

  • Create file filename is missing an extension
  • Using the wrong file type

Solutions:

  • Use .pdf for PDF output, .docx for Word output
  • Ensure file extension matches the Build a Doc action’s output format

Flow Completes But Output Missing

Causes:

  • File created in wrong location
  • Permissions issue on target location
  • Action succeeded but file creation step failed

Solutions:

  • Check flow run history for each action’s status
  • Verify target folder/library permissions
  • Confirm “Create file” action shows success
  • Check the correct document library/folder

Power Apps

Connector / Action Not Listed in Formula Bar

Causes:

  • The data source isn’t added to the app
  • Editor didn’t recognise the connector

Solutions:

  • Open the Data panel and confirm the connector is present (e.g., HappyWiredPowerDocs)
  • If missing, remove and re-add the data source
  • Re-open the app editor to force a refresh
  • Re-check the formula bar after re-adding

ParseJSON Errors

Causes:

  • Invalid JSON string
  • Unescaped double quotes
  • Malformed structure

Solutions:

  • Validate the JSON string using an online/IDE JSON validator
  • Store the JSON in a Text input to inspect it
  • Escape double quotes inside strings as required
  • Only call ParseJSON() when the string is valid

Output Variable Is Blank or Missing Result

Causes:

  • Compute action failed
  • Connector response shape different than expected
  • Value nested deeper than expected

Solutions:

  • Confirm the action succeeded (no runtime error)
  • Set a temporary label to JSON(Output) to inspect the actual response shape
  • Compare debug output to your label formula
  • Check if value is nested (e.g., Output.body.Result vs Output.result)

Microsoft Teams Integration

Teams Message Won’t Post

Causes:

  • Channel is private without Flow Bot access
  • Missing permissions
  • Incorrect channel configuration

Solutions:

  • Verify the channel is public (private channels require explicit Flow Bot access)
  • Confirm Teams connector has channel posting permissions
  • Add the Flow Bot to private channels manually if needed
  • Check the Teams action isn’t nested incorrectly within a condition

Trigger Phrase Not Detected

Causes:

  • Condition logic too strict
  • Case sensitivity issues
  • Extra whitespace

Solutions:

  • Check condition logic for exact text matching
  • Use debugging (Compose actions) to inspect message content
  • Consider whitespace and special characters
  • Use toLower() for case-insensitive matching

Adaptive Card Not Rendering

Causes:

  • Invalid JSON structure
  • Unsupported field types
  • Formatting issues

Solutions:

  • Validate JSON structure in the adaptive card payload
  • Test card in Teams App Studio before deploying
  • Check for unsupported field types or formatting

See Integrate with Microsoft Teams and Automate Document Generation with Teams for detailed setup.


Word Add-in

Add-in Not Loading

Symptoms: Add-in won’t start or displays error

Solutions:

  1. Restart Microsoft Word
  2. Clear the Office cache
  3. Ensure you have a stable internet connection
  4. Check compatibility requirements
  5. Verify Word version is supported

Installation Issues

Problem: Cannot find or install the Add-in

Steps to Install:

  1. Open Microsoft Word
  2. On the Home Ribbon, go to InsertGet Add-ins
  3. Search for “Build a Doc”
  4. Click Add to install

See Author Advanced Word Templates for detailed installation instructions.


Preview Generation Failed

Message: Preview generation failed

Common Causes:

  • Template syntax errors
  • Invalid data source
  • Missing or null values
  • Data format mismatch
  • Wrong data format (Word Add-in requires array format)

Resolution:

  1. Enable inline error display to see specific errors
  2. Verify template syntax with examples
  3. Validate data source using Preview Templates with Sample Data
  4. Check data types and structure
  5. Ensure data is in array format: [{ }] not object format { }
  6. See Debug Template Validation Errors for detailed troubleshooting

Blank Placeholders in Preview

Cause: JSON property path doesn’t match template

Solutions:

  • Verify paths match exactly (case-sensitive)
  • Check for typos in property names
  • Ensure nested paths use correct dot notation

JSON Validation Errors

Cause: Invalid JSON syntax in sample data

Solutions:

  • Use a JSON validator/formatter tool
  • Remove trailing commas
  • Use double quotes, not single quotes
  • Ensure all brackets { }, [ ] are closed

Template Errors

Common Template Syntax Errors

ErrorCauseExampleFix
Unexpected end of tagMissing >><<[CustomerName]><<[CustomerName]>>
Unclosed foreach blockMissing <</foreach>><<foreach [item in Items]>>Add <</foreach>>
Unclosed if blockMissing <</if>><<if [ShowDiscount]>>Add <</if>>
Invalid pathProperty doesn’t exist or typo<<[Customer.Name]>>Check spelling and data structure
Type mismatchWrong data type for operationUsing string in math operationVerify data types match expected format

Quick Fix Reference

Problem✅ Solution
Tag doesn’t match JSONUse dot notation: <<[Customer.Name]>>
Loop doesn’t closeAlways add <</foreach>>
Wrong caseMatch JSON exactly: Customercustomer
Syntax errorUse format: <<[Field]>>

Data Binding Errors

Error: Template expressions fail or return null

Common Causes:

  • Property name typo or casing error (case-sensitive)
  • Property doesn’t exist in data source
  • Data structure mismatch
  • Null or missing values

Resolution:

  1. Verify property names match data source exactly (case-sensitive)
  2. Check data source structure using templates with real data
  3. Handle null/missing values with safe access operator: <<[Customer?.Email]>>
  4. Use inline error display to see where errors occur
  5. Preview template with the Word Add-in before deployment

Enabling Inline Error Display

Enable “Inline template syntax errors” in the Build a Doc action:

  • Errors appear in the output document instead of failing the action
  • Helps identify exactly where errors occur
  • Useful during template development
  • Should be disabled in production

See Debug Template Validation Errors for detailed instructions.


Template Processing Timeouts

Message: Request timed out

Causes:

  • Document too large
  • Complex template processing (many expressions, loops)
  • High-resolution images
  • Large data volumes
  • High service load

Resolution:

  • Reduce document complexity
  • Split large documents into smaller batches
  • Reduce image resolution
  • Simplify template logic if possible
  • Test with actual data volumes expected in production
  • Retry at different time
  • See Scalability and Performance for optimisation tips

Production Template Issues

Problem: Template works in development but fails in production

Common Issues:

IssueCauseSolution
Blank or missing placeholdersJSON keys don’t match template expressions or wrong data source nameVerify data source name matches template identifier exactly (case-sensitive). Confirm all property paths exist in JSON structure.
File not found errorIncorrect file path or insufficient read permissionsVerify the template file path is correct in the “Get file content” action. Confirm Power Automate service account has read access to the document library.
Unexpected output formattingTemplate was modified without retesting or data format changedTest the template with representative data in the Word Add-in. Verify data source structure hasn’t changed since template creation.
Generation timeout or slow performanceComplex template with many expressions or large data volumesSimplify template logic if possible. Consider splitting complex templates into smaller, focused ones. Test with actual data volumes expected in production.
Syntax or expression errorsTemplate contains invalid expressions or malformed tagsEnable “Inline template syntax errors” in Power Automate flow to see errors in output. Review and fix template using Word Add-in.

Debug Production Issues:

  1. Check Power Automate error messages - These indicate template syntax or data binding issues
  2. Test with the same data - Reproduce the issue using the exact data that caused the failure
  3. Use Word Add-in preview - Test the problematic template with sample data
  4. Review recent changes - Check if recent template modifications may have caused the issue
  5. Consult template documentation - Verify the data structure hasn’t deviated from template requirements

See Publishing Templates to Production for best practices.


Document Actions

Document Invalid or Corrupted

Message: Document is invalid or corrupted

Common Causes:

  • File is corrupted
  • File is not the declared format
  • File is password-protected
  • File format not supported
  • File is truncated or incomplete

Resolution:

  • Verify file opens correctly locally
  • Ensure correct file format
  • Remove password protection
  • Provide the complete file binary or base64
  • Verify payload decodes to a valid file

Password-Protected Files

Problem: Cannot process password-protected or encrypted files

Causes:

  • File requires password to open
  • File has editing restrictions
  • File has permission restrictions

Solutions:

  • Supply an unprotected copy of the file
  • Remove password protection prior to processing
  • Remove encryption or restrictions before conversion
  • Use an unencrypted copy with modification permissions

Convert Excel Document

Problem: Conversion fails

Common Issues:

IssueCauseSolution
Invalid or missing document payloadDocument input is empty, truncated, or not valid binaryProvide complete workbook binary/base64 and validate it decodes
Unsupported output formatOutput format string is misspelledVerify exact format name (e.g., .pdf, .csv, .xlsx)
Named worksheets not foundWorksheet names don’t match (case or spelling mismatch)Use exact worksheet names, ensure they match

Convert Word Document

Common Issues:

IssueCauseSolution
Document missing, truncated, invalidDocument input is empty, corrupted, not validEnsure complete .doc/.docx binary, verify opens locally
Unsupported output formatOutput format value is incorrectConfirm format matches supported value (case-sensitive)
Password-protected documentWord file is encrypted or protected for editingProvide unprotected copy or remove restrictions

Convert PowerPoint Document

Common Issues:

IssueCauseSolution
Document missing, truncated, invalidInput is empty, truncated, not validProvide full presentation binary/base64
Unsupported output formatOutput format value is incorrectConfirm format exactly matches supported values
Password-protected presentationFile requires password or is encryptedSupply unprotected copy of presentation

Convert PDF Document

Common Issues:

IssueCauseSolution
Document missing, truncated, invalidPDF input is empty, corruptedProvide full PDF base64 and verify it decodes to valid PDF
Unsupported output formatOutput format string is incorrectVerify format value exactly matches supported strings
Password-protected PDFPDF is encrypted or requires passwordSupply unencrypted copy or remove password protection

Convert Visio Document

Common Issues:

IssueCauseSolution
Document missing, truncated, invalidDocument input is empty, corruptedSupply complete .vsdx/.vsd binary/base64 payload
Unsupported output formatOutput format is incorrectVerify format string exactly matches supported value
Page index out of rangeRequested page exceeds document’s page countUse zero-based page index, ensure within page range

Convert OneNote Document

Common Issues:

IssueCauseSolution
Document missing or invalidDocument input is empty, truncatedProvide complete .one binary/base64 payload
Unsupported output formatOutput format string is incorrectConfirm format name is exactly one of supported values
Password-protected OneNote fileFile is encrypted or requires passwordSupply unprotected copy or remove password protection

Convert HTML

Common Issues:

IssueCauseSolution
HTML input invalid or malformedHTML contains syntax errors, unclosed tagsValidate and sanitise HTML, correct template expression syntax
URL unreachableURL not publicly accessible or requires authenticationUse publicly accessible URL or supply raw HTML string
Template expressions failTemplate references absent or mis-named keysVerify data sources keys match template identifiers (case-sensitive)

Extract PDF Data

Common Issues:

IssueCauseSolution
Document missing, truncated, invalidPDF input is empty, truncatedProvide complete PDF binary/base64 payload
No form fields returnedPDF has no interactive form fields or flattenedConfirm PDF contains interactive fields, not flattened
Form fields emptyFields present but values are empty or defaultVerify form was filled out, check field names and types

Update PDF Data

Common Issues:

IssueCauseSolution
Document missing, truncated, invalidDocument payload is empty, truncatedProvide complete PDF binary or base64
PDF is password-protected or encryptedEncryption prevents modificationsUse unencrypted copy with modification permissions

Merge Word Documents

Common Issues:

IssueCauseSolution
Missing, truncated, invalid inputSource/destination payload is emptyProvide full .doc/.docx binary or base64 for both documents
Unsupported merge methodMerge method value is invalidUse exactly Append, ReplaceBookmark, or ReplaceText

Merge PowerPoint Presentation

Common Issues:

IssueCauseSolution
Missing, truncated, invalid inputSource/destination payload is emptyProvide full .ppt/.pptx binary for both inputs
Unsupported merge methodMerge method value is invalidUse exactly Append or Slide Position (case sensitive)

Format PowerPoint Presentation

Common Issues:

IssueCauseSolution
Document missing, truncated, invalidDocument input is empty, truncatedProvide complete presentation binary/base64
Colour keys not recognisedColour scheme keys don’t match expected namesUse canonical scheme key strings exactly

Render Excel Chart

Common Issues:

IssueCauseSolution
Document missing, truncated, invalidWorkbook payload is empty, truncatedSupply full workbook binary or base64
Worksheet not foundWorksheet name doesn’t match (case/spelling)Verify exact worksheet name (case-sensitive)

Compute Data

Common Issues:

IssueCauseSolution
Data is empty or not an arrayData input is missing, null, or not an arrayEnsure data is supplied and is an array of objects
Filter syntax invalidFilter expression contains invalid syntaxValidate expression syntax and property names
Expression syntax invalidExpression contains malformed syntaxEnsure expression uses exactly one aggregate function when needed

Compare Word Documents

Common Issues:

IssueCauseSolution
File content missing or invalidFirst/second document input is emptyEnsure both inputs contain complete .doc/.docx binary
Unsupported file typeInput is not a Word fileUse .docx (preferred) or .doc files
Password-protected documentsOne or both files are encryptedSupply unprotected copies

HTTP Status Codes

Client Errors (4xx)

CodeNameDescriptionResolution
400Bad RequestInvalid request format or parametersCheck template syntax and data format
401UnauthorisedInvalid or missing API keyVerify API key is correct and active
403ForbiddenSubscription lacks permission or quota exceededCheck subscription plan/features
404Not FoundResource or action not foundVerify action name and parameters
429Too Many RequestsRate limit exceededReduce request frequency; implement backoff

Server Errors (5xx)

CodeNameDescriptionResolution
500Internal Server ErrorUnexpected server errorRetry; contact support if persistent
502Bad GatewayGateway/proxy errorRetry after brief delay
503Service UnavailableService temporarily unavailableRetry with exponential backoff
504Gateway TimeoutRequest timed outRetry; consider smaller documents

Rate Limiting (429)

Message: Rate limit exceeded. Retry after X seconds

Causes:

  • Too many requests in short time period
  • Burst limit exceeded
  • Exceeding subscription tier limits

Resolution:

  1. Implement retry logic with exponential backoff
  2. Add delays between requests
  3. Consider batch processing at lower rate
  4. Upgrade plan for higher limits

See Scalability and Performance for best practices.


Network and Connection Errors

Network/CORS Errors

Message: Connection refused or Network error

Causes:

  • Network or proxy blocking outbound requests to Build a Doc endpoints
  • Corporate firewall restrictions
  • DNS resolution issues

Resolution:

  • Whitelist the connector endpoints
  • Work with your network admin
  • Verify HTTPS access to Build a Doc services
  • Test connectivity from your environment to Build a Doc API endpoints

Data Source Format Errors

Message: Invalid data source format or JSON/XML/CSV syntax error

Causes:

  • JSON/XML/CSV syntax error
  • Mismatched data source format declaration
  • Invalid JSON (trailing commas, single quotes)

Resolution:

  • Validate data source format syntax
  • Ensure format declaration matches actual format
  • Remove trailing commas
  • Use double quotes, not single quotes
  • Ensure all brackets { }, [ ], < > are closed
  • Use Preview Templates with Sample Data to test data

Retry Strategies

When to Retry

Error TypeShould RetryStrategy
429 Rate LimitYesExponential backoff
500 Server ErrorYesFixed delay, limited attempts
502/503 GatewayYesExponential backoff
504 Gateway TimeoutYesExponential backoff
400 Bad RequestNoFix input and resubmit
401 UnauthorisedNoFix API key
403 ForbiddenNoCheck subscription/permissions
Template ErrorNoFix template

Exponential Backoff

For transient errors, use exponential backoff:

  1. First retry: Wait 1 second
  2. Second retry: Wait 2 seconds
  3. Third retry: Wait 4 seconds
  4. Fourth retry: Wait 8 seconds
  5. Fifth retry: Wait 16 seconds
  6. Give up after 5 attempts

This gives the service time to recover while preventing overwhelming it with repeated requests.

Power Automate Error Handling

Configure Run After:

Power Automate’s “Configure run after” feature lets you control when actions execute based on previous action outcomes.

Setup:

  1. Add a parallel branch after the Build a Doc action
  2. Click the menu → Configure run after
  3. Select conditions: is successful, has failed, is skipped, has timed out

Scope for Try-Catch:

Use Scope actions to group related actions and handle errors at the group level.

Pattern:

Scope: Try
├── Build a Doc Action
├── Create File
└── Send Email
Scope: Catch (Configure run after: has failed)
├── Compose: Error details
├── Send email: Error notification
└── Terminate: Failed

See Handle Errors in Flows for complete instructions with examples.

Error Handling Best Practices

  1. Validate inputs - Check template and data before calling action
  2. Enable inline errors - Enable during development for easier debugging
  3. Implement retries - Handle transient failures gracefully with exponential backoff
  4. Log errors - Record error details for troubleshooting and audit trail
  5. Notify on failure - Alert appropriate parties when errors occur
  6. Test edge cases - Verify behaviour with missing data, empty arrays, etc.