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.