Hallo zusammen,
ich verstehe nur bedingt warum ich diese Fehlermeldung bekomme.
Er kann den Wert nicht casten , aber warum?
ERROR 24.06.2020 16:40:53.148{g-node=8446762} (de.espirit.firstspirit.generate.SiteProduction): cannot set select parameter 'datefilter - Cannot cast java.math.BigInteger to java.util.Date.
In einer reinen Abfrage funktioniert das Ganze 1A.
Server-Version: 2019-07
-------------------Funktioniert in Abfrage--------------------------------
<QUERY entityType="News">
<FILTERPARAM parameter="datefilter" datatype="java.util.Date" value="0270132197000"/>
<FILTERPARAM parameter="modified_datefilter" datatype="java.util.Date" value="1288625397000"/>
<FILTERPARAM parameter="News_ID" datatype="java.lang.Long" value="18435"/>
<OR>
<AND>
<EQ attribute="fs_id" parameter="News_ID"/>
<LIKE attribute="publication_flag" datatype="java.lang.Boolean" value="true"/>
</AND>
<AND>
<LTE attribute="publication_date" parameter="datefilter"/>
<LIKE attribute="publication_flag" datatype="java.lang.Boolean" value="true"/>
<GT attribute="fs_id" datatype="java.lang.Long" value="0"/>
<LTE attribute="fs_valid_from" parameter="modified_datefilter"/>
</AND>
</OR>
</QUERY>
-------------------Funktioniert in Abfrage--------------------------------
-------------------Funktioniert nicht in einem Script--------------------------------
<CMS_HEADER>
<CMS_FUNCTION name="contentSelect" resultname="frNews">
<CMS_PARAM name="schema" value="FS_Tables"/>
<CMS_VALUE_PARAM name="datefilter" value="0"/>
<CMS_VALUE_PARAM name="modified_datefilter" value="0"/>
<CMS_VALUE_PARAM name="News_ID" value="18435"/>
<QUERY entityType="News">
<FILTERPARAM parameter="datefilter" datatype="java.util.Date" value="0270132197000"/>
<FILTERPARAM parameter="modified_datefilter" datatype="java.util.Date" value="1288625397000"/>
<FILTERPARAM parameter="News_ID" datatype="java.lang.Long" value="18435"/>
<OR>
<AND>
<EQ attribute="fs_id" parameter="News_ID"/>
<LIKE attribute="publication_flag" datatype="java.lang.Boolean" value="true"/>
</AND>
<AND>
<LTE attribute="publication_date" parameter="datefilter"/>
<LIKE attribute="publication_flag" datatype="java.lang.Boolean" value="true"/>
<GT attribute="fs_id" datatype="java.lang.Long" value="0"/>
<LTE attribute="fs_valid_from" parameter="modified_datefilter"/>
</AND>
</OR>
</QUERY>
</CMS_FUNCTION></CMS_HEADER>
-------------------Funktioniert nicht in einem Script--------------------------------
Kann mir einer erkären warum und wie ich es machen muss?
Danke fürs lesen