The header created in scenarioimporter does not match the number of columns in the input data

Z Solvertech
Verze z 24. 8. 2022, 11:57, kterou vytvořil FuzzyBot (diskuse | příspěvky) (Stránka aktualizována, aby odpovídala nové verzi zdrojové stránky)
(rozdíl) ← Starší verze | zobrazit aktuální verzi (rozdíl) | Novější verze → (rozdíl)
Skočit na navigaci Skočit na vyhledávání
Jiné jazyky:

TAS Pokroile Pluginy Input, Output Import ScenarioImporter aste chyby a jejich eeni Chyby pi importu dat Vytvoena hlavika v scenarioimporteru neodpovida potu sloupc ve vstupnich datech.image2016-5-3 13 53 46.png



Solution 1.: Check definition of delimiter in ScenarioImporter.

<Delimiter><![CDATA[;]] ></Delimiter>
<TextQualifier>"</TextQualifier>
<NotTypeConvertedDynamicColumns></NotTypeConvertedDynamicColumns>
<HeaderLine>info1;nazev;ulice;psc;město;cena_zbozi;id;nevim1;mobile;nevim2;nevim3;nevim4;email;nevim5;nevim6;nevim7;platba;nevim8;nevim9;info2</HeaderLine>

Definated Delimiter is semicolon in this example. Check delimiter in source data file and change it in config file <Delimiter><![CDATA[;]]></Delimiter>.



If you have right delimiter and mistake persists, open import file in text editor and check the real data structure.



Example:

In the picture is CSV file open in Excel:

TAS Pokroile Pluginy Input, Output Import ScenarioImporter aste chyby a jejich eeni Chyby pi importu dat Vytvoena hlavika v scenarioimporteru neodpovida potu sloupc ve vstupnich datech.image2016-5-3 14 4 48.png

The same CSV file open in text editor:

TAS Pokroile Pluginy Input, Output Import ScenarioImporter aste chyby a jejich eeni Chyby pi importu dat Vytvoena hlavika v scenarioimporteru neodpovida potu sloupc ve vstupnich datech.image2016-5-3 14 7 11.png

In text editor you can see semicolon on the end of row. It means that is free column there. (You don´t see this in Excel).



Solution 2.: Add free column in HeaderLine.

<HeaderLine>info1;nazev;ulice;psc;město;cena_zbozi;id;nevim1;mobile;nevim2;nevim3;nevim4;email;nevim5;nevim6;nevim7;platba;nevim8;nevim9;info2;</HeaderLine>