A known issue with OData

This issue also exists in PowerBuilder 12.6 and 2017.

When connecting a transaction object to an OData service, the application crashes. This only occurs when deploying the application to a computer where the PowerBuilder IDE is not installed. It works on the computer with PowerBuilder installed. This issue is caused by the limitation of PowerBuilder runtime packager, where the command "regasm" cannot be run automatically. Please use the following workaround.

  1. Select the OData checkbox under 'Database Interfaces', so that Sybase.PowerBuilder.ODataWrapper.dll will be deployed with the PowerBuilder runtime packager.

  2. Register the assembly as a COM component.

    In 32-bit OS, run this command using an administrator account: regasm Sybase.PowerBuilder.ODataWrapper.dll /tlb:Sybase.PowerBuilder.ODataWrapper.tlb /codebase.

    In 64-bit OS, run the same command but with the corresponding 64-bit regasm.exe file which is by default located in C:\Windows\Microsoft.NET\Framework64\v4.0.30319.