Error in DataSource Dynamic Condition | Community
Skip to main content
Level 3
February 6, 2024
Solved

Error in DataSource Dynamic Condition

  • February 6, 2024
  • 1 reply
  • 587 views

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.

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Anuhya-Y

@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.

1 reply

Anuhya-Y
Community Advisor
Anuhya-YCommunity AdvisorAccepted solution
Community Advisor
February 6, 2024

@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.