Forum Discussion

gagsbh80's avatar
gagsbh80
Explorer | Level 4
4 years ago
Solved

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

1 Reply

About Dropbox API Support & Feedback

Node avatar for 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!