TAS:Pokročilé/Pluginy/Input, Output/Import/ScenarioImporter/Časté chyby a jejich řešení/Chyby při importu dat/Vytvořená hlavička v scenarioimporteru neodpovídá počtu sloupců ve vstupních datech./en: Porovnání verzí
(založena nová stránka s textem „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).“) |
(Stránka aktualizována, aby odpovídala nové verzi zdrojové stránky) |
||
Řádek 1: | Řádek 1: | ||
<languages /> | <languages /> | ||
[[File: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|253x77px]] | [[File: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|253x77px]] | ||
Aktuální verze z 24. 8. 2022, 11:57
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:
The same CSV file open in text editor:
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>