# Collection variable setting not works in manual execution

**URL:** <https://community.postman.com/t/collection-variable-setting-not-works-in-manual-execution/34207>\
**Category:** Help Hub\
**Created:** [April 4, 2022, 1:57pm UTC](https://community.postman.com/t/collection-variable-setting-not-works-in-manual-execution/34207 "2022-04-04T13:57:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kkocso](https://avatars.discourse-cdn.com/v4/letter/k/45deac/32.png) [@kkocso](https://community.postman.com/u/kkocso)\
**Post date:** [April 4, 2022, 1:57pm UTC](https://community.postman.com/t/collection-variable-setting-not-works-in-manual-execution/34207/1 "2022-04-04T13:57:50Z")

</div>

Hello,

I have a script which sets a collection variable after parsing the value.  
Based on the console log it seems that value can be read successfully.  
Though when I open the collection variables after the request, I can’t find the collection variable value filled in.

I have tried also to set collection variable value with a fixed value. The collection variable is created but value is not added.  
 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/8/8101b7da66484d8b71d400c31e3a1c9e8a74ba8a.png)

![image](https://us1.discourse-cdn.com/getpostman/original/2X/2/28f4f0878dbfcc41f4e62c0e8f688fda22cfbf5b.png)

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/0/e/0ed7c3066790f2047752a29a2f2d648ee532b60d.png)

Oher collection variables can be set in the pre-request script successfully.

What could be the reason?

Thanks!
