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

Notifications

Announcements

Community site session details

Community site session details

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

File::SendFileToTempStore_GetResult works in DEV VM but does not work in UAT

(0) ShareShare
ReportReport
Posted on by 1,606

Hi Experts, 

I tried using File::SendFileToTempStore_GetResult code to upload file to the temporary storage. This works on my Dev VM but when we deploy it into UAT, it does not work. I am not able to debug in UAT but I was able to get the trace but I still dont have an idea what  was the issue:

pastedimage1682656262669v1.png

The import appears to stop at: File::SendFileToTempStore_GetResult. Any ideas what I should check in order to resolve this?

Thanks in advance!

I have the same question (0)
  • Martin Dráb Profile Picture
    238,534 Most Valuable Professional on at

    Can you please tell us more about the problem than just "it does not work"?

    Also, do you want out help with the problem with debugging ("I am not able to debug in UAT")?

  • Martin Dráb Profile Picture
    238,534 Most Valuable Professional on at

    I found a single place in the standard application where sendFileToTempStore_GetResult() is used - SysTraceController.uploadLastTrace(). Does it work for you there? This will answer an important question: whether the problem is caused by your code or something else. If the standard code doesn't work, you could also log a support request with Microsoft.

  • blue_dreamer61@yahoo.com Profile Picture
    1,606 on at

    Thanks Martin, I will check and update this thread the result.

  • Suggested answer
    blue_dreamer61@yahoo.com Profile Picture
    1,606 on at

    Still unsure why File::SendFileToTempStore_GetResult does not work on UAT.

    Alternatively,  I used which works in UAT:

    fileUploadStrategy = new FileUploadTemporaryStorageStrategy();

    fileUploadResult = fileUploadStrategy.uploadFile(localStream, fileNameExt);

    Instead of (not working):

    fileUploadResult  = File::SendFileToTempStore_GetResult(localStream, filePathFileNameExt) as FileUploadTemporaryStorageResult;

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…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

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

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 437 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 348 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans