Вопрос

Обновлении приложения

Добрый день,

у меня версия 7.12.3, и хочу обновить до версии 7.12.4, и согласно инструкциям(https://academy.terrasoft.ru/documents/instrukciya-po-obnovleniyu-bpmonline?utm_source=newsletter&utm_medium=email&utm_campaign=regular_updates_v7133_partners_ru&bulk_email_rid=8931&bpmtrackid=4&bpmreplica=0&contactId=3ab32569-7f5a-4cc8-a6f6-fd19fcac2ec5&bulkEmailRecipientId=99611cd5-0227-450f-a60d-9ba30890d353), сначала надо выполнить действия Сгенерировать исходный код для всех элементов, и когда я это делаю, появляться ошибка.  В логах  такая ошибка: 

Ошибка генерации исходного кода схемы "PredictCaseFieldValuesProcess" из пакета "MLCaseClassification". UId ce078417-ab31-44be-9c43-9199d72e8a92: Unable to cast object of type 'Terrasoft.Core.Process.ProcessSchemaStartSignalEvent' to type 'Terrasoft.Core.Process.ProcessSchemaActivity'.

2019-04-22 16:27:18,176 System.InvalidCastException: Unable to cast object of type 'Terrasoft.Core.Process.ProcessSchemaStartSignalEvent' to type 'Terrasoft.Core.Process.ProcessSchemaActivity'.

   at Terrasoft.Core.Process.BaseFlowSchemaGenerator`1.AddParameterMapInfo(Dictionary`2 processParameters, String match)

   at Terrasoft.Core.Process.BaseFlowSchemaGenerator`1.AnalyzeParameterScriptCode(Dictionary`2 processParameters, ProcessSchemaParameter schemaParameter)

   at Terrasoft.Core.Process.BaseFlowSchemaGenerator`1.FillProcessParameterInfo(Dictionary`2 processParameters, ProcessSchemaParameter schemaParameter, String keyPrefix)

   at Terrasoft.Core.Process.BaseFlowSchemaGenerator`1.FillProcessParameterMappings(Dictionary`2 parametersMapInfo, IEnumerable`1 schemaParameters, Guid schemaElementUId)

   at Terrasoft.Core.Process.BaseFlowSchemaGenerator`1.GenerateProcessParameterMappings()

   at Terrasoft.Core.Process.FlowSchemaGenerator.Generate()

   at Terrasoft.Core.Process.BaseProcessSchema.GenerateFlowSchema(IProcessComponentSetStateService stateService)

   at Terrasoft.Core.Process.ProcessSchemaManager.SaveFlowSchema(ProcessSchema schema, UserConnection connection)

   at Terrasoft.Core.Process.BaseProcessSchemaManager`1.ActualizeSchemaInfo(TBaseProcessSchema schema, Guid schemaId, UserConnection connection)

   at Terrasoft.Core.Process.BaseProcessSchemaManager`1.GetSchemaSources(TBaseProcessSchema schema, Guid schemaId, UserConnection connection)

   at Terrasoft.Core.SchemaManager`1.GenerateSchemaSources(TSchemaManagerSchema schema, Guid schemaId, UserConnection userConnection)

   at Terrasoft.Core.SchemaManager`1.GenerateSchemaSources(Guid sysSchemaId, ISchemaManagerItem schemaManagerItem, UserConnection userConnection)

   at Terrasoft.Core.Packages.PackageInstallUtilities.InternalInstallSchemasAssociatedData(Guid schemaId, SchemaDescriptor schemaDescriptor, Boolean continueIfError)

2019-04-22 16:27:18,184 Ошибка выполнения операции на элементе "PredictCaseFieldValuesProcess", UId = ce078417-ab31-44be-9c43-9199d72e8a92.

2019-04-22 16:27:18,184 System.InvalidCastException: Unable to cast object of type 'Terrasoft.Core.Process.ProcessSchemaStartSignalEvent' to type 'Terrasoft.Core.Process.ProcessSchemaActivity'.

   at Terrasoft.Core.Process.BaseFlowSchemaGenerator`1.AddParameterMapInfo(Dictionary`2 processParameters, String match)

   at Terrasoft.Core.Process.BaseFlowSchemaGenerator`1.AnalyzeParameterScriptCode(Dictionary`2 processParameters, ProcessSchemaParameter schemaParameter)

   at Terrasoft.Core.Process.BaseFlowSchemaGenerator`1.FillProcessParameterInfo(Dictionary`2 processParameters, ProcessSchemaParameter schemaParameter, String keyPrefix)

   at Terrasoft.Core.Process.BaseFlowSchemaGenerator`1.FillProcessParameterMappings(Dictionary`2 parametersMapInfo, IEnumerable`1 schemaParameters, Guid schemaElementUId)

   at Terrasoft.Core.Process.BaseFlowSchemaGenerator`1.GenerateProcessParameterMappings()

   at Terrasoft.Core.Process.FlowSchemaGenerator.Generate()

   at Terrasoft.Core.Process.BaseProcessSchema.GenerateFlowSchema(IProcessComponentSetStateService stateService)

   at Terrasoft.Core.Process.ProcessSchemaManager.SaveFlowSchema(ProcessSchema schema, UserConnection connection)

   at Terrasoft.Core.Process.BaseProcessSchemaManager`1.ActualizeSchemaInfo(TBaseProcessSchema schema, Guid schemaId, UserConnection connection)

   at Terrasoft.Core.Process.BaseProcessSchemaManager`1.GetSchemaSources(TBaseProcessSchema schema, Guid schemaId, UserConnection connection)

   at Terrasoft.Core.SchemaManager`1.GenerateSchemaSources(TSchemaManagerSchema schema, Guid schemaId, UserConnection userConnection)

   at Terrasoft.Core.SchemaManager`1.GenerateSchemaSources(Guid sysSchemaId, ISchemaManagerItem schemaManagerItem, UserConnection userConnection)

   at Terrasoft.Core.Packages.PackageInstallUtilities.InternalInstallSchemasAssociatedData(Guid schemaId, SchemaDescriptor schemaDescriptor, Boolean continueIfError)

Подскажите что нужно сделать что бы ее исправить?

Конфигурация успешно компилируется. Сайт работает.

Прикрепленные файлы

Нравится

2 комментария

Для решения необходимо добавить запись <add key="Feature-UseCodeAnalyzer" value="false" /> (или если она есть модифицировать значением false), в конфиге приложения  и WorkspaceConsole (Terrasoft.WebApp\Web.config и Terrasoft.Tools.WorkspaceConsole.exe.config). Затем выполнить команду "Сгенерировать для требующих генерации" и команду "Компилировать все".

Мотков Илья,

Спасибо, внес изменения в Web.config и Terrasoft.Tools.WorkspaceConsole.exe.config и заработало.

Показать все комментарии