[SOLVED] Get Line Not Working

ninny83

Client
Регистрация
10.05.2011
Сообщения
86
Благодарностей
8
Баллы
0
Hello Guys,

this is a sample template where get line is not working 100% of the times. I've tried to bind to a file and other similar but it's not working

Here the error I receive: 76c1bb96-597c-42b7-9538-256cf66f0b99 Message: Index out of range. Required value is not negative and less than the size of the set.
Parameter name: index [Translated in auto from Italian]

Посмотреть вложение test.xmlz
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
This error occur when your data/lists doesn't have lines anymore.
 

ninny83

Client
Регистрация
10.05.2011
Сообщения
86
Благодарностей
8
Баллы
0

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
No i cant see this ;-)
Template cannot be run without additional files.
 

ninny83

Client
Регистрация
10.05.2011
Сообщения
86
Благодарностей
8
Баллы
0
It requires only a file called query.txt with some keywords, the other files will be created by the templete thanks :-)
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
Couldn't reproduce.
Try to use lists with settings (save changes to file) for automatically syncing and saving data instead of manual saving data to files with standalone action.
 

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
831
Баллы
113
add.jpg

I didn't understand logic of this action. Write nothing to a file
 

ninny83

Client
Регистрация
10.05.2011
Сообщения
86
Благодарностей
8
Баллы
0

ninny83

Client
Регистрация
10.05.2011
Сообщения
86
Благодарностей
8
Баллы
0

Devostator

Client
Регистрация
17.09.2011
Сообщения
230
Благодарностей
19
Баллы
18
I have almost the same problem if I understood correctly.

Anyway First I delete the file (e.g. file1) -> then copy another file (file2) and name it - file1 -> then trying to get line from list(using file1) - and get Index was outside the bounds of the array. - In this moment I have correct file1.txt with lines in it/correct encoding/etc.



Version: 4.2.5




Try it yourself Посмотреть вложение 123.xmlz create keysR.txt file manually, put some data there and launch template. (edit paths for list and files)
 

Вложения

Последнее редактирование:

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
831
Баллы
113
I have almost the same problem if I understood correctly.

Anyway First I delete the file (e.g. file1) -> then copy another file (file2) and name it - file1 -> then trying to get line from list(using file1) - and get Index was outside the bounds of the array. - In this moment I have correct file1.txt with lines in it/correct encoding/etc.

Посмотреть вложение 2910

Version: 4.2.5




Try it yourself Посмотреть вложение 2911 create keysR.txt file manually, put some data there and launch template. (edit paths for list and files)
Try it with latest version. Some fixes were made till that time
 

Devostator

Client
Регистрация
17.09.2011
Сообщения
230
Благодарностей
19
Баллы
18

Devostator

Client
Регистрация
17.09.2011
Сообщения
230
Благодарностей
19
Баллы
18

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
Attachment link is broken.
 
  • Спасибо
Реакции: Devostator

Devostator

Client
Регистрация
17.09.2011
Сообщения
230
Благодарностей
19
Баллы
18

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
You have to use bind to file action here before you take line from new file.
Delete file - Create new one - Bind it to list - Operation with list.
 
  • Спасибо
Реакции: Devostator

Devostator

Client
Регистрация
17.09.2011
Сообщения
230
Благодарностей
19
Баллы
18

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
It works
4.3.6.0
 

Вложения

  • 13,4 КБ Просмотры: 319
  • Спасибо
Реакции: Devostator

Devostator

Client
Регистрация
17.09.2011
Сообщения
230
Благодарностей
19
Баллы
18

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
Maybe forgot to save the last version of template and the old one was archived.

As i can see there s no bind to file action on your screen.
 

Вложения

  • 13,4 КБ Просмотры: 301
  • Спасибо
Реакции: Devostator

Devostator

Client
Регистрация
17.09.2011
Сообщения
230
Благодарностей
19
Баллы
18
Maybe forgot to save the last version of template and the old one was archived.

As i can see there s no bind to file action on your screen.
This is VERY strange, when you combined the actions - it works.. thanks a lot for time spent!


To whom getting the same error try to clear path to file in list
 
Последнее редактирование:

Devostator

Client
Регистрация
17.09.2011
Сообщения
230
Благодарностей
19
Баллы
18
By the way where did you get that macro - {-Project.Directory-} ?
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
  • Спасибо
Реакции: Devostator

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)