Inhalte aufrufen

Profilbild

Eror in GMC


  • Bitte melden Sie sich an, um eine Antwort zu verfassen.
5 Antworten zu diesem Thema

#1 mihai8822m

mihai8822m

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 35 Beiträge

Geschrieben: 21 March 2023 - 17:05

Hello,

 

I can`t get the Google Merchant Center to work. 

 

It doesn`t load the products in the list.  The Eror I get this as below:

 

Please help!

 

Microsoft.Data.SqlClient.SqlException (0x80131904): Invalid column name 'CreatedOnUtc'.
Invalid column name 'CustomLabel0'.
Invalid column name 'CustomLabel1'.
Invalid column name 'CustomLabel2'.
Invalid column name 'CustomLabel3'.
Invalid column name 'CustomLabel4'.
Invalid column name 'EnergyEfficiencyClass'.
Invalid column name 'Export'.
Invalid column name 'IsAdult'.
Invalid column name 'IsBundle'.
Invalid column name 'IsTouched'.
Invalid column name 'Multipack'.
Invalid column name 'UpdatedOnUtc'.
at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__208_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.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
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.SingleQueryingEnumerable`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.SingleQueryingEnumerable`
1.AsyncEnumerator.MoveNextAsync()
at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ToListAsync[TSource](IQueryable`1 source, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ToListAsync[TSource](IQueryable`
1 source, CancellationToken cancellationToken)
at Smartstore.Collections.Pageable`1.EnsureIsLoadedAsync(CancellationToken cancellationToken)
at Smartstore.Collections.PagedListImpl`
1.LoadAsync(Boolean force, CancellationToken cancelToken) in D:\Git\Smartstore.Full\Smartstore\src\Smartstore\Collections\PagedListImpl`T.cs:line 48
at Smartstore.Google.MerchantCenter.Controllers.GoogleMerchantCenterController.GoogleProductList(GridCommand command, ConfigurationModel model)
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(ActionContext actionContext, 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.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Smartstore.Core.Bootstrapping.CheckoutBootstrappingExtensions.<>c.<<UseCheckoutState>b__0_0>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
at Smartstore.Web.Api.Startup.<>c.<<BuildPipeline>b__3_6>d.MoveNext()
--- End of stack trace from previous location ---
at Smartstore.ExceptionExtensions.ReThrow(Exception exception) in D:\Git\Smartstore.Full\Smartstore\src\Smartstore\Extensions\ExceptionExtensions.cs:line 15
at Smartstore.Web.Api.Startup.ProcessException(HttpContext context, Exception ex)
at Smartstore.Web.Api.Startup.<>c.<<BuildPipeline>b__3_6>d.MoveNext()
--- End of stack trace from previous location ---
at Smartstore.Core.Localization.RequestCultureMiddleware.Invoke(HttpContext context, IWorkContext workContext)
at Smartstore.Core.Logging.RequestLoggingMiddleware.InvokeAsync(HttpContext httpContext, IWebHelper webHelper, IWorkContext workContext)
at Smartstore.Core.Bootstrapping.CommonBuilderExtensions.<>c.<<UseWorkContext>b__1_0>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Smartstore.Core.Bootstrapping.LocalizationBuilderExtensions.OnAfterRouting(HttpContext context, Func`1 next)
at Smartstore.Core.Bootstrapping.LocalizationBuilderExtensions.OnBeforeRouting(HttpContext context, Func`
1 next)
at Microsoft.AspNetCore.OData.Batch.ODataBatchMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.OData.Query.ODataQueryRequestMiddleware.Invoke(HttpContext context)
at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
at Smartstore.Core.Bootstrapping.CommonBuilderExtensions.<>c.<<UsePoweredBy>b__2_0>d.MoveNext()
--- End of stack trace from previous location ---
at Smartstore.Engine.Initialization.ApplicationInitializerMiddleware.Invoke(HttpContext context) in D:\Git\Smartstore.Full\Smartstore\src\Smartstore\Engine\Initialization\ApplicationInitializerMiddleware.cs:line 77
at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|8_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
ClientConnectionId:cfb18a5f-f0e2-41ce-a014-f4029bd8e101
Error Number:207,State:1,Class:16



#2 stefanmueller

stefanmueller

    SmartStore AG

  • Administrators
  • 462 Beiträge

Geschrieben: 22 March 2023 - 11:52

Please tell us more about your system (Smartstore release, Database, Server ...)


Stefan


#3 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3801 Beiträge

Geschrieben: 23 March 2023 - 16:06

Looks like the GoogleProduct database table is missing. Check if the table exists and check columns stated as "Invalid column name". If the table does not exist, try to uninstall and reinstall the plugin or, if it doesn't help, open table __MigrationVersionInfo, look for Google Merchant Center migration history entry like "5.0.3.0 GoogleMerchantCenter: Initial", delete this row and restart the application to let the migration run.

Marcus Gesing

Smartstore AG


#4 mihai8822m

mihai8822m

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 35 Beiträge

Geschrieben: 27 March 2023 - 07:58

I am running 5.02 now but this is a very old shop, it started from vesion 3.0. It`s running on a windows server with a SQL database



#5 mihai8822m

mihai8822m

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 35 Beiträge

Geschrieben: 27 March 2023 - 08:21

 

Looks like the GoogleProduct database table is missing. Check if the table exists and check columns stated as "Invalid column name". If the table does not exist, try to uninstall and reinstall the plugin or, if it doesn't help, open table __MigrationVersionInfo, look for Google Merchant Center migration history entry like "5.0.3.0 GoogleMerchantCenter: Initial", delete this row and restart the application to let the migration run.

 

 

I tryed the reinstall with no succes, then I conected to the DB and deleted the row you pointed: GoogleMerchantCenter: Initial"

 

After I restarted the app pool the migration  was succesful: 

Database up migration '"5.0.2.0 GoogleMerchantCenter: Initial"' successfully applied.

Database migration successful: 637717158000000000 >> 637743870000000000

 

 

Unfortunetly the problem persists and when I trey to populate the GMC with products I get the same errors. 

Please see the print screen for the LOG errors

 

 

GMC.png



#6 stefanmueller

stefanmueller

    SmartStore AG

  • Administrators
  • 462 Beiträge

Geschrieben: 28 March 2023 - 14:57

Hi Mihai, there seem to be some hidden errors and misconfigurations lurking in your Smartstore installation AND database. I would suggest a complete clean install. These types of problems can often only be fixed with a lot of expert hours. This is available in a paid support contract with us, but in most cases only if we cover your installation from fresh install, not ad-hoc when errors start flying. Please contact sales@smartstore.com to discuss available support plans. Greetings Stefan


Stefan