Exception in acepublish.arx opening AutoCAD Electrical 2022

Issue:

Launching AutoCAD Electrical 2022, an Unhandled Exception error in C:\Program Files\Autodesk\AutoCAD 2022\Acade\acepublish.arx pops up.

Here are two sample Unhandled Exception errors that open on launch.

Clicking Ok in the dialog box allows AutoCAD Electrical to open and run.

 

Causes:

The AutoCAD 2022.1 Update causes an error in the acepublish.arx file.  See this Autodesk article explaining the error.

You’ll notice an ‘Unknown command’ error at the command line:

 

  • Invoking the AEPUBLISH command.
  • Or trying to Publish a project to PDF or DWF/DWFX by right-clicking on the project and choosing the ‘Publish to PDF/DWF/DWFx’:

 

Solution:

Install the latest AutoCAD Electrical 2022 update from your Autodesk Account or the Autodesk Desktop App.

  • Currently the latest update is AutoCAD Electrical 2022.0.1
  • Before installing the AutoCAD Electrical 2022.0.1 update AcePublish.arx will be at version 19.0.57.0 and after the update 19.0.72.0:

If other AutoCAD Electrical commands show an ‘Unknown command’ error at the command line, try resetting the program to default or verify if any Windows/Office updates were recently installed and remove them:

https://knowledge.autodesk.com/support/autocad-electrical/troubleshooting/caas/sfdcarticles/sfdcarticles/AutoCAD-Electrical-portion-does-not-work.html

If the error persists  uninstall AutoCAD Electrical 2022 from Windows Control Panel and reinstall from a full download in Autodesk Account or Autodesk AVA.

 

About the Author

Joanna Gryszka

Manufacturing Technical Support Specialist<br><br>Joanna has over eight years of experience working with Autodesk products. She started supporting core AutoCAD and network installations of all Autodesk products. She now has five years of experience with Inventor. <br> She graduated from Mechanical Engineering and has been providing solutions to clients and dedicating her knowledge to the Solution Center since then.

More Content by Joanna Gryszka
Previous Article
Creating Command Macros from AutoCAD Scripts
Creating Command Macros from AutoCAD Scripts

If you want to create a custom command macro out of an AutoCAD script, you’ll need to come up with a keyboa...

Next Article
You do not have permission to open the application 'Install Autodesk AutoCAD LT 2022 for Mac'
You do not have permission to open the application 'Install Autodesk AutoCAD LT 2022 for Mac'

Install message: You do not have permission to open the application 'Install Autodesk AutoCAD 2022 for Mac'...