Chart DateTime Format Parse error



@ref="CandleChart"
UseGroupingSeparator="true"
EnableCanvas="true"
SelectionMode="SelectionMode.Point"
Height="100%"
Width="100%"
EnableAnimation="false">
ValueType="Syncfusion.Blazor.Charts.ValueType.DateTime">
Enable="true" />
Width="0" />

DataSource="@ChartData"
Name="TrainingData"
BearFillColor="#2ecd71"
BullFillColor="#e74c3d"
XName="@nameof(Candle.TimestampUtc)"
High="@nameof(Candle.High)"
Low="@nameof(Candle.Low)"
Open="@nameof(Candle.Open)"
Close="@nameof(Candle.Close)"
Type="ChartSeriesType.Candle">
Enable="true" />


when i debug i see that the DateTime format of TimestampUtc is MM/dd/yyyy in the debugger, when i look at my mac osx regional settings i have set it to dd.MM.yyyy as this is the locations regional setting for me.
Then i get this:

Uncaught (in promise) TypeError: Cannot read property 'replace' of undefined
    at Object.u [as getResultantPattern] (syncfusion-blazor.min.js:1)
    at Function.t.dateParser (syncfusion-blazor.min.js:1)
    at t.getDateParser (syncfusion-blazor.min.js:1)
    at t.processJsonData (charts-0a1cee.min.js:1)
    at t.dataManagerSuccess (charts-0a1cee.min.js:1)
    at charts-0a1cee.min.js:1

If the DateTime format in the debuuger shows dd.MM.yyyy on my windows with same regional settings it works.

if i set my mac osx reagional settings to correlate to the MM/dd/yyyy Format, i still get this error in the browser when i try to view the chart.


one more test:

on my mac i have added the following code to the methode that updates the data for the chart and then sets a StateHasChanged(), i added the following

try {
CultureInfo culture = (CultureInfo)CultureInfo.CurrentCulture.Clone();
culture.DateTimeFormat.ShortDatePattern = "dd.MM.yyyy";
culture.DateTimeFormat.LongDatePattern = "dd.MM.yyyy hh:mm:ss";
Thread.CurrentThread.CurrentCulture = culture;
}
catch(Exception exception){
}

this changes the DateTime to the format of dd.MM.yyyy this was verified by the debugger, but i still get the error in the browser as above.

my mac osx regional settings are set to dd.MM.yyyy

28 Replies

DG Durga Gopalakrishnan Syncfusion Team May 11, 2020 12:54 PM UTC

Hi Andreas, 

We are validating your reported scenario. We will update the status within 2 business days(13th May, 2020). We appreciate your patience until then. 

Regards, 
Durga G 



AN Andreas May 17, 2020 11:20 AM UTC

hello, 

have you been able to reproduce the issue or find an error in my example?


DG Durga Gopalakrishnan Syncfusion Team May 19, 2020 03:36 PM UTC

Hi Andreas, 

We regret for delay in response. Since we have faced some technical difficulties while testing the reported scenario, we are unable to provide an update earlier. Now, we were able to reproduce reported issue. We have considered this as a bug and logged a defect report. This fix will be available in our upcoming weekly patch release which is scheduled to be rolled out on 2nd June, 2020. We appreciate your patience until then. You can keep track of the bug from the feedback portal below.  
  
Feedback Link 
  
The provided feedback link is private, and you need to login to view this feedback. 
  
If you have any more specification/precise replication procedure or a scenario to be tested, you can add it as a comment in the portal. 

Regards, 
Durga G 



DG Durga Gopalakrishnan Syncfusion Team June 4, 2020 12:14 PM UTC

Hi Andreas, 

Sorry for inconvenience. 

We have fixed the reported issue, but we are testing this patch in all other scenarios. We will include the fix in our upcoming volume 2 main release which is expected to be rolled out at end of June, 2020. We appreciate your patience until then. 

Please revert us, if you have any concerns. 

Regards, 
Durga G 



DG Durga Gopalakrishnan Syncfusion Team July 9, 2020 01:21 PM UTC

Hi Andreas, 

We are glad to announce that our Essential Studio 2020 Volume 2 release v18.2.0.44  is rolled out and is available for download under the following link. 


Feedback Link 

Sample 

Screenshot 

 

We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. 

Regards, 
Durga G


AN Andreas July 10, 2020 10:48 AM UTC

i have downloaded your sample and I'm still getting this error.

[Error] Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating 's.replace')
    l (syncfusion-blazor.min.js:1:52457)
    (anonymous function) (syncfusion-blazor.min.js:1:41351)
    (anonymous function) (chart-b58c64.min.js:1:96071)
    (anonymous function) (chart-b58c64.min.js:1:102414)
    promiseReactionJob

let me know if you need  more information


DG Durga Gopalakrishnan Syncfusion Team July 13, 2020 12:33 PM UTC

Hi Andreas, 

We have validated your reported scenario. Since we are unaware of your exact scenario in which an issue is reproduced, please share the following information which will be more helpful for further analysis and provide you the solution sooner. 
  • Mac version.
  • Browser used to test the sample.
  • If it is chrome, share its version, else safari, share its version.
  
Kindly revert us, if you have any concerns. 
 
Regards, 
Durga G 



AN Andreas July 13, 2020 12:59 PM UTC

macOs Catalina Version 10.15.5
Prefered Language: English (UK)
Region: Austria
Calendar: Gregorian
Time format: 24hour Time

Tested in
Safari 13.1.1 (15609.2.9.1.2)
Chrome 83.0.4103.116 (64-bit)


DG Durga Gopalakrishnan Syncfusion Team July 14, 2020 04:11 PM UTC

Hi Andreas, 
  
We are configuring the machine based on your specified requirement. We will check this and update you to status within two business days(16th July, 2020). We appreciate your patience until then. 
  
Regards, 
Durga G


AN Andreas July 16, 2020 07:31 PM UTC

can you give me your settings as well and i'll try it with them if possible and see if it works then


DG Durga Gopalakrishnan Syncfusion Team July 19, 2020 04:46 PM UTC

Hi Andreas, 

Sorry for inconvenience. We are facing some technical difficulties while configuring the machine to specified versions. We have already ensured the fix in latest safari and chrome browser version. Can you please ensure once in that versions.  

Regards, 
Durga G 



AN Andreas July 19, 2020 05:52 PM UTC

I updated to the latest version of OSX and Chrome

Chrom: Version 84.0.4147.89 (Official Build) (64-bit)
OSX: 10.15.6 (19G73)
Syncfusion Versiion: <PackageReference Include="Syncfusion.Blazor" Version="18.2.0.45" />
dotnet: <TargetFramework>netcoreapp3.1TargetFramework>

Same regional settings as before

still the same error.

can you please give me your config settings so i can test it with your system configuration?



Uncaught (in promise) TypeError: Cannot read property 'replace' of undefined
    at Object.l [as getResultantPattern] (syncfusion-blazor.min.js:1)
    at Function.t.dateParser (syncfusion-blazor.min.js:1)
    at t.getDateParser (syncfusion-blazor.min.js:1)
    at t.processJsonData (chart-580d73.min.js:1)
    at t.dataManagerSuccess (chart-580d73.min.js:1)
    at chart-580d73.min.js:1
syncfusion-blazor.min.js:1 Uncaught TypeError: Cannot read property 'replace' of undefined
    at Object.l [as getResultantPattern] (syncfusion-blazor.min.js:1)
    at Function.t.dateParser (syncfusion-blazor.min.js:1)
    at t.getDateParser (syncfusion-blazor.min.js:1)
    at t.getActualRange (chart-580d73.min.js:1)
    at t.calculateRangeAndInterval (chart-580d73.min.js:1)
    at e.measureDefinition (chart-580d73.min.js:1)
    at e.measureColumnAxis (chart-580d73.min.js:1)
    at e.measureAxis (chart-580d73.min.js:1)
    at i.calculateBounds (chart-580d73.min.js:1)
    at i.refreshBound (chart-580d73.min.js:1)


DG Durga Gopalakrishnan Syncfusion Team July 20, 2020 09:53 AM UTC

Hi Andreas, 

We have fixed an issue and tested the fix in below machine and browser versions. Please ensure in these versions and revert us, if you are facing an issue again. 

macOS Catalina Version 10.15.3 
Google Chrome Version 83.0.4103.116 (Official Build) (64-bit) 
Safari  Version 13.0.5 (15608.5.11) 

Regards, 
Durga G


AN Andreas July 27, 2020 07:34 PM UTC

downgraded my mac to almost the same versions of yours

OSX: Catalina Version 10.15.3 
Chrom: Version 83.0.4103.61 (Official Build) (64-bit)

still same error...

i still think this error must me more related to regional settings the a version conflict.


please provide your regional settings so i can also try to change my settings according to yours and verify again.

Attachment: Screenshot_20200727_at_21.31.40_8f5930a7.zip


DG Durga Gopalakrishnan Syncfusion Team July 29, 2020 01:21 PM UTC

Hi Andreas, 

Sorry for delay in response. Please find the regional settings and browser versions in which we have ensured the fix. 

Mac version 
macOS Catalina Version 10.15.3  
Preferred Language: English (India) 
Region: India 
Calendar: Gregorian 
Time format: 12-Hour Time 

Browser versions 
Safari  Version 13.0.5 (15608.5.11) 
Google Chrome Version 83.0.4103.116 (Official Build) (64-bit) 

Kindly revert us, if you have any concerns. 

Regards, 
Durga G 



AN Andreas July 29, 2020 03:18 PM UTC

here is a new test with the settings you settings, unforgently it is still not working...

see the attached file

for the test the same example was used as provided before by you.

Attachment: Screenshot_20200729_at_5.15.55_PM_fec3553c.zip


DG Durga Gopalakrishnan Syncfusion Team August 3, 2020 01:56 PM UTC

Hi Andreas, 

We will discuss about the reported issue in an incident which created under direct trac account.  

Regards, 
Durga G 



RO Rob August 17, 2020 10:27 PM UTC

I have the same issue. The error is coming from the below method of the minified syncfusion-blazor.min.js with error: Uncaught TypeError: Cannot read property 'replace' of undefined. 

Im my case o="" so s is never set. I have marked the failing line in bold below and I am using v18.2.0.48 of the Syncfusion.Blazor package.  I get the same error in both Chrome (Version 84.0.4147.125 (Official Build) (64-bit)) and safari (Version 13.1.1 (15609.2.9.1.2))

From chrome debugger the parameter values were:
e = "full"r = {dayPeriods{…}dateSeperator"/"days{…}months{…}eras{…}}n = "dateTime"a = falseo = ""

function l(e, r, n, a, o) {     
                    var s,
                        u = n || "date";
                    if (o)
                        s = b({
                            skeleton: e
                        }, o).format || b({
                            skeleton: "d"
                        }, "en-US").format;
                    else {
                        if (-1 !== t.basicPatterns.indexOf(e)) {
                            if (s = i(u + "Formats." + e, r), "dateTime" === u) {
                                var l = i("dateFormats." + e, r),
                                    c = i("timeFormats." + e, r);
                                s = s.replace("{1}", l).replace("{0}", c)
                            }
                        } else
                            s = i("dateTimeFormats.availableFormats." + e, r);
                        f(s) && "yMd" === e && (s = "M/d/y")
                    }
                    return s
                }


DG Durga Gopalakrishnan Syncfusion Team August 18, 2020 02:35 PM UTC

Hi Rob, 
 
Greetings from Syncfusion. 
 
We have already logged a defect report for this issue. This fix will be available in our upcoming weekly patch release which is scheduled to be rolled out on 25th August, 2020. We appreciate your patience until then. You can keep track of the bug from the feedback portal below.   
   
   
The provided feedback link is private, and you need to login to view this feedback.  
   
If you have any more specification/precise replication procedure or a scenario to be tested, you can add it as a comment in the portal.  
 
Regards,  
Durga G 



DG Durga Gopalakrishnan Syncfusion Team August 25, 2020 02:23 PM UTC

Hi Rob, 
 
We are working on the reported issue. We will include the fix in our upcoming weekly patch release which is scheduled to be rolled out on 1st September, 2020. We appreciate your patience until then.  
 
Regards, 
Durga G  



DG Durga Gopalakrishnan Syncfusion Team September 2, 2020 08:09 AM UTC

Hi Rob, 

Sorry for inconvenience. We will include the fix for reported issue in our upcoming Volume 3 SP 1 release which is expected to rolled out at end of October, 2020. We appreciate your patience until then. 

Regards, 
Durga G 



RO Rob September 2, 2020 10:27 PM UTC

Hi Durga,

This is the third time this fix has been delayed. I do a large amount of my development on a mac and essentially cannot proceed until this issue is fixed. I therefore have two questions I would be grateful if you could answer:
  1. Why does this fix keep getting pushed back? Is it due to technical difficulties or is it simply priorities?
  2. Will this fix actually be available in the end of October release or will it be pushed back again?
Kind regards
Rob


DG Durga Gopalakrishnan Syncfusion Team September 3, 2020 01:17 PM UTC

Hi Rob, 
  
Sorry for delay in providing the fix. We are having some technical difficulties in checking this issue in Mac, so we are unable to provide fix on mentioned timeline. We will fix this issue and include the fix in our upcoming weekly patch release which is scheduled to be rolled out on 13th October, 2020. We appreciate your patience until then and this is not delayed further. 
  
Regards, 
Durga G 



AN Andreas October 23, 2020 07:29 AM UTC

i updated to 
18.3.0.41

the problem still exists...


DG Durga Gopalakrishnan Syncfusion Team October 28, 2020 08:38 AM UTC

Hi Andreas, 
  
Sorry for inconvenience. This fix will be available in our upcoming Volume 4 Main Release which is expected to be rolled out at end of December, 2020. We appreciate your patience until then.  
  
Regards, 
Durga G 



AN Andreas October 28, 2020 09:12 AM UTC

why is this yet again delayed? it is almost half a year now since the issue was reported.

please explain why this fix is getting delayed once again.


DG Durga Gopalakrishnan Syncfusion Team October 29, 2020 02:54 PM UTC

Hi Andreas, 

We regret for delay in providing the fix. We are working on reported issues on priority basis. We will surely consider this issue for Volume 4 Main Release and update you soon once it is available in online. We appreciate your patience until then and it can’t be delayed further. 

Regards, 
Durga G  



DG Durga Gopalakrishnan Syncfusion Team December 21, 2020 01:32 PM UTC

Hi Andreas,

We are glad to announce that our Essential Studio 2020 Volume 4 release v18.4.0.30 is rolled out and is available for download under the following link.



We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.

Regards,
Durga G


Loader.
Up arrow icon