> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFEventPipelineBatchUploadFailedEventHandler

> A handler invoked when the SDK has attempted but failed to upload a batch of event pipeline events. It is up to the client to resubmit failed events as.

A handler invoked when the SDK has attempted but failed to upload a batch of event pipeline events. It is up to the client to resubmit failed events as necessary using PFEventPipelineEmitEvent, though depending on the nature of the failure, resubmitting directly may not resolve the issue.

## Syntax

```cpp theme={null}
void PFEventPipelineBatchUploadFailedEventHandler(  
    void* context,  
    HRESULT translatedUploadError,  
    const char* errorMessage,  
    PFEvent failedEvents,  
    size_t failedEventsCount  
)  
```

### Parameters

**`context`**   void\*<br />*optional*

Optional context pointer to data used by the event handler.

**`translatedUploadError`**   HRESULT

Translated upload error.

**`errorMessage`**   char\*

Message describing the upload error.

**`failedEvents`**   [PFEvent](/services/playfab/api-references/c/pfeventpipeline/structs/pfevent)

Events that were in the failed batch.

**`failedEventsCount`**   size\_t

The number of entries in the failedEvents array.

### Return value

Type: void

TBD

## Remarks

Arguments besides context are owned by the SDK and only guaranteed to be valid within the callback.

## Requirements

**Header:** PFEventPipeline.h

## See also

[PFEventPipeline members](/services/playfab/api-references/c/pfeventpipeline/pfeventpipeline_members)


## Related topics

- [PFEventPipelineCreatePlayStreamPipelineHandle](/services/playfab/api-references/c/pfeventpipeline/functions/pfeventpipelinecreateplaystreampipelinehandle.md)
- [PFEventPipelineCreateTelemetryPipelineHandleWithEntity](/services/playfab/api-references/c/pfeventpipeline/functions/pfeventpipelinecreatetelemetrypipelinehandlewithentity.md)
- [PFEventPipelineCreateTelemetryPipelineHandleWithKey](/services/playfab/api-references/c/pfeventpipeline/functions/pfeventpipelinecreatetelemetrypipelinehandlewithkey.md)
- [PlayFab Services SDK - Event Pipeline](/services/playfab/sdks/c/event-pipeline/eventpipeline.md)
- [Services C API overview - PFEventPipeline.h](/services/playfab/api-references/c/pfeventpipeline/pfeventpipeline_members.md)
