1

When I wanted to reindex the search for one of our clients running SDL Tridion 2013 SP1 I got following error when trying to run Sync-TcmSearchIndex:

The term 'Sync-TcmSearchIndex' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:9

  • Sync-TcmSearchIndex <<<<

    • CategoryInfo : ObjectNotFound: (Sync-Tcm:String) [], CommandNotFoundException

    • FullyQualifiedErrorId : CommandNotFoundException

So I have 2 questions:

  1. What can I do to fix the missing cmdlet?
  2. Is there another way to trigger the re-indexation of the search?

Kr,

Thomas

  • did you try the answers? can you please mark the solution? – Warner Soditus Jan 12 '17 at 20:01
  • I did not have time to try out the answers yet. Once I have, I'll give the needed feedback. – Thomas Hendrickx Jan 16 '17 at 11:03
  • any results? it's customary to mark a solution... – Warner Soditus Jan 24 '17 at 15:32
  • I know .. I gave feedback as soon as I could – Thomas Hendrickx Jan 25 '17 at 15:22
1

After some investigation the problem was found. During windows updates something went wrong with our machine which resulted in some functionality being dropped out of powershell. I do not know exactly what as this has been fixed by the IT department of our Client.

After the fix the Sync-TcmSearchIndex command was again available.

| improve this answer | |
0

I think I can help you with #1. I am not sure about #2. for #1, check that you have the Tridion Automation dll. Inside your tridion install, you should have:

[Path to your install]\bin\PowerShellModules\Tridion.ContentManager.Automation\Tridion.ContentManager.Automation.dll

See if that exists. Next, check that your PSModulePath environment variable includes that directory. Mine looks like this.

%SystemRoot%\system32\WindowsPowerShell\v1.0\Modules\;D:\opt\apps\tridion\bin\PowerShellModules\
| improve this answer | |
  • btw, the SDL installer should have updated your environment variable for you automatically. we haven't done any manual configuration to make their PS commands work properly – Warner Soditus Jan 11 '17 at 18:14
0

Have you used the command:

Import-module tridion.contentmanager.automation

After running this command run the sync command and it should work fine

| improve this answer | |
  • shouldn't be necessary if you look at my answer, it should be imported if you include the dll in your modules--which should have been done by the Tridion installer – Warner Soditus Jan 11 '17 at 17:31
  • 1
    Indeed - since Powershell 3.0 import-module is automatically invoked if you invoke one of a module's commands – Dominic Cronin Jan 14 '17 at 13:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.