We are trying to expire Contract OoS lines where the contract still continues, but has been ended for a specific line, through the API.
This works fine manually, but when trying to set this through the API, we get the error message:
Error Message:: You selected an Expiration Date that exceeds the length of the original contract. The new Expiration Date should fall between the contract Start Date and the current Expiration Date.
This is despite the fact that the date that I am specifying falls between the start and end date for both the contract header and the contract line.
Am I doing something wrong? Formatting the date incorrectly?
<root>
<session email="" alias="">
<state bc_name="CustomerContract">
<action name="declare">
<attribute dtype="int" in_var="" out_var="" name="ccontlID" value="" />
</action>
<action name="getdescrtableex">
<attribute out_var="ccontlID" table_name="ccontl" element_name="ccontl_id" search_criteria="item_id = '489593' and cconth_id = 'N-296376'" default_value="" />
</action>
<action name="data">
<main>
<row number="1">
<to_date in_var="" out_var="">
<!tCDATA/2023-01-01]]>
</to_date>
</row>
</main>
</action>
</state>
</session>
</root>