We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
gagsbh80
4 years agoExplorer | Level 4
UploadSessionFinishBatchCheckAsync - Path of Failed Entry
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
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.
1 Reply
- Greg-DB4 years ago
Dropbox Community Moderator
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.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!