Skip to main content

Notifications

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!

  • Suggested answer
    RE: File::SendFileToTempStore_GetResult works in DEV VM but does not work in UAT

    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;

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

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

  • Martin Dráb Profile Picture
    Martin Dráb 230,842 Most Valuable Professional on at
    RE: File::SendFileToTempStore_GetResult works in DEV VM but does not work in UAT

    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.

  • Martin Dráb Profile Picture
    Martin Dráb 230,842 Most Valuable Professional on at
    RE: File::SendFileToTempStore_GetResult works in DEV VM but does not work in UAT

    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")?

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

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,969 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,842 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans