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,100

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)
  • Sohaib Cheema Profile Picture
    48,455 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,628 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,340

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 640 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans