<p>When importing a large batch of songs from "OpenSong" format the process stops with an error message:</p>
<p> </p>
<p>Traceback (most recent call last):</p>
<p style="margin: 0px; text-indent: 0px;">File "D:\OpenLP_Code\Trunk\build\pyi.win32\OpenLP\outPYZ1.pyz/openlp.core.ui.wizard", line 191, in onCurrentIdChanged</p>
<p style="margin: 0px; text-indent: 0px;">File "D:\OpenLP_Code\Trunk\build\pyi.win32\OpenLP\outPYZ1.pyz/openlp.plugins.songs.forms.songimportform", line 754, in performWizard</p>
<p style="margin: 0px; text-indent: 0px;">File "D:\OpenLP_Code\Trunk\build\pyi.win32\OpenLP\outPYZ1.pyz/openlp.plugins.songs.lib.opensongimport", line 153, in do_import</p>
<p style="margin: 0px; text-indent: 0px;">File "D:\OpenLP_Code\Trunk\build\pyi.win32\OpenLP\outPYZ1.pyz/openlp.plugins.songs.lib.opensongimport", line 230, in do_import_file</p>
<p style="margin: 0px; text-indent: 0px;">File "D:\OpenLP_Code\Trunk\build\pyi.win32\OpenLP\outPYZ1.pyz/openlp.plugins.songs.lib", line 185, in from_loose_input</p>
<p style="margin: 0px; text-indent: 0px;">File "D:\OpenLP_Code\Trunk\build\pyi.win32\OpenLP\outPYZ1.pyz/openlp.plugins.songs.lib", line 140, in from_translated_tag</p>
<p style="margin: 0px; text-indent: 0px;">IndexError: string index out of range</p>
<p> </p>
<p>Apparent batch import limitation</p>
<p>It would appear that there is a limit on the number of songs that can be imported in a single batch of 498. The batch I was attempting import contains about 600 songs.</p>
<p> </p>
<p>Workaround</p>
<p>The workaround is obvious - split the import into a number of smaller batches, each of say 400 songs. This does make the process a bit slower, but does obviate the error message.</p>
<p> </p>
<p>(I've sumitted this here rather than in the "bugs" forum as I'm not sure its a bug, but a limitation that some users might need to be aware of)</p>