Tokenization of Utils.dll file path not working

Which IIQ version are you inquiring about?

Version 8.3

Share all details related to your problem, including any error messages you may have received.

Hi,

I have a Rule which executes some PowerShell scripts. That that I have first added the Utils.dll path. This path is working correctly when I write below line in the rule:
Add-type -path D:\IQService\Utils.dll

But for the purpose of Tokenization I created targe.properties file for Stage and Prod with below content in stage target.properties file:
%%RulePowerShellMailboxCreation-DLL%%=D:\IQService\Utils.dll

In the rule, I added token as shown below:
Add-type -path %%RulePowerShellMailboxCreation-DLL%%;

Now when I run the CICD Build process, the deployed Rule shows the path like:
Add-type -path D:IQServiceUtils.dll;

Means after the deployment back slash () is removed.
Then I thought to add double slash (\) in the path like below:
%%RulePowerShellMailboxCreation-DLL%%=D:\IQService\Utils.dll

But still the deployed rule is not showing the correct path.
What is the correct way to write target.properties file show that the backslash appear in the deployed rule.

Thanks

Hi Avinash,
Try to 4 backshashes \\\\.
%%RulePowerShellMailboxCreation-DLL%%=D:\\\\IQService\\\\Utils.dll

1 Like

Hi @Avinah,

Can you please double check if you have added the double slash. In your post, you haven’t added double slash. According to your use case the value should be something like below.

%%RulePowerShellMailboxCreation-DLL%%=D:\\IQService\\Utils.dll
2 Likes

Thank you all for your quick response.
I further tried using double back slashes β€œ\\” in the path, which is now working for me.
If in Poswershell, we need a file path within the double quote, then in the tokenization the file path works with single back slash.
if in the PowseShell, we need a path without double quote, then in the tokenization we need to put double back slashes.

1 Like

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