cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Are you using the Microsoft co-authoring beta for Dropbox? Share your feedback and learn more about it here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

UploadSessionFinishBatchCheckAsync - Path of Failed Entry

UploadSessionFinishBatchCheckAsync - Path of Failed Entry

gagsbh80
Explorer | Level 4
Go to solution

Hello @Greg-DB 

 

I am using UploadSessionFinishBatchCheckAsync API in my application.

 

 

 

UploadSessionFinishBatchJobStatus resultstatus = await clientadmin.Files.UploadSessionFinishBatchCheckAsync(jobid);

if (resultstatus.AsComplete != null && resultstatus.AsComplete.Value != null)
{
FileMetadata filemetadata = null;
foreach (var resultEntry in resultstatus.AsComplete.Value.Entries)
{
if (resultEntry != null)
{
//Process FileMetatData
if (resultEntry.AsSuccess != null && resultEntry.AsSuccess.Value != null)
{
filemetadata = resultEntry.AsSuccess.Value;
string path = filemetadata.PathDisplay.

 

 


I can I get Path of the result entry that completed successfully.
I need to identify the path of the the result entry that failed.

 

 

 

UploadSessionFinishError finisherror = resultEntry.AsFailure.Value;

 

 

 

finisherror does not give the path of the entry that failed.
finisherror.AsPath.Value also does not provide that to me.

 

How do I get the Path of the result entry that was a failure ?

 

Thanks,
Gagan

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

The IList<UploadSessionFinishBatchResultEntry> Entries returned as UploadSessionFinishBatchResult.Entries from UploadSessionFinishBatchCheckAsync will be in the same order as the original IEnumerable<UploadSessionFinishArg> entries you passed to UploadSessionFinishBatchAsync, so you should refer to that original IEnumerable<UploadSessionFinishArg> entries to see which upload session each is referring to.

View solution in original post

1 Reply 1

Greg-DB
Dropbox Staff
Go to solution

The IList<UploadSessionFinishBatchResultEntry> Entries returned as UploadSessionFinishBatchResult.Entries from UploadSessionFinishBatchCheckAsync will be in the same order as the original IEnumerable<UploadSessionFinishArg> entries you passed to UploadSessionFinishBatchAsync, so you should refer to that original IEnumerable<UploadSessionFinishArg> entries to see which upload session each is referring to.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?