# C3W2\_Assignment - There was a problem grading your submission. Details: local variable 'history' referenced before assignment

**URL:** <https://community.deeplearning.ai/t/c3w2-assignment-there-was-a-problem-grading-your-submission-details-local-variable-history-referenced-before-assignment/401186>\
**Category:** Natural Language Processing in TensorFlow\
**Tags:** week-module-3\
**Created:** [July 29, 2023, 12:48pm UTC](https://community.deeplearning.ai/t/c3w2-assignment-there-was-a-problem-grading-your-submission-details-local-variable-history-referenced-before-assignment/401186 "2023-07-29T12:48:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergiy\_Shkumat](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@Sergiy\_Shkumat](https://community.deeplearning.ai/u/Sergiy_Shkumat)\
**Post date:** [July 29, 2023, 12:48pm UTC](https://community.deeplearning.ai/t/c3w2-assignment-there-was-a-problem-grading-your-submission-details-local-variable-history-referenced-before-assignment/401186/1 "2023-07-29T12:48:27Z")

</div>

I have passed C3W2\_Assignment with 80%, because method create\_model have 0/20 points, due to error which I cant understand: There was a problem grading your submission. Details:  
local variable ‘history’ referenced before assignment  
But in Jupyter Notebook everything working fine and all cell executing without any error. I have checked variable ‘history’ and did not find any reference before assignment

---

<div class="post-metadata">

**Author:** ![balaji.ambresh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/balaji.ambresh/32/128697_2.png) [@balaji.ambresh](https://community.deeplearning.ai/u/balaji.ambresh)\
**Post date:** [July 29, 2023, 1:08pm UTC](https://community.deeplearning.ai/t/c3w2-assignment-there-was-a-problem-grading-your-submission-details-local-variable-history-referenced-before-assignment/401186/2 "2023-07-29T13:08:12Z")

</div>

If [grader metadata](https://community.deeplearning.ai/t/tf1-how-to-check-your-notebooks-metadata/181351) is missing in your notebook, please follow these steps to [refresh your workspace](https://community.deeplearning.ai/t/tf1-how-to-refresh-your-workspace-in-coursera-labs/180869).  
If that’s not the case, click my name and message your notebook as an attachment.

---

<div class="post-metadata">

**Author:** ![Sergiy\_Shkumat](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@Sergiy\_Shkumat](https://community.deeplearning.ai/u/Sergiy_Shkumat)\
**Post date:** [July 29, 2023, 2:19pm UTC](https://community.deeplearning.ai/t/c3w2-assignment-there-was-a-problem-grading-your-submission-details-local-variable-history-referenced-before-assignment/401186/3 "2023-07-29T14:19:11Z")

</div>

Thank you for your reply. After refreshing workspace I completed assignment again and its works fine. Probably error raised because I added additional cell for testing and forgot to delete it.
