An exception occurred attempting to start the script

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 9 years and 1 month 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
mtartaglia
Posts: 101
Last visit: Mon Dec 19, 2022 11:45 am

An exception occurred attempting to start the script

Post by mtartaglia »

My script was working fine until I did a file save as and saved it to another location on my hard drive. However, It works fine with V2 - 64BIt. It only gives me this error when I choose V4 - 64bit

Thank you in advance,

Mike
User avatar
SAPIEN Support Forums
Posts: 945
Last visit: Thu Oct 22, 2015 1:10 pm

An exception occurred attempting to start the script

Post by SAPIEN Support Forums »

This is an automated post. A real person will respond soon.

Thank you for posting, miketartaglia.

Did you remember to include the following?
  • 1. Product, version and build (e.g. Product: PrimalScript 2014, Version & Build: 7.0.46. Version and build information can be found in the product's About box accessed by clicking the blue icon with the 'i' in the upper right hand corner of the ribbon.)
    2. Specify if you are running a 32 or 64 bit version
    3. Specify your operating system and if it is 32 or 64 bit.
    4. Attach a screenshot if your issue can be seen on the screen
    5. Attach a zip file if you have multiple files (crash reports, log entries, etc.) related to your issue.
If not, please take a moment to edit your original post or reply to this one.

*** Make sure you do not post any licensing information ***
User avatar
mtartaglia
Posts: 101
Last visit: Mon Dec 19, 2022 11:45 am

Re: An exception occurred attempting to start the script

Post by mtartaglia »

Powershell Studio 2015 (started script in 2014)
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: An exception occurred attempting to start the script

Post by davidc »

Can you post a screenshot of the error?

David
David
SAPIEN Technologies, Inc.
User avatar
mtartaglia
Posts: 101
Last visit: Mon Dec 19, 2022 11:45 am

Re: An exception occurred attempting to start the script

Post by mtartaglia »

Here ya go.
Powewrshellstudioerror.jpg
Powewrshellstudioerror.jpg (19.8 KiB) Viewed 3770 times
User avatar
mtartaglia
Posts: 101
Last visit: Mon Dec 19, 2022 11:45 am

Re: An exception occurred attempting to start the script

Post by mtartaglia »

When running in V2 I get this
2015-02-05_8-09-56.jpg
2015-02-05_8-09-56.jpg (30.81 KiB) Viewed 3767 times
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: An exception occurred attempting to start the script

Post by davidc »

Is there a single quote in the filepath?

Can you zip and email the psf file to support@sapien.com? I would like to test this on our end with the same script.

David
David
SAPIEN Technologies, Inc.
User avatar
mtartaglia
Posts: 101
Last visit: Mon Dec 19, 2022 11:45 am

Re: An exception occurred attempting to start the script

Post by mtartaglia »

I don't get it. I rebooted and everything works fine.
User avatar
mtartaglia
Posts: 101
Last visit: Mon Dec 19, 2022 11:45 am

Re: An exception occurred attempting to start the script

Post by mtartaglia »

This is now happening again but with just a ps1 file not a psf. Shouldn't I be able to run a PS1 file and see the output in Powershell Studio 2015? Here is the code I am trying to run. Keep in mind, this runs fine in the Powershell shell just not in Powershell Studio.

Import-Module ActiveDirectory
get-aduser -filter * -properties name, extensionAttribute1 | Select-Object Name, ExtensionAttribute1 | where-object { $_.extensionAttribute1 -eq "1" }
User avatar
Alexander Riedel
Posts: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

Re: An exception occurred attempting to start the script

Post by Alexander Riedel »

Please post in the designated product support area. This section is for trial software questions.
Alexander Riedel
SAPIEN Technologies, Inc.
This topic is 9 years and 1 month 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.