SQL clause using WHERE with list of string

Hi! I´m trying to do the following query with the "query database" smart service:

UPDATE CPF_LINEAS_PEDIDO
SET FACTURADA = true
where ID_PEDIDO = ac!pedido and MATERIAL = ac!Material

The variable ac!Material can be multiple (f.example Material 1, Material 2). This is because in a previous step in the process model, the user can enter several rows.

Because of using a list of string in the clause "WHERE" (I´m using it as a filter), I think I´m returning the following error:

How can I fix this? Thanks a lot!

  Discussion posts and replies are publicly visible

Parents Reply Children
  • I solved the error message by not declaring the variable as "multiple" (it is a list of string).

    But the fact is that the query is not updating my database although it has no errors and the process model runs ok...

    In this pic, you can see the value that ac!Material adquires (list of string):

    And this is how I configured my ac!Material:

    My query is:

    Please, anyone knows what is happening here? Why isnt the filter by a list of string working?

    I would be so grateful with any help to fix it 

    Thanks a lot