This project has moved and is read-only. For the latest updates, please go here.

Script aborted after Creating new crawl component...

Jan 20, 2012 at 10:53 AM

Hi everyone,

I'm having a problem deploying with the autoSPInstaller script. Hopefully someone here can give me a solution. The script aborts after Creating new crawl component...:


 - Creating new crawl component...
 - Script aborted!

Exception             : System.Management.Automation.RuntimeException: You cann
                        ot call a method on a null-valued expression.
                           at System.Management.Automation.ParserOps.CallMethod
                        (Token token, Object target, String methodName, Object[
                        ] paramArray, Boolean callStatic, Object valueToSet)
                           at System.Management.Automation.MethodCallNode.Invok
                        eMethod(Object target, Object[] arguments, Object value
                           at System.Management.Automation.MethodCallNode.Execu
                        te(Array input, Pipe outputPipe, ExecutionContext conte
                           at System.Management.Automation.CommandNode.ReadArgu
                        ments(Int32& index, ExecutionContext context)
                           at System.Management.Automation.CommandNode.BindPara
                        metersAndArguments(Int32 index, ExecutionContext contex
                           at System.Management.Automation.CommandNode.AddToPip
                        eline(PipelineProcessor pipeline, ExecutionContext cont
                           at System.Management.Automation.PipelineNode.Execute
                        (Array input, Pipe outputPipe, ArrayList& resultList, E
                        xecutionContext context)
                           at System.Management.Automation.ParseTreeNode.Execut
                        e(Array input, Pipe outputPipe, ExecutionContext contex
                           at System.Management.Automation.AssignmentStatementN
                        ode.Execute(Array input, Pipe outputPipe, ExecutionCont
                        ext context)
                           at System.Management.Automation.StatementListNode.Ex
                        ecuteStatement(ParseTreeNode statement, Array input, Pi
                        pe outputPipe, ArrayList& resultList, ExecutionContext
TargetObject          : ToString
CategoryInfo          : InvalidOperation: (ToString:String) [ForEach-Object], R
FullyQualifiedErrorId : InvokeMethodOnNull,Microsoft.PowerShell.Commands.ForEac
ErrorDetails          :
InvocationInfo        : System.Management.Automation.InvocationInfo
PipelineIterationInfo : {1, 1}
PSMessageDetails      :

| Automated SP2010 install script |
| Started on: 20-1-2012 11:30:52 |
| Aborted:    20-1-2012 11:48:19 |
Windows PowerShell Transcript End
End time: 20120120114819


Thanx in advance.



Jan 20, 2012 at 1:57 PM

It would appear there's a null/missing value to do with Search in the XML... if you want you can post your <EnterpriseSearch> section and we'll have a look.


Jan 20, 2012 at 3:56 PM
brianlala wrote:

It would appear there's a null/missing value to do with Search in the XML... if you want you can post your <EnterpriseSearch> section and we'll have a look.


Here it is:

           <EnterpriseSearchService Provision="true"
                                 InternetIdentity="Mozilla/4.0 (compatible; MSIE 4.01; Windows NT; MS Search 6.0 Robot)"
                                 IndexLocation="C:\Program Files\Microsoft Office Servers\14.0\Data\Office Server\Applications"
                <EnterpriseSearchServiceApplication Name="Search Service Application"
                    <ApplicationPool Name="SharePoint Search Application Pool" Account="DOMAIN\svc-mosssearch" Password="********" />
                        <Server Name="localhost" />
                        <Server Name="localhost" />
                    <!-- You should specify all the servers you listed in QueryServers in the SearchQueryAndSiteSettingsServers node below as well -->
                        <Server Name="localhost" />
                    <!-- You can only run the AdminComponent on one server per Search Service App, so only list one server here -->
                        <Server Name="localhost" />
                        <ApplicationPool Name="SharePoint Search Application Pool" Account="DOMAIN\svc-mosssearch" />
                    <Proxy Name="Search Service Application" Partitioned="false">
                        <ProxyGroup Name="Default" />

Jan 23, 2012 at 1:32 AM

The XML looks OK, yet there's still something "missing" that the script is complaining about. I wonder if either of the previous services/components failed to be created properly...?


Jan 23, 2012 at 8:38 AM
Edited Jan 23, 2012 at 8:39 AM

Never mind. I've figured it out. I'd made some changes to the AutoSPInstallerFunctions script in an effort to rename the _CrawlStore database to -CrawlStore. I'd completely forgotten about it. I undid the changes and now al is well. Thanks for all your efforts brianlala.

Jan 24, 2012 at 3:28 AM

Ah OK. On a side note, you might want to be careful of dash characters (-) in database names though, I seem to recall there being issues in certain scenarios...?


Mar 6, 2013 at 2:19 PM

It seems i have a issue almost similar than you..
but here is the error message get during installation :
  • Using pre-provided credentials...
  • Checking credentials: "BEILUX\svc_fimspadmin"...Verified.
    Start-Transcript : Transcription cannot be started.
  • Start-Transcript -Path $logFile -Append -Force
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : InvalidOperation: (:) [Start-Transcript], PSInva
    • FullyQualifiedErrorId : CannotStartTranscription,Microsoft.PowerShell.Co

| Automated SP2013 install script |

| Started on: 3/6/2013 2:40:50 PM |

- SharePoint 2013 binaries are already installed.

  • Validating user accounts and passwords...
  • Account "beilux\svc_fimspfarm"...Verified.
  • Account "beilux\svc_fimspservice"...Verified.
  • Account "beilux\svc_fimspapp"...Verified.
  • Account "beilux\svc_fimspapp"...Verified.

- Account "beilux\svc_fimspservice"...Verified.

  • Testing access to SQL server/instance/alias: VM9-FIM-02
  • Trying to connect to "VM9-FIM-02"...Success
  • SQL Server version is: 10.50.2500.0
  • This instance of SQL Server is not clustered
  • Check if BEILUX\svc_fimspadmin has dbcreator server role...Pass

- Check if BEILUX\svc_fimspadmin has securityadmin server role...Pass

  • Install based on:
    • D:\SP2013\AutoSPInstaller\SP\AutoSPInstaller\AutoSPInstallerInput-VM9-FIM-0
    • Environment: Dev

- Version: 3.2

- Disabling Loopback Check...

- Disabling IE Enhanced Security...

  • Setting services Spooler, AudioSrv and TabletInputService to Manual...
  • Spooler is already stopped and set Manual, no action required.
  • AudioSrv is already stopped and set Manual, no action required.
  • TabletInputService is already stopped and set Manual, no action required.
  • Setting unused services WerSvc to Disabled...
  • WerSvc is already stopped and disabled, no action required.

- Finished disabling services.

- Not changing CRL check behavior.

  • SharePoint 2013 prerequisites appear be already installed - skipping install.

- Configuring IIS logging...

  • SharePoint 2013 binaries appear to be already installed - skipping installati


  • No language packs found in D:\SP2013\AutoSPInstaller\SP\LanguagePacks, skippi
  • Currently installed languages:

- English (United States)

- SharePoint 2013 binary file installation done!

  • Script halted!
Exception : System.Management.Automation.RuntimeException: You
                    cannot call a method on a null-valued expression.
                       at System.Management.Automation.ExceptionHandlingOps
                    .CheckActionPreference(FunctionContext funcContext,
                    Exception exception)
                       at System.Management.Automation.Interpreter.ActionCa
                    llInstruction`2.Run(InterpretedFrame frame)
                       at System.Management.Automation.Interpreter.EnterTry
                    CatchFinallyInstruction.Run(InterpretedFrame frame)
                       at System.Management.Automation.Interpreter.EnterTry
                    CatchFinallyInstruction.Run(InterpretedFrame frame)
TargetObject :
CategoryInfo : InvalidOperation: (:) [], RuntimeException
FullyQualifiedErrorId : InvokeMethodOnNull
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at ShouldIProvision, D:\SP2013\AutoSPInstaller\SP\AutoS
                    PInstaller\AutoSPInstallerFunctions.ps1: line 4848
                    at ConfigureFarmAdmin, D:\SP2013\AutoSPInstaller\SP\Aut
                    oSPInstaller\AutoSPInstallerFunctions.ps1: line 838
                    at Setup-Farm, D:\SP2013\AutoSPInstaller\SP\AutoSPInsta
                    ller\AutoSPInstallerMain.ps1: line 150
                    at <ScriptBlock>, D:\SP2013\AutoSPInstaller\SP\AutoSPIn
                    staller\AutoSPInstallerMain.ps1: line 321
                    at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {}

PSMessageDetails :

| Automated SP2013 install script |
| Started on: 3/6/2013 2:40:50 PM |

| Aborted: 3/6/2013 2:40:54 PM |

Press any key to exit...

If anyone can help..
Thank you in advance.
Mar 15, 2013 at 5:24 AM
Are you still getting this error with the latest changeset?