Expand my Community achievements bar.

SOLVED

Error in DataSource Dynamic Condition

Avatar

Level 3

Hi Team,

I have created an external datasource for weather API, in the dynamic part I passed the param as "q" wherein my intention is to pass unitary event city value in condition. However, I am getting an error saying "custom fieldgroup: invalid param 'q' definition for '76c9080d-xxxx-xx-9071-xxxxx': 'q' data type mismatch (param type='string', mapped type='decimal')" Attaching error screenshot for reference.

 

Code in Condition activity for dynamic value
#{testingweather.weatherDetails.main.temp, params:{q:@event{MM_customEventXX_Order.homeAddress.city}}}


Any help would be appreciated.

 

mustufam5967803_1-1707223708189.png

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@mustufam5967803 error shows that q param which is used in the API is of type decimal, it would expect decimal value to be passed when using it in journey, instead of that a string value (City) was passed.  make sure the datatype should  match between incoming and receiving ends.

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

@mustufam5967803 error shows that q param which is used in the API is of type decimal, it would expect decimal value to be passed when using it in journey, instead of that a string value (City) was passed.  make sure the datatype should  match between incoming and receiving ends.