Welcome to the Alteryx Knowledge Base

Error: There was an error loading a macro: Object reference not set to an instance of an object
user

Created/Edited - 6/4/2026 by Michael Cordeiro | Alteryx

Description

Alteryx Designer fails to start or displays macro loading errors because one or more installed macros or macro configuration files cannot be loaded correctly.

The following errors may appear:

There was an error loading a macro: An internal error occurred.

There was an error loading a macro: Object reference not set to an instance of an object

Macroerrormessage.png

Issue

When starting Alteryx Designer, one of the following errors appears:
Macroerrormessage.png

There was an error loading a macro: An internal error occurred.

or

There was an error loading a macro: Object reference not set to an instance of an object

Environment

Alteryx Designer

• All supported versions

Prerequisites
  • • Permission to modify folders under:
    • C:\ProgramData\Alteryx\DataProducts\AddOnData
  • Permission to restart Alteryx Designer
Cause

This issue can occur when Designer cannot correctly load one or more installed macros or macro configuration files during startup.

Common causes of this issue include the following:

• Corrupted macro configuration files

• Corrupted installed macros

• Invalid references to installed macros

• Incomplete macro installations

• Leftover macro configuration files following an upgrade or uninstall

Resolution

Try the following troubleshooting steps:

  1. Close Alteryx Designer.
  2. Navigate to:
    1. C:\ProgramData\Alteryx\DataProducts\AddOnData
  3. Rename the Macros folder.
    1. Example: Macros_old
  4. Restart Alteryx Designer.
  5. If Designer starts successfully, incrementally restore files to the renamed folder and restart Designer after each change.
  6. Identify the macro or configuration file that causes the error to return.
  7. Remove, replace, or reinstall the problematic macro.

Note: Renaming the Macros folder may temporarily remove access to installed macros and related functionality until the files are restored.

Additional Information

The Macros folder contains installed macro references and configuration files used during Designer startup.

If one or more macro files or configuration references become corrupted, Designer may fail to initialize macros correctly and display macro loading errors during startup.

Was this article helpful?