-
Notifications
You must be signed in to change notification settings - Fork 24
System.Xml.XmlException: The '/' character, hexadecimal value 0x2F, cannot be included in a name. #8
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
Comments
Interesting fact : when I click on "Advanced Settings" then the error shows up as well. Other interesting fact : If I take out the protocol par for the "Jira server" field then "Advanced Settings" works again and the error that pops up after clicking "start import" is now "Transport level error: Invalid URI..." So it seems like the "/" that's causing the issue might be one in "https://" |
I tried creating a brand new vanilla Jira cloud and this time the error went away ( replaced by this one though). So this issue might be due to custom data in the Jira used. This Jira has custom ticket fields and in the name of some of those custom fields there is a "/" (ex: "software or/and hardware"). Since default fields never contain a "/" I thought this might be a good candidate. I don't have the permission to change that so I wasn't able to test the theory though. |
A colleague of mine ( @dhouse109 ) came up with a little fix. It allowed us to do the migration but we're not sure it's totally safe regarding data integrity. It also might not be the best place to do it. In the file "JiraTypeMap.cs", inside the function "JiraTypeMap" add those lines (first and last line are those that already exist in the code. First line should be line #83)
|
Thanks for that Zatox. I'll take the fix and investigate further. Apologies for not getting back sooner unfortunately work commitments have kept me away for the last couple of weeks. |
Hi Thank you for putting hard work and sharing this tool with the community. "The '/' character, hexadecimal value 0x2F, cannot be included in a name." is there a fix? |
Nevermind 2017-01-10 15:24:15,906 [1] ERROR JiraToTfs.Presenter.JiraToTfsPresenter - Syste Not sure where I am missing this or how to fix this issue, |
Hi kashyapvirgo
Sorry to hear you are having problems with the tool.
My guess is you have a priory value in jira on the ticket that the tool does not recognise.
There should be a log file created in the folder you are running the tool from.
If you can get me the log and details on the jira ticket it failed on I'll try and have a look tomorrow.
Cheers ian
Get Outlook for Android<https://aka.ms/ghei36>
From: kashyapvirgo
Sent: Tuesday, 10 January, 8:26 PM
Subject: Re: [KilskyreMan/JiraToTfs] System.Xml.XmlException: The '/' character, hexadecimal value 0x2F, cannot be included in a name. (#8)
To: KilskyreMan/JiraToTfs
Cc: Ian Montgomery, Assign
Nevermind
I recompiled the code with the fix provided by Zatox but now I get this new error.
2017-01-10 15:24:15,906 [1] ERROR JiraToTfs.Presenter.JiraToTfsPresenter - Syste
m.Collections.Generic.KeyNotFoundException: The given key was not present in the
dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at TicketImporter.TfsPriorityMap.get_Item(String lookUp) in C:\Users\kshah\De
sktop\JiraToTfs-1.0.1\TicketImporter\TfsPriorityMap.cs:line 58
at TicketImporter.TfsProject.toWorkItem(Ticket toImport) in C:\Users\kshah\De
sktop\JiraToTfs-1.0.1\TicketImporter\TfsProject.cs:line 306
at TicketImporter.TfsProject.CheckTicket(Ticket toAdd, IFailedTicket& failure
) in C:\Users\kshah\Desktop\JiraToTfs-1.0.1\TicketImporter\TfsProject.cs:line 42
4
at TicketImporter.TicketImportAgent.StartImport() in C:\Users\kshah\Desktop\J
iraToTfs-1.0.1\TicketImporter\TicketImportAgent.cs:line 119
at JiraToTfs.Presenter.JiraToTfsPresenter.import_DoWork(Object sender, DoWork
EventArgs e) in C:\Users\kshah\Desktop\JiraToTfs-1.0.1\JiraToTfs\Presenter\JiraT
oTfsPresenter.cs:line 306
Not sure where I am missing this or how to fix this issue,
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub<#8 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AEvgZxpiLASZtCAdoaH2rs76Bls5A_Vxks5rQ-kbgaJpZM4IFogK>.
|
Ok let me try with fixing the XML file. |
I fixed XML file with correct priority mapping and it works like a charm. thanks again for putting out great work in the community. |
A few seconds after clicking "start import" I get this exception. Hence the import fails.
My setup is Jira Cloud (SCRUM Project) to TFS 2012. Both TFS and JiraToTfs are running on a Windows Server 2012.
I've been manually parsing the results I get when hitting the REST API but I can't find any "/" in wierd places.
Here is the exceptions log:
2016-04-12 13:27:40,307 [5] INFO TicketImporter.TicketImportAgent - Preparing to import
2016-04-12 13:27:44,102 [5] INFO TicketImporter.TicketImportAgent - Validating Jira tickets against TFS
2016-04-12 13:27:44,539 [5] ERROR JiraToTfs.Presenter.JiraToTfsPresenter - System.Xml.XmlException: The '/' character, hexadecimal value 0x2F, cannot be included in a name.
at System.Xml.XmlConvert.VerifyNCName(String name, ExceptionType exceptionType)
at System.Xml.Linq.XName..ctor(XNamespace ns, String localName)
at System.Xml.Linq.XNamespace.GetName(String localName)
at System.Xml.Linq.XName.Get(String expandedName)
at TicketImporter.SettingsStore.<>c.b__4_0(KeyValuePair
2 kv) at System.Linq.Enumerable.WhereSelectEnumerableIterator
2.MoveNext()at System.Xml.Linq.XContainer.AddContentSkipNotify(Object content)
at TicketImporter.SettingsStore.Save(String key, IEnumerable
1 source) at TicketImporter.JiraTypeMap..ctor(ITicketSource jiraProject, IAvailableTicketTypes availableTicektTypes) at TicketImporter.JiraProject.<Tickets>d__18.MoveNext() at TicketImporter.TicketImportAgent.StartImport() at JiraToTfs.Presenter.JiraToTfsPresenter.import_DoWork(Object sender, DoWorkEventArgs e) 2016-04-12 13:27:44,539 [1] ERROR JiraToTfs.Presenter.JiraToTfsPresenter - System.Xml.XmlException: The '/' character, hexadecimal value 0x2F, cannot be included in a name. at System.Xml.XmlConvert.VerifyNCName(String name, ExceptionType exceptionType) at System.Xml.Linq.XName..ctor(XNamespace ns, String localName) at System.Xml.Linq.XNamespace.GetName(String localName) at System.Xml.Linq.XName.Get(String expandedName) at TicketImporter.SettingsStore.<>c.<Save>b__4_0(KeyValuePair
2 kv)at System.Linq.Enumerable.WhereSelectEnumerableIterator
2.MoveNext() at System.Xml.Linq.XContainer.AddContentSkipNotify(Object content) at TicketImporter.SettingsStore.Save(String key, IEnumerable
1 source)at TicketImporter.JiraTypeMap..ctor(ITicketSource jiraProject, IAvailableTicketTypes availableTicektTypes)
at TicketImporter.JiraProject.d__18.MoveNext()
at TicketImporter.TicketImportAgent.StartImport()
at JiraToTfs.Presenter.JiraToTfsPresenter.import_DoWork(Object sender, DoWorkEventArgs e)
The text was updated successfully, but these errors were encountered: