Announcements
Hi Guys
I have an issue when I build ApplicationSuite Model , I create a new report for FreeTxtInvoice , But when I build it from Dynamics ax menu -> Build Models I have this Issue :
Error 'System.IO.IOException: The process cannot access the file 'J:\AosService\PackagesLocalDirectory\ApplicationSuite\Reports\ATAFreeTextInvoice.Report.rdl' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
at Microsoft.Dynamics.Framework.Tools.Reports.Build.ReportGenerator.GenerateRdls(IReportGeneratorContext context, AxReport report)'. 0 0 Build
it's just an example but I have the same error for All other design for this report ,
I checked my VSts I don't have any Chekout File ,
I tried also to Close and re-open VS and the error still exist
Can you please help me to resolve this Issue .
Thank you
The issue is that the ATAFreeTextInvoice referenced in two Packages ,
Whats I did is to Copy Past the file From J:\AosService\PackagesLocalDirectory\ApplicationSuite\USRFreeTextInvoice\AxReport
to
J:\AosService\PackagesLocalDirectory\ApplicationSuite\USRFreeTextInvoice\AxReport
And I deleted from J:\AosService\PackagesLocalDirectory\ApplicationSuite\USRFreeTextInvoice\AxReport
The file should be Exist in one Model not Two . I think parallel build is the Origin of this Issue.
And I build the Model and It works
The issue still exist
I think it has a relation with the models because I tried from another Sandbox and the same result
I Noticed also in aot the report AtaFretextInvoice belongs to two models I think its the origin of issue (UsrApplicationSuite and UserFreeTextInvoice) the two are a custom models and when I buils Application Suite visual studio build the 2 models , can you tell me please How can I delete an element of a model
I want to keep this report just for UsrApplicationSuite , I deleted this report from project in UserFreeTextInvoice model but in Aot is still in the two models
Yes I did
but no it's another report Issue , I have never touched this report , it has become random
Severity Code Description Project File Line Column Source Suppression State
Error The process cannot access the file 'J:\AosService\PackagesLocalDirectory\ApplicationSuite\Reports\ExciseTaxTransReport_IN.Report.rdl' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at System.IO.File.Delete(String path)
at Microsoft.Dynamics.Framework.Tools.BuildTasks.ReportRDLGeneratorWrapper.Generate(IEnumerable`1 modules, CancellationToken cancellationToken, Action`1 operationComplete). 0 0 Build
André Arnaud de Cal... 291,359 Super User 2024 Season 2
Martin Dráb 230,370 Most Valuable Professional
nmaenpaa 101,156