Details
Description
When running the OFBiz Setup Application, the following exception was thrown.
The Following Errors Occurred:
ERROR: Could not complete the Create Customer file:/E:/OfBiz14.12/applications/commonext/script/org/ofbiz/setup/SetupEvents.xml#createOrganization process [problem invoking the [createCustomTimePeriod] service with the map named [customTimePeriodCtx] containing [
]: Type check failed for field [createCustomTimePeriod.fromDate]; expected type is [java.sql.Timestamp]; actual type is [java.sql.Date]Type check failed for field [createCustomTimePeriod.thruDate]; expected type is [java.sql.Timestamp]; actual type is [java.sql.Date]]
•
In \applications\commonext\script\org\ofbiz\setup\SetupEvents.xml
250 <set field="customTimePeriodCtx.fromDate" from-field="fromDateStamp" type="Date"/>
251 <set field="customTimePeriodCtx.thruDate" value="${groovy:org.ofbiz.base.util.UtilDateTime.toSqlDate(endMonth ,endDate , curYearString)}" type="Date"/>
Need to change to:
250 <set field="customTimePeriodCtx.fromDate" from-field="fromDateStamp" type="java.sql.Timestamp"/>
251 <set field="customTimePeriodCtx.thruDate" value="${groovy:org.ofbiz.base.util.UtilDateTime.toSqlDate(endMonth ,endDate , curYearString)}" type="java.sql.Timestamp"/>