# How to prevent RequestData after update pipeline?

**URL:** https://discourse.paraview.org/t/how-to-prevent-requestdata-after-update-pipeline/14972
**Category:** Development
**Created:** [July 2, 2024, 11:16am UTC](https://discourse.paraview.org/t/how-to-prevent-requestdata-after-update-pipeline/14972 "2024-07-02T11:16:32Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![joint](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@joint](https://discourse.paraview.org/u/joint)
#### Post date: [July 2, 2024, 11:16am UTC](https://discourse.paraview.org/t/how-to-prevent-requestdata-after-update-pipeline/14972/1 "2024-07-02T11:16:32Z")

</div>

Hello dear Paraview developers!

I use the following pattern to get the dataset on the client side

```auto
  if (filter)
  {
    //[WHAT FOR?]
    filter->UpdatePipeline();
    dataSet = vtkDataSet::SafeDownCast(vtkAlgorithm::SafeDownCast(filter->GetClientSideObject())->GetOutputDataObject(sourcePortNumber));
  }

```

But I dont want the RequestData to be called by update pipeline  
Could you please explain how to do it?

Thank u!

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [July 3, 2024, 9:32am UTC](https://discourse.paraview.org/t/how-to-prevent-requestdata-after-update-pipeline/14972/2 "2024-07-03T09:32:51Z")

</div>

> I dont want the RequestData to be called by update pipeline

This is what UpdatePipeline does, why are you calling UpdatePipeline in the first place ?

---

<div class="post-metadata">

### Author: ![joint](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@joint](https://discourse.paraview.org/u/joint)
#### Post date: [July 5, 2024, 7:17am UTC](https://discourse.paraview.org/t/how-to-prevent-requestdata-after-update-pipeline/14972/3 "2024-07-05T07:17:51Z")

</div>

I have a custom filter with non-costly RequestDataObject, and very costly RequestData

I create a filter

```auto
filter = vtkSrcPrxyPtr::Take(vtkSMSourceProxy::SafeDownCast(proxyManager->NewProxy("filters", "ClientServerMoveData"))

```

And set the current proxy as the input for it.

And then call update pipeline, because otherwise it does not get any data

But I dont want the UpdatePipeline call requestData for my custom filter!

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [July 5, 2024, 7:26am UTC](https://discourse.paraview.org/t/how-to-prevent-requestdata-after-update-pipeline/14972/4 "2024-07-05T07:26:42Z")

</div>

> [@joint](#):
>
> non-costly RequestDataObject, and very costly RequestData

RequestDataObject is not supposed to generate Data, only the DataObject. Why do you want to get only the data obect ?

---

<div class="post-metadata">

### Author: ![joint](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@joint](https://discourse.paraview.org/u/joint)
#### Post date: [July 5, 2024, 7:48am UTC](https://discourse.paraview.org/t/how-to-prevent-requestdata-after-update-pipeline/14972/5 "2024-07-05T07:48:16Z")

</div>

I could have misunderstood the concept

Could you please clarify the difference between Data and DataObject?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [July 5, 2024, 7:55am UTC](https://discourse.paraview.org/t/how-to-prevent-requestdata-after-update-pipeline/14972/6 "2024-07-05T07:55:01Z")

</div>

DataObject → a vtkPolyDatan without any points or cells in it

Data → a vtkPolyData with cells and points in it

---

<div class="post-metadata">

### Author: ![joint](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@joint](https://discourse.paraview.org/u/joint)
#### Post date: [July 5, 2024, 8:00am UTC](https://discourse.paraview.org/t/how-to-prevent-requestdata-after-update-pipeline/14972/7 "2024-07-05T08:00:09Z")

</div>

Does DataObject contain fieldData?

When I get dataset without UpdatePipeline, but with GetCliendSideObject (i have built in mode), it seems there are no fields in the dataset

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [July 5, 2024, 8:04am UTC](https://discourse.paraview.org/t/how-to-prevent-requestdata-after-update-pipeline/14972/8 "2024-07-05T08:04:22Z")

</div>

After RequestDataObject, the resulting data object is expected to be fully empty.
