DataMapper tool not evaluating JmesPath expressions / MatchedTokens
HariKorrapati opened this issue · 3 comments
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.
- Data mapper tool is always treating the template type as JSON Path, even if we use Jmes expressions.
@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.
Thanks @dustinburson for the response.
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