Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
yoshihirok
Post Prodigy
Post Prodigy

R Visaul - Error: invalid multibyte character in parser at line 1

Can I fix R visual ERROR ?
 
Error Message: "Error: invalid multibyte character in parser at line 1"
 
Error Reproduce step:
  1. Create a new user to Windows 10.
     User name include Japanese text.
     User directory name like "C:\Users\名前"
  2. Install Microsoft R Open to Windows 10.
  3. Open Power BI Desktop.
  4. Create a R visual.
  5. Enter R script.
    library("ggplot2)
    qplot(dataset[ , 1])
 
If user name doen't include Japanese text, Power BI Desktop R visual does not ERROR.
like "C:\Users\Name".
 
My Environment:
  OS: Windows 10 Home Japanese
  Power BI Desktop Version: 2.30.4246.181 64-bit (Dec, 2015) - Japanese.
  Microsoft R Open: 3.2.2
 
Error Details -- include Japanese Text:
Error Message:

R スクリプト エラー。
Multithreaded BLAS/LAPACK libraries detected. Using 2 cores for math algorithms.
Error: invalid multibyte character in parser at line 1
Execution halted


Stack Trace:



Invocation Stack Trace:



エラーの詳細
R スクリプト エラー。
Multithreaded BLAS/LAPACK libraries detected. Using 2 cores for math algorithms.
Error: invalid multibyte character in parser at line 1
Execution halted


スタック トレース
Microsoft.PowerBI.ExploreServiceCommon.ScriptHandlerException: R スクリプト エラー。
Multithreaded BLAS/LAPACK libraries detected. Using 2 cores for math algorithms.
Error: invalid multibyte character in parser at line 1
Execution halted
 ---> Microsoft.PowerBI.Radio.RScriptRuntimeException: R スクリプト エラー。
Multithreaded BLAS/LAPACK libraries detected. Using 2 cores for math algorithms.
Error: invalid multibyte character in parser at line 1
Execution halted

   場所 Microsoft.PowerBI.Radio.RScriptWrapper.RunScript(String originalScript, Int32 timeoutMs)
   場所 Microsoft.PowerBI.Client.Windows.R.RScriptHandler.GenerateVisual(String script, String inputVariableName, IDataReader dataReader, Nullable`1 viewportWidthPx, Nullable`1 viewportHeightPx)
   --- 内部例外スタック トレースの終わり ---
   場所 Microsoft.PowerBI.Client.Windows.R.RScriptHandler.GenerateVisual(String script, String inputVariableName, IDataReader dataReader, Nullable`1 viewportWidthPx, Nullable`1 viewportHeightPx)
   場所 Microsoft.PowerBI.ExploreServiceCommon.ScriptVisualCommandFlow.RunInternal(Stream dataShapeResultStream, QueryBindingDescriptor& bindingDescriptor)
   場所 Microsoft.PowerBI.ExploreServiceCommon.ScriptVisualCommandFlow.Run(Stream dataShapeResultStream, QueryBindingDescriptor& bindingDescriptor)
   場所 Microsoft.PowerBI.ExploreHost.SemanticQuery.ExecuteSemanticQueryFlow.TransformDataShapeResult(QueryCommand transformCommand, String dataShapeId, SemanticQueryDataShapeCommand command, Stream dataShapeResultStream, QueryBindingDescriptor& bindingDescriptor)
   場所 Microsoft.PowerBI.ExploreHost.SemanticQuery.ExecuteSemanticQueryFlow.ProcessAndWriteDataQuery(IQueryResultDataWriter queryResultDataWriter, DataShapeGenerationContext dsqGenContext, DataQuery query, ServiceErrorStatusCode& serviceErrorStatusCode)
   場所 Microsoft.PowerBI.ExploreHost.SemanticQuery.ExecuteSemanticQueryFlow.ProcessAndWriteSemanticQueryCommands(IQueryResultsWriter queryResultsWriter, ExecuteSemanticQueryRequest request, IConceptualSchema conceptualSchema)

アクティビティ ID
d5d15da1-8cfd-478b-9641-831c012dd59b

時間
Fri Jan 15 2016 11:29:24 GMT+0900 (東京 (標準時))

バージョン
2.30.4246.181 (PBIDesktop)

Regards,
Yoshihiro Kawabata
 
4 REPLIES 4
Avi_Sander
Employee
Employee

 Hi and thanks for your feedback

 

Please try the suggested workaround detailed in http://community.powerbi.com/t5/Integrations-with-Files-and/R-script-unable-to-connect/m-p/12954/hig... .

This is a known issue and we are working on a fix for the next update.

 Let us know if this helped,

 Thanks, Avi Sander (MS).

 

Quick Followup - The latest update of PBI desktop should have the fix for this issue.

 

thanks!

dolly
New Member

I have the same problem. Windows 10 pro (US). I have a username with a space in it and it looks like it doesn't like it. I changed the default working directory for R (hoping that that would be the error) but no it wasn't. So I send a frown to MS. Hope that the next update will solve our proble. R and Power BI looks like a marriage made in heaven....

greggyb
Resident Rockstar
Resident Rockstar

Definitely share feedback with the File menu 'Send a Frown' option, as that is the official bug report channel.

 

Based on the error message, it looks like there is something in the chain from Power BI Desktop to the R instance running on your machine that doesn't handle Unicode by default, or has a bug in its implementation.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.