# Problem UpdateProcessInstanceData c#

**URL:** <https://discuss.workflowgen.com/t/problem-updateprocessinstancedata-c/1587>\
**Category:** General WorkflowGen Discussion\
**Created:** [February 27, 2020, 2:31pm UTC](https://discuss.workflowgen.com/t/problem-updateprocessinstancedata-c/1587 "2020-02-27T14:31:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![DUBARRY](https://avatars.discourse-cdn.com/v4/letter/d/e5b9ba/32.png) [@DUBARRY](https://discuss.workflowgen.com/u/DUBARRY)\
**Post date:** [February 27, 2020, 2:31pm UTC](https://discuss.workflowgen.com/t/problem-updateprocessinstancedata-c/1587/1 "2020-02-27T14:31:04Z")

</div>

Hello,  
I am developing a small utility in C # which allows us to update the DATA in relation to a request.  
So I use RuntimeService.  
I managed to read the process list, the request list and the request data.  
However, I cannot update the request data. I’m using UpdateProcessInstanceData  
I give you my code so that you can give me your opinion.

On the click of the button, I create my xml file with the value to modify and I get the idProcess.  
 ![1](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/1c9729856e559309f76bbcec874ac1d9bd542061.jpeg)  
I run this function

![2](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/9428e9b21120762e2e522050f8ae286dcea17391.jpeg)

I tried this method  
 ![3](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/05557a3051735172d4b3432ba7b33cb5e7483a75.jpeg)

![4](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/3f225146eb4e45635298e561dc9afac1062d8d75.jpeg)

 ![5](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/4bc08e5bd4f7d1b8edea3abee42944ad399caf37.jpeg)

And I tried this one. The same error appears.

![6](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/6a36c19ddc1d95982e70aa2f19cc5d3b2b915808.jpeg)  
 ![7](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/8cb41a58ef367857efdf6cd5591a1fb98301ef3e.jpeg)

Is this a problem when creating my xml ?? Here’s how it is!

 ![8](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/4587c49d45c8f8c7b7296bf044490217a2fd4bbc.jpeg)  
 ![9](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/5e97ba920e3ed54d2b3578684267e807ef168ca2.jpeg)

I really don’t see where the error can come from !!

---

<div class="post-metadata">

**Author:** ![eddy.daouk](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/eddy.daouk/32/672_2.png) [@eddy.daouk](https://discuss.workflowgen.com/u/eddy.daouk)\
**Post date:** [February 27, 2020, 5:55pm UTC](https://discuss.workflowgen.com/t/problem-updateprocessinstancedata-c/1587/2 "2020-02-27T17:55:02Z")

</div>

Hi @DUBARRY,

Are you able to connect to the webservice page?  
http://[yousite]/wfgen/ws/processesruntime.asmx

If so, does is work when you try your query directly in the webservice?  
http://[yoursite]/wfgen/ws/processesruntime.asmx?op=UpdateProcessInstanceData

Regards,  
Eddy.

---

<div class="post-metadata">

**Author:** ![DUBARRY](https://avatars.discourse-cdn.com/v4/letter/d/e5b9ba/32.png) [@DUBARRY](https://discuss.workflowgen.com/u/DUBARRY)\
**Post date:** [February 28, 2020, 8:28am UTC](https://discuss.workflowgen.com/t/problem-updateprocessinstancedata-c/1587/3 "2020-02-28T08:28:05Z")

</div>

Hello,  
Thank you for your return but I had already looked at these links.  
I can’t even get this command to work through this interface.

 ![10](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/d9406295e2657d8eeae73274820ad4e7cf877a0d.jpeg)

In workflowcontext I put this value  
 ![11](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/663471404b3141e0e1551aa820c5e3d931c1d4d9.jpeg)

I do not know what to do, I looked in the doc and I do not have the impression of false data. Please help me !

---

<div class="post-metadata">

**Author:** ![eddy.daouk](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/eddy.daouk/32/672_2.png) [@eddy.daouk](https://discuss.workflowgen.com/u/eddy.daouk)\
**Post date:** [February 28, 2020, 2:38pm UTC](https://discuss.workflowgen.com/t/problem-updateprocessinstancedata-c/1587/4 "2020-02-28T14:38:14Z")

</div>

Something seems not setup properly.

Go to the server that hosts the application.  
Open the **Event Viewer** application then navigate to **Windows Logs -\> Application.**

500 errors usually get logged here and you can see more details regarding the cause of this issue.

---

<div class="post-metadata">

**Author:** ![DUBARRY](https://avatars.discourse-cdn.com/v4/letter/d/e5b9ba/32.png) [@DUBARRY](https://discuss.workflowgen.com/u/DUBARRY)\
**Post date:** [March 2, 2020, 2:01pm UTC](https://discuss.workflowgen.com/t/problem-updateprocessinstancedata-c/1587/5 "2020-03-02T14:01:19Z")

</div>

I have no error message on the server. I really don’t see how to fix my problem.  
Do you have any other solution for my problem ??

---

<div class="post-metadata">

**Author:** ![eddy.daouk](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/eddy.daouk/32/672_2.png) [@eddy.daouk](https://discuss.workflowgen.com/u/eddy.daouk)\
**Post date:** [March 2, 2020, 2:56pm UTC](https://discuss.workflowgen.com/t/problem-updateprocessinstancedata-c/1587/6 "2020-03-02T14:56:40Z")

</div>

Best option is to open a ticket on the support helpdesk site so that the WorkflowGen team can investigate your issue.
