-
-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timezone offsets cause a 'VS402625: Date must be increasing with each revision' error #975
Comments
Is there a solution for this? |
@bm-fez |
For me it solved the issue only for very specific cases, but most of them still are failing. |
@Alexander-Hjelm Do you have an idea for the area that's causing this issue? Will be happy to contribute and help solve the issue. In addition, do you recon why this suddenly started happening? It just started appearing very recently. |
@YoavLax @haim-saadia @bm-fez I can maybe mention that I have sometimes received the same error message in either of the following scenarios:
Sometimes these events could cause the events to be logged by Jira in the wrong order. Even if you inspect the issue History tab in Jira and compare the histories of multiple issues, you will see either of the following behaviors:
We have solved many of these cases with the FixRevisionDates() method, but it could be that there are still cases that need patching. Any more information that could be relevant for troubleshooting is much appreciated! The (rather annoying) workaround for now is to manually edit the .json files and bump the timestamp of the affected revisions by a second or so. |
I hit the same issue. Removed the timestamp with a small script but still have trouble that some revisions seems to have a timestamp that ist Not expected. Also i think, there ist a problem from the timestamp format. IT differs a little bit and months / days are Sometime missinterpreted. |
I have a sample that might be of help to create tests for this issue: [{
"Time": "2021-02-05T17:00:04.783+01:00",
"Index": 95,
//...
},
{
"Time": "2021-02-12T16:44:01.673+01:00",
"Index": 96,
//...
},
{
"Time": "2022-10-01T08:45:04.767+02:00",
"Index": 97,
//...
},
{
"Time": "2022-10-01T08:47:53.21+02:00",
"Index": 98,
//...
}]
|
The dates are strictly increasing, so it looks like the issue is when we get a mix (of offsets) as previously mentioned. |
Seems that there is an answer ... |
I had some luck removing the milliseconds from the Timestrings. |
We have done the following as a post processing steps of the exported "WiItem": for (var revision in item.Revisions)
{
revision.Time = revision.Time.ToUniversalTime();
} in order to avoid this issue. |
Describe the problem
I am current doing large scale migrated from an on premise Jira instance to Azure DevOps Services and have encountered a problem when saving some WI revisions. I see the error
VS402625: Date must be increasing with each revision
.Due to security restrictions, I cannot provide actual client logs, but have been able to reproduce the problem on a test instance (see details in repo section for how I did this)
To Reproduce
After some investigation of the exported Jira issue JSON files I have found the problem. It is down to the Time format on the revisions.
For the problem to occurs two conditions should be met
By editing the exported JSON file I can get the following results
Workaround
Given at the offset does not appear to be required (in my data in the UK) my workaround is to edit all the exported .JSON files and remove the time zone blocks i.e. remove the `+01:00' text in all revision time entries.
Once this was done my import worked without error
Analysis
The strange thing with this issue is that there appears to be no pattern as to whether there is a timezone +01:00 block on any given Jira issue revision time. Whether they are present varies even within a single exported Jira issue.
Also, worth noting, that in my client's exported JSON files that I have manually checked, where an offset is present, the revision time is correct before the application of the offset. So I am not sure why the offset is present.
Looking that the Jira export XML for an issue I can see that all the all the times have offsets, but whether they appear in the JSON depend on the user who did the revision. i.e. for my example
As the XML looks consistent, I suspect the problem lies in FixRevisionDatein the exporter. Unfortunately I cannot run a debug environment on my clients site at present.
I will try to build a test harness to explore this with 'faked up XML', but I thought it worth raising the issue to see if anyone had any thoughts as to the root cause.
Tool version
Attachments
I cannot provide any actual sample files from my actual client migration, but have been able to replicate the issue using manual edited .JSON file
The text was updated successfully, but these errors were encountered: