Skip to main content
Version: 10.0

General Issues

The most common issues concerning PowerShell script management will be published on this page.


Connection Issues

Please review the provided login data on the machine you tried connecting from PowerShell with the DITool from SAP to check if the provided login data are valid. This tool is available from the SAP Note:

2057143 - DI API_How to Prepare and Debug an XML Payload

Please also use this SAP Note to diagnose the problem with the connection:

2029714 - Troubleshooting Integration Framework SLD DI Connection

note

Despite this SAP Note relating to Integration Framework, many DI connection issues are common, regardless of the application that uses DI API.

Exception: Unable to find type

[CompuTec.ProcessForce.API.ProcessForceCompanyInitializator]: make sure that the assembly that contains this type is loaded

Reason

You are probably using PowerShell 2.0 with CLRVersion 2.0.

Diagnose Actions

Check if the CLR Version is 2.0 or lower.

PowerShell 2.0 script
$PSVersionTable

Version

Solution steps - 01 (Example for PowerShell ISE x86)

  • Change CLRVersion to 4.0 (need installed .NET Framework 4.5/4.6 Full) by adding a configuration file to PowerShell ISE

  • See the Configuration files section in the PowerShell application configuration.

    Version compare

  • Restart PowerShell ISE and check CRLVersion

    Restart

Solution steps - 02 - ProcessForce 10.0 & newer

Exception: PF Database Version is not supported

Please update the Database or Reinstall API.Setup

Incorrect Version

Reason

ProcessForce, PowerShell ISE, and PF.API versions vary.

Diagnose Actions

Different Version

  • Check the ProcessForce version and platform. You can do this in SAP Client > Administration > Add-On Manager (see a screenshot above).

  • Check what architecture PowerShell ISE is working on (on example screenshot is x86 = 32-bits) and check if this platform is the same as ProcessForce one.

  • Check In Windows > Programs & Features installed PF.API version and compare it to SAP Client > Add-on Manager – ProcessForce version & platform.

    Final

  • Check if PowerShell ISE is using the correct PF API library version.

    # Check PF.API version used by current PowerShell ISE
    clear
    [System.Reflection.Assembly]::LoadWithPartialName("CompuTec.ProcessForce.API")
    [System.Reflection.Assembly]::LoadWithPartialName("CompuTec.Core")
    $version = [CompuTec.Core.CoreConfiguration+DatabaseSetup]::AddonVersion
    write-host $version

Solution

Use PowerShell ISE 64-bit if ProcessForce add-on x64 is installed on your database.

Use PowerShell ISE 32-bit if ProcessForce add-on x86 is installed on your database.

Exception: Unable to Access SBO-Common Database

Database Mismatch

Reason

Mismatch of DBServerType.

Exception: Database Server Type not Supported

Server Type Mismatch

Mismatch of DBServerType.

Exception: The specified Resource Name Cannot be Found in the Image File

Diagnose Steps

  1. Resource Name
  2. Resource Name 2

Solution

Check SQL/HANA server name in the credentials configuration. Sometimes, a database server can be visible only by its name or IP address.

It should be the same as in the SAP Client Choose Company form/window.

Exception: Login SLD Failed

Make sure the server, company, and user credentials are correct

Incorrect Port Number

Solution

  • Check SQLServer & LicenceServer IP address or name.
  • Check SQLServer & LicenceServer port numbers (they should be used only for HANA connection).
  • Be sure about lower & upper cases in login or password.
  • Check if SLD is working - try to log in using SAP B1 Client to the target database.