# Issue With Pulling Scenerio by Id

**URL:** <https://forum.api.combocurve.com/t/issue-with-pulling-scenerio-by-id/165>\
**Category:** Bugs\
**Tags:** python\
**Created:** [November 3, 2022, 2:12am UTC](https://forum.api.combocurve.com/t/issue-with-pulling-scenerio-by-id/165 "2022-11-03T02:12:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael.tanner](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.api.combocurve.com/michael.tanner/32/34_2.png) [@michael.tanner](https://forum.api.combocurve.com/u/michael.tanner)\
**Post date:** [November 3, 2022, 2:12am UTC](https://forum.api.combocurve.com/t/issue-with-pulling-scenerio-by-id/165/1 "2022-11-03T02:12:53Z")

</div>

Very odd issue I am having… see my code here:

> <https://github.com/mtanner161/kingops/blob/main/cashFlowSensitvity.py>

High-level: this code takes the well monthly cash flow and rolls it up into the aggregate monthly cash flow. My issue is the API is not pulling the same data that is the latest CC run via the UI…

 ![ccGrossOilVolumes](https://canada1.discourse-cdn.com/flex035/uploads/the_combocurve_api/original/1X/43f84ff730690a64756c2d131309f1282f1cfa66.png)  
 ![ccProjectAndScenerioId](https://canada1.discourse-cdn.com/flex035/uploads/the_combocurve_api/original/1X/c306cdf00bc53b8fc59addd2efaa6752c1d25280.png)  
 ![ccCodeSnippet](https://canada1.discourse-cdn.com/flex035/uploads/the_combocurve_api/original/1X/e079e6abf6fe91e715a5387b41bdaa555c2c43d8.png)  
 ![ccNetSalesVolumeUI](https://canada1.discourse-cdn.com/flex035/uploads/the_combocurve_api/original/1X/dab80e99d0cf4c9ad5399affa435584af3806cde.png)  
 ![ccNetSalesVolumeOutput](https://canada1.discourse-cdn.com/flex035/uploads/the_combocurve_api/original/1X/d742a29ce933f0d77af882325bda6741001f1f97.png)  
 ![ccOuputPython](https://canada1.discourse-cdn.com/flex035/uploads/the_combocurve_api/original/1X/c0f9c8ed4ca031438a5c49046f1596aa3ad2a0ef.png)

If you catch what is going on - when I run the scenario in the UI, then go to pull that via the API, the numbers aren’t matching and eventually, in 2026 it goes to zero so it’s erroring out via the float() - should have numbers all through the 10 years i am pulling.

My projects and scenarios seem to be the same, so why is the data different…? Then when does it cut off - I must be pulling the wrong scenario?

Wondering what my issue is/is this a bug I found? Most likely not - but I am left confused. Thanks, upfront for the help - you rock

---

<div class="post-metadata">

**Author:** ![michael.tanner](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.api.combocurve.com/michael.tanner/32/34_2.png) [@michael.tanner](https://forum.api.combocurve.com/u/michael.tanner)\
**Post date:** [November 3, 2022, 2:37am UTC](https://forum.api.combocurve.com/t/issue-with-pulling-scenerio-by-id/165/3 "2022-11-03T02:37:08Z")

</div>

does it have something to do with NoneType…?

---

<div class="post-metadata">

**Author:** ![sopheap.meas](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.api.combocurve.com/sopheap.meas/32/43_2.png) [@sopheap.meas](https://forum.api.combocurve.com/u/sopheap.meas)\
**Post date:** [November 3, 2022, 2:43am UTC](https://forum.api.combocurve.com/t/issue-with-pulling-scenerio-by-id/165/4 "2022-11-03T02:43:07Z")

</div>

Thanks for posting this. We’ll look into it and see if we can help troubleshoot.

---

<div class="post-metadata">

**Author:** ![michael.tanner](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.api.combocurve.com/michael.tanner/32/34_2.png) [@michael.tanner](https://forum.api.combocurve.com/u/michael.tanner)\
**Post date:** [November 3, 2022, 2:44am UTC](https://forum.api.combocurve.com/t/issue-with-pulling-scenerio-by-id/165/5 "2022-11-03T02:44:58Z")

</div>

Woah ok it has too… see this screenshot

![ccRow](https://canada1.discourse-cdn.com/flex035/uploads/the_combocurve_api/original/1X/8f280ff934b821a18bf1de8a47a7628eac134b80.png)

This is odd - 'date": None

row is the rows in the monthly cash flow statement that I am rolling up into the aggerate (its brute force so don’t judge me) and its seems have a row with no date? Does that mean my dates are messed up in the UI?

---

<div class="post-metadata">

**Author:** ![michael.tanner](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.api.combocurve.com/michael.tanner/32/34_2.png) [@michael.tanner](https://forum.api.combocurve.com/u/michael.tanner)\
**Post date:** [November 3, 2022, 12:35pm UTC](https://forum.api.combocurve.com/t/issue-with-pulling-scenerio-by-id/165/6 "2022-11-03T12:35:11Z")

</div>

Nothing like a good night’s sleep to think about what I was doing wrong. I am stupid - so I had a single well in my PDP forecast that I use as FIXED EXPENSE because our fixed cost monthly are a litte insane and allow me to forecast better. Well I switched the dates on that well and that was causing the issue of NoneType - you can close this ticket out!

---

<div class="post-metadata">

**Author:** ![Derek\_Lokey](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.api.combocurve.com/derek_lokey/32/94_2.png) [@Derek\_Lokey](https://forum.api.combocurve.com/u/Derek_Lokey)\
**Post date:** [November 3, 2022, 1:02pm UTC](https://forum.api.combocurve.com/t/issue-with-pulling-scenerio-by-id/165/7 "2022-11-03T13:02:44Z")

</div>

Well I’m glad to hear that. We were just gearing up to see if we could figure things out.
