Invalid content was found starting with element ошибка

Программа Retail Declaration более не поддерживается.

Для работы с ЕГАИС рекомендуем использовать Контур.Маркет.

После отправки документа может возникнуть следующая ошибка:
Invalid content was found starting with element ‘orefv2:description’. One of ‘{«http://fsrar.ru/WEGAIS/ClientRef_v2»:RegionCode}’ is expected.

Данная ошибка связана с тем, что у российских контрагентов не указан регион.

Для решения ошибки выполните следующее:

  1. Перейдите в раздел Справочники/Организации.
  2. Щелкните левой кнопкой мыши на первый столбец (снежинку) и поставьте галку в поле Страна.  
  3. В столбце Страна щелкните левой кнопкой мыши на якорь и поставьте галку в поле Россия.
  4. Пересмотрите всех российских контрагентов и их подразделения и отредактируйте адреса организаций, указав регион у тех, у кого он не стоит.  
    Обратите внимание, что первые две цифры КПП представляют собой код региона. 
  5. Для редактирования адреса выделите нужное подразделение и нажмите Редактировать.

Вы определились с выбором?

Перейти к оформлению заказа

I am facing this problem and not able o resolve it.
I have this xsd OFX.xsd. The xml i want to validate with this schema is following

<?xml version="1.0"?>
<OFX>
    <SIGNONMSGSRSV1>
        <SONRS>
            <STATUS>
                <CODE>0</CODE>
                <SEVERITY>INFO</SEVERITY>
            </STATUS>
            <DTSERVER>20120716233626.570[-7:PDT]</DTSERVER>
            <LANGUAGE>ENG</LANGUAGE>
            <FI>
                <ORG>Symitar</ORG>
                <FID>01182</FID>
            </FI>
            <INTU.BID>01182</INTU.BID>
            <INTU.USERID>66983</INTU.USERID>
        </SONRS>
    </SIGNONMSGSRSV1>
    <BANKMSGSRSV1>
        <STMTTRNRS>
            <TRNUID>0</TRNUID>
            <STATUS>
                <CODE>0</CODE>
                <SEVERITY>INFO</SEVERITY>
            </STATUS>
            <STMTRS>
                <CURDEF>USD</CURDEF>
                <BANKACCTFROM>
                    <BANKID>
                    </BANKID>
                    <ACCTID>66983-S80</ACCTID>
                    <ACCTTYPE>CHECKING</ACCTTYPE>
                </BANKACCTFROM>
                <BANKTRANLIST>
                    <DTSTART>20120501</DTSTART>
                    <DTEND>20120716</DTEND>
                    <STMTTRN>
                        <TRNTYPE>FEE</TRNTYPE>
                        <DTPOSTED>20120713135400</DTPOSTED>
                        <TRNAMT>-25.00</TRNAMT>
                        <FITID>30403620120713WF</FITID>
                        <NAME>Account Transaction</NAME>
                        <MEMO>Withdrawal Fee</MEMO>
                    </STMTTRN>
                </BANKTRANLIST>
                <LEDGERBAL>
                    <BALAMT>-254.64</BALAMT>
                    <DTASOF>20120716233626</DTASOF>
                </LEDGERBAL>
                <AVAILBAL>
                    <BALAMT>-254.64</BALAMT>
                    <DTASOF>20120716233626</DTASOF>
                </AVAILBAL>
            </STMTRS>
        </STMTTRNRS>
    </BANKMSGSRSV1>
</OFX>

And when i tried to validate this xml online or with java code. I am getting following errors.

cvc-complex-type.2.4.d: Invalid content was found starting with element 'SEVERITY'
cvc-complex-type.2.4.d: Invalid content was found starting with element 'DTSERVER'
cvc-complex-type.2.4.d: Invalid content was found starting with element 'FID'
and so on....

Suggest me what is the mistake in xsd.

Xstian's user avatar

Xstian

8,14410 gold badges42 silver badges72 bronze badges

asked Mar 6, 2015 at 11:19

Sumit Kumar's user avatar

3

You have choice for several types

<xs:complexType name="SONRS">
        <xs:choice>
            <xs:element name="STATUS" type="STATUS" minOccurs="0"
                maxOccurs="1" />
            <xs:element name="DTSERVER" type="xs:string" minOccurs="0"
                maxOccurs="1" />
            <xs:element name="LANGUAGE" type="xs:string" minOccurs="0"
                maxOccurs="1" />
            <xs:element name="DTPROFUP" type="xs:string" minOccurs="1"
                maxOccurs="1" />
            <xs:element name="DTACCTUP" type="xs:string" minOccurs="0"
                maxOccurs="1" />
            <xs:element name="FI" type="FI" minOccurs="0" maxOccurs="1" />
        </xs:choice>
    </xs:complexType>

Same goes for STATUS. So you should include only one of the elements in xml for SONRS , and if you include STATUS you have :

<xs:complexType name="STATUS">
        <xs:choice>
            <xs:element name="CODE" type="xs:integer" minOccurs="0"
                maxOccurs="1" />
            <xs:element name="SEVERITY" type="xs:string" minOccurs="0"
                maxOccurs="1" />
            <xs:element name="MESSAGE" type="xs:string" minOccurs="0"
                maxOccurs="1" />
        </xs:choice>
    </xs:complexType>

so you should include CODE or SEVERITY or MESSAGE.

answered Mar 6, 2015 at 11:37

Natasha's user avatar

NatashaNatasha

1,4605 gold badges18 silver badges24 bronze badges

As I mentioned in the comment.
The problem was with the schema, it has element type defined but nowhere the element is mentioned in the schema so the parser was throwing the error of invalid content.

answered Apr 16, 2015 at 9:22

Sumit Kumar's user avatar

Sumit KumarSumit Kumar

4021 gold badge6 silver badges25 bronze badges

You have declared every things like <xs:choice>

    <xs:complexType name="STATUS">
        <xs:choice>
            <xs:element name="CODE" type="xs:integer" minOccurs="0" maxOccurs="1"/>
            <xs:element name="SEVERITY" type="xs:string" minOccurs="0" maxOccurs="1"/>
            <xs:element name="MESSAGE" type="xs:string" minOccurs="0" maxOccurs="1"/>
        </xs:choice>
    </xs:complexType>

change it in <xs:sequence> or <xs:all>

   <xs:complexType name="STATUS">
        <xs:sequence>
            <xs:element name="CODE" type="xs:integer" minOccurs="0" maxOccurs="1"/>
            <xs:element name="SEVERITY" type="xs:string" minOccurs="0" maxOccurs="1"/>
            <xs:element name="MESSAGE" type="xs:string" minOccurs="0" maxOccurs="1"/>
        </xs:sequence>
    </xs:complexType>

Choice reference here
XML Schema choice element allows only one of the elements contained in the declaration to be present within the containing element.

XSD Indicators reference

answered Mar 6, 2015 at 11:36

Xstian's user avatar

XstianXstian

8,14410 gold badges42 silver badges72 bronze badges

@Anasmirza20

Hi Team

I am getting this error while building the project

cvc-complex-type.2.4.a: Invalid content was found starting with element ‘base-extension’. One of ‘{layoutlib}’ is expected.

divlov, muhamadnursyami, rimba5446, luizppa, ammar-abyte, ChrisBews, nik312123, uenx, Aadityakesarwani, sudhin777, and 31 more reacted with thumbs up emoji
pramit8874, gayatripadmani, GithinjiHans, and lokesharora006 reacted with laugh emoji
anantshah93, songoten28, ismoilov9922, chsmy, shafqat125, prathamesh120, gumq, rudialfa, gayatripadmani, charafski, and 16 more reacted with eyes emoji

@jscott1989

Is anyone else seeing this issue? I’ve never seen it before…

@aspawa

I am getting this error while building the project

cvc-complex-type.2.4.a: Invalid content was found starting with element ‘base-extension’. One of ‘{codename, tag}’ is expected.

divlov, ammar-abyte, uenx, anantshah93, gumq, Matheusbafutto, v012345, waheedkhan6446, choiyoungwan, Red-Cat-Fat, and 3 more reacted with thumbs up emoji

@himeshshadiza

Hi @Anasmirza20 did you get any update on how to solve this issue

@KyleTrippK

Hello guys I am also facing the same error during gradle sync.

cvc-complex-type.2.4.a: Invalid content was found starting with element ‘base-extension’. One of ‘{layoutlib}’ is expected.

@idevchandra

I am having this issue too!

Android Studio Bumblebee | 2021.1.1 Patch 1
Build #AI-211.7628.21.2111.8139111, built on February 1, 2022
Runtime version: 11.0.11+0-b60-7590822 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.2
GC: G1 Young Generation, G1 Old Generation
Memory: 1280M
Cores: 8
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: org.jetbrains.kotlin (211-1.6.10-release-923-AS7442.40)

@luizppa

Same issue here:

Android Studio: Bumblebee | 2021.1.1
macOS: 12.0
chip: apple M1
Gradle JDK: 1.8.0_321

@ammar-abyte

Hi, I’m getting this error while building project. Anyone here who solved that?

cvc-complex-type.2.4.a: Invalid content was found starting with element ‘base-extension’. One of ‘{codename, tag}’ is expected.

JDK: 1.8
Android Studio Version Bumblebee 2021.1.1

@jscott1989

I’m not seeing this. We are going to be replacing the gradle build system with bazel and will update all our dependencies etc. at the same time so it should be fixed then.

I’ll leave this issue open until then in case someone else figures it out

@brentscott

I was running into this same error. What fixed it for me was making sure the Gradle JDK was pointing to the right JDK (in my case JDK 1.8). File > Project Structure > SDK Location > Gradle Settings (Link)

gradle_settings

Haylemicheal, mescartin, pranayborode, vmartinmajorkeytech, x1wins, hexdecimal16, hy-liuyuzhe, sachingurnaney, DineshAndroapps, ExcaCambo, and 6 more reacted with thumbs up emoji
muHashh, dszharikov, zhangisland, NikitaZhebinDev, AHTanvir, datnt2, danishlaeeq, StanislawRichardt, soft-l, and josphatmwania reacted with thumbs down emoji
Ayx03 and TWerner02 reacted with confused emoji

@exs-xgg

facing the same issue.
i7 6700k
2021.01.01 Bumblebee

@hemantac

to fix this issue simply reset your ide settings
File — Manage IDE Settings — Restore Default Settings

DanteAndroid and react06 reacted with thumbs up emoji
lucagiordano-visia, siddhimandodi, anantshah93, indahreforsiana, Ayx03, songoten28, xenrobi, hndrbrm, angelshurikan, samiyabatool, and 89 more reacted with thumbs down emoji
blackCmd, fahad-1337, AlphaOmarDiallo, TylerAnder, alvarodev-lc, danieljay062198, and Biatchi888 reacted with confused emoji

@xenrobi

hey guys i have same eror here anybody already fix this error can you share in here thanks you

@uenx

I ended up fixing this by upgrading Gradle to the latest version (and modify my current source code accordingly)

@sudhin777

I am also facing the same issue.
cvc-complex-type.2.4.a: Invalid content was found starting with element ‘base-extension’. One of ‘{layoutlib}’ is expected.

My build version was
Android Studio Arctic Fox | 2020.3.1 Patch 4

I updated to version — Android Studio Bumblebee | 2021.1.1 Patch 1. Still issue exists. Any help is much appreciated.

@HarpreetKaur9

Screenshot 2022-02-18 at 1 19 35 PM
Hello
Anyone have solution for this??

———————ISSUE———————-

  1. cvc-complex-type.2.4.a: Invalid content was found starting with element ‘base-extension’. One of ‘{layoutlib}’ is expected.
  2. JAVA_LETTER_OR_DIGIT

I’m facing this issue in
JDK: 1.8
Android Studio Version Bumblebee 2021.1.1

@sudhin777

Hello all,
I also faced similar issue.
cvc-complex-type.2.4.a: Invalid content was found starting with element ‘base-extension’. One of ‘{layoutlib}’ is expected.

Finally i was able to fix this issue, by updating Android Gradle Plugin Version and Gradle Version.

Android Studio Configuration:
Android Studio Bumblebee | 2021.1.1 Patch 1
JDK: 1.8

image

norman-arauz, sandolkakos, uenx, jeancss01, kaierwen, Student8877, echolocation19, zhouyingge1104, vpeopleonatank, kipkemoifred, and 38 more reacted with thumbs up emoji
almiladurukavak, ibwc, willyichsanj, and GithinjiHans reacted with hooray emoji
joseortiz9, CamiloRic0, apurvaone, ibwc, sindaaaa, willyichsanj, GithinjiHans, and animesh0904071 reacted with heart emoji

@HarpreetKaur9

Hello all, I also faced similar issue. cvc-complex-type.2.4.a: Invalid content was found starting with element ‘base-extension’. One of ‘{layoutlib}’ is expected.

Finally i was able to fix this issue, by updating Android Gradle Plugin Version and Gradle Version.

Android Studio Configuration: Android Studio Bumblebee | 2021.1.1 Patch 1 JDK: 1.8

image

Facing same issue after this.

@siddhimandodi

Im also facing the same issue cvc-complex-type.2.4.a: Invalid content was found starting with element ‘base-extension’. One of ‘{layoutlib}’ is expected.

@oliver34

does any one solved this problem? Im also facing the same issue

@gowthambalashanmugam

Does anyone have an idea to resolve this issue?

@zhangtao2005

I face the same problem,In my case I opened the idea.log,and it says I haven’t the build-tools 28.0.3,then I installed this version of build-tools, after that, my problem solved.

@shafqat125

Add Ndk path in local.Properties like this
and download ndk’s from Sdk Tools in Sdk Manager
ndk.dir=C:UsersUserNameAppDataLocalAndroidSdkndk21.1.6352462
shot_one
shot_two

@gowthambalashanmugam

@zhangtao2005, Thank you, I had tried to play with older code but finally upgraded to latest react native and pulled all latest dependencies, hence its working fine

@arif-rahman-cse

Add Ndk path in local.Properties like this and download ndk’s from Sdk Tools in Sdk Manager ndk.dir=C:UsersUserNameAppDataLocalAndroidSdkndk21.1.6352462 shot_one shot_two

Thank you

@bdmostafa

I have the issues related to base-extension. I used distributionUrl=https://services.gradle.org/distributions/gradle-2.14.1-all.zip in gradle-wrapper.properties file and classpath 'com.android.tools.build:gradle:2.2.3' in build.gradle file of android directory.
image
This error returns when npx react-native run-android is run

image
Also, I tried to open project on Android Studio. This is the error of it.

@sbr5136014

Hi Team

I am getting this error while building the project

cvc-complex-type.2.4.a: Invalid content was found starting with element ‘base-extension’. One of ‘{layoutlib}’ is expected.

Same issue

@thienthancuagio

i fixed it. Please check the configuration below
image

@zhouyingge1104

Hello all, I also faced similar issue. cvc-complex-type.2.4.a: Invalid content was found starting with element ‘base-extension’. One of ‘{layoutlib}’ is expected.

Finally i was able to fix this issue, by updating Android Gradle Plugin Version and Gradle Version.

Android Studio Configuration: Android Studio Bumblebee | 2021.1.1 Patch 1 JDK: 1.8

image

This works for me, thanks a lot!

@Languomao

It is possible that your SDK tools is too new. Check the version through “adb version“ and reinstall the corresponding old version according to your needs,after that, my problem solved.
image

@beyrakIn

@thehunzter

@avinashgoswami

Hello all, I also faced similar issue. cvc-complex-type.2.4.a: Invalid content was found starting with element ‘base-extension’. One of ‘{layoutlib}’ is expected.

Finally i was able to fix this issue, by updating Android Gradle Plugin Version and Gradle Version.

Android Studio Configuration: Android Studio Bumblebee | 2021.1.1 Patch 1 JDK: 1.8

image

Worked for me, Thanks

@Atharva1720

Invalid content was found starting with element ‘base-extension’. One of ‘{layoutlib}’ is expected.
please tell any fix……..

@kckunal2612

I am also facing this issue but sadly none of the suggestions made above work for me.

Here’s the 2 error messages I see —
cvc-complex-type.2.4.a: Invalid content was found starting with element 'base-extension'. One of '{layoutlib}' is expected.
cvc-complex-type.2.4.a: Invalid content was found starting with element 'base-extension'. One of '{codename, tag}' is expected.

I think this could be an M1 Chip issue as this didn’t happen to me on an Intel chip.
Any help would be appreciated.

@voonngee

Same here.

3 error messages:-
cvc-complex-type.2.4.a: Invalid content was found starting with element ‘base-extension’. One of ‘{layoutlib}’ is expected.
cvc-complex-type.2.4.d: Invalid content was found starting with element ‘base-extension’. No child element is expected at this point.
cvc-complex-type.2.4.a: Invalid content was found starting with element ‘base-extension’. One of ‘{codename, tag}’ is expected.

Android Studio Bumblebee | 2021.1.1 Patch 1
M1 Chip

@GhiathAlbawab0

@kckunal2612

I am also facing this issue but sadly none of the suggestions made above work for me.

Here’s the 2 error messages I see — cvc-complex-type.2.4.a: Invalid content was found starting with element 'base-extension'. One of '{layoutlib}' is expected. cvc-complex-type.2.4.a: Invalid content was found starting with element 'base-extension'. One of '{codename, tag}' is expected.

I think this could be an M1 Chip issue as this didn’t happen to me on an Intel chip. Any help would be appreciated.

So here’s an update — I was finally able to fix this issue on my M1 Pro machine. ✅

The fix —

  • Updated gradle-wrapper.properties to use gradle version 6.9.0.
  • Updated my build.gradle to use architecture components version 2.4.0 (look for kapt "androidx.room:room-compiler...").

Now why did these changes work for me?

  1. Gradle 6.9 was the first release to include Apple Silicon Support. (see release notes). Thus, upgrading to this version was the first step (as has also been suggested by Google here).

Screenshot 2022-04-13 at 5 04 51 PM

  1. Instead of building from Android studio, I ran the gradlew build command. Once done, I looked at the error logs, and noticed an error for SQLite Room DB.
    Caused by: java.lang.Exception: No native library is found for os.name=Mac and os.arch=aarch64. path=/org/sqlite/native/Mac/aarch64 at org.sqlite.SQLiteJDBCLoader.loadSQLiteNativeLibrary(SQLiteJDBCLoader.java:333) at org.sqlite.SQLiteJDBCLoader.initialize(SQLiteJDBCLoader.java:64) at androidx.room.verifier.DatabaseVerifier.(DatabaseVerifier.kt:71) ...
    I looked up online and this StackOverflow answer seemed to give the solution that worked for me.
    Explanation
    — Room DB, part of Android architecture components library, uses SQLite internally, which had compatibility issues with the new Apple Silicon architecture. This was fixed in one of the Room alphas and updated in the Release Notes.

I hope you find this fix useful.

@sachingurnaney

I’m not seeing this. We are going to be replacing the gradle build system with bazel and will update all our dependencies etc. at the same time so it should be fixed then.

I’ll leave this issue open until then in case someone else figures it out

Update gradle version and target JDK 11 fixed my issue.

@JasonGaoH

Hello all, I also faced similar issue. cvc-complex-type.2.4.a: Invalid content was found starting with element ‘base-extension’. One of ‘{layoutlib}’ is expected.

Finally i was able to fix this issue, by updating Android Gradle Plugin Version and Gradle Version.

Android Studio Configuration: Android Studio Bumblebee | 2021.1.1 Patch 1 JDK: 1.8

image

This worked for me,Thanks。

@jscott1989

Closing all outstanding pull requests + issues as we’ve reworked the app to now build with Bazel. With this change, we should be able to properly accept pull requests going forward so these won’t sit around for so long. If this is still relevant please check it with the latest version [Using the Android T SDK] and re-open.

@DanteAndroid

to fix this issue simply reset your ide settings File — Manage IDE Settings — Restore Default Settings

Works like magic

@hamzaabualkhair

Hello all, I also faced similar issue. cvc-complex-type.2.4.a: Invalid content was found starting with element ‘base-extension’. One of ‘{layoutlib}’ is expected.
Finally i was able to fix this issue, by Go To File>>Settings>>Build, Execution, Deployment>Build Tools
And I am enable «Reload project after changes in the build scripts»>Any changes
after this Appeared new Error «Add Google maven repository»
I add Google maven repository to build.gradle and project worked without any errors
لقطة الشاشة 2022-06-14 162058

@sundy19

this is work for me also. thanks
image

@JauneQ

my project’ s compileSdkVersion and targetSdkVersion is API 28, so i remove the latest SDK Platforms and Android SDK Build-Tools, it works for me
image
image

@afridi315

As per my experience, most of the time it happens when your gradle version and gradle distributionUrl are not matching. Make sure you are using the right gradle version for you project. the following link may help, Gradle Versioning

@top-comengineer

Hello dear community.
I am building react-native project for android.
But, unfortunately, I face the same errors like the above.
Already set Android gradle plugin and gradle version according to the best solutions.
But, the same error is occured in my side.
Help me.

Сегодня рассмотрим ошибку 50 СЗВ‑ТД в Контур, которая появляется при составлении и выгрузке отчета. Сам текст проблемы включает строку cvc-complex-type.2.4.a: с пояснением: Invalid content was found starting with element «Название нормативного документа»;.
В самой форме обычно включена информация:

  • Устройство сотрудника или трудовой договор подлежит расторжению.
  • Статьи 77 часть 1, пункт 3 Трудового кодекса РФ.
  • В полях для заполнения «статья» и «пункт» используются сокращения в виде «ст.» и «п.».

Причины ошибки

Обычно данная ошибка появляется при некорректно заполненном блоке «Мероприятие». Вследствие чего нарушается структура xml-файла. Сама строка Invalid content was found starting with element «Название нормативного документа» сообщает, что в отчете содержится неправильный элемент. В нашем случае ошибка начинается после «Нормативный документ». Как исправить полученную ошибку? Ниже дадим пример структуры для xml файла и ответим на некоторые вопросы.

Ранее мы уже писали подробно об ошибке 50 СЗВ-СТАЖ касательно проверок формы со льготным стажем. Тогда была ошибка «СЗВ стаж ошибка структура 50». Подробнее об этом читаем тут: «ошибка 50 СЗВ-СТАЖ«.

В форме СЗВ‑ТД открываем расшифровку с работником по кадровым событиям. Вручную добавляем необходимую строку с событием имевшим место быть до 1 января 2020 года.

Ошибка 50 СЗВ‑ТД – строка для добавления вручную

Строка для добавления вручную

Далее внимательно проверяем блок «Мероприятие». Структура должна быть такая:
<Мероприятие>
GH63456HK-H35R-5VA5-0067-81C6YN7P3FGJ
<Дата>2020-02-15</Дата>
<Вид>6</Вид>
<ЯвляетсяСовместителем>0</ЯвляетсяСовместителем>
<Статья>56</Статья>
<Пункт>6</Пункт>
<Причина>ПО ИНИЦИАТИВЕ РАБОТНИКА</Причина>
<Основание>
<Наименование>ПРИКАЗ</Наименование>
<Дата>2020-02-15</Дата>
<Номер>3423</Номер>
</Основание>
</Мероприятие>

Внимательно посмотрите как заполнены разделы «Статья» и «Пункт». Ниже прилагаем еще один пример корректного заполнения.

Корректная структура заполнения xml-файла

Корректная структура заполнения xml-файла

Похожие проблемы присылают пользователи в разделе помощи на официальном сайте Контура.

Техническая поддержка Контур

Если проблема не разрешилась – открываем раздел Технической поддержки Контур и составляем обращение на почту «help@kontur.ru». Максимально подробно описываем порядок действий и прикрепляем текстовую информацию о полученной ошибке, прикладываем изображение.

Для получения срочного ответа нажмите кнопку «Онлайн консультант», опишите вашу проблему и ожидайте ответа оператора – это будет в разы быстрее чем искать информацию в Интернете.

Онлайн консультант Контур

Онлайн консультант Контур

Необходимо ли заполнять «Код ПД в справочнике?

КПД (код професс. деятельности) в справочнике «Трудовая функция» необходим для заполнения в «СЗВ-ТД Кода выполняемой функции». Данная область заполняется с 1 января 2021 года при наличии этого кода.
Если вы уже вставили этот код в поле, для прохождения соответствия документа поступаем следующим образом:

  • Не заполняем «Трудовая функция» в кадровых документах.
  • В форме СЗВ-ТД необходимо удалить информацию в колонке «Трудовая фукнция».

Очистить поле Трудовая функция

Очистить поле Трудовая функция

Информация о смене названия организации

Информация о смене названия организации до указывается, если организация сменила название после 1 января 2020 года. В иных случаях указывать данный пункт не обязательно.

Так же ПФР РФ указывает прописные буквы в датах рождения. Для подачи заявки СЗВ-ТД и ее выгрузки в электронном виде следует использовать цифры. Что бы в последующей выгрузке в ЗУП 3 не столкнуться с ошибкой «Неверный формат».

Выводы

Если вы столкнулись с ошибкой 50 СЗВ‑ТД в Контур при подаче документов на оформление или расторжение трудового договора сотрудником – проверяйте xml файл «Мероприятие». Используйте структуру выше и выгружайте отчет, особенно уделите внимание полям «Статья» и «Пункт», а так же формату поля «Дата рождения». Напишите в комментариях полезной ли оказалась статья и пишите проблемы, с которыми столкнулись. Будем разбираться вместе и искать для вас актуальную информацию.

Notice! This page describes the nature of the error using a hypothetical example and not the erroneous data of the input test file. You should however be able to apply this information to your error case.

General description of the error:

cvc-complex-type.2.4.a: Invalid content was found starting with element »{0}». One of »{1}» is expected.

Error description in schema standard: http://www.w3.org/TR/2007/WD-xmlsche…c-complex-type

Possible causes for this error:

  • Element name is mistyped.
  • Mandatory element is missing
  • The end tag for an earlier element is missing
  • Element not described in schema is trying to be used.
    • One reason for the above could be that not all of the expected elements are given. E.g. InitgPty/PstlAdr/Ctry is expected, instead InitgPty/Ctry is given
  • Elements are in incorrect order.
  • Namespace definitions declared either in the root tag or a parent element don’t match with the prefix (or no prefix) used in the element.

An example 

In this example, elements «House» and «Garage» are defined in the namespace «house.ns». «Car» and «Brand» belong to the «car.ns» namespace.

Incorrect:

<House xmlns="http://house.ns" xmlns:car="http://car.ns">
    <Garage>
        <Car> <!-- This element is defined in the "car.ns" namespace. Therefore its name should be typed as "car:Car" -->
            <Brand>BMW</Brand> <!-- Same thing here -->
        </Car>
    </Garage>
</House>

Fixed:

<House xmlns="http://house.ns" xmlns:car="http://car.ns">
    <Garage>
        <car:Car>
            <car:Brand>BMW</car:Brand>
        </car:Car>
    </Garage>
</House>

An alternative way is to declare namespaces where they’re going to be used. This is a way to avoid using namespace prefixes in elements:

<House xmlns="http://house.ns">
    <Garage>
        <Car xmlns="http://car.ns">
            <Brand>BMW</Brand>
        </Car>
    </Garage>
</House>

An example

<PstlAdr>
  <AdrType>ADDR</AdrType>.
</PstlAddr>

Error messageError cvc-complex-type.2.4.a: Invalid content was found starting with element ‘AdrType’. One of ‘{«urn:iso:std:iso:20022:tech:xsd:pain.001.001.03»:AdrTp, «urn:iso:std:iso:20022:tech:xsd:pain.001.001.03»:Dept, «urn:iso:std:iso:20022:tech:xsd:pain.001.001.03»:SubDept, «urn:iso:std:iso:20022:tech:xsd:pain.001.001.03»:StrtNm, «urn:iso:std:iso:20022:tech:xsd:pain.001.001.03»:BldgNb, «urn:iso:std:iso:20022:tech:xsd:pain.001.001.03»:PstCd, «urn:iso:std:iso:20022:tech:xsd:pain.001.001.03»:TwnNm, «urn:iso:std:iso:20022:tech:xsd:pain.001.001.03»:CtrySubDvsn, «urn:iso:std:iso:20022:tech:xsd:pain.001.001.03»:Ctry, «urn:iso:std:iso:20022:tech:xsd:pain.001.001.03»:AdrLine}’ is expected.

How to fix: This issue can be fixed by using one of the elements suggested by the error message. Further information can be found from the schema definition.

<PstlAdr>
  <AdrTp>ADDR</AdrTp>
</PstlAdr> 

Понравилась статья? Поделить с друзьями:
  • Invalid column name sql ошибка
  • Invalid authentication token ark ошибка
  • Invalid attempt already authenticated ark ошибка
  • Invalid argument supplied for foreach in ошибка
  • Invalid api key ip or permissions for action ошибка