Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / The process cannot acc...
Finance forum
Answered

The process cannot access the file XXXXX because it is being used by another process when I Build ApplicationSuite Model

Posted on by 355

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 

  • Verified answer
    ALGDEV Profile Picture
    ALGDEV 355 on at
    RE: The process cannot access the file XXXXX because it is being used by another process when I Build ApplicationSuite Model

    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

  • ALGDEV Profile Picture
    ALGDEV 355 on at
    RE: The process cannot access the file XXXXX because it is being used by another process when I Build ApplicationSuite Model

    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

  • ALGDEV Profile Picture
    ALGDEV 355 on at
    RE: The process cannot access the file XXXXX because it is being used by another process when I Build ApplicationSuite Model

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans