Bugs in version 5.42.0.0

Deemer84

Administrator
Регистрация
10.05.2017
Сообщения
410
Благодарностей
84
Баллы
28

Yann

Client
Регистрация
22.04.2017
Сообщения
207
Благодарностей
31
Баллы
28

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 812
Благодарностей
1 187
Баллы
113
Not sure what this error means but it tells me there is not possible to add a string in the list.
55551


I have simple code

var phonesList = project.Lists["Phones"];
phonesList.Add("String to add");

And I get this code not always though.
But now got it in zp as well as in PM before.
in PM restart did not helped, but removing list from the project and adding as new with new name solved problem.
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 453
Благодарностей
5 913
Баллы
113
Not sure what this error means but it tells me there is not possible to add a string in the list.Посмотреть вложение 55551

I have simple code

var phonesList = project.Lists["Phones"];
phonesList.Add("String to add");

And I get this code not always though.
But now got it in zp as well as in PM before.
in PM restart did not helped, but removing list from the project and adding as new with new name solved problem.
Looks like there was some mistyping error with Add in the code
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 812
Благодарностей
1 187
Баллы
113
Hi. It seems overal bug, this JSON gives error when trying to parse.
{"order_id":00000,"0":00000,"item_id":"CCCCCCC","1":"CCCCCCC","zip_code":"55555","2":"55555","quantity":10,"3":10,"cost":55,"4":55,"status":"COMPLETED","5":"COMPLETED","date":"2020-05-08 8:11 PM","6":"2020-05-08 17:11:29","result":"[Phone #: 0000000000, Account #: 0000000, PIN: 0000]\n[Phone #: 000000000, Account #: 0000000, PIN: 0000]","7":"LOAD_ON_DEMAND","user_note":"","8":""}
System.ArgumentException: No such name: [0]
Parameter name: name ---> System.NullReferenceException: Object reference not set to an instance of an object.
at ZennoLab.JXParser.JsonDynamic.GetMember(String name)
at ZennoLab.JXParser.Helpers.MacrosHelper.GetMember(Object obj, String name)
--- End of inner exception stack trace ---
at ZennoLab.JXParser.Helpers.MacrosHelper.GetMember(Object obj, String name)
at ZennoLab.JXParser.Helpers.MacrosHelper.ExecuteJsonTo_Object(JsonDynamic json, String stringParam)
at ZennoLab.JXParser.Helpers.MacrosHelper.ExecuteJson(JsonDynamic json, String stringParam)
at ZennoLab.ZennoPoster.Modules.Macros.MacrosExecutor.ExecSimpleMacross(String value)
at ZennoLab.ZennoPoster.Modules.Macros.MacrosExecutor.MyMatchReplaceForMacross(Match match)
at System.Text.RegularExpressions.RegexReplacement.Replace(MatchEvaluator evaluator, Regex regex, String input, Int32 count, Int32 startat)
at System.Text.RegularExpressions.Regex.Replace(String input, MatchEvaluator evaluator)
at ZennoLab.ZennoPoster.Modules.Macros.MacrosExecutor.orqQGV7jrsfaEKg1VHw7(Object , Object , Object )
at ZennoLab.ZennoPoster.Modules.Macros.MacrosExecutor.ExecComplexMacrossInt(String value)
at ZennoLab.ZennoPoster.Modules.Macros.MacrosExecutor.ExecComplexMacross(String value)
at ZennoLab.ZennoPoster.Modules.TemplateExecutor.V5.ExecutorOfStepsV5.Fksupq7Std5VSvA525Hf(Object , Object )
at ZennoLab.ZennoPoster.Modules.TemplateExecutor.V5.ExecutorOfStepsV5.CompileCode(Boolean& errorCompile)
 

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