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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
graymc
Frequent Visitor

RESTAPI /datasets()/dependentitems "No HTTP resource" Error

The /datasets()/dependentitems and /datasets()/properties endpoints of the SSRS/PBIRS REST API is returning a "No HTTP resource was found that matches the request URI" error.  For example, I can pull the basic information for an existing dataset:

 

 

invoke-restmethod "https://xxxxxxx/reports/api/v2.0/DataSets(e03c9b1a-5369-423f-9172-91c6975f4274)" -UseDefaultCredentials


@odata.context        : https://xxxxxx/reports/api/v2.0/$metadata#DataSets/$entity
Id                    : e03c9b1a-5369-423f-9172-91c6975f4274
Name                  : ExecutionStatus
Description           :
Path                  : /ecubic/SystemsAdmin/Datasets/ExecutionStatus
Type                  : DataSet
Hidden                : False
Size                  : 882
ModifiedBy            : INTRA\MCDONALDG
ModifiedDate          : 2013-03-18T11:28:34.21-04:00
CreatedBy             : INTRA\MCDONALDG
CreatedDate           : 2013-03-18T11:28:34.21-04:00
ParentFolderId        : 69e44497-8184-4039-8a21-716eb02fa8a0
IsFavorite            : False
ContentType           :
Content               :
HasParameters         : False
QueryExecutionTimeOut : 0
Roles                 : {}

 

But attempting to list the dependent items of the dataset results in an error:

 

 

invoke-restmethod "https://xxxxxxxx/reports/api/v2.0/DataSets(e03c9b1a-5369-423f-9172-91c6975f4274)/DependentItems" -UseDefaultCredentials
invoke-restmethod : {"error":{"code":"","message":"No HTTP resource was found that matches the request URI
'https://xxxxxx/reports/api/v2.0/DataSets(e03c9b1a-5369-423f-9172-91c6975f4274)/DependentItems'."}}
At line:1 char:1
+ invoke-restmethod "https://xxxxxxx/reports/api/v2.0/DataSets(e ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebExc
   eption
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

 

 

Retrieving depdendent items works for other supported item types such as datasources and reports.

 

Can anyone else confirm this behavior or if this is a known issue?

Thx

1 REPLY 1
graymc
Frequent Visitor

I found a solution after digging into the entity definitions and watching what happens in the RSHost log when you view dependencies from the UI.  If you use the "CatalogItems" endpoint you can get the DependentItems information:

 

/reports/api/v2.0/CatalogItems(e03c9b1a-5369-423f-9172-91c6975f4274)/DependentItems

 

Watch out for the Swagger file that's out there for the REST API.  It has lots of issues.

 

😤😠

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.