0

UPDATE:

This issue actually occurs when I have used RenderingParameterDefinition way of defining Params instead of just using String. Ex:

params: [ 
      { name: 'bgColor', displayName: "Small", type: CommonFieldTypes.Number }
    ],

And when I try to import this into Sitecore, it throws following mention error for the first time. Then if I ran it for the second time, it goes successfully.

NOTE: after second import everything works fine but issue occurs when try to import it for the first time ONLY.


When I try to add same param name (ex: "bgColor") to two components, it works correctly in the disconnected mode.

But when try to import it to connected mode (by 'jss deploy app -c -d') following error will be returned.

If the two component's param names are different, import goes successfully without any errors.

Exception thrown while importing JSS app Exception: System.InvalidOperationException Message: The ID {066A79EA-C450-5853-B44E-7125E977BDF0} has been used more than once during import. This likely means two imported items have the same id value, or two items of the same type (e.g. templates) share the same name. Details: template Body1ColRow Rendering Parameters, template Body1ColRow Rendering Parameters Source: Sitecore.JavaScriptServices.AppServices at Sitecore.JavaScriptServices.AppServices.Data.IdManager.AssertIdIsUnused(ID id, String idUsageDescription) at Sitecore.JavaScriptServices.AppServices.Pipelines.Import.ProcessTemplates.CreateTemplate(TemplateDef templateDef, Item parent, Item multilistRoot, AppConfiguration app, IdManager idManager) at Sitecore.JavaScriptServices.AppServices.Pipelines.Import.ProcessTemplates.d__11.MoveNext() at System.Linq.Buffer1..ctor(IEnumerable1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source) at Sitecore.JavaScriptServices.AppServices.Pipelines.Import.ProcessTemplates.Process(ImportPipelineArgs args) at (Object , Object ) at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain, Boolean failIfNotExists)
at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain) at Sitecore.JavaScriptServices.AppServices.Pipelines.Import.ImportPipeline.Import(ImportPipelineArgs args) at Sitecore.JavaScriptServices.AppServices.ImportService.ImportJob.ProcessRetries(ImportPipelineArgs args) at Sitecore.JavaScriptServices.AppServices.ImportService.ImportJob.StartImportInternal()

Import is complete.

IMPORT ERROR(S) OCCURRED! Exception thrown while importing JSS app Exception: System.InvalidOperationException Message: The ID {066A79EA-C450-5853-B44E-7125E977BDF0} has been used more than once during import. This likely means two imported items have the same id value, or two items of the same type (e.g. templates) share the same name. Details: template Body1ColRow Rendering Parameters, template Body1ColRow Rendering Parameters Source: Sitecore.JavaScriptServices.AppServices at

  • Do you mean it occur with "Rendering Parameters" without the use of a Rendering Parameters Template? – Jan Bluemink Jun 7 at 7:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.