Open ghost opened 8 years ago
@craigb / @tonyferrell - Can you check if there is an issue with overwrite on the server side?
@craigb / @tonyferrell Ping
I have the same issue with powerbi cli
powerbi import -c ... -w xyz -k ... -f C:\...\dashboard.pbix -n dashboard -o
[ powerbi ] Importing C:\...\dashboard.pbix to workspace: xyz
[ powerbi ] read ECONNRESET
I tried the PowerBI embedded sample from https://github.com/Azure-Samples/power-bi-embedded-integrate-report-into-web-app
When I import an new report with the same name, its also not updating but creating a new report with same name...
We've identified a bug in the API backend regarding this issue. We'll provide tracking updates here.
A workaround for the time being is to delete the dataset and re-import with the same name without the overwrite flag.
The workaround does not work in my case because I need to keep reportId (actually embeddedUrl) unchanged when the new pbix is updated
Understood - I will bring this feedback to the team.
Any update on this issue?
@aluong - Do you have an update on this issue?
@wbreza and @aluong: Is there any update for this issue?
The fix is being finalized this week and will then be slated for release.
any update on the release for this fix ?
I am experiencing this issue as well. @wbreza any update?
I am still experiencing this issue. Is there any update?
@gsamant - Last I checked this was working. Are you passing the -o flag?
It's working for me at the moment
do you need to pass any value after -o (true/false or 'Overwrite'), or just -o by itself ?
I find I get a'DuplicatePackageNotFoundError' error if passing a value....
The DuplicatePackageNotFoundError I believe is because you are passing -o on report creation. The command seems to expect a report to overwrite, otherwise gives you an error. @simonaberry
Hi I am using Powerbi Import CLI command but still it is not allowing me to overwrite exsiting report Please can someone let me know if this still an open issue Also what we need to pass after -o as parameter for overwriting
@tushu1984 I don't think it is an issue as we use it regularly. I had an issue with the -o switch, basically I do -o true, if the report already exists. If you use the switch on a report that doesn't exists yet it gives you the DuplicatePackageNotFoundError.
@ernestochaves Previously i used this command for import powerbi import -c $CollectionName -w $WSguid -k $accesKeyPBI -f $fileName -n $fileName But by default overwrite is false so it creates duplicate file entry in workspace then i tried giving this powerbi import -c $CollectionName -w $WSguid -k $accesKeyPBI -f $fileName -n $fileName - o true After this it started giving me duplicatepackage notfound error... Dont know why its not working
@tushu1984 the error means the file still doesn't exist yet. The way it seems to work is, you need to do a first time import and use the override option only with reports that are already there. Does that make sense? Add "- o true" only if the report already exists.
@ernestochaves this still not working for me .. i tried importing same file which was present in the workspace but still received this error now [ powerbi ] x-powerbi-error-info : MoreThanOneDuplicatePackageFoundError
@tushu1984 sorry to hear that. Can you show us a list of the reports you already have in that workspace? Im just guessing here, but maybe you already have several versions of the same report and it doesnt know which one to overwrite. Also, could you show the command?
I am experiencing this now, first time trying to add the nameConflict=Overwrite parameter to the URL. Calling https://api.powerbi.com/v1.0/myorg/groups/{}/imports?datasetDisplayName={}&nameConflict=Overwrite to push a .pbix file from storage to target workspace. Workspace has no existing reports or datasets when I make the request. Response is 404 with
{
"error": {
"code": "DuplicatePackageNotFoundError",
"pbi.error": {
"code": "DuplicatePackageNotFoundError",
"parameters": {
"DuplicatePackagesFullMatch": null
},
"details": []
}
}
}
Can work around it for now, but it'd be great to get a fix for this.
This npm package is deprecated.
I am experiencing this now, first time trying to add the nameConflict=Overwrite parameter to the URL. Calling https://api.powerbi.com/v1.0/myorg/groups/{}/imports?datasetDisplayName={}&nameConflict=Overwrite to push a .pbix file from storage to target workspace. Workspace has no existing reports or datasets when I make the request. Response is 404 with { "error": { "code": "DuplicatePackageNotFoundError", "pbi.error": { "code": "DuplicatePackageNotFoundError", "parameters": { "DuplicatePackagesFullMatch": null }, "details": [] } } }
Can work around it for now, but it'd be great to get a fix for this.
That occurs when Overwrite is enabled but there is nothing to Overwrite. Switch to Abort nameConflict. The full solution is to check if there is a need to overwrite or not before making the import.
Regards, Balint
I have checked and see that
overwrite
option is not working for now. It might be a bug from server, not cli, because I check with C# code, it's not working also: