Announcement

Collapse
No announcement yet.

Powershell script won't run on CommitCRM server

Collapse
X
 
  • Filter
  • Time
Clear All
new posts

    Powershell script won't run on CommitCRM server

    We have a Powershell script that works fine when run from a client PC against the CommitCRM server, using UNC paths.
    But when run directly on the server, either using UNC or local paths, we get "Status 2000: General Error Occurred FAILURE" at the init line.

    Here's a snippet of the code:
    ------------------------------
    add-type -Path "\\server\share\commitcrm\ThirdParty\API\CommitLib .dll"
    $CommitConfig = New-Object CommitCRM.Config

    $CommitConfig.AppName = "My Script"
    $CommitConfig.CommitDllFolder = "\\server\share\commitcrm\ThirdParty\UserDev"
    $CommitConfig.CommitDbFolder = "\\server\share\commitcrm\db"

    [CommitCRM.Application]::Initialize($CommitConfig)
    ------------------------------

    Re: Powershell script won't run on RangerMSP server

    Thank you for posting this.

    It is hard to tell what exactly the problem is. Please ZIP the \Logs folder and email it to us or share it with us using Dropbox/Drive etc. and we'll continue from there, after analyzing the logs in our lab.

    Comment


      Re: Powershell script won't run on CommitCRM server

      Thanks, I have e-mailed them through.

      Comment


        Re: Powershell script won't run on RangerMSP server

        Thank you for sending the log files.

        Here is the error that was logged:

        Error 6080: Error loading the Advantage remote communication layer DLL. axServerConnect

        This error indicates a communication problem with the Advantage Database Server and it means that the Advantage remote communication layer DLL(s) could not be loaded.

        The suggested solution for this error is to put axcws32.dll somewhere in your client PC's/server search path (e.g., your \WINDOWS\SYSTEM directory).

        Please give it a try and let us know whether it works.

        Comment


          Re: Powershell script won't run on CommitCRM server

          Thanks, that seemed to have worked.

          Comment


            Re: Powershell script won't run on RangerMSP server

            Thank you for the update!

            Comment

            Working...
            X