please, I have in Oracle table this texts (as 2 records)

`"Sample text with replace parameter %1%"
"You reached 90% of your limit"`

I need replace %1% with specific text from input parameter in Oracle Function. In fact, I can have more than just one replace parameters. I have also record with `"Replace this %12% with real value"`

This functionality I have programmed:

```
IF poc > 0 THEN
  FOR i in 1 .. poc LOOP
    p     := get_param(mString => mbody);
      mbody := replace(mbody,
      '%' || p || '%', parameters(to_number(p, '99')));
  END LOOP;
END IF;

```

But in this case I have problem with text number 2. This functionality trying replace "90%" also and I then I get this error:

`ORA-06502: PL/SQL: numeric or value error: NULL index table key value`

It's a possible to avoid try replace "90%"? Many thanks for advice.

Best regards

PS: Oracle version: 10g (OCI Version: 10.2)