"9999-12-31T23:59:00Z" not parsing as valid ISO 8601 DateTime
See original GitHub issueI have a template with a setting ( which was exported from Azure Resource Manager btw.) I don’t believe this warning is valid as that is a valid iso datetime as far as I can tell. I’m not sure about the string type error.
{
"resource": "/c:/Projects//powershell/ServicePlan-Template.json",
"owner": "ARM Template Language Server diagnostics",
"severity": 4,
"message": "Value must conform to exactly one of the associated schemas\r\n| Value must be a valid ISO 8601 datetime at #/resources/1/properties/siteConfig/requestTracingExpirationTime\r\n| or\r\n| Value must be one of the following types: string",
"source": "arm-template (schema)",
"startLineNumber": 138,
"startColumn": 11,
"endLineNumber": 138,
"endColumn": 23
}
Section from Template
... "numberOfWorkers": 1, "defaultDocuments": [], "netFrameworkVersion": "v4.0", "requestTracingEnabled": true, "requestTracingExpirationTime": "9999-12-31T23:59:00Z", "remoteDebuggingEnabled": false, "httpLoggingEnabled": true, "logsDirectorySizeLimit": 35, ...
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
Ionic Please provide a valid ISO 8601 datetime format ...
That's not a good idea as the string isn't in a format supported by ECMA-262 so parsing is implementation dependent.
Read more >ISO8601DateFormatter fails to parse a valid ISO-8601 date
Although, 2017-09-04T04:14:37.000Z is a valid ISO8601-formatted date, ISO8601DateFormatter cannot parse it. Seemingly, it happens when the ...
Read more >Error when trying to parse an actually ISO8601 valid date string
Hi Nicolas,. You're right, that error message is misleading. fromIsoString is meant to parse only ISO 8601 dates, not dates with times.
Read more >Working with Dates and Times by Using the ISO 8601 Basic ...
When you specify a datetime value, an uppercase T is the required delimiter between the date and time. Some of the ISO 8601...
Read more >Datetime string must match ISO 8601 format. Can't figure it out.
... column '17747': 'In function 'formatDateTime', the value provided for date time string '' was not valid. The datetime string must match ISO...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Github_template.json.txt
Here is the template
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!