Forum Discussion

Re: librfc32.dll error

You need to understand couple of things:

1) to create a sap connection and not using smart integration connector you can either use the brapi or create connection using erpconnect directly

https://helpcenter.theobald-software.com/erpconnect/documentation/sap-connection/log-on-to-sap/#connect-to-sap

The error you get is because you are trying to use the classic rfc protocol which requires that library to be in the onestream servers. Therefore support are the only that can fix that.

2) when you upgrade to 8.2/8.4 you will have to use SIC as erpconnect is not available in the platform and most likely your sap in only accesible via private network. In this case the BRAPI to create the SAP connection is not available anymore and you will have to create the connection in a SIC Function BR as shown in the link

Being said that, first thing id try is to set the NWRFC protocol in you sap connection object. If you set the NET WEAVER protocol it will not use the classic rfc library. I don’t think that will work because that requires other libraries which most likely are not in the server. 

can you attach here screenshot of your BR properties (referenced assemblies) and the BR code?

3 Replies

  • Manjunathak's avatar
    Manjunathak
    New Contributor III

    Imports System
    Imports System.Data
    Imports System.Data.Common
    Imports System.IO
    Imports System.Collections.Generic
    Imports System.Globalization
    Imports System.Linq
    Imports Microsoft.VisualBasic
    Imports System.Windows.Forms
    Imports OneStream.Shared.Common
    Imports OneStream.Shared.Wcf
    Imports OneStream.Shared.Engine
    Imports OneStream.Shared.Database
    Imports OneStream.Stage.Engine
    Imports OneStream.Stage.Database
    Imports OneStream.Finance.Engine
    Imports OneStream.Finance.Database
    Imports ERPConnect
    Imports ERPConnect.Utils

    Dim currentProfileName As WorkflowProfileInfo = BRAPi.Workflow.Metadata.GetProfile(si, si.WorkflowClusterPk.ProfileKey)
    Dim compCode As String = currentProfileName.GetAttributeValue(ScenarioType.Actual.Id, SharedConstants.WorkflowProfileAttributeIndexes.Text1)
    Dim profcenCode As String = currentProfileName.GetAttributeValue(ScenarioType.Actual.Id, SharedConstants.WorkflowProfileAttributeIndexes.Text2)

    Dim r3Conn As R3Connection = BRApi.Database.CreateSAPConnection(si, "Europe_SAP_Production", True)

    I have provided the dll file to support team, they uploaded in server. does dll is version specific? i gave 7.2 64 bit.

    The connection is not stable if i try 10 time connection will work once. some time connection won't work for 2-3 hours it's really weird.  

    • franciscoamores's avatar
      franciscoamores
      Contributor II

      Most likely that’s be a use the library is missing in just some of the application servers.

      can you check in task activity in what server is executed the execution that works?

      • Manjunathak's avatar
        Manjunathak
        New Contributor III

        i believe you're right when connection is failing it is using appserver4 thier might be some thing with that,

        i will check with support and update you

        thank you so much for your help