ERROR: Something went wrong. ErrorStatus=76.

ERROR: Something went wrong. ErrorStatus=76.

ramesh.miryala
Contributor Contributor
1,067 Views
11 Replies
Message 1 of 12

ERROR: Something went wrong. ErrorStatus=76.

ramesh.miryala
Contributor
Contributor

Hello everyone,
I am trying to run script program on a bunch of files located in ACC drive using batch script (.bat file)

I'm encountering an issue with AutoCAD 2024 and would appreciate any help. When I try to execute a command using accoreconsole.exe, I receive the following error message:

AutoCAD Message
Cannot find the specified drawing file.
Please verify that the file exists.
>>>Responding: OK.

Additionally, the log shows:

ERROR: Something went wrong. ErrorStatus=76.

Here are the details:

  • Execution Path: C:\Program Files\Autodesk\AutoCAD 2024\accoreconsole.exe
  • Version Number: U.202.0.0 (UNICODE)

I've verified that the file path is correct and that the file exists. I've also checked file permissions and ensured the drive is accessible.

Despite these steps, the error persists.

Has anyone encountered this issue before? Any suggestions on how to resolve it would be greatly appreciated.

Thank you!

0 Likes
Accepted solutions (1)
1,068 Views
11 Replies
Replies (11)
Message 2 of 12

TheCADnoob
Mentor
Mentor

So the error idicates clearly that it cant find the file so id start looking there. 

 

Since you verified you can see the file, you should probably verify that coreconsole can see the file. 

 

Open coreconsole from the command line (not using a script) and see if you can get it to open the file. 

CADnoob

EESignature

Message 3 of 12

Brock_Olly
Collaborator
Collaborator

Maybe silly but have you tried launching the .bat file as administrator? 
Have you done this routine before and it suddenly stopped working? If so, what's different this time?

Message 4 of 12

paullimapa
Mentor
Mentor

Have you tried created a new bat file to run coreconsole on dwgs located on your local drive instead of ACC just to see if those dwgs can be located?


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 5 of 12

vladimir_michl
Advisor
Advisor

Are you running the AcCoreConsole app under your current Windows account? Please note that your network drive mappings may be different if you run it from a different account (e.g. Administrator).

 

Vladimir Michl, www.arkance.world  -  www.cadforum.cz

 

Message 6 of 12

ramesh.miryala
Contributor
Contributor
Accepted solution

Below code is working fine & Issue has been resolved

 

FOR %%f IN ("C:\Users\RAMESHM\DC\ACCDocs\Jacobs\SA506JUK-King_Salman_Airport\Project Files\30_WIP\Detailed_Master_Plan\Relocations_Integration\01_Xrefs\*SC00010020002D-C00002-JCB-ZZ-MOA-RE-ZZ-002001.dwg") DO "C:\Program Files\Autodesk\AutoCAD 2024\accoreconsole.exe" /i "%%f" /s "C:\Users\RAMESHM\Documents\Batch\PurgeAudit.scr" /l en-US

0 Likes
Message 7 of 12

ramesh.miryala
Contributor
Contributor

Thanks for your valuable sugestions

0 Likes
Message 8 of 12

paullimapa
Mentor
Mentor

perhaps you can provide community with what was changed in the code to make it work?


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 9 of 12

ramesh.miryala
Contributor
Contributor

I recently discovered a simple yet effective tweak to ensure smooth execution of batch files. By adding an asterisk (*) in the file path just before the file name, you can streamline the process. Check out the example below:

FOR %%f IN ("C:\Users\RAMESHM\DC\ACCDocs\Jacobs\SA506JUK-King_Salman_Airport\Project Files\30_WIP\Detailed_Master_Plan\Relocations_Integration\01_Xrefs\*SC00010020002D-C00002-JCB-ZZ-MOA-RE-ZZ-002001.dwg") DO "C:\Program Files\Autodesk\AutoCAD 2024\accoreconsole.exe" /i "%%f" /s "C:\Users\RAMESHM\Documents\Batch\PurgeAudit.scr" /l en-US"

Feel free to try it out and let me know how it works for you! 

 

0 Likes
Message 10 of 12

paullimapa
Mentor
Mentor

The * symbol is a reserved character for specific use by the Windows OS which is why you cannot name a file with this special character amongst a few others. Since an * is interpreted by Windows to represent a wild card character, when placed in this for loop it’ll just catch all file names with a different prefix matching the remainder of the file name you specified. Do your dwg file names not match exactly with what you’ve typed out in your batch file which is what’s causing it to fail?


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 11 of 12

ramesh.miryala
Contributor
Contributor

I modified my batch script to include the * symbol because it is a wildcard character in Windows. This means that the * can represent any sequence of characters in file names. This feature is particularly useful when dealing with files that have different prefixes but share a common suffix.

 

For instance, if I have several .dwg files named project1.dwg, project2.dwg, and project3.dwg, using project*.dwg in the script allows it to match all these files. This way, I don't need to list each file name individually. The script will automatically include any file that starts with "project" and ends with ".dwg".

 

This approach simplifies the script and ensures that it processes all relevant files without needing to update the script every time a new file is added. However, it's crucial to ensure that the file names in the directory match the pattern specified in the batch file. If the .dwg file names don't match exactly, the script might fail to find the files

 

 

0 Likes
Message 12 of 12

paullimapa
Mentor
Mentor

That’s exactly what the * is used for as a wildcard as I explained in my previous response. So your OP error was due to an error in your batch file not containing the matching dwg name so obviously the file is not found. The * happened to resolve the error because now there are dwgs found. 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos