cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pceglie
Helper II
Helper II

Power BI Embedded - PostImportWithFileInGroup returns 'Not Found' generic error

Hi folks,  I'm struggling with the error in the object.

 

pceglie_1-1674147474159.png

Stack trace:

----

in Microsoft.PowerBI.Api.ImportsOperations.d__8.MoveNext() in Microsoft.PowerBI.Api.ImportsOperations.d__7.MoveNext()
in Microsoft.PowerBI.Api.ImportsOperationsExtensions.PostImportWithFile(IImportsOperations operations, Guid groupId,
Stream fileStream, String datasetDisplayName, Nullable`1 nameConflict, Nullable`1 skipReport, Nullable`1 overrideReportLabel, Nullable`1 overrideModelLabel)
in Ifv.MyProgram.SharepointProvisioning.Controllers.SharepointProvisioningController.publishPowerBiReport(Guid destinationGroupId) 
in C:\dev\temp\MyProgram\server\Ifv.MyProgram.SharepointProvisioning\src\Ifv.MyProgram.SharepointProvisioning\Controllers\SharepointProvisioningController.cs: riga 438

 

pceglie_0-1674147145998.png

 

I've tried with "serviceprincipal" and "masteruser" but the issue is the same.

The user and appid have ReadWite.All permission on Dataset, Report and Groups.

 

Any suggestions?

 

Thanks in advance

 

1 ACCEPTED SOLUTION
pceglie
Helper II
Helper II

Answer from myself:

the error was in ImportConflictHandlerMode.Overwrite (wrong!)

correct value is ImportConflictHandlerMode.CreateOrOverwrite

I hope it can be useful to someone else

--

PCeglie

View solution in original post

1 REPLY 1
pceglie
Helper II
Helper II

Answer from myself:

the error was in ImportConflictHandlerMode.Overwrite (wrong!)

correct value is ImportConflictHandlerMode.CreateOrOverwrite

I hope it can be useful to someone else

--

PCeglie

Helpful resources

Announcements
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.