apis and embedding
78 TopicsConverting Binary to hex value or numeric value
Hi, I have Hex Value showing up as a Binary content in PBI desktop (ConversationIndex in MSExchange Attribute object) On expanding this Binary column, I get to see some Unicode characters and not exactly numeric/ hexadecimal values. Is there a way I can convert the Binary content to Hex or interger/ numeric value? Thanks, MannuSolved14KViews0likes7CommentsUnable to embed base 64 images
When attempting to add more than 7 new card visuals with a base64 image. We get the following error message Feedback Type: Frown (Error) Timestamp: 2025-03-17T09:04:37.2970015Z Local Time: 2025-03-17T09:04:37.2970015+00:00 Session ID: d51bd590-95a6-4efc-a3c1-0d07106fd003 Release: February 2025 Product Version: 2.140.1476.0 (25.02)+e8c6a85d1d09735c5c055c3244a60ff4076cd2cf (x64) Error Message: UserErrorDetails doesn't make sense if the error is not caused by the user Stack Trace: System.InvalidOperationException at Microsoft.PowerBI.Modeling.Common.Contract.FailCore(String msg) at Microsoft.PowerBI.Client.Windows.ExceptionHandling.PowerBIException..ctor(String message, ErrorSource errorSource, UserErrorDetails userErrorDetails, Exception innerException, String errorCode, Dictionary`2 telemetryValues) at Microsoft.PowerBI.Client.Windows.Services.BiProjectOperationHandler.<SaveReportIntoProjectRelatedFile>d__39.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.PowerBI.Client.Windows.Services.BiProjectOperationHandler.<TrySaveArtifact>d__30.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.PowerBI.Client.Windows.Services.CurrentArtifactManager.<TrySaveFileAndSetAsCurrent>d__46.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.PowerBI.Client.Windows.Services.UIBlockingService.<>c__DisplayClass17_0`1.<<BlockUIAndRun>b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.PowerBI.Client.Windows.Services.UIBlockingService.WaitOnUIThreadForTaskCompletion[T](Task`1 task) at Microsoft.PowerBI.Client.Windows.Services.UIBlockingService.BlockUIAndRun[T](Func`1 asyncMethod, PowerBIProgress progress) at Microsoft.PowerBI.Client.Windows.LocalFileOpenSaveUI.ShowSaveUIAndWait(IPowerBIWindowService windowService, IExceptionHandler exceptionHandler, IPowerBIArtifactInfo artifactInfo, Func`2 performSaveMethod) at Microsoft.PowerBI.Client.Windows.Services.FileOperationUIHandler.<TrySaveFile>d__51.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.PowerBI.Client.Windows.IExceptionHandlerExtensions.<HandleAwaitableAsyncExceptions>d__1.MoveNext() Stack Trace Message: UserErrorDetails doesn't make sense if the error is not caused by the user Invocation Stack Trace: at Microsoft.Mashup.Host.Document.ExceptionExtensions.GetCurrentInvocationStackTrace() at Microsoft.Mashup.Client.UI.Shared.StackTraceInfo..ctor(String exceptionStackTrace, String invocationStackTrace, String exceptionMessage) at Microsoft.PowerBI.Client.Windows.Telemetry.PowerBIUserFeedbackServices.GetStackTraceInfo(Exception e) at Microsoft.PowerBI.Client.Windows.Telemetry.PowerBIUserFeedbackServices.ReportException(IWindowHandle activeWindow, IUIHost uiHost, FeedbackPackageInfo feedbackPackageInfo, Exception e, Boolean useGDICapture) at Microsoft.Mashup.Client.UI.Shared.UnexpectedExceptionHandler.<>c__DisplayClass14_0.<HandleException>b__0() at Microsoft.Mashup.Client.UI.Shared.UnexpectedExceptionHandler.HandleException(Exception e) at Microsoft.PowerBI.Client.PowerBIUnexpectedExceptionHandler.HandleException(Exception e) at Microsoft.PowerBI.Client.Windows.Utilities.PowerBIFormUnexpectedExceptionHandler.HandleException(Exception e) at Microsoft.PowerBI.Client.Windows.IExceptionHandlerExtensions.<HandleAwaitableAsyncExceptions>d__1.MoveNext() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run() at System.Threading.Tasks.AwaitTaskContinuation.RunCallback(ContextCallback callback, Object state, Task& currentTask) at System.Threading.Tasks.Task.FinishContinuations() at System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted) at System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception) at Microsoft.PowerBI.Client.Windows.Services.FileOperationUIHandler.<TrySaveFile>d__51.MoveNext() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run() at System.Threading.Tasks.AwaitTaskContinuation.RunCallback(ContextCallback callback, Object state, Task& currentTask) at System.Threading.Tasks.Task.FinishContinuations() at System.Threading.Tasks.Task`1.TrySetResult(TResult result) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(TResult result) at Microsoft.PowerBI.Client.Windows.Report.<CommitUIState>d__88.MoveNext() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run() at System.Threading.Tasks.AwaitTaskContinuation.RunCallback(ContextCallback callback, Object state, Task& currentTask) at System.Threading.Tasks.Task.FinishContinuations() at System.Threading.Tasks.Task`1.TrySetResult(TResult result) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(TResult result) at Microsoft.PowerBI.Client.Windows.Views.MinervaInterop.DaxQueryViewClientHost.<GetDocumentContent>d__11.MoveNext() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run() at System.Threading.Tasks.AwaitTaskContinuation.RunCallback(ContextCallback callback, Object state, Task& currentTask) at System.Threading.Tasks.Task.FinishContinuations() at System.Threading.Tasks.Task`1.TrySetResult(TResult result) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(TResult result) at Microsoft.PowerBI.Client.Windows.WebView2.WebView2Interop.<Microsoft-PowerBI-Client-Windows-IHostedScriptAsync-TryInvokeAsync>d__33`1.MoveNext() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run() at System.Threading.Tasks.AwaitTaskContinuation.RunCallback(ContextCallback callback, Object state, Task& currentTask) at System.Threading.Tasks.Task.FinishContinuations() at System.Threading.Tasks.Task`1.TrySetResult(TResult result) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(TResult result) at Microsoft.PowerBI.Client.Windows.WebView2.WebView2Interop.<InvokeJs>d__27`1.MoveNext() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run() at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Delegate.DynamicInvokeImpl(Object[] args) at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme) at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme) at System.Windows.Forms.Control.InvokeMarshaledCallbacks() at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Form.ShowDialog(IWin32Window owner) at Microsoft.Mashup.Client.UI.Shared.WindowManager.ShowModal[T](T dialog, Func`1 showModalFunction) at Microsoft.PowerBI.Client.Program.<>c__DisplayClass7_0.<RunApplicationLegacy>b__0() at Microsoft.PowerBI.Client.Windows.IExceptionHandlerExtensions.<>c__DisplayClass3_0.<HandleExceptionsWithNestedTasks>b__0() at Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler, Action action) at Microsoft.PowerBI.Client.Program.RunApplicationLegacy(String[] args, IPowerBIRootTrace trace) at Microsoft.PowerBI.Client.Program.Main(String[] args) PowerBINonFatalError: {"AppName":"PBIDesktop","AppVersion":"2.140.1476.0","ModuleName":"Microsoft.PowerBI.Modeling.Common.dll","Component":"Microsoft.PowerBI.Modeling.Common.Contract","Error":"System.InvalidOperationException","MethodDef":"FailCore","ErrorOffset":"28","ErrorCode":""} OS Version: Microsoft Windows NT 10.0.26100.0 (x64 en-GB) CLR Version: 4.8 or later [Release Number = 533320] Peak Virtual Memory: 71.2 GB Private Memory: 794 MB Peak Working Set: 1.17 GB IE Version: 11.1882.26100.0 User ID: a2302be8-4520-4366-8bed-b7520191b72a Workbook Package Info: 1* - en-GB, Query Groups: 0, fastCombine: Disabled, runBackgroundAnalysis: True. Telemetry Enabled: False AS Live Connection: True Performance Trace Logs: C:\Users\Robert.French\AppData\Local\Microsoft\Power BI Desktop\PerformanceTraces.zip Enabled Preview Features: PBI_shapeMapVisualEnabled PBI_qnaLiveConnect PBI_metricsArtifactsOnDesktop PBI_b2bExternalDatasetSharing PBI_enhancedTooltips PBI_sparklines PBI_scorecardVisual PBI_fieldParametersSuperSwitch PBI_onObject PBI_setLabelOnExportPdf PBI_oneDriveSave PBI_oneDriveShare PBI_odspSaveBackgroundUpload PBI_modernOfficeFilePicker PBI_useModernPublishDialogs PBI_publishDialogsSupportSubfolders PBI_gitIntegration PBI_tmdlInDataset PBI_directLakeRemoteModeling PBI_newCard PBI_buttonSlicerAuthoring PBI_advancedSlicerTypeList PBI_textSlicer PBI_EimLessElevatedUser PBI_mobileAutoReportLayout PBI_daxInlineCopilot PBI_aiNarrativesVisual PBI_generateMeasureDescriptionsButton PBI_visualCalculationsAuthoring PBI_desktopReportAuthoringCopilot Disabled Preview Features: PBI_snowflakeAdbcVersionEnabled PBI_SpanishLinguisticsEnabled PBI_enhancedReportFormat PBI_qnaImproveLsdlCopilot PBI_tmdlViewToggle PBI_UserInstalledVerticaODBCDriver Disabled DirectQuery Options: TreatHanaAsRelationalSource Cloud: GlobalCloud PowerBIUserFeedbackServices_IsReported: True DPI Scale: 100% Supported Services: Power BI Formulas: section Section1; The same solution is used for at least two other project files and works as expected only one project file returns this error message.Solved1.7KViews0likes7CommentsWeb.Contents with the Content option is only supported when connecting anonymously.
Hello All, I am connecting to api using basic token. but I am getting the authentication issue which is "Web.Contents with the Content option is only supported when connecting anonymously." i Knew it is very common error and gone thorugh all the below links https://community.powerbi.com/t5/Service/Anonymous-access/m-p/21014#M5916 http://community.powerbi.com/t5/Developer/Using-a-REST-API-as-a-data-source-Web-Contents-Content-option/m-p/115650#M4042 http://community.powerbi.com/t5/Service/Cannot-sign-in-with-Anonymous-Authentication-for-a-Web-API/td-p/168154?lightbox-message-images-168154=39597iD83266D92D25D020 the power Query is let AuthKey = "Basic mytoken", url="https://tfs.mnsu.edu/tfs/ITS%20AppDev/Test%20Agile%20Project/_apis/wit/wiql?api-version=1.0", body="{ ""query"": ""Select [System.Id], [System.Title], [System.State] From WorkItems Where [System.WorkItemType] = 'Task' and [System.AreaPath]='Test Agile Project'"" }", Source = Json.Document(Web.Contents(url,[ Headers = [#"Authorization"=AuthKey , #"Content-Type"="application/json"], Content = Text.ToBinary(body) ] )) in Source and error i am getting is can anyone please hempSolved75KViews1like9CommentsHow to increase number of columns imported from Salesforce object or select the columns to load
I had a problem loading SF object cases because it has over 660 columns and got the error msg "414): Request-URI Too Long" I need to either increase the number of columns i am allowed to improt or pre-select the columns i need to load prior loading please helpSolved4.7KViews1like5CommentsEPBCS(Planning and Budgeting Cloud Service) data connector to BI tools?
Hi, Does someone know how to connect Oracle EPBCS directly to BI tools, such as Qlik or PowerBI? Or what is the IP/port of the XMLA service for EPBCS? Sometimes there are alternatives. For example, Qlik can support many connectivity protocols such as ODBC/REST/HTTP/SOAP/.NET etc… but it really depends on what EPBCS provides for access. Thanks in advance Saanvi SSolved7.9KViews0likes5CommentsPowerBI Embedded Free Trial Tokens not being used?
I have a PowerBI Pro license and I have used the 'Embed using a service principal guide' here to embed my dashboard into my application. We have the Free trial banner at the top of the embedded report as I would expect, however when I hit the Available Features API using my service principal or my actual Pro account, it's telling me I have used 0% of my free trial embedding tokens. This is depsite refreshing the page showing the dashboard multiple times in a row to try max it out. Has anyone else experienced this at all, or knows why our free trial tokens don't seem to be running out? Any help is appreciated, thanks.1.3KViews0likes3CommentsHierarchy row-level security
I have 5 tables. The first table is Access Rights contained below data. Next, the second table is the supply chain contained below data. The third table is the Region contained below data. The fourth table is the Plant contained below data. The first table is the GEO INFO contained below data. I need to Implement a Hierarchical row-level security based on the above data. In the first table, I am a user of [email protected]. For this user Plant is ALL, supply chain is MSC, and Region SAM. I should able to see the data of all Plants data filtered with Region and Supply chain. For example, If Plant is ALL and Supply Chain is ALL and Region is SAM. Then I should be able to see all the Plants and Supply Chain data filtered with Region. If all Plant, Supply Chain, and Region are ALL. Then I should be able to see all the data. It should be dynamic. I need advice on how to implement Row-Level Security (RLS) based on the above requirement. Thank you.Solved750Views0likes1CommentMultiple requests for a single Get Data and Refresh Data with Web Data Source
It seem like for a single Web Data Source query Power BI Desktop is issuing a number of requests for the URL and the number of requests for the URL for a single query increases as the records to be returned increases. We have an inhouse REST API server that return a pipe seperated value dataset upon receiving a URL request. For testing purposes we turned on logging in the REST API application so that it will capture the get requests being received. Following are results of the test scenerios with different records size and setting timeout to 30 mins: Web request that return 9 records. a. From invoking the Get Data till showing the Load dialog, 3 requests are received by the REST API server. b. Upon clicking on the LOAD in the dialog 2 additional requests are received by the REST API server. c. With each click of the Refresh 2 additional requests are received by the REST API server. Web request that return 500K records a. From invoking the Get Data till showing the Load dialog, 11 requests are received by the REST API server. b. Upon clicking on the LOAD in the dialog 4 additional requests are received by the REST API server. c. With each click of the Refresh 4 additional equests are received by the REST API server. Web request that return 1M records. a. The Get Data resulted in what seem like never ending loop of get requests to the URL until timeout of 30 mins. If the above observation is correct then for 500K records which take about a mins for the server to response resulted in 20 mins for it to be loaded into Power BI Desktop. It will be quite impossible to load even larger recordset. Have any one experience something similar? Thanks in advance Kin Kheong13KViews3likes15Comments