Skip to main content

Notifications

Microsoft Dynamics AX forum
Answered

AXBuild.exe Leg Failed! after VAR AOD file import

Posted on by 2,695

I have just imported a VAR layer and edited the conflicts in AX2012 R2 CU7 and AXBuild.exe will no longer run a full compile on the code.  I believe the code should fully compile, but I will verify that with an AOT compile.  AXBuild was successful before the VAR AOD Import step of the checklist.  The code has been synchronized.

Once AXBuild is started, the program will fully complete Pass 1 with three workers. When pass 2 tasks should be starting, 2 of the workers shut down, showing Leg Failed!, Worker completed with result 'Error 100: unknown failure reason'.  The third worker will complete and then the errors begin.  

Error message decoding failed for the error message: #\classes\....names a custom class, list code 12 (a TODO notation in the code)

unhandled Exception: System.AggregateException: One or More Errors occurred.....details are listed below.  I have looked into the temp directory, for the node list file, the error file and the log file for each worker.  All node lists are there, so the folder can be written to correctly, but for the failed workers the error file and log files are missing, which I think explains the file not found part of the error below.

If anyone has ideas I look forward to hearing them.

error details:

System.IO.FileNotFoundException: Could not find file 'C:\Users\ljjohnson\AppDa

ta\Local\Temp\tmpF718_err.tmp'.

  at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

  at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, I

nt32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions o

ptions, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolea

n useLongPath, Boolean checkHost)

  at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access,

FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean

bFromProxy, Boolean useLongPath, Boolean checkHost)

  at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detec

tEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)

  at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detec

tEncodingFromByteOrderMarks, Int32 bufferSize)

  at System.IO.StreamReader..ctor(String path, Encoding encoding)

  at System.IO.File.InternalReadAllLines(String path, Encoding encoding)

  at axbuild.Program.UpdateLog(String logFile)

  at axbuild.Program.<>c__DisplayClass4.<Compile_Full>b__3(List`1 nodes)

  at System.Threading.Tasks.Parallel.<>c__DisplayClassf`1.<ForWorker>b__c()

  at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)

  at System.Threading.Tasks.Task.<>c__DisplayClass10.<ExecuteSelfReplicating>b_

_f(Object param0)

  --- End of inner exception stack trace ---

  • Verified answer
    lispyj Profile Picture
    lispyj 2,695 on at
    RE: AXBuild.exe Leg Failed! after VAR AOD file import

    Resolved! I took two steps to resolve this issue.  My SQL Server had a memory limit of 3GB.  Once I removed the limit, the two Leg Failed! errors were reduced to one.  Next, I deleted the custom class that was referenced in the error.  Once I realized that the same class was always referenced, it seemed an obvious fix.

    Thanks, Joris for the input.

  • Suggested answer
    Joris dG Profile Picture
    Joris dG 17,775 on at
    RE: AXBuild.exe Leg Failed! after VAR AOD file import

    The only time I've seen an error similar to this when I forgot to run axbuild in an elevated prompt (ie "run as administrator"). I know it's a silly question but I forgot it once so want to get that cleared up first...

Helpful resources

Quick Links

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Blog subscriptions now enabled!

Follow your favorite blogs

TechTalk: How Dataverse and Microsoft Fabric powers ...

Explore the latest advancements in data export and integration within ...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 283,682 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,000 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,146

Featured topics

Product updates

Dynamics 365 release plans