# Gatling not able to extract JSON Object for the error Messages

**URL:** <https://community.gatling.io/t/gatling-not-able-to-extract-json-object-for-the-error-messages/3378>\
**Category:** Gatling (Open-Source)\
**Created:** [November 11, 2016, 2:36am UTC](https://community.gatling.io/t/gatling-not-able-to-extract-json-object-for-the-error-messages/3378 "2016-11-11T02:36:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![srinavs86](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@srinavs86](https://community.gatling.io/u/srinavs86)\
**Post date:** [November 11, 2016, 2:36am UTC](https://community.gatling.io/t/gatling-not-able-to-extract-json-object-for-the-error-messages/3378/1 "2016-11-11T02:36:31Z")

</div>

Hi Stéphane,

We have the error message, somehow gatling not able to extract it. Shall we open bug for it?

Please guide us, if we are making any mistakes.

Note: The same logic is working for all Micro Services. But not for few of them.

`TC07_Voice_services_rs_CDV_CircuitBreaker_CDVService_Success_IMSFTService_Timeout_IMS' failed: jsonPath($.error[?(@.errorMessage=='6018|6019|6006|Tn(porting) status is not received from PS callback and querying the switch/NPAC didn't return tn status as INSTALL_COMPLETE(ACTIVE)|TN=2036437975|||PS Service activate ReadTimeout, Request threshold or connection error - activatePsDc1|PS Service activate ReadTimeout, Request threshold or connection error - activatePsDc2|Circuit is open, Request threshold or Read timeout with IMSFT - queryImsFtByTNResponse')]).find(0).exists failed, could not extract: could not extract :`)]’ expected but `t’ found

TC07\_Voice\_services\_rs\_CDV\_CircuitBreaker\_CDVService\_Success\_IMSFTService\_Timeout\_IMS service Response :Some({“trackingId”:“CDVVoice0007”,“accountNumber”:“0102079154516172”,“activationSource”:“ACTIVATOR-WEB”,“accountStatus”:null,“activationChannel”:".COM",“activationType”:“TECH”,“deliveryPlatform”:“IMS”,“customerType”:“RES”,“status”:“ACTIVATION\_ERROR”,“device”:[{“deviceId”:“1460755013057”,“deviceType”:“MTA”,“deviceSubType”:null,“serialNumber”:“001596AABC29”,“cmIpAddress”:null,“cmMacAddress”:“00:15:96:AA:BC:29”,“mtaMacAddress”:“00:15:96:AA:BC:2A”,“preActBootFile”:“tm502gims\_walledgarden”,“portCapacity”:2,“make”:“Arris Interactive, L.L.C.”,“model”:“tm502g”,“stbHitType”:null,“networkStatus”:“ONLINE”,“billingStatus”:“NEW”,“cpeDhcpCriteria”:null,“cpeIpAddress”:null,“context”:null,“migrateToDeviceId”:null,“migrateToDeviceId2”:null,“isPreActivated”:null,“activationStatus”:“ERROR”,“deviceSource”:“BILLING\_DEVICE”,“deviceStatus”:null,“resetStatus”:“ACTIVATION\_FAILED”,“classOfService”:null,“errorMessage”:“Tn(porting) status is not received from PS callback and querying the switch/NPAC didn’t return tn status as INSTALL\_COMPLETE(ACTIVE)|TN=2036437975|”,“errorCode”:null,“deviceAmendment”:{“workList”:null,“writeBack”:null},“tn”:[{“telephoneNumber”:“2036437975”,“edvaMacAddress”:null,“portId”:“1”,“portedFlag”:“F”,“focDate”:null,“portingStatus”:null,“tnStatus”:“PENDING-INSTALL”,“switchStatus”:null,“activationStatus”:null,“focCheckSuccessFlag”:null,“errorMessage”:“Tn(porting) status is not received from PS callback and querying the switch/NPAC didn’t return tn status as INSTALL\_COMPLETE(ACTIVE)”,“errorCode”:null}],“service”:[{“rateCode”:“4#”,“type”:“VOICE”,“rank”:“2”,“activationStatus”:“ERROR”,“errorMessage”:“Tn(porting) status is not received from PS callback and querying the switch/NPAC didn’t return tn status as INSTALL\_COMPLETE(ACTIVE)|TN=2036437975|”,“errorCode”:"",“serviceStatus”:null},{“rateCode”:“8V”,“type”:“VOICE”,“rank”:“2”,“activationStatus”:“ERROR”,“errorMessage”:“Tn(porting) status is not received from PS callback and querying the switch/NPAC didn’t return tn status as INSTALL\_COMPLETE(ACTIVE)|TN=2036437975|”,“errorCode”:"",“serviceStatus”:null},{“rateCode”:“2=”,“type”:“VOICE”,“rank”:“2”,“activationStatus”:“ERROR”,“errorMessage”:“Tn(porting) status is not received from PS callback and querying the switch/NPAC didn’t return tn status as INSTALL\_COMPLETE(ACTIVE)|TN=2036437975|”,“errorCode”:"",“serviceStatus”:null},{“rateCode”:“2~”,“type”:“VOICE”,“rank”:“2”,“activationStatus”:“ERROR”,“errorMessage”:“Tn(porting) status is not received from PS callback and querying the switch/NPAC didn’t return tn status as INSTALL\_COMPLETE(ACTIVE)|TN=2036437975|”,“errorCode”:"",“serviceStatus”:null},{“rateCode”:“2\>”,“type”:“VOICE”,“rank”:“2”,“activationStatus”:“ERROR”,“errorMessage”:“Tn(porting) status is not received from PS callback and querying the switch/NPAC didn’t return tn status as INSTALL\_COMPLETE(ACTIVE)|TN=2036437975|”,“errorCode”:"",“serviceStatus”:null},{“rateCode”:“2:”,“type”:“VOICE”,“rank”:“2”,“activationStatus”:“ERROR”,“errorMessage”:“Tn(porting) status is not received from PS callback and querying the switch/NPAC didn’t return tn status as INSTALL\_COMPLETE(ACTIVE)|TN=2036437975|”,“errorCode”:"",“serviceStatus”:null},{“rateCode”:“3\>”,“type”:“VOICE”,“rank”:“2”,“activationStatus”:“ERROR”,“errorMessage”:“Tn(porting) status is not received from PS callback and querying the switch/NPAC didn’t return tn status as INSTALL\_COMPLETE(ACTIVE)|TN=2036437975|”,“errorCode”:"",“serviceStatus”:null},{“rateCode”:“3{”,“type”:“VOICE”,“rank”:“2”,“activationStatus”:“ERROR”,“errorMessage”:“Tn(porting) status is not received from PS callback and querying the switch/NPAC didn’t return tn status as INSTALL\_COMPLETE(ACTIVE)|TN=2036437975|”,“errorCode”:"",“serviceStatus”:null},{“rateCode”:“3}”,“type”:“VOICE”,“rank”:“2”,“activationStatus”:“ERROR”,“errorMessage”:“Tn(porting) status is not received from PS callback and querying the switch/NPAC didn’t return tn status as INSTALL\_COMPLETE(ACTIVE)|TN=2036437975|”,“errorCode”:"",“serviceStatus”:null},{“rateCode”:“8~”,“type”:“VOICE”,“rank”:“2”,“activationStatus”:“ERROR”,“errorMessage”:“Tn(porting) status is not received from PS callback and querying the switch/NPAC didn’t return tn status as INSTALL\_COMPLETE(ACTIVE)|TN=2036437975|”,“errorCode”:"",“serviceStatus”:null},{“rateCode”:“4:”,“type”:“VOICE”,“rank”:“2”,“activationStatus”:“ERROR”,“errorMessage”:“Tn(porting) status is not received from PS callback and querying the switch/NPAC didn’t return tn status as INSTALL\_COMPLETE(ACTIVE)|TN=2036437975|”,“errorCode”:"",“serviceStatus”:null}],“healthCheck”:null}],“asyncProcessReasons”:null,“error”:[{“errorCode”:“6018|6019|6006”,“errorMessage”:“6018|6019|6006|Tn(porting) status is not received from PS callback and querying the switch/NPAC didn’t return tn status as INSTALL\_COMPLETE(ACTIVE)|TN=2036437975|||PS Service activate ReadTimeout, Request threshold or connection error - activatePsDc1|PS Service activate ReadTimeout, Request threshold or connection error - activatePsDc2|Circuit is open, Request threshold or Read timeout with IMSFT - queryImsFtByTNResponse”,“errorCategory”:“SYSTEM”}]})  
`

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [November 11, 2016, 8:49am UTC](https://community.gatling.io/t/gatling-not-able-to-extract-json-object-for-the-error-messages/3378/2 "2016-11-11T08:49:24Z")

</div>

It’s a bug: [https://github.com/gatling/jsonpath/issues/23](https://github.com/gatling/jsonpath/issues/23)
