[Error] ERROR – TypeError: value.replace is not a function. (In 'value.replace(/&/g, '&')', 'value.replace' is undefined) TypeError: value.replace is not a function. (In 'value.replace(/&/g, '&')', 'value.replace' is undefined)escapeHtmlChars — abp-ng.core.mjs:834(anonymous function) — abp-ng.theme.shared-extensions.mjs:588getContent — abp-ng.theme.shared-extensions.mjs:899(anonymous function) — abp-ng.theme.shared-extensions.mjs:923forEach — abp-utils.js:259(anonymous function) — abp-ng.theme.shared-extensions.mjs:921mapngOnChanges — abp-ng.theme.shared-extensions.mjs:920rememberChangeHistoryAndInvokeOnChangesHook — core.mjs:1491callHook — core.mjs:2528callHooks — core.mjs:2487executeCheckHooks — core.mjs:2419selectIndexInternal — core.mjs:8362ɵɵadvance — core.mjs:8351LanguagesComponent_Template — volo-abp.ng.language-management.mjs:356:861executeTemplate — core.mjs:9581refreshView — core.mjs:9447refreshComponent — core.mjs:10618refreshChildComponents — core.mjs:9243refreshView — core.mjs:9497refreshEmbeddedViews — core.mjs:10572refreshView — core.mjs:9471refreshComponent — core.mjs:10618refreshChildComponents — core.mjs:9243refreshView — core.mjs:9497refreshEmbeddedViews — core.mjs:10572refreshView — core.mjs:9471refreshComponent — core.mjs:10618refreshChildComponents — core.mjs:9243refreshView — core.mjs:9497refreshEmbeddedViews — core.mjs:10572refreshView — core.mjs:9471refreshComponent — core.mjs:10618refreshChildComponents — core.mjs:9243refreshView — core.mjs:9497refreshEmbeddedViews — core.mjs:10572refreshView — core.mjs:9471refreshEmbeddedViews — core.mjs:10572refreshView — core.mjs:9471refreshComponent — core.mjs:10618refreshChildComponents — core.mjs:9243refreshView — core.mjs:9497refreshComponent — core.mjs:10618refreshChildComponents — core.mjs:9243refreshView — core.mjs:9497renderComponentOrTemplate — core.mjs:9561tickRootContext — core.mjs:10792detectChangesInRootView — core.mjs:10817detectChanges — core.mjs:21389tick — core.mjs:26389(anonymous function) — core.mjs:26244onInvoke — core.mjs:25428run — zone.js:134next — core.mjs:26243next__tryOrUnsub — Subscriber.js:183next — Subscriber.js:122_next — Subscriber.js:72next — Subscriber.js:49next — Subject.js:39emit — core.mjs:22373checkStable — core.mjs:25350onLeave — core.mjs:25478onInvokeTask — core.mjs:25422runTask — zone.js:178invokeTask — zone.js:487invokeTask — zone.js:1600globalZoneAwareCallback — zone.js:1637 defaultErrorLogger (vendor.js:59990) handleError (vendor.js:60037) run (polyfills.js:4513) tick (vendor.js:79940) (anonymous function) (vendor.js:79785) onInvoke (vendor.js:78969) run (polyfills.js:4513) next (vendor.js:79784) next __tryOrUnsub (vendor.js:14170) next (vendor.js:14109) _next (vendor.js:14059) next (vendor.js:14036) next (vendor.js:13820) emit (vendor.js:75914) checkStable (vendor.js:78891) onLeave (vendor.js:79019) onInvokeTask (vendor.js:78963) runTask (polyfills.js:4557) invokeTask (polyfills.js:4866) invokeTask (polyfills.js:5979) globalZoneAwareCallback (polyfills.js:6016)
Hi There, I have just updated to v5.1.1 and generated a new commercial project template and get the error shown above when displaying any table. Only the 1st line of each table page displays and the rest are blank: To re-create this error, I simply created a blank start-up project from the ABP Suite. This error and the subsequent display issue occurs on all browsers on my machine (MacOS 12.1 Safari, FF & Chrome).
UPDATE I have tried under windows as well as MacOS and the same issue occurs.
RESOLVED Updating to 5.1.2 has resolved.
ABP Suite 5.1.3
When generating an entity which has a field type of enum, if the enum file containers comments the entity generation fails with this message:
Cannot populate enum localizations! Error code: EN0005. System.ArgumentException: An item with the same key has already been added. Key: Enum:ECarrier:1 at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.EntityGenerateCommand.FIZHim7T11()
The enum file used in this example:
public enum ECarrier
{
Custom = 1,
// Postal:
RoyalMail = 100000,
// Carrier:
Dhl = 200000,
Dpd = 201000,
Yodel = 202000
}
Kind Regards, AJ.
Hi There,
I can confirm I'm having the same issue.
ABP Ver 5.3.2 Angular UI SQL Server + EF Core
A database time-out occurs causing the tenant to fail to create. This error does not bubble up to the UI, and the the UI returns to the tenant list showing the entry from SAASTenants table as if the tenant created. Here is a log of the error.
2022-07-16 21:48:44.907 +01:00 [ERR] Failed executing DbCommand (30,045ms) [Parameters=[@__ef_filter__p_0='?' (DbType = Boolean), @__id_0='?' (DbType = Guid)], CommandType='"Text"', CommandTimeout='30']
SELECT TOP(1) [s].[Id], [s].[ActivationEndDate], [s].[ActivationState], [s].[ConcurrencyStamp], [s].[CreationTime], [s].[CreatorId], [s].[DeleterId], [s].[DeletionTime], [s].[EditionEndDateUtc], [s].[EditionId], [s].[ExtraProperties], [s].[IsDeleted], [s].[LastModificationTime], [s].[LastModifierId], [s].[Name]
FROM [SaasTenants] AS [s]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR ([s].[IsDeleted] = CAST(0 AS bit))) AND ([s].[Id] = @__id_0)
ORDER BY [s].[Id]
2022-07-16 21:48:44.910 +01:00 [ERR] An exception occurred while iterating over the results of a query for context type 'CloudBiz.Stockist.EntityFrameworkCore.StockistDbContext'.
Microsoft.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
---> System.ComponentModel.Win32Exception (258): Unknown error: 258
at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__188_0(Task`1 result)
at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.AsyncEnumerator.InitializeReaderAsync(AsyncEnumerator enumerator, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync()
ClientConnectionId:ec2d6372-8566-42e9-be6f-a84594b17dbd
Error Number:-2,State:0,Class:11
Microsoft.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
---> System.ComponentModel.Win32Exception (258): Unknown error: 258
at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__188_0(Task`1 result)
at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.AsyncEnumerator.InitializeReaderAsync(AsyncEnumerator enumerator, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync()
at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken)
at Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository`3.FindAsync(TKey id, Boolean includeDetails, CancellationToken cancellationToken)
at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
ClientConnectionId:ec2d6372-8566-42e9-be6f-a84594b17dbd
Error Number:-2,State:0,Class:11
2022-07-16 21:48:44.911 +01:00 [ERR] Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
Microsoft.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
---> System.ComponentModel.Win32Exception (258): Unknown error: 258
at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__188_0(Task`1 result)
at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.AsyncEnumerator.InitializeReaderAsync(AsyncEnumerator enumerator, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync()
at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken)
at Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository`3.FindAsync(TKey id, Boolean includeDetails, CancellationToken cancellationToken)
at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
at Volo.Saas.Tenants.TenantStore.GetCacheItemAsync(Nullable`1 id, String name)
at Volo.Saas.Tenants.TenantStore.FindAsync(Guid id)
at CloudBiz.Stockist.Data.StockistTenantDatabaseMigrationHandler.MigrateAndSeedForTenantAsync(Guid tenantId, String adminEmail, String adminPassword) in /Users/ashjackson/Git/CloudBiz/Stockist/aspnet-core/src/CloudBiz.Stockist.Domain/Data/StockistTenantDatabaseMigrationHandler.cs:line 99
ClientConnectionId:ec2d6372-8566-42e9-be6f-a84594b17dbd
Error Number:-2,State:0,Class:11
2022-07-16 21:48:44.911 +01:00 [ERR] ---------- Exception Data ----------
HelpLink.ProdName = Microsoft SQL Server
HelpLink.ProdVer = 15.00.4236
HelpLink.EvtSrc = MSSQLServer
HelpLink.EvtID = -2
HelpLink.BaseHelpUrl = https://go.microsoft.com/fwlink
HelpLink.LinkId = 20476`
Steps to reproduce:
Kind Regards, AJ.
Hi There, Some further info:
The timeout occurs at this line
var tenantConfiguration = await _tenantStore.FindAsync(tenantId);
of ProjectNameTenantDatabaseMigrationHandler.MigrateAndSeedForTenantAsync method.
The timeout suggests that the transaction for inserting the tenant has not completed when the abp.multi_tenancy.tenant.created event is raised.
AJ.
Hi @maliming
Setting the requiresNew parameter to false in this line
using (var uow = _unitOfWorkManager.Begin(requiresNew: false, isTransactional: true))
as per #1386 solves the time-out issue for me.
Thank you for your assistance.
hi @ash.jackson
Can you check this?
https://support.abp.io/QA/Questions/1915/Timeout-Error-Creating-a-Tenant
hi PravinRaijade
Can you try with a new template project?
abp add-module MyNewModule --new --add-to-solution-file -t module-pro
or with Suite UI.Ref: https://support.abp.io/QA/Questions/3958/ABP-Suite-600--601
I am getting this same issue, that no Angular UI is created or detected in the newly created module:
CLI command output:
[15:14:44 INF] ABP CLI (https://abp.io) [15:14:44 INF] Installing module 'CloudBiz.DepotModule' to the solution 'CloudBiz' [15:14:44 INF] Installing 'CloudBiz.DepotModule.Application' package to the project 'CloudBiz.Application'... [15:14:45 INF] Successfully installed. [15:14:45 INF] Installing 'CloudBiz.DepotModule.Application.Contracts' package to the project 'CloudBiz.Application.Contracts'... [15:14:45 INF] Successfully installed. [15:14:45 INF] Installing 'CloudBiz.DepotModule.Domain' package to the project 'CloudBiz.Domain'... [15:14:45 INF] Successfully installed. [15:14:45 INF] Installing 'CloudBiz.DepotModule.Domain.Shared' package to the project 'CloudBiz.Domain.Shared'... [15:14:45 INF] Successfully installed. [15:14:45 INF] Installing 'CloudBiz.DepotModule.EntityFrameworkCore' package to the project 'CloudBiz.EntityFrameworkCore'... [15:14:45 INF] Successfully installed. [15:14:45 INF] Installing 'CloudBiz.DepotModule.HttpApi' package to the project 'CloudBiz.HttpApi'... [15:14:45 INF] Successfully installed. [15:14:45 INF] Installing 'CloudBiz.DepotModule.HttpApi.Client' package to the project 'CloudBiz.HttpApi.Client'... [15:14:45 INF] Successfully installed. [15:14:45 INF] Creating your project... [15:14:45 INF] Project name: CloudBiz.DepotModule [15:14:45 INF] Template: module-pro [15:14:45 INF] Version: 6.0.1 [15:14:45 INF] Output folder: /Users/ashjackson/Git/CloudBiz_Dev/CloudBiz/aspnet-core/modules/CloudBiz.DepotModule [15:14:46 INF] Using cached template: module-pro, version: 6.0.1 [15:14:47 INF] 'CloudBiz.DepotModule' has been successfully created to '/Users/ashjackson/Git/CloudBiz_Dev/CloudBiz/aspnet-core/modules/CloudBiz.DepotModule'
Suite log when created entity:
2022-11-26 15:17:43.652 +00:00 [INF] 1/8 - EntityGenerateCommand started... 2022-11-26 15:17:43.868 +00:00 [INF] 1/8 - EntityGenerateCommand completed. | Duration: 215 ms. 2022-11-26 15:17:43.868 +00:00 [INF] 2/8 - RepositoryCommand started... 2022-11-26 15:17:43.954 +00:00 [INF] 2/8 - RepositoryCommand completed. | Duration: 85 ms. 2022-11-26 15:17:43.954 +00:00 [INF] 3/8 - ManagerCommand started... 2022-11-26 15:17:43.962 +00:00 [INF] 3/8 - ManagerCommand completed. | Duration: 7 ms. 2022-11-26 15:17:43.962 +00:00 [INF] 4/8 - AppServiceCommand started... 2022-11-26 15:17:48.183 +00:00 [INF] 4/8 - AppServiceCommand completed. | Duration: 4220 ms. 2022-11-26 15:17:48.183 +00:00 [INF] 5/8 - ProxyControllerCommand started... 2022-11-26 15:17:48.198 +00:00 [INF] 5/8 - ProxyControllerCommand completed. | Duration: 15 ms. 2022-11-26 15:17:48.198 +00:00 [INF] 6/8 - PermissionCommand started... 2022-11-26 15:17:48.237 +00:00 [INF] 6/8 - PermissionCommand completed. | Duration: 38 ms. 2022-11-26 15:17:48.237 +00:00 [INF] 7/8 - ApplicationObjectMappingCommand started... 2022-11-26 15:17:48.247 +00:00 [INF] 7/8 - ApplicationObjectMappingCommand completed. | Duration: 9 ms. 2022-11-26 15:17:48.247 +00:00 [INF] 8/8 - UnitTestCommandCommand started... 2022-11-26 15:17:48.272 +00:00 [INF] 8/8 - UnitTestCommandCommand completed. | Duration: 24 ms. 2022-11-26 15:17:48.272 +00:00 [INF] Entity generation completed in 5 sec. 2022-11-26 15:17:48.273 +00:00 [INF] Executing StatusCodeResult, setting HTTP status code 204 2022-11-26 15:17:48.273 +00:00 [INF] Executed action Volo.Abp.Suite.Controllers.CrudPageGeneratorController.SaveAndGenerateEntityAsync (Volo.Abp.Suite) in 5698.1333ms 2022-11-26 15:17:48.273 +00:00 [INF] Executed endpoint 'Volo.Abp.Suite.Controllers.CrudPageGeneratorController.SaveAndGenerateEntityAsync (Volo.Abp.Suite)' 2022-11-26 15:17:48.273 +00:00 [INF] Request finished HTTP/1.1 POST http://localhost:3000/api/abpSuite/crudPageGenerator/0db2e355-beae-4b20-a912-2e67289caded/save-and-generate-entity application/json 872 - 204 - - 5701.9508ms 2022-11-26 15:17:48.305 +00:00 [INF] Request starting HTTP/1.1 GET http://localhost:3000/api/abpSuite/crudPageGenerator/0db2e355-beae-4b20-a912-2e67289caded/entities application/json - 2022-11-26 15:17:48.306 +00:00 [INF] Executing endpoint 'Volo.Abp.Suite.Controllers.CrudPageGeneratorController.GetEntitiesAsync (Volo.Abp.Suite)' 2022-11-26 15:17:48.306 +00:00 [INF] Route matched with {controller = "crudPageGenerator", action = "GetEntities", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task
1[System.Collections.Generic.List1[Volo.Abp.Suite.Models.EntityModel]] GetEntitiesAsync(System.Guid) on controller Volo.Abp.Suite.Controllers.CrudPageGeneratorController (Volo.Abp.Suite). 2022-11-26 15:17:48.310 +00:00 [INF] Executing ObjectResult, writing value of type 'System.Collections.Generic.List
1[[Volo.Abp.Suite.Models.EntityModel, Volo.Abp.Suite, Version=6.0.1.0, Culture=neutral, PublicKeyToken=null]]'.
2022-11-26 15:17:48.311 +00:00 [INF] Executed action Volo.Abp.Suite.Controllers.CrudPageGeneratorController.GetEntitiesAsync (Volo.Abp.Suite) in 5.4384ms
2022-11-26 15:17:48.311 +00:00 [INF] Executed endpoint 'Volo.Abp.Suite.Controllers.CrudPageGeneratorController.GetEntitiesAsync (Volo.Abp.Suite)'
2022-11-26 15:17:48.311 +00:00 [INF] Request finished HTTP/1.1 GET http://localhost:3000/api/abpSuite/crudPageGenerator/0db2e355-beae-4b20-a912-2e67289caded/entities application/json - - 200 - application/json;+charset=utf-8 6.1146ms
2022-11-26 15:17:48.347 +00:00 [INF] Request starting HTTP/1.1 GET http://localhost:3000/api/abpSuite/crudPageGenerator/0db2e355-beae-4b20-a912-2e67289caded/Depot application/json -
2022-11-26 15:17:48.349 +00:00 [INF] Executing endpoint 'Volo.Abp.Suite.Controllers.CrudPageGeneratorController.GetEntityAsync (Volo.Abp.Suite)'
2022-11-26 15:17:48.349 +00:00 [INF] Route matched with {controller = "crudPageGenerator", action = "GetEntity", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[Volo.Abp.Suite.Models.EntityModel] GetEntityAsync(System.Guid, System.String) on controller Volo.Abp.Suite.Controllers.CrudPageGeneratorController (Volo.Abp.Suite). 2022-11-26 15:17:48.362 +00:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Suite.Models.EntityModel'. 2022-11-26 15:17:48.362 +00:00 [INF] Executed action Volo.Abp.Suite.Controllers.CrudPageGeneratorController.GetEntityAsync (Volo.Abp.Suite) in 12.7092ms 2022-11-26 15:17:48.362 +00:00 [INF] Executed endpoint 'Volo.Abp.Suite.Controllers.CrudPageGeneratorController.GetEntityAsync (Volo.Abp.Suite)' 2022-11-26 15:17:48.362 +00:00 [INF] Request finished HTTP/1.1 GET http://localhost:3000/api/abpSuite/crudPageGenerator/0db2e355-beae-4b20-a912-2e67289caded/Depot application/json - - 200 - application/json;+charset=utf-8 15.4825ms
I also tried updating to preview (7.0.0-rc2) and entity generation fails with the following message: `2022-11-26 15:46:26.912 +00:00 [INF] 1/9 - EntityGenerateCommand started... 2022-11-26 15:46:26.960 +00:00 [INF] 1/9 - EntityGenerateCommand completed. | Duration: 47 ms. 2022-11-26 15:46:26.960 +00:00 [INF] 2/9 - RepositoryCommand started... 2022-11-26 15:46:27.066 +00:00 [INF] 2/9 - RepositoryCommand completed. | Duration: 105 ms. 2022-11-26 15:46:27.066 +00:00 [INF] 3/9 - ManagerCommand started... 2022-11-26 15:46:27.087 +00:00 [WRN] ---------- RemoteServiceErrorInfo ---------- { "code": null, "message": "Cannot read the template Volo.Abp.Commercial.SuiteTemplates.Templates.Server.Domain.Partials.Manager_UpdateGetQuery.txt", "details": null, "data": {}, "validationErrors": null }
2022-11-26 15:46:27.087 +00:00 [WRN] Cannot read the template Volo.Abp.Commercial.SuiteTemplates.Templates.Server.Domain.Partials.Manager_UpdateGetQuery.txt Volo.Abp.UserFriendlyException: Cannot read the template Volo.Abp.Commercial.SuiteTemplates.Templates.Server.Domain.Partials.Manager_UpdateGetQuery.txt at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Services.TemplateService.ReadFromTemplateAsync(String relativeResourceName, CrudPageCommandOptions options, String defaultValue) at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Services.TemplateService.PopulateTemplateAsync(String relativeResourceName, CrudPageCommandOptions options) at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.ManagerCommand.SeM5l53jL1(String ) at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.ManagerCommand.IDQ5HkRatR() at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.ManagerCommand.ExecuteAsync(CrudPageCommandOptions options) at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.CommandManager.ExecuteAllAsync(CrudPageCommandOptions options) at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.CrudPageGenerator.GenerateAsync(EntityModel entity, Solution solution) at Volo.Abp.Suite.Controllers.CrudPageGeneratorController.SaveAndGenerateEntityAsync(Guid solutionId, EntityModel entity) at lambda_method1860(Closure, Object) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.
Hi, Is anyone from ABP going to respond to this ticket?
AJ
Hi, I updated to 6.0.2, but now get this error when generating a new entity in a Microservice project.
2022-12-07 10:13:21.411 +00:00 [INF] 1/10 - EntityGenerateCommand started...
2022-12-07 10:13:24.109 +00:00 [INF] 1/10 - EntityGenerateCommand completed. | Duration: 2691 ms.
2022-12-07 10:13:24.109 +00:00 [INF] 2/10 - RepositoryCommand started...
2022-12-07 10:13:24.232 +00:00 [INF] 2/10 - RepositoryCommand completed. | Duration: 122 ms.
2022-12-07 10:13:24.232 +00:00 [INF] 3/10 - ManagerCommand started...
2022-12-07 10:13:24.272 +00:00 [INF] 3/10 - ManagerCommand completed. | Duration: 39 ms.
2022-12-07 10:13:24.272 +00:00 [INF] 4/10 - AppServiceCommand started...
2022-12-07 10:13:29.805 +00:00 [INF] 4/10 - AppServiceCommand completed. | Duration: 5532 ms.
2022-12-07 10:13:29.805 +00:00 [INF] 5/10 - ProxyControllerCommand started...
2022-12-07 10:13:29.831 +00:00 [INF] 5/10 - ProxyControllerCommand completed. | Duration: 25 ms.
2022-12-07 10:13:29.831 +00:00 [INF] 6/10 - PermissionCommand started...
2022-12-07 10:13:29.892 +00:00 [INF] 6/10 - PermissionCommand completed. | Duration: 60 ms.
2022-12-07 10:13:29.892 +00:00 [INF] 7/10 - ApplicationObjectMappingCommand started...
2022-12-07 10:13:29.922 +00:00 [INF] 7/10 - ApplicationObjectMappingCommand completed. | Duration: 29 ms.
2022-12-07 10:13:29.922 +00:00 [INF] 8/10 - UnitTestCommandCommand started...
2022-12-07 10:13:30.033 +00:00 [INF] 8/10 - UnitTestCommandCommand completed. | Duration: 110 ms.
2022-12-07 10:13:30.033 +00:00 [INF] 9/10 - GenerateProxyCommand started...
2022-12-07 10:13:30.038 +00:00 [WRN] ---------- RemoteServiceErrorInfo ----------
{
"code": null,
"message": "Cannot read the template Volo.Abp.Commercial.SuiteTemplates.Templates.Server.Proxy.Proxy.txt",
"details": null,
"data": {},
"validationErrors": null
}
2022-12-07 10:13:30.038 +00:00 [WRN] Cannot read the template Volo.Abp.Commercial.SuiteTemplates.Templates.Server.Proxy.Proxy.txt
Volo.Abp.UserFriendlyException: Cannot read the template Volo.Abp.Commercial.SuiteTemplates.Templates.Server.Proxy.Proxy.txt
at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Services.TemplateService.ReadFromTemplateAsync(String relativeResourceName, CrudPageCommandOptions options, String defaultValue)
at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Services.TemplateService.PopulateTemplateAsync(String relativeResourceName, CrudPageCommandOptions options)
at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.GenerateProxyCommand.EGCmOkTk9L()
at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.GenerateProxyCommand.ExecuteAsync(CrudPageCommandOptions options)
at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.CommandManager.ExecuteAllAsync(CrudPageCommandOptions options)
at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.CrudPageGenerator.GenerateAsync(EntityModel entity, Solution solution)
at Volo.Abp.Suite.Controllers.CrudPageGeneratorController.SaveAndGenerateEntityAsync(Guid solutionId, EntityModel entity)
at lambda_method1872(Closure , Object )
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
I uninstalled and reinstalled CLI and Suite in case the issue was with upgrade, but the problem persists.
@ash.jackson What is the projects abp version?
The project is 6.0.1, I updated to 6.0.2 and the same error occurs - I created also brand new test project in 6.0.2 and the problem is the same as in my existing project.
Just to be clear - the problem is manifested differently depending on monolith or micro service template:
Module within monolith (application pro) template = Entity generation runs without error, but no angular UI is generated. Module within micro service template = Entity generation throws the error above.