Skip to main content

Hi everyone, please help me on the below issue. I am taking the MuleSoft.U Flow Design course and I have a free account. I'm not able to apply the transformations to the payload as the videos indicate. For example when trying to apply the upper transformation to a string, when I click Enter on the keyboard(as the video indicates), it only moves the carrier to the next line in that text box. It does not let me click Ok to apply the transformation. See the attached screenshot of the issue. I see there is an error message about a null, but I don't understand why it´s taking that string as a null value. PLEASE HELP ME! THANKS! :D

 

Upper transformation giving issue

 

3 answers
  1. Mar 29, 2018, 12:19 AM

    Hi @achaverri2

     

    To use upper function, `upper` + space + string. You have a null value for `value0.code`. Use default value to prevent this exception.

     

    Dataweave Script:

     

    %dw 1.0

    %output application/json

    %var value0 = {

    code: null

    }

    ---

    {

    airportCode: upper (value0.code default '')

    }

     

    Ryan Anthony Andal

     

    MuleSoft Forum Moderator

     

    Senior Integration Consultant

     

    WhiteSky Labs

     

    `Please report spam messages in the forum.`

0/9000