Discuss formulas and business rules for your application.
Recently active
Happy Wednesday, I'm trying to automate our account recs module. I have been successful in automating the data load. But I'm trying to figure how to call that "process" within my extensibility rule. I tried to trace back the rule that executes the process recons. What I found was a DB Extender rule (RCM_SolutionHelper), that is been referenced within a button component. Wondering if there is a way to call that function. Would appreciate any ideas. Best, Mustafa A
Hi All, I need some assistance in printing the to dimensionally get the parent name of the Child member. Code populating the base member into the table is completed without any error. Can someone please help. Thanks
Hey, I am working on rule to allocate cost to product. It worked when one side of buffer is unbalanced but I do have both. Here is the example. Not sure how can we do? My rate are by Product and NO COP while Cost is by Country of production, by account, by function. I want to store cost where we Cost are and allocate to product.
Hi, is there an BrApi command that returns the Application Currencies, ideally as a list of strings? I would like to use the output, i.e. the list of currencies, in an Extender business rule, where I need to loop through them. Thank you
I keep getting this error I checked the time and scenarios rules it looks right.
Hello community, We have a Custom Calculate DM job that clears data by account and flow via parameter selection that works well. Our client wants to know if it is possible to select multiple base accounts at once to clear the data. The parameter options such as member filter does not allow selecting more than one account so I'm hoping, if this is possible, that maybe someone has used multiple NameValuePairs to achieve this via two parameters of the same dimension somehow. Throwing ideas that may or may not be good out here. Thanks in advance!
Hello, I have created an extensibility rule to extract values from the FileBytes column in the XFW_UTM_SupportDoc table, then convert the FileBytes to a file and save in the file share. See below for code snippet: 'Execute query and save attachment to file share folder Using dt As DataTable = BRAPi.Database.ExecuteSql(dbConnApp, fileBytesQuery, True) If Not dt Is Nothing Then For Each dr As DataRow In dt.Rows 'Process rows Dim fileBytesValue As Byte() = dr("FileBytes") Dim fileNameValue = dr("FileName") Dim taskNameValue = dr("TaskName") Dim fullFileName As String = fileNameValue 'Create file in file share, and store folder name Dim fileInfo As XFFileInfo = New XFFileInfo(FileSystemLocation.FileShare, fullFileName.toString) fileInfo.FolderFullName = "Applications/" & applicationName & "/Batch/Harvest/TaskManager_Exports" 'Convert fileBytes to file, and save in folder path Dim fileFile As XFFile = New XFFile(fi
We are using an Extensibility Rule to import data from a database using a Stored Procedure (SP) within a do...while loop that modifies the SP parameters. The current implementation works as expected, but our customer has requested us to modify the Business Rule so it executes the SP with all the loop combinations, even if an error occurs during a single SP execution. I attempted to implement this using nested Try...Catch blocks, so the error in the inner block does not get to the outer one. Unfortunately, it did not resolve the issue with this code structure: Try (previous code, including do) Try BRApi.Database.ExecuteSql(...) Catch ex As Exception log.AppendLine(...) End Try (more code, including while) Catch (general error handling) End Try The BR still terminates when an SP error occurs: am I missing something? is there a way to prevent the BR to stop when an error occurs? Regards,
Hi all, Does anyone know how to call a dynamic member list inside a member formula (well, I need it for a dynamicCalc but it can be generalized). I can call the member list in a CV with the call: I#ICEntities.CustomMemberList(BRName= BRName, MemberListName= MemberListName, Param1 = Param1, Param2 = Param2, Param3 = Param3) In the Design and Reference (Examples of Key Functions in Use (onestream.com)), we find an example of a static member list. Thank you for the help. Regards
I have an Assembly which is compiling without errors. The Assembly type is DashboardStringFunction. I called the assembly from DM step in the Time Filter: XFBR(Worspace.PS_Allocation_Rules.PS_Allocation.PS_XFBR_Allocation, MultiSelectTime, Allocation_MonthsToCopy=[|!Allocation_MonthsToCopy!|]) When I execute the step, I am getting below error: Error processing Data Management Step 'Allocations_AllAccountBkt_Step'. Invalid parameter. Time Filter, #ERROR: XFBR[Worspace.PS_Allocation_Rules.PS_Allocation.PS_XFBR_Allocation, MultiSelectTime, Allocation_MonthsToCopy=[2023]]. I am calling the function as per the reference material: XFBR(Workspace.WorkspaceName.AssemblyName.FileName, FunctionName) Appreciate your inputs
Dear OS Experts, really appreciate your support on this, I have written a business rule for some generic calculations based on the calender months. the rule is working for USD currency but it not working for CAD. Any suggestions on this code corrections? Namespace OneStream.BusinessRule.Finance.Temp234Calc Public Class MainClass #Region "Main - xxx Calculation" Public Function Main(ByVal si As SessionInfo, ByVal globals As BRGlobals, ByVal api As FinanceRulesApi, ByVal args As FinanceRulesArgs) As Object Try Dim timePeriod As String = api.Pov.Time.Name Dim entityCode As String = api.Pov.Entity.Name Dim monthNumber As SByte = api.Time.GetPeriodNumFromId Dim yearNumber As Short = TimeDimHelper.GetSubComponentsFromName(timePeriod).Year Dim currScenario As String = api.Pov.Scenario.Name Dim currCons As ViewMember = api.Scenario.GetConsolidationView() Dim localCurrency As String = api.pov.Cons.Name Dim conversionMonth As String = args.CustomCalculateA
Hello, Im tryin to derive few rows like this:E#[*]=HQ_MANTUGR:A#[R69204ALLOC]=R79204ALLOC:U7#[MREA01]=AREA01:U8#[EUR]=Noneis there any otpion i can use to tell the system to replace only the "6" in the account name R69204ALLOC by 7 to get R79204ALLOC and the "M" in the UD7 Name by A to get AREA01 ? if this requires a business rule and you have one exemple please share it with me 🙂 thanks for you help
So this seems like it should be easy, and still may be, but it has me stumpt. If I know the name of a cube, say "Houston" from Golftream, how can I determine within a business rule what Attribute and Value dimensions that cube has active for its various scenario types? So in this example, for the Actual sceanrio type, Houston only has Attribute1 active with an alias of "InvoiceNo". I can not figure out where to find this information. I looked at both the Cube and CubeInfo classes but nothing jumps out at me. It seems like CubeInfo has everything else but this information so maybe it is there but just not sure what property is is buried in. Has anyone had to get this information for a business rule before?
Can you please provide a snippet of Finance Business Rule code showing allocation of data based on a driver.
Is there a way to download OneStream Libraries to GitHub? We need to use gitHub for version controlling of the business rules.
We can write a business rule to export data from the OneStream backend/custom tables, but is there an out of the box solution to do so? The Data Table Manager marketplace solution also has the option to export data, but only up to 5000 records.
Hi everyone. i want to make the following calculate, but i want to make the one of all the departments and all the projects, but when i put it as .base it gives me error in the calculate, then i would like to know how i can solve it or in what other way it should be made so that it works correctly.an image of my step configuration api.Data.Calculate("CB#[HLFPLN]:E#"& entity &":S#[" & scenario & "]:T#" & time & ":A#cra_639950:F#InCostsAllocation:O#Forms:I#11201_11207:U1#ALL_DEPARTMENTS.Base:U2#P0000:U3#LOCAL_DATA:U4#ALL_PROJECTS:U5#None:U6#None:U7#None:U8#None = (E#11201_11207:S#[ForecastAllocation]:T#" & time & ":A#cra_ALLOCPRCT:F#None:O#Import:I#11201_11257:U1#ALL_DEPARTMENTS.Base:U2#P0000:U3#LOCAL_DATA:U4#ALL_PROJECTS:U5#None:U6#None:U7#None:U8#None)*(E#11201_11207:S#[" & scenario & "]:T#" & time & ":A#cra_639950:F#None:O#Top:I#None:U1#ALL_DEPARTMENTS.Base:U2#P0000:U3#LOCAL_DATA:U4#ALL_PROJECTS:U5#None:U6#None:U7#None:U8#None)",False)
I am trying to get dimension info using a member name. I came across the function, Dim nValue As Integer = BRApi.Finance.Members.GetDimIdFromMemberId(si, dimTypeId, memberId), but it requires dimTypeId. Is it possible to get dimTypeId using member name
Is it possible to create a custom user prompt / error message to pop up when a user tries to complete a Form and triggers a FormsEventHandler? I have tried throwing an Exception as below but the problem is it includes additional information about the business rule error that is irrelevant to the end user and could cause confusion. Is it possible to create a cleaner message that just contains the message itself.
Dear all, Is there any file containing the detail/syntax of the functions? I'm thinking for instance in an XML file or something similar. This is a similar question already posted, but I'd like to know if there's an update. Solved: documentation/list of functions in OneStream Namespaces/Libraries - OneStream Community (onestreamsoftware.com) Thank you in advance. Carlos
Hi All, we are trying to check the data before deleting a member, the issue is with derived data if we have derived data in that member not able to track it. while deleting the member it show having data but in real there is no data only 0 derived is there not sure how to handle this. Please let me know if any more details required.
Hello, I'm tying to read files from an azure fileshare mount as a disc unit in the same server where SIC is installed. I guess this has to works as a disc unit C:/ but the business rule throws an execution error Could not find a part of the path 'z:\\Temp\\zw_2023.csv'. this is part of the code that I'm using Public Sub CleanupData(ByVal si As SessionInfo)Dim objRemoteRequestResultDto As RemoteRequestResultDto = BRApi.Utilities.ExecRemoteGatewayBusinessRule(si, "TestFile", Nothing, "remote_test", "DeleteOldFileData")If (objRemoteRequestResultDto.RemoteResultStatus = RemoteMessageResultType.RunOperationReturnObject) ThenDim result As Booleanresult = objRemoteRequestResultDto.ObjectResultValueDim objRemoteRequestResultDtoCached As RemoteRequestResultDto = BRApi.Utilities.ExecRemoteGatewayCachedBusinessRule(si, "TestFile", Nothing, "remote_test", 90) BRApi.ErrorLog.LogMessage(si, "File Deleted: " & result) ElseIf (Not (objRemoteRequestResultDto.remoteException Is Nothing))
Hi Everyone. I want to perform a subtraction of columns 1 and 2, I did it with the code below, but I see that it affects my performance too much, so I would like to know what other option I can do to do something like this without affecting the performance too much, I added that it waits 600 seconds but it still takes too much time. GetDataCell(T#WFYear-|!PLN_ParamNextFcstYear!|):Name(test) (I am subtracting the current year's values from the next year's values.)
Hello, I'm having a lot of difficulties in trying to connect to my local gateway to execute a business rule that would insert values from a datatable into a local sql table. The examples providing in the documentation look incomplete or contain errors. My gateway is called : abc_gateway and redirect to my local machine which is online I have a custom database server connection which is redirected towards my local machine 'abc_local' My business rule that will invoke the BR on my local machine (this business rule currently sits in a workspace assembly) : Dim GatewayName As String = "abc_gateway" ' Name of the GatewayDim SICFunctionName As String = "SIC_Functions" ' Name of the SIC Function to runDim RemoteMethodName As String = "RunOperation" ' Name of the method inside the SIC Function that will be called.Dim resultdatatable = BRApi.Utilities.ExecRemoteGatewayBusinessRule(si, SICFunctionName, Nothing, GatewayName, RemoteMethodName) Then I have a smart integration function in
Hi Community,I am building a Business Rule which will pull data base level data for a specific parent under the Account dimension.I am using FdxExecuteDataUnit to pull data from the cube, but I am not able to add Parent.Base as Account filter in the parameter. It's seem like I am only able to put a member directly and not and .Base member in the filter. Dim sFilter As String = "Origin='Import' and Flow='EndBal_Input'"BRApi.Import.Data.FdxExecuteDataUnit(si, sCubeName, $"E#{sEntFilter},E#82,E#85", sCons, scenarioId, $"S#{sScenario}", $"T#{vPeriod}", sView, True, sFilter, 4, False) Thank
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.