# Help me solve this issue: "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/help-me-solve-this-issue-there-was-a-problem-compiling-the-code-from-your-notebook-please-check-that-you-saved-before-submitting-details-name-series-valid-is-not-defined/816524>\
**Category:** Sequences, Time Series and Prediction\
**Tags:** week-module-1, assignment\
**Created:** [May 16, 2025, 8:02pm UTC](https://community.deeplearning.ai/t/help-me-solve-this-issue-there-was-a-problem-compiling-the-code-from-your-notebook-please-check-that-you-saved-before-submitting-details-name-series-valid-is-not-defined/816524 "2025-05-16T20:02:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![MoisesJauregui89](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@MoisesJauregui89](https://community.deeplearning.ai/u/MoisesJauregui89)\
**Post date:** [May 16, 2025, 8:02pm UTC](https://community.deeplearning.ai/t/help-me-solve-this-issue-there-was-a-problem-compiling-the-code-from-your-notebook-please-check-that-you-saved-before-submitting-details-name-series-valid-is-not-defined/816524/1 "2025-05-16T20:02:32Z")

</div>

Hello, I’ve been having several issues — as mentioned in the title of this post — specifically with the assignment of the first week. I’ve been trying to solve it since yesterday afternoon, but I haven’t been able to find a solution. I’ve tried some of the tips I found, but nothing has worked so far.

This is the only task I need to complete in order to receive the certificate, and from what I’ve read, it seems this particular assignment has had complaints about grading problems.

To be clear, all my code runs without errors, but when I try to submit it, I receive the following message in every graded section:

**“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 hope someone can help me resolve this issue. Thank you in advance.

---

<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:** [May 16, 2025, 8:27pm UTC](https://community.deeplearning.ai/t/help-me-solve-this-issue-there-was-a-problem-compiling-the-code-from-your-notebook-please-check-that-you-saved-before-submitting-details-name-series-valid-is-not-defined/816524/2 "2025-05-16T20:27:17Z")

</div>

the below post comment has 3 solution linked post, go through them, to debug your codes. A feedback like series\_valid is not defined, is usually indicative, you probably not using the right function or right way to get a return function. For example if it was told you use a range, you need to use the right variable recall instead of using len function to the designated time period range.

> [@"There was a problem compiling the code from your notebook, please check that you saved before submitting. Details: name 'series\_valid' is not defined"](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):
>
> 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.

Regards  
DP

---

<div class="post-metadata">

**Author:** ![MoisesJauregui89](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@MoisesJauregui89](https://community.deeplearning.ai/u/MoisesJauregui89)\
**Post date:** [May 16, 2025, 8:52pm UTC](https://community.deeplearning.ai/t/help-me-solve-this-issue-there-was-a-problem-compiling-the-code-from-your-notebook-please-check-that-you-saved-before-submitting-details-name-series-valid-is-not-defined/816524/3 "2025-05-16T20:52:13Z")

</div>

Hi, How do I get a new fresh assigment copy? Thanks.

---

<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:** [May 16, 2025, 9:45pm UTC](https://community.deeplearning.ai/t/help-me-solve-this-issue-there-was-a-problem-compiling-the-code-from-your-notebook-please-check-that-you-saved-before-submitting-details-name-series-valid-is-not-defined/816524/4 "2025-05-16T21:45:16Z")

</div>

refer 1a topic in the pinned comment

> [@Math for Machine Learning FAQ](https://community.deeplearning.ai/t/math-for-machine-learning-faq/443624):
>
> TOPIC 1a HOW TO GET A FRESH OR LATEST VERSION OF A NOTEBOOK These steps are tried and tested smile Click file, then select open. You will find all the files related to the assignment. Here if you have saved a copy of your notebook with renaming other than what was mentioned. Then go ahead and delete the assignment notebook by selecting the particular notebook. Once deleted, you will find 404 not found image on your browser. Then close the browser. Open the assignment page again, …

---

<div class="post-metadata">

**Author:** ![MoisesJauregui89](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@MoisesJauregui89](https://community.deeplearning.ai/u/MoisesJauregui89)\
**Post date:** [May 16, 2025, 11:20pm UTC](https://community.deeplearning.ai/t/help-me-solve-this-issue-there-was-a-problem-compiling-the-code-from-your-notebook-please-check-that-you-saved-before-submitting-details-name-series-valid-is-not-defined/816524/5 "2025-05-16T23:20:38Z")

</div>

Thanks, I did it, i delete it the old version, I reboot it, I submmitted again, with all the advice you gave me in those 3 points, and I got 70/80, thanks man.

---

<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:** [May 17, 2025, 6:09am UTC](https://community.deeplearning.ai/t/help-me-solve-this-issue-there-was-a-problem-compiling-the-code-from-your-notebook-please-check-that-you-saved-before-submitting-details-name-series-valid-is-not-defined/816524/6 "2025-05-17T06:09:00Z")

</div>

check for which grade function you scored 0, by checking show grader output. Then you will know why you didn’t score 80/80.
