Hi Guys
I am using
the CodeCrib Library in order to handle my TFS Build Process.
You can
find here, http://dynamicsaxadmin.codeplex.com/
During the
last run, I faced the follow error:
Exception Message: Error exporting model: AXUtil 6.3 - Microsoft
Dynamics AX Admin Utility (6.3.3000.2948) (c) Copyright, Microsoft Corporation,
2011. All rights reserved. The AXUtil command was started in the mode: export.
Working against model store XXXXXX/XXXXXXX_model. ERROR: The file exists. (type Exception) Exception Stack Trace: at
CodeCrib.AX.Manage.ModelStore.ExportModelShell(String modelName, String
modelPublisher, String modelFile, String strongNameKeyFile) in
c:\Users\xxxxxxxx\Documents\Visual Studio
2013\Projects\MainAxTFSLib\CodeCrib.AX.Manage\CodeCrib.AX.Manage\ModelStore.cs:line
144 at CodeCrib.AX.Manage.ModelStore.ExportModel(String modelName, String
modelPublisher, String modelFile, String strongNameKeyFile) in c:\Users\ xxxxxxxx\Documents\Visual
Studio
2013\Projects\MainAxTFSLib\CodeCrib.AX.Manage\CodeCrib.AX.Manage\ModelStore.cs:line
84 at CodeCrib.AX.TFS.ExportModel.Execute(CodeActivityContext context) in
c:\Users\ xxxxxxxx\Documents\Visual Studio 2013\Projects\MainAxTFSLib\CodeCrib.AX.TFS\CodeCrib.AX.TFS\ModelStore.cs:line
96 at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance,
ActivityExecutor executor, BookmarkManager bookmarkManager) at
System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor
executor, BookmarkManager bookmarkManager, Location resultLocation)
An error occurred while copying diagnostic activity logs to the drop
location. Details: The file exists.
Resolution:
You have to clean the TEMP folder related to the Agent User that will run the
Build Process.
Something like C:\Users\xxxxxxx\AppData\Local\Temp. After many
TFS Build run, this folder contains a lot of files and an certain point the
process try to create a file that already exist.
If possible,
create a batch process that clean this folder at regular basis.
That is it!