# Postman Monitors fails to execute Pre-request Script and fails to read from Variables current value

**URL:** <https://community.postman.com/t/postman-monitors-fails-to-execute-pre-request-script-and-fails-to-read-from-variables-current-value/38408>\
**Category:** Help Hub\
**Tags:** variables, collections\
**Created:** [August 22, 2022, 11:24am UTC](https://community.postman.com/t/postman-monitors-fails-to-execute-pre-request-script-and-fails-to-read-from-variables-current-value/38408 "2022-08-22T11:24:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmsohel](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@mmsohel](https://community.postman.com/u/mmsohel)\
**Post date:** [August 22, 2022, 11:24am UTC](https://community.postman.com/t/postman-monitors-fails-to-execute-pre-request-script-and-fails-to-read-from-variables-current-value/38408/1 "2022-08-22T11:24:59Z")

</div>

_My question_: Postman Monitors fails to execute Pre-request Script and fails to read from Variables current value.  
I have created a collection with POST and GET where I have used Pre-requested Script and set all other Params & Authorization with Variables.  
However, Postman Monitor does not read the Prarams Variables’ current value and does not execute the Pre-requested Script.

_Details (like screenshots)_:

//////////////// Pre-request Script:

const body = {  
mode: “raw”,  
raw: JSON.stringify({  
“grantType”: pm.collectionVariables.get(“GRANT\_TYPE”),  
“username”: pm.collectionVariables.get(“USERNAME”),  
“password”: pm.collectionVariables.get(“PASSWORD”),  
“rememberMe”: true  
}),  
options: {  
raw: {  
language: “JSON”  
}  
}  
}  
pm.request.body.update(body);

////////////////////////////////// End Pre-request Script

Has anybody experienced similar issues and found a solution? Or please could anybody help me with how I can use the collection variables’ current values and pre-requested script through Postman Monitors for a collection runner

Many thanks for considering my request and I really appreciate any help you can provide.  
Regards
