Powershell error : $NavIde was not correctly set.

cyuwonocyuwono Member Posts: 28
Has anyone came a cross this "$NavIde was not correctly set." error when when executing any functions on NavModelTools.ps1 through powershell ISE ? I think I missed a step or two but I don't know what that step is. When running the same function using the "Microsoft Dynamics NAV 2015 Development Shell" shortcut I did not get this error.

I would appreciate if someone can help me with this.

Carlos
Carlos Yuwono

Best Answers

Answers

  • KowaKowa Member Posts: 923
    edited 2016-03-03
    Run ISE as admin, type the Set-executionpolicy there, "Bypass" is somewhat dangerous, "RemoteSigned" is usually sufficient. Confirm the message that pops up. Do this both for the 64bit and 32bit (x86) version, but once is enough for all eternity on your system. Close the ISE admin session.
    Then run ISE again, but NOT as admin. Then run your script starting with the Import-Module line here.
    Kai Kowalewski
  • cyuwonocyuwono Member Posts: 28
    Hi Kowa thanks for the suggestion. I followed your steps but I am still getting the same error :/ I also tried on two different computer both gave me the same error.
    Carlos Yuwono
  • cyuwonocyuwono Member Posts: 28
    Thank you Kowa and mohana_cse06 problem solved.
    Carlos Yuwono
Sign In or Register to comment.