# "There was a problem compiling the code from your notebook, please check that you saved before submitting. Details: name 'series\_valid' is not defined"

**URL:** <https://community.deeplearning.ai/t/there-was-a-problem-compiling-the-code-from-your-notebook-please-check-that-you-saved-before-submitting-details-name-series-valid-is-not-defined/784550>\
**Category:** Sequences, Time Series and Prediction\
**Tags:** week-module-1\
**Created:** [March 13, 2025, 3:05am UTC](https://community.deeplearning.ai/t/there-was-a-problem-compiling-the-code-from-your-notebook-please-check-that-you-saved-before-submitting-details-name-series-valid-is-not-defined/784550 "2025-03-13T03:05:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patrik\_Patrik](https://avatars.discourse-cdn.com/v4/letter/p/9dc877/32.png) [@Patrik\_Patrik](https://community.deeplearning.ai/u/Patrik_Patrik)\
**Post date:** [March 13, 2025, 3:05am UTC](https://community.deeplearning.ai/t/there-was-a-problem-compiling-the-code-from-your-notebook-please-check-that-you-saved-before-submitting-details-name-series-valid-is-not-defined/784550/1 "2025-03-13T03:05:18Z")

</div>

- C4W1  
Hi everyone,

I’m having an issue with the final grading of the Sequences, Time Series, and Prediction programming assignment in C4W1: _Working with Generated Time Series_.

I completed all the tasks, the unitest evaluated everything as correct answer, but the final grading is being repeatedly evaluated as 0/10. This is the error I am getting:  
“There was a problem compiling the code from your notebook, please check that you saved before submitting. Details: name ‘series\_valid’ is not defined”.

I have searched for similiar issues in this forum, I tried to fix all of my variables etc… nonetheless the final grading is still failing…

I, of course, followed the general guide with rebooting and downloading the latest script etc… it did not help.

Thanks for your help upfront!

---

<div class="post-metadata">

**Author:** ![Deepti\_Prasad](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/deepti_prasad/32/165831_2.png) [@Deepti\_Prasad](https://community.deeplearning.ai/u/Deepti_Prasad)\
**Post date:** [March 13, 2025, 4:17am UTC](https://community.deeplearning.ai/t/there-was-a-problem-compiling-the-code-from-your-notebook-please-check-that-you-saved-before-submitting-details-name-series-valid-is-not-defined/784550/2 "2025-03-13T04:17:59Z")

</div>

please go through these post comments in detail to debug your codes

[Solution 1](https://community.deeplearning.ai/t/c4w1-assignment-compiling-error-resulting-in-0-points/705962/9)

[Solution 2](https://community.deeplearning.ai/t/c4w1-working-with-generated-time-series-grading-problem-series-valid-not-defined/771909/7)

[Solution 3](https://community.deeplearning.ai/t/week-1-assignment-grading-error-series-valid-not-defined/763531/9)

let me know if issue still persist.
