none
PerfView: EncoderFallbackException RRS feed

  • Question

  • I'm trying to export all events to xml and getting this exception:

    Exception Occured: System.Text.EncoderFallbackException: Unable to translate Unicode character \uDCDC at index 263 to specified code page.
       at PerfViewExtensibility.Extensions.ExecuteUserCommand(String command, String[] args)
       at PerfView.CommandProcessor.UserCommand(CommandLineArgs parsedArgs)
       at PerfView.MainWindow.<>c__DisplayClass9.<ExecuteCommand>b__7()
       at PerfView.StatusBar.<>c__DisplayClass8.<StartWork>b__6(Object param0)
    An exceptional condition occurred, see log for details.

    Command line: "PerfView.EXE" UserCommand DumpEventsAsXml Test.etl.

    How can I fix it?

    Thursday, January 15, 2015 1:07 PM

Answers

  • Hello,

    >>System.Text.EncoderFallbackException: Unable to translate Unicode character \uDCDC at index 263 to specified code page.

    From the exception, it seems this method in perfview causes the EncoderFallbackException because of character problem, since this tool is not open source, we cannot know its internal implementation. According to its exception message, it shows the event log file has an invalid character at index 263, please check that file at that index.

    If your environment is Windows 8/Windows Server 2008/Windows Server 2008 R2/Windows Server 2012, you could have a try with Wevtutil to export event logs to xml:

    http://technet.microsoft.com/en-us/library/cc732848.aspx

    Regards.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, January 16, 2015 7:03 AM
    Moderator

All replies

  • Hello,

    >>System.Text.EncoderFallbackException: Unable to translate Unicode character \uDCDC at index 263 to specified code page.

    From the exception, it seems this method in perfview causes the EncoderFallbackException because of character problem, since this tool is not open source, we cannot know its internal implementation. According to its exception message, it shows the event log file has an invalid character at index 263, please check that file at that index.

    If your environment is Windows 8/Windows Server 2008/Windows Server 2008 R2/Windows Server 2012, you could have a try with Wevtutil to export event logs to xml:

    http://technet.microsoft.com/en-us/library/cc732848.aspx

    Regards.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, January 16, 2015 7:03 AM
    Moderator
  • Thanks, I'll try Wevutil
    Friday, January 23, 2015 4:54 PM