web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Unable to save data to the file "\\xxxxx.file.core.windows.net\dixfshare\File.xml

(0) ShareShare
ReportReport
Posted on by 5,104

Hi

This code is written in an extension class for VendOutPaym and is used during the vendor payment file generation process. An error occurs (subject) when generating the payment file by clicking "Generate payments" on the vendor payment journal form.


  [XMLpath,XMLnameOfFile,XMLextention]     = fileNameSplit(filename);
  downloadUrl                     = File::SendFileToTempStore(file.getStream(), filename, classstr(PaymentFileTemporaryStorageStrategy), true);
  System.IO.Stream  stream     = File::UseFileFromURL(downloadUrl);
  newfilename                     = strFmt("%1\\%2",DMFParameters::find().SharedFolderPath,filename);

  BinData bindata                 = new BinData();
  Binary binaryData               = Binary::constructFromMemoryStream(stream);
  container containerData         = binaryData.getContainer();
  bindata.setData(containerData);
  bindata.saveFile(newfilename);

This functionality has been working for 5 to 6 years since implementation by a partner, but it suddenly stopped working last weekend without any apparent cause - no recent deployment atleast around this area and issue happens almost after a month since the last deployment

The issue appears in SIT and PROD environments, but works fine in DEV. Debugging SIT using DEV tools was unsuccessful, since the problem happens at the Bindata.savefile call—which is managed code, so it's not accessible during debugging like Im not able to go inside savefile method.

The only difference identified is that DMFParameters.SharedFolderPath is set to a local path in DEV, whereas SIT and PROD use an Azure Blob path. Not sure, some azure blob related changes has affected this functionality

Any recommendations, suggestions, or insights into this problem would be greatly appreciated.Here’s a corrected version suitable for a community post:

Thanks

Uday

Categories:
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    298,669 Super User 2025 Season 2 on at
    Unable to save data to the file "\\xxxxx.file.core.windows.net\dixfshare\File.xml
    Hi Uday,
     
    Thanks for the clarification. The approach to save the files in a DIXF working directory is a wrong design decision, if you would ask me. Please keep us updated how it will work out if you change the storage account to an own managed storage. 
  • udaY-ch Profile Picture
    5,104 on at
    Unable to save data to the file "\\xxxxx.file.core.windows.net\dixfshare\File.xml
    Thanks Shoaib
     
    I will look into those and keep you posted.
     
    Meanwhile, we are trying to use custom azure blob if that's working on the other end.
     
    Thanks
    Uday
  • Sohaib Cheema Profile Picture
    48,482 User Group Leader on at
    Unable to save data to the file "\\xxxxx.file.core.windows.net\dixfshare\File.xml
    Hi ,
    the only change that I can remember from past few months about storage account in Dynamics is here
     
     
    As I mentioned, please also open your question on the Azure QA.
  • udaY-ch Profile Picture
    5,104 on at
    Unable to save data to the file "\\xxxxx.file.core.windows.net\dixfshare\File.xml
    Hi Andre and Shoiab
     
    Thanks for your reply.
     
    @André Arnaud de Calavon : This was created during the implementation and I believe the reason that it is stored in azure blob is to download the file directly and in some cases it will be directed to som SFTP folder's.
     
    @Sohaib Cheema : We are looking on the azure side as well to find any recent changes would have impacted this functionality.
     
    Meanwhile, I have registered a case with microsoft since this was a custom code and havent received much help from microsoft yet.
     
    Thanks
    Uday
  • Sohaib Cheema Profile Picture
    48,482 User Group Leader on at
    Unable to save data to the file "\\xxxxx.file.core.windows.net\dixfshare\File.xml
    Azure expert may suggest something better on this, as they are usually aware of changes in Azure.
     
    overall it seems Microsoft has closed a free door, I have't seen people saving payment file on the Microsoft owned blob which is used for several purposes for the standard application.
     
    Mostly people save their Payment files on own Azure Storage
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    298,669 Super User 2025 Season 2 on at
    Unable to save data to the file "\\xxxxx.file.core.windows.net\dixfshare\File.xml
    Hi Uday,
     
    There were some security related actions to not allow anonymous access to the BLOB storage accounts managed by Microsoft. This can be related. Note that on a DEV machine, a local path is used which does not have cloud security restrictions applied. For that reason it might still work in DEV.

    Can you tell why a payment file is being saved into a working directory for DMF? Should it remain stored there? What is the exact requirement for which this extension was written? When we understand the requirement, we might be able to suggest an alternative.
     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,352

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 810 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 616 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans