You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on the documentation available at Calculatedcontenttemplate, we can choose to use JmesPath expression language instead JSON Path language. However we see this is not working with the data mapper tool.
We feel there are multiple issues around the data mapper tool
JmesPath expressions are not working, also tried the custom function fromUnixTimestampMs mentioned in fromUnixTimestampMs
Matched Token example provided in the documentation is not working.
3. If the expressions have AND operator (**&&**), it is being escaped to **&&** everytime the template is saved and reloaded. However the tool fails to evaluate the expressions if the && operator is escaped
Data mapper tool is always treating the template type as JSON Path, even if we use Jmes expressions.
The text was updated successfully, but these errors were encountered:
@HariKorrapati thank you for the feedback. Currently, as you noted, the DataMapper tool hasn't been updated to support CalculatedContent yet. It is in our backlog and something we in the process of prioritizing.
While the data-mapper tool may not support the CalculatedContent yet, I noticed that there are test cases around CalculatedContent template and they do work fine. However when we use the templates given in test cases on server, we are getting the below error Exception while executing function: NormalizeDeviceData One or more errors occurred. (Unable to extract required value for [DeviceIdExpression] using $.Body.deviceId)
Is there anything we are missing?
References:
Test Class: CalculatedFunctionContentTemplateDocumentationTests
Test Case: MultipleMatches_And_UsingParentScope_Test
Based on the documentation available at Calculatedcontenttemplate, we can choose to use JmesPath expression language instead JSON Path language. However we see this is not working with the data mapper tool.
We feel there are multiple issues around the data mapper tool
3. If the expressions have AND operator (**&&**), it is being escaped to **&&** everytime the template is saved and reloaded. However the tool fails to evaluate the expressions if the && operator is escaped
The text was updated successfully, but these errors were encountered: