Module doesn't load

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 11 years and 6 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
carlodidier
Posts: 11
Last visit: Mon Oct 25, 2021 5:05 am

Module doesn't load

Post by carlodidier »

>> Building (SharesAndSnapshots) Project...
>> Running (SharesAndSnapshots) Project Script...
>> Platform: 32Bit
SharesAndSnapshots.pfproj Startup.pfs MainForm.pff Globals.ps1 SharesAndSnapshots.pfprojs SharesAndSnapshots.Temp.ps1
ERROR: Import-Module : The specified module 'DataONTAP' was not loaded because no valid module file was found in any module directory.
MainForm.pff (5): ERROR: At Line: 5 char: 15
ERROR: + import-module > Execution time: 00:00:58
>> Script Ended
User avatar
carlodidier
Posts: 11
Last visit: Mon Oct 25, 2021 5:05 am

Module doesn't load

Post by carlodidier »

Sorry, I pasted the wrong text. Here's the correct one:

I installed the Data ONTAp Powershell Toolkit. It works fine in the normal powershell console. But in Powerstudio, I get this error:

ERROR: Import-Module : The specified module 'DataONTAP' was not loaded because no valid module file was found in any module directory.
MainForm.pff (5): ERROR: At Line: 5 char: 15
ERROR: + import-module <<<< DataONTAP
ERROR: + CategoryInfo : ResourceUnavailable: (DataONTAP:String) [Import-Module], FileNotFoundException
ERROR: + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
ERROR:

The module is correctly installed in C:WindowsSystem32WindowsPowerShellv1.0ModulesDataONTAP and I can load and use it in the Powershell console.
System is a fully updated Windows 7 Enterprise 64bit.

Any ideas?
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Module doesn't load

Post by davidc »

Can you run the script using the 64Bit platform and let me know if it makes a difference?

David
David
SAPIEN Technologies, Inc.
User avatar
carlodidier
Posts: 11
Last visit: Mon Oct 25, 2021 5:05 am

Module doesn't load

Post by carlodidier »

Aaaarrrghhh! That's it! Thanks David!
This topic is 11 years and 6 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.