System.NullReferenceException: Object reference not set to an instance of an object

(Brijeshkalavadia) #1

I am getting below error while importing project to our prod OD.

System.NullReferenceException: Object reference not set to an instance of an object.
at Octopus.Cli.Importers.ProjectImporter.d__30.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Octopus.Cli.Importers.ProjectImporter.d__12.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Octopus.Cli.Commands.ImportCommand.d__18.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Octopus.Cli.Commands.ApiCommand.d__35.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Octopus.Cli.CliProgram.Run(String[] args)
Exit code: -3

(Kenneth Bates) #3

Hi @brijeshkalavadia,

Thanks for getting in touch! Very sorry to hear you’re hitting this roadblock importing your project. Can you provide some additional information to help us dig into what’s causing this issue for you?

  • How are you doing the export/import? e.g. Octo.exe export or Octopus.migrator?
  • Do the source and destination server versions match exactly, and which version(s) are you running?
  • Does the project you’re moving contain a Deploy a Release step in its process? If so, it’s possible you could be hitting the following known bug.

I look forward to hearing back and getting to the bottom of this one!

Best regards,

Kenny

(Brijeshkalavadia) #4

We are exporting and importing projects through octo.exe and that is our regular workflow.
We have same version on test and prod octopus deploy server
We dont have Deploy a release step in the process.

(system) closed #5

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.