Conditional Mapping Expression Error
See original GitHub issueDescription
Hey I encountered this behaviour in Syndesis that conditional mapping are not working for me. I get this strange error after the deployment: TypeError: Cannot read property 'value' of undefined
. If I deploy the app and go to the result I would excpect to get true
or false
values. Instead it looks like this:
I if query the SQL statement in the Oracle SQL Developer it looks like this:
I tried to setup conditional mapping like described here: https://access.redhat.com/documentation/en-us/red_hat_fuse/7.5/html/integrating_applications_with_fuse_online/mapping-data_ug
Mapping:
Error after deployment:
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Why am I getting a syntax error for this conditional statement?
You're getting the SyntaxError because you're using a conditional expression without supplying the else clause which is mandatory.
Read more >PJ34238: CONDITIONAL EXPRESSION IN P8 PROPERTY ... - IBM
In the P8 3.x capture task, configure one of the P8 properties to use a conditional expression: Configure it the same way as...
Read more >People Planning Conditional Expression Error - OneStream ...
Hello,. We recently updated our people planning version and our calculate plan button is no longer working. We didn't make any changes to...
Read more >Condition expressions - Amazon DynamoDB
Use a condition expression in DynamoDB to indicate the conditions under ... DynamoDB returns the following error message: The conditional request failed ....
Read more >How to Conditionally Map an Attribute Based on String Contents
Applies To. Okta Expression Language. Profile Editor. Steps. The need often arises where attributes must be mapped based on the string contents of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @SvenC56!
OK let’s debug - here is what I got so far. The error message
Unable to map expression index "0" to field node.
means an array of source field in the MappingModel is empty in UI code.Here is a mapping definition extracted from Syndesis integration https://gist.github.com/igarashitm/1ea278b05e26cc3c9a46a18a8b819b1c
I found that the source field
/<>/ANZAHL_RUECKMUST
is placed underinputField
, but not ininputFieldGroup
https://gist.github.com/igarashitm/1ea278b05e26cc3c9a46a18a8b819b1c#file-atlasmapping-1918-json-L24-L39 I wonder if it prevents from populating source fields properly for expression case.Hi @igarashitm I’m using Syndesis
1.9.0-20200402
. Attached you find the redacted export. I hope it helps. https://svencieslok-my.sharepoint.com/:u:/g/personal/mail_svencieslok_de/EZd4wM8cPflGoT9xwTA34aMBZ-DimEKQneurAWz9DxrsJg?e=5bBKKH