Closed chessIthaca closed 5 years ago
please make sure that the dataset was also created with the library (or with the API directly) with the appropriate settings (Push-Dataset) You cannot just add rows to any Dataset
If the type is "AsAzure" then this actually means that the dataset connect to Azure Analysis Services and the type of a dataset cannot be changed after it was created
Gerhard,
the dataset was created through the powerbi UI. But I get the same result when creating it through the API, it gets returned as "Azure" the second time I connect.
Carsten
On Mon, Apr 8, 2019 at 12:28 AM Gerhard Brueckl notifications@github.com wrote:
please make sure that the dataset was also created with the library (or with the API directly) with the appropriate settings (Push-Dataset) You cannot just add rows to any Dataset
If the type is "AsAzure" then this actually means that the dataset connect to Azure Analysis Services and the type of a dataset cannot be changed after it was created
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gbrueckl/PowerBI.API.Client/issues/13#issuecomment-480679207, or mute the thread https://github.com/notifications/unsubscribe-auth/AN5iNX96PyaeSTM3ZpTusDYdRwUZAVhOks5vesV8gaJpZM4ccb11 .
When creating it, did you use PBIDefaultMode.Push? Please see https://github.com/gbrueckl/PowerBI.API.Client/blob/master/SampleApplication/Program.cs line 173 onward where you can see a full sample of how to use the Push-API
Yes I used push as the default mode. Carsten
On Mon, Apr 8, 2019 at 7:21 AM Gerhard Brueckl notifications@github.com wrote:
When creating it, did you use PBIDefaultMode.Push? Please see https://github.com/gbrueckl/PowerBI.API.Client/blob/master/SampleApplication/Program.cs line 173 onward where you can see a full sample of how to use the Push-API
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gbrueckl/PowerBI.API.Client/issues/13#issuecomment-480791328, or mute the thread https://github.com/notifications/unsubscribe-auth/AN5iNWJLgCyz-5TrUOu5tnutJH8941wPks5veyZCgaJpZM4ccb11 .
and did you also try this when creating a whole new dataset and not using an existing? can you run the sample code just to test whether it is a general bug or something specific to your environment/setup/code?
closing due to no further feedback
Hi there,
You have the flag addrowapienabled but it is not working as it should. I should be able to add rows to the toable yet the Table throws an exception because the type is "AsAzure" instead of push.
Otherwise great library!!! Keep up the good work!