Failed to import from JIRA into YouTrack standalone

Hi,

I am trying to import issues from JIRA Server but YouTrack failed to import issues.

The error message is below.

The values for the 'Begin Date' field are stored as 'DATE_AND_TIME'. This creates a conflict with the 'date and time' type used by the 'Begin Date' field, which has already been processed for import.

The full log is below.

 22/10/20 08:20:55,283 ERROR [@tzJobProcessor1] [ImportLogging                 ] [] Script failed with error: The values for the 'Begin Date' field are stored as 'DATE_AND_TIME'. This creates a conflict with the 'date and time' type used by the 'Begin Date' field, which has already been processed for import.

 jetbrains.youtrack.imports.api.IncorrectDataFormatException: The values for the 'Begin Date' field are stored as 'DATE_AND_TIME'. This creates a conflict with the 'date and time' type used by the 'Begin Date' field, which has already been processed for import.

at jetbrains.youtrack.imports.misc.MiscKt.createException(Misc.kt:12)

at jetbrains.youtrack.imports.runtime.FieldsKt$definePrototype$1.invoke(Fields.kt:130)

at jetbrains.youtrack.imports.runtime.FieldsKt$definePrototype$2.invoke(Fields.kt:143)

at jetbrains.youtrack.imports.runtime.FieldsKt.definePrototype(Fields.kt:177)

at jetbrains.youtrack.imports.runtime.ImportProcedureKt$processProject$2.invoke(ImportProcedure.kt:168)

at jetbrains.youtrack.imports.runtime.ImportProcedureKt$processProject$2.invoke(ImportProcedure.kt)

at com.jetbrains.teamsys.dnq.database.TransientEntityStoreExt.transactional(TransientEntityStoreExt.kt:51)

at com.jetbrains.teamsys.dnq.database.TransientEntityStoreImpl.transactional(TransientEntityStoreImpl.kt:95)

at jetbrains.exodus.database.TransientEntityStore$DefaultImpls.transactional$default(TransientEntityStore.kt:84)

at jetbrains.youtrack.core.legacy.LegacySupportKt.transactional(LegacySupport.kt:35)

at jetbrains.youtrack.imports.runtime.ImportProcedureKt.processProject(ImportProcedure.kt:156)

at jetbrains.youtrack.imports.runtime.ImportProcedureKt.processProjects(ImportProcedure.kt:134)

at jetbrains.youtrack.imports.runtime.ImportImplementationImpl.invoke(ImportImplementationImpl.kt:19)

at jetbrains.youtrack.imports.model.ImportExtensionsKt$doStart$3.invoke(ImportExtensions.kt:96)

at jetbrains.youtrack.imports.model.ImportExtensionsKt$doStart$3.invoke(ImportExtensions.kt)

at jetbrains.youtrack.scripts.internals.ExceptionsProcessingKt.withScriptingAndDBExceptionsProcessing(ExceptionsProcessing.kt:74)

at jetbrains.youtrack.scripts.internals.ExceptionsProcessingKt.withScriptingAndDBExceptionsProcessing$default(ExceptionsProcessing.kt:20)

at jetbrains.youtrack.imports.model.ImportExtensionsKt.doStart(ImportExtensions.kt:85)

at jetbrains.youtrack.imports.model.ImportExtensionsKt$start$1.invoke(ImportExtensions.kt:70)

at jetbrains.youtrack.imports.model.ImportExtensionsKt$start$1.invoke(ImportExtensions.kt)

at jetbrains.youtrack.scheduling.LocalQuartzExecutor$executeNonTransactional$1.invoke(LocalQuartzExecutor.kt:29)

at jetbrains.youtrack.scheduling.LocalQuartzExecutor$executeNonTransactional$1.invoke(LocalQuartzExecutor.kt:9)

at jetbrains.youtrack.scheduling.QuartzJobProcessorKt$asNonTxLocalRunnable$1.run(QuartzJobProcessor.kt:38)

at jetbrains.exodus.core.execution.RunnableJob.execute(RunnableJob.java:41)

at jetbrains.exodus.core.execution.Job.run(Job.java:135)

at jetbrains.exodus.core.execution.ThreadJobProcessor.executeJob(ThreadJobProcessor.java:132)

at jetbrains.exodus.core.execution.JobProcessorQueueAdapter.doExecuteJob(JobProcessorQueueAdapter.java:251)

at jetbrains.exodus.core.execution.JobProcessorQueueAdapter.doJobs(JobProcessorQueueAdapter.java:161)

at jetbrains.exodus.core.execution.ThreadJobProcessor.run(ThreadJobProcessor.java:110)

at java.base/java.lang.Thread.run(Thread.java:834)

22/10/20 08:20:55,286 ERROR [@tzJobProcessor1] [ImportLogging                 ] [] Import failed with error: The values for the 'Begin Date' field are stored as 'DATE_AND_TIME'. This creates a conflict with the 'date and time' type used by the 'Begin Date' field, which has already been processed for import.

 jetbrains.youtrack.scripts.sandbox.EvaluationException: The values for the 'Begin Date' field are stored as 'DATE_AND_TIME'. This creates a conflict with the 'date and time' type used by the 'Begin Date' field, which has already been processed for import.

at jetbrains.youtrack.scripts.internals.ExceptionsProcessingKt$withScriptingAndDBExceptionsProcessing$1.invoke(ExceptionsProcessing.kt:27)

at jetbrains.youtrack.scripts.internals.ExceptionsProcessingKt$withScriptingAndDBExceptionsProcessing$3.invoke(ExceptionsProcessing.kt:60)

at jetbrains.youtrack.scripts.internals.ExceptionsProcessingKt.withScriptingAndDBExceptionsProcessing(ExceptionsProcessing.kt:81)

at jetbrains.youtrack.scripts.internals.ExceptionsProcessingKt.withScriptingAndDBExceptionsProcessing$default(ExceptionsProcessing.kt:20)

at jetbrains.youtrack.imports.model.ImportExtensionsKt.doStart(ImportExtensions.kt:85)

at jetbrains.youtrack.imports.model.ImportExtensionsKt$start$1.invoke(ImportExtensions.kt:70)

at jetbrains.youtrack.imports.model.ImportExtensionsKt$start$1.invoke(ImportExtensions.kt)

at jetbrains.youtrack.scheduling.LocalQuartzExecutor$executeNonTransactional$1.invoke(LocalQuartzExecutor.kt:29)

at jetbrains.youtrack.scheduling.LocalQuartzExecutor$executeNonTransactional$1.invoke(LocalQuartzExecutor.kt:9)

at jetbrains.youtrack.scheduling.QuartzJobProcessorKt$asNonTxLocalRunnable$1.run(QuartzJobProcessor.kt:38)

at jetbrains.exodus.core.execution.RunnableJob.execute(RunnableJob.java:41)

at jetbrains.exodus.core.execution.Job.run(Job.java:135)

at jetbrains.exodus.core.execution.ThreadJobProcessor.executeJob(ThreadJobProcessor.java:132)

at jetbrains.exodus.core.execution.JobProcessorQueueAdapter.doExecuteJob(JobProcessorQueueAdapter.java:251)

at jetbrains.exodus.core.execution.JobProcessorQueueAdapter.doJobs(JobProcessorQueueAdapter.java:161)

at jetbrains.exodus.core.execution.ThreadJobProcessor.run(ThreadJobProcessor.java:110)

at java.base/java.lang.Thread.run(Thread.java:834)

Caused by: jetbrains.youtrack.imports.api.IncorrectDataFormatException: The values for the 'Begin Date' field are stored as 'DATE_AND_TIME'. This creates a conflict with the 'date and time' type used by the 'Begin Date' field, which has already been processed for import.

at jetbrains.youtrack.imports.misc.MiscKt.createException(Misc.kt:12)

at jetbrains.youtrack.imports.runtime.FieldsKt$definePrototype$1.invoke(Fields.kt:130)

at jetbrains.youtrack.imports.runtime.FieldsKt$definePrototype$2.invoke(Fields.kt:143)

at jetbrains.youtrack.imports.runtime.FieldsKt.definePrototype(Fields.kt:177)

at jetbrains.youtrack.imports.runtime.ImportProcedureKt$processProject$2.invoke(ImportProcedure.kt:168)

at jetbrains.youtrack.imports.runtime.ImportProcedureKt$processProject$2.invoke(ImportProcedure.kt)

at com.jetbrains.teamsys.dnq.database.TransientEntityStoreExt.transactional(TransientEntityStoreExt.kt:51)

at com.jetbrains.teamsys.dnq.database.TransientEntityStoreImpl.transactional(TransientEntityStoreImpl.kt:95)

at jetbrains.exodus.database.TransientEntityStore$DefaultImpls.transactional$default(TransientEntityStore.kt:84)

at jetbrains.youtrack.core.legacy.LegacySupportKt.transactional(LegacySupport.kt:35)

at jetbrains.youtrack.imports.runtime.ImportProcedureKt.processProject(ImportProcedure.kt:156)

at jetbrains.youtrack.imports.runtime.ImportProcedureKt.processProjects(ImportProcedure.kt:134)

at jetbrains.youtrack.imports.runtime.ImportImplementationImpl.invoke(ImportImplementationImpl.kt:19)

at jetbrains.youtrack.imports.model.ImportExtensionsKt$doStart$3.invoke(ImportExtensions.kt:96)

at jetbrains.youtrack.imports.model.ImportExtensionsKt$doStart$3.invoke(ImportExtensions.kt)

at jetbrains.youtrack.scripts.internals.ExceptionsProcessingKt.withScriptingAndDBExceptionsProcessing(ExceptionsProcessing.kt:74)

... 14 more

Does anyone know how to resolve?

Thanks,

Akira Hayashi

2 comments
Comment actions Permalink
Official comment

Hello Akira,

 

Please submit a support ticket here to proceed with the investigation. Have a nice day!

Comment actions Permalink

Hello Sergey,

 

Thank you for your response.

I recreate the virtual machine and reinstalled the YouTrack, after that it now works fine.

If the error is appeared again, then I am going to submit a ticket.

 

Thanks,

Akira Hayashi.

0

Please sign in to leave a comment.