ToDate Service
-
- Posts: 47
- Joined: September 7th, 2021, 1:04 pm
- Contact:
ToDate Service
We are receiving error messages in our PO Approval application on the ToDate service, which causes the page not to load. I saw there was a product announcement about the ToDate service being changed, so this change impacted current objects?
word count: 40
Tags:
-
- Posts: 572
- Joined: August 26th, 2021, 9:56 am
- Contact:
Re: ToDate Service
Hello Kathy,
The DateTime changes are currently just in DV and QA while PD should be unaffected by this change. Can you send us the error you are getting and the service XML?
Thanks
The DateTime changes are currently just in DV and QA while PD should be unaffected by this change. Can you send us the error you are getting and the service XML?
Thanks
word count: 34
-
- Posts: 47
- Joined: September 7th, 2021, 1:04 pm
- Contact:
Re: ToDate Service
Hi Justin,
Yes, this is happening in DV and PY now. This is the error message (partial)
<Result jsonArray="true">
<Message>Failed to parse PHTRDJ Date: 4/4/2023 3:18:35 PM into Format: JDEDate</Message>
<Type>System.Exception</Type>
<ServiceException>True</ServiceException>
<Trace> at KRise.EASYProcess.Utils.EPDateTime.setDateTime() in C:\EASYProcess\EPSources\Git\EASYProcess5_RunTime\Utility\EPDateTime.cs:line 290
at KRise.EASYProcess.Utils.EPDateTime..ctor(String name, String presetDateTime, String format, String timeZone, String culture, EPContext context, String date, Boolean useCulture) in C:\EASYProcess\EPSources\Git\EASYProcess5_RunTime\Utility\EPDateTime.cs:line 79
at KRise.EASYProcess.Workshop.DataConversionWorkshop.Services.ToDate(Service service) in C:\EASYProcess\EPSources\Git\EASYProcess5_RunTime\DataConversionWorkshop\Services.cs:line 225</Trace>
<ServiceName>ToDate</ServiceName>...
Yes, this is happening in DV and PY now. This is the error message (partial)
<Result jsonArray="true">
<Message>Failed to parse PHTRDJ Date: 4/4/2023 3:18:35 PM into Format: JDEDate</Message>
<Type>System.Exception</Type>
<ServiceException>True</ServiceException>
<Trace> at KRise.EASYProcess.Utils.EPDateTime.setDateTime() in C:\EASYProcess\EPSources\Git\EASYProcess5_RunTime\Utility\EPDateTime.cs:line 290
at KRise.EASYProcess.Utils.EPDateTime..ctor(String name, String presetDateTime, String format, String timeZone, String culture, EPContext context, String date, Boolean useCulture) in C:\EASYProcess\EPSources\Git\EASYProcess5_RunTime\Utility\EPDateTime.cs:line 79
at KRise.EASYProcess.Workshop.DataConversionWorkshop.Services.ToDate(Service service) in C:\EASYProcess\EPSources\Git\EASYProcess5_RunTime\DataConversionWorkshop\Services.cs:line 225</Trace>
<ServiceName>ToDate</ServiceName>...
word count: 122
-
- Posts: 329
- Joined: August 26th, 2021, 9:18 am
- Contact:
Re: ToDate Service
There was a change to the ToDate and CurrentDate services. From the upgrade post:
DesignTime Revision 2561 And RunTime Revision 1180: Date Time Logic Improvement:
The format date time logic has been split into formats and presets allowing for more control over showing and manipulating date times in EASYProcess. On the CurrentDate and ToDate services the to/from format nodes have been split into format and preset with all existing static values being set to the correct node. Dynamic values will stay in the format node and work as they have been, but this will be deprecated at a later date. The Named TimeZones And Formats page has been renamed to Preset Date Times and now allows the setup of user override presets, which were automatic before, for TimeZones, Cultures, and Format, which can be set to either the user's LongDatePattern or ShortDatePattern. This page previously referenced the Connector application for the values, but now has been changed to reference each individual application.
The upgrade should have handled any necessary conversion if there were spots where it would not have been able to we should have detected that and let you know that it would need to be manually fixed but that fix would have a month to happen and in the mean time the services should have continued to work. If you were not notified then there should be nothing you need to do regarding that upgrade.
The error you are getting is one I would expect. Date: 4/4/2023 3:18:35 PM is not a FromFormat: JDEDate. A JDEDate is number which is why it cannot parse that value. Are those two values the expected combination to be passed into the service? Is it getting populated correctly? One would need to change to sync up with the other.
DesignTime Revision 2561 And RunTime Revision 1180: Date Time Logic Improvement:
The format date time logic has been split into formats and presets allowing for more control over showing and manipulating date times in EASYProcess. On the CurrentDate and ToDate services the to/from format nodes have been split into format and preset with all existing static values being set to the correct node. Dynamic values will stay in the format node and work as they have been, but this will be deprecated at a later date. The Named TimeZones And Formats page has been renamed to Preset Date Times and now allows the setup of user override presets, which were automatic before, for TimeZones, Cultures, and Format, which can be set to either the user's LongDatePattern or ShortDatePattern. This page previously referenced the Connector application for the values, but now has been changed to reference each individual application.
The upgrade should have handled any necessary conversion if there were spots where it would not have been able to we should have detected that and let you know that it would need to be manually fixed but that fix would have a month to happen and in the mean time the services should have continued to work. If you were not notified then there should be nothing you need to do regarding that upgrade.
The error you are getting is one I would expect. Date: 4/4/2023 3:18:35 PM is not a FromFormat: JDEDate. A JDEDate is number which is why it cannot parse that value. Are those two values the expected combination to be passed into the service? Is it getting populated correctly? One would need to change to sync up with the other.
word count: 303
-
- Posts: 47
- Joined: September 7th, 2021, 1:04 pm
- Contact:
Re: ToDate Service
Steve,
This application is one which K-Rise developed and we made changes to. I would assume the ToDate values are the expected values to be passed in. It was working before the change to the service and now it is not. We need it fixed as it now does not display the page, so the application no longer works.
Kathy
This application is one which K-Rise developed and we made changes to. I would assume the ToDate values are the expected values to be passed in. It was working before the change to the service and now it is not. We need it fixed as it now does not display the page, so the application no longer works.
Kathy
word count: 61
-
- Posts: 572
- Joined: August 26th, 2021, 9:56 am
- Contact:
Re: ToDate Service
Kathy,
After looking more into your issue it seems that the process failed to build after the change. Can you try building it and running the process again?
Thanks,
After looking more into your issue it seems that the process failed to build after the change. Can you try building it and running the process again?
Thanks,
word count: 29
-
- Posts: 47
- Joined: September 7th, 2021, 1:04 pm
- Contact: