The OneStream Community is temporarily frozen until June 29th due to the ongoing maintenance. Please read the blog post here to learn more.
Forum Discussion
Sweez
1 year agoContributor
Parameter Value Not Resolved
I have an issue that I have seen before I never figured out so want to see if others have encountered this and figure out what I am doing wrong. I have a data adapter that calls a Dashboard Dataset ...
- 1 year ago
It is related to the processing order of the components, data adapters, and parameters. In your case, the parameter „someotherparameter“ is needed to build the data adapter, but it doesn’t exist yet. And the query fails.
The solution is easy, you just need to test, if the parameter already exists, and exit the business rule if not.
I‘m not at my desk, so I can‘t post a sample.
ChristianW
OneStream Employee
1 year agoIt is related to the processing order of the components, data adapters, and parameters. In your case, the parameter „someotherparameter“ is needed to build the data adapter, but it doesn’t exist yet. And the query fails.
The solution is easy, you just need to test, if the parameter already exists, and exit the business rule if not.
I‘m not at my desk, so I can‘t post a sample.
ChristianW
OneStream Employee
1 year agoI'm using this functions
In C#:
public bool UnresolvedParameters(Dictionary<string, string> nameValuePairs)
{
foreach (KeyValuePair<string, string> kvp in nameValuePairs)
{
if ((StringHelper.DoesStringContainCustomSubstVarsOrSubstVarStringFunctions(kvp.Value)))
return true;
}
return false;
}
or in VB:
Public Function UnresolvedParameters(nameValuePairs As Dictionary(Of String, String)) As Boolean
For Each kvp In nameValuePairs
If StringHelper.DoesStringContainCustomSubstVarsOrSubstVarStringFunctions(kvp.Value) Then Return True
Next
Return False
End Function
Related Content
- 2 years ago
- 2 years ago