Itgenprr002 The value of the parameter named ‘:w2dctxyearxstartxactive’ must match the data type ‘string’. The value currently has the data type ‘Int32’
Replies happen on the forum.
Go to sourceQuestion
For request ID 0HNPUA9HR36OM:00000003, we receive the following message:
itgenprr002 The value of the parameter named ‘:w2dctxyearxstartxactive’ must match the data type ‘string’. The value currently has the data type ‘Int32’. Please ensure that the data types of the metadata and actual values match.
This message has been appearing since Invantive App Online was upgraded ](https://forums.invantive.com/t/upgrade-invantive-app-online-van-26-0-naar-27-0/7011) from 26.0 to 27.0.
It appears to be related to the following PSQL query behind a website:
for r_ilt in
( select psc.dct_year_start_active
from oa_party_statistics@oa psc
where psc.pty_url_segment = l_pty_url_segment
order
by psc.dct_year_start_active desc
)
loop
l_position := l_position + 1;
cloud_http.append_to_response_body_text
( case when l_position > 1 then ',' else '' end
|| '{"@type":"ListItem","position":' || to_char(l_position)
|| ',"name":' || replace(replace(jsonencode(l_pty_name || ' ' || to_char(r_ilt.dct_year_start_active)), '<', '\u003c'), '>', '\u003e')
|| ',"url":' || replace(replace(jsonencode(l_base_path_url || '/' || l_language_code || '/documents/' || l_pty_url_segment || '/' || to_char(r_ilt.dct_year_start_active)), '<', '\u003c'), '>', '\u003e')
|| '}'
);
end loop;
How can we resolve or improve this?
Accepted answer
A fix has been implemented in version 27.0.91, which resolves this issue. This has now been deployed on Invantive App Online.