Reza.Hoque
Reza.Hoque

Reputation: 2750

Sitecore 9.3 Serialization CLI failing to push

We have a sitecore 9.3 project which is not helix and also not headless. I am trying to add serialization cli, I have installed cli and management services (v. 5.1.25). dotnet tool restore and authentication works fine. But when I try to push 'dotnet siteore ser push', it finds all the items that needs to be added but then in the end right after "Applying changes...", it throws an error.

The error is as below;

[GraphQLException] GraphQL.ExecutionError: An exception occurred while processing the request. ---> System.MissingFieldException: Field not found: 'Sitecore.DevEx.Serialization.Logging.SerializationEventIds.Created'. at Sitecore.DevEx.GraphQL.Serialization.Mutations.SerializationCommands.CreateItemCommand.Execute(SerializationCommandData command, IItemData dataModel) at Sitecore.DevEx.GraphQL.Serialization.Mutations.SerializationCommands.CommandExtensions.TryExecute(IEnumerable1 commands, IList1& results) at Sitecore.DevEx.GraphQL.Serialization.Mutations.ExecuteSerializationCommandsMutation.Resolve(ResolveFieldContext context) --- End of inner exception stack trace --- [GraphQLException] GraphQL.ExecutionError: Cannot return null for non-null type. Field: name, Type: String!. at GraphQL.Execution.ExecutionStrategy.ValidateNodeResult(ExecutionContext context, ExecutionNode node) at GraphQL.Execution.ExecutionStrategy.d__7.MoveNext() [GraphQLException] GraphQL.ExecutionError: Error trying to resolve logLevel. ---> System.MissingMethodException: Method not found: 'Microsoft.Extensions.Logging.LogLevel Sitecore.DevEx.Logging.OperationMessage.get_LogLevel()'. at Sitecore.DevEx.GraphQL.Serialization.GraphTypes.OperationResultMessageGraphType.ResolveLevel(ResolveFieldContext1 context) at GraphQL.Resolvers.FuncFieldResolver2.GraphQL.Resolvers.IFieldResolver.Resolve(ResolveFieldContext context) at GraphQL.Execution.ExecutionStrategy.d__7.MoveNext() --- End of inner exception stack trace --- [GraphQLException] GraphQL.ExecutionError: Error trying to resolve eventID. ---> System.MissingMethodException: Method not found: 'Microsoft.Extensions.Logging.EventId Sitecore.DevEx.Logging.OperationMessage.get_EventId()'. at Sitecore.DevEx.GraphQL.Serialization.GraphTypes.OperationResultMessageGraphType.ResolveEventId(ResolveFieldContext1 context) at GraphQL.Resolvers.FuncFieldResolver2.GraphQL.Resolvers.IFieldResolver.Resolve(ResolveFieldContext context) at GraphQL.Execution.ExecutionStrategy.d__7.MoveNext() --- End of inner exception stack trace ---

Does anyone have experience this? any help would be much appreciated.

Upvotes: 1

Views: 448

Answers (1)

Anna Bastron
Anna Bastron

Reputation: 1433

I'm afraid Sitecore CLI and Content Serialization are only compatible with Sitecore version 10 and newer.

Sitecore CLI and Content Serialization was a brand new feature when Sitecore 10 was released. Please refer to Sitecore 10 release notes and Sitecore module compatibility tables for version 9 and version 10. Your version of Management Services (v. 5.1.25) is supported by 10.1+. You can try it with an older version but I think Sitecore will not provide any support for these modules installed on Sitecore 9.3.

Please consider using Unicorn or Sitecore TDS for content serialisation, they both have versions that are compatible with Sitecore 9.3.

Upvotes: 1

Related Questions