Accounts Onboard Utility JSON Error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Accounts Onboard Utility JSON Error

L1 Bithead

Running PAM 12.2.

 

Trying to run the Accounts Onboard Utility located at https://github.com/cyberark/epv-api-scripts/tree/main/Account%20Onboard%20Utility always produces a number of errors, and the script does not run. I have confirmed my LocalMachine, CurrentUser and MachinePolicy execution policies are all Unrestricted. I get these errors whether I try to launch the script as part of a full command or by itself without any switches.

 

The first set of errors are below. Has anyone else seen this issue?

 

At C:\cyberark\Accounts_Onboard_Utility.ps1:41 char:60

+ ... script type="application/json" id="client-env">{"locale":"en","featur ...

+                               ~~~~~

Unexpected token ':"en"' in expression or statement.

At C:\cyberark\Accounts_Onboard_Utility.ps1:41 char:65

+ ... cript type="application/json" id="client-env">{"locale":"en","feature ...

+                                 ~

Missing argument in parameter list.

At C:\cyberark\Accounts_Onboard_Utility.ps1:41 char:615

+ ... key_shortcuts_in_inputs","custom_inp","remove_child_patch"]}</script>

+                                 ~

The '<' operator is reserved for future use.

1 accepted solution

Accepted Solutions

L1 Bithead

I have the solution, supplied by the BizDev team ([email protected]):

 

"Make sure you download it as raw from Github. It looks like some encoding issue with the character if you copy and paste it.

That is the down arrow icon ."

 

Browsed to the .ps1 file page in Github (https://github.com/cyberark/epv-api-scripts/blob/main/Account%20Onboard%20Utility/Accounts_Onboard_Utility.ps1) and downloaded the PS file again via the download button (down arrow icon). After that the script could be launched.

View solution in original post

3 REPLIES 3

L7 Applicator

Hi @Shawn Metcalf​ 

 

 

The errors mention unexpected tokens related to script tags (”<script type=“application/json” … >”). Please

verify that these tags are properly formatted and not causing syntax errors within the PowerShell script.

 

Please also verify the content of the script, especially around the line where the errors occur (line 41 in this case). Verify that there are no syntax errors or unexpected characters.

 

Hope it helps !

As far as I've been able to determine, the syntax is correct.

L1 Bithead

I have the solution, supplied by the BizDev team ([email protected]):

 

"Make sure you download it as raw from Github. It looks like some encoding issue with the character if you copy and paste it.

That is the down arrow icon ."

 

Browsed to the .ps1 file page in Github (https://github.com/cyberark/epv-api-scripts/blob/main/Account%20Onboard%20Utility/Accounts_Onboard_Utility.ps1) and downloaded the PS file again via the download button (down arrow icon). After that the script could be launched.

  • 1 accepted solution
  • 283 Views
  • 3 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!