Execution of External Command Failed on cRIO

Updated Jan 28, 2019

Reported In


  • CompactRIO Controller
  • CompactRIO Single-Board Controller


  • Measurement & Automation Explorer (MAX)


  • NI CompactRIO

Issue Details

I am trying to format my controller or install new software on my cRIO that is connected via USB to my host computer. I get the error: 

Execution of external command, script, or application failed.

Error –2147220312 on cRIO


To solve this error, try to following steps:
1. Power cycle the cRIO 
2. Verify that firewall has been turned off
3. Turn off any Antivirus software
4. Change the method you are using to connect to the cRIO (switch to Ethernet if connected through the USB B port) and format the cRIO with the new connection type.

If you have a working cRIO, you can pull the image from that device and use that or a known good image to reimage your problematic cRIO.