question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Conditional Mapping Expression Error

See original GitHub issue

Description

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:

image

I if query the SQL statement in the Oracle SQL Developer it looks like this: image

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: image

Error after deployment: image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
igarashitmcommented, Apr 2, 2020

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 under inputField, but not in inputFieldGroup 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.

1reaction
SvenC56commented, Apr 2, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found