Base solution for your next web application
Open Closed

Power Tools Error, is there a way to get rid of? #12392


User avatar
0
otoarenacom created

When I try yo create an entity with migration and db crate active this error occurs.If I uncheck migration and db, entity libraries is being created without error.
For once I get this error it is no longer possible to create any other entity tables anymore, because this error never disappers for any new entities related database creation. At first I was reverting project on source control to get rid of this error and managed to create diffrent entities and db tables without error. But It is no longer possible reverting project anymore.
So could you please find me a way to fix system, like deleting migration files etc. (being error about database table create or hopefully migration files)

DEBUG 2025-03-10 18:58:02,972 [1 ] dioExtension.Dialogs.EntityGeneratorForm - Generate entity started.
ERROR 2025-03-10 18:58:44,651 [1 ] dioExtension.Dialogs.EntityGeneratorForm - An error occured while generating entityUnhandled exception. System.InvalidOperationException: Encountered malformed markup tag at position 50.
at Spectre.Console.MarkupTokenizer.ReadMarkup() in //src/Spectre.Console/Internal/Text/Markup/MarkupTokenizer.cs:line 183
at Spectre.Console.MarkupParser.Parse(String text, Style style) in /
/src/Spectre.Console/Internal/Text/Markup/MarkupParser.cs:line 19
at Spectre.Console.AnsiConsoleExtensions.Markup(IAnsiConsole console, String value) in //src/Spectre.Console/Extensions/AnsiConsoleExtensions.Markup.cs:line 77
at Spectre.Console.AnsiConsoleExtensions.MarkupLine(IAnsiConsole console, String value) in /
/src/Spectre.Console/Extensions/AnsiConsoleExtensions.Markup.cs:line 117
at Spectre.Console.AnsiConsole.MarkupLine(String value) in /_/src/Spectre.Console/AnsiConsole.Markup.cs:line 81
at AspNetZeroRadTool.DatabaseManager.<>c.LWlb8xePDX(Object sender, DataReceivedEventArgs e)
at System.Diagnostics.AsyncStreamReader.FlushMessageQueue(Boolean rethrowInNewThread)
--- End of stack trace from previous location ---
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()

WARN 2025-03-10 18:58:44,651 [1 ] ToolVisualStudioExtension.Helpers.Logger - Unhandled exception. System.InvalidOperationException: Encountered malformed markup tag at position 50.
at Spectre.Console.MarkupTokenizer.ReadMarkup() in //src/Spectre.Console/Internal/Text/Markup/MarkupTokenizer.cs:line 183
at Spectre.Console.MarkupParser.Parse(String text, Style style) in /
/src/Spectre.Console/Internal/Text/Markup/MarkupParser.cs:line 19
at Spectre.Console.AnsiConsoleExtensions.Markup(IAnsiConsole console, String value) in //src/Spectre.Console/Extensions/AnsiConsoleExtensions.Markup.cs:line 77
at Spectre.Console.AnsiConsoleExtensions.MarkupLine(IAnsiConsole console, String value) in /
/src/Spectre.Console/Extensions/AnsiConsoleExtensions.Markup.cs:line 117
at Spectre.Console.AnsiConsole.MarkupLine(String value) in /_/src/Spectre.Console/AnsiConsole.Markup.cs:line 81
at AspNetZeroRadTool.DatabaseManager.<>c.LWlb8xePDX(Object sender, DataReceivedEventArgs e)
at System.Diagnostics.AsyncStreamReader.FlushMessageQueue(Boolean rethrowInNewThread)
--- End of stack trace from previous location ---
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
d16dd312-7271-4d04-bd8b-6f2ce0f97158.jpg


2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @otoarenacom

    Could you send an email to info@aspnetzero.com about this problem, we will assist you via email.

    Thanks,

  • User Avatar
    0
    oguzhanagir created
    Support Team

    Hi @otoarenacom

    Your problem is caused by the error "There is already an object named 'Ot_Companies' in the database." After fixing this error, you can continue to create projects with Power Tools without any problems. An error occurs during the migration process because the "Ot_Companies" table is in the database. In order to solve this problem, you need to manually delete the migrations after the migration named "Regenerated_Ot_CompanyMemberProtocol8296". Since the migration changes we deleted in the database you sent us are already reflected in the database, it is not necessary.

    However, if you are considering a database where these changes are not applied, you may need to create a new migration manually.

    Migration Files that need to be deleted.

    image.png