# The 'NAICSCode' element is invalid - The value 'p' is invalid according to its datatype - The Pattern constraint failed

**URL:** <https://www.protaxcommunity.com/t/the-naicscode-element-is-invalid-the-value-p-is-invalid-according-to-its-datatype-the-pattern-constraint-failed/7008>\
**Category:** T2\
**Created:** [May 1, 2023, 10:52pm UTC](https://www.protaxcommunity.com/t/the-naicscode-element-is-invalid-the-value-p-is-invalid-according-to-its-datatype-the-pattern-constraint-failed/7008 "2023-05-01T22:52:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![laurie](https://avatars.discourse-cdn.com/v4/letter/l/13edae/32.png) [@laurie](https://www.protaxcommunity.com/u/laurie)\
**Post date:** [May 1, 2023, 10:52pm UTC](https://www.protaxcommunity.com/t/the-naicscode-element-is-invalid-the-value-p-is-invalid-according-to-its-datatype-the-pattern-constraint-failed/7008/1 "2023-05-01T22:52:24Z")

</div>

What does this efile error mean and how do I fix it?

---

<div class="post-metadata">

**Author:** ![sarka](https://sea2.discourse-cdn.com/flex016/user_avatar/www.protaxcommunity.com/sarka/32/2667_2.png) [@sarka](https://www.protaxcommunity.com/u/sarka)\
**Post date:** [May 1, 2023, 11:37pm UTC](https://www.protaxcommunity.com/t/the-naicscode-element-is-invalid-the-value-p-is-invalid-according-to-its-datatype-the-pattern-constraint-failed/7008/2 "2023-05-01T23:37:03Z")

</div>

Is this for a T2? Check to make sure the NAICS code entered on Info is valid. In T1, this is entered on the individual Income forms. The NAICS list was updated last year and it may be the one you have entered is no long part of the current list.

> **[North American Industry Classification System (NAICS) Canada 2022 Version 1.0](https://www23.statcan.gc.ca/imdb/p3VD.pl?Function=getVD&TVD=1369825)**
>
> North American Industry Classification System (NAICS) Canada 2022 Version 1.0 - NAICS 2022 Version 1.0 is the biggest revision to NAICS since 2002. The overarching theme to the updates is the digital economy. The guiding principle of these changes is...

---

<div class="post-metadata">

**Author:** ![laurie](https://avatars.discourse-cdn.com/v4/letter/l/13edae/32.png) [@laurie](https://www.protaxcommunity.com/u/laurie)\
**Post date:** [May 1, 2023, 11:59pm UTC](https://www.protaxcommunity.com/t/the-naicscode-element-is-invalid-the-value-p-is-invalid-according-to-its-datatype-the-pattern-constraint-failed/7008/3 "2023-05-01T23:59:22Z")

</div>

Thanks - Solved the problem!

---

<div class="post-metadata">

**Author:** ![SmallBizGuy](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@SmallBizGuy](https://www.protaxcommunity.com/u/SmallBizGuy)\
**Post date:** [May 2, 2023, 4:35am UTC](https://www.protaxcommunity.com/t/the-naicscode-element-is-invalid-the-value-p-is-invalid-according-to-its-datatype-the-pattern-constraint-failed/7008/4 "2023-05-02T04:35:40Z")

</div>

The absolute BANE of our tax lives…NAICS codes on T5013s which aren’t supplied by the investment organizer. Blech.

(Which has nothing to do with the issue but I just got YET another one…)
