timabell / ssrs-powershell-deploy

PowerShell scripts to deploy a SQL Server Reporting Services project (*.rptproj) to a Reporting Server
MIT License
75 stars 40 forks source link

Getting error that says "Could not find configuration $Configuration." #30

Open nglara opened 1 year ago

nglara commented 1 year ago

Hi there,

For some reason the I'm getting this error that says "Could not find configuration $Configuration." when I run

Publish-SSRSProject -Path "C:\Proejct.Server\Reports\My.Project.Reports.rptproj" -Configuration Debug

Even though I have my configurations setup in my project. I'm not sure if it's the format I have. If somebody could please tell me what's wrong with my project settings, I would highly appreciate it.

Here is how I have my configuration setup in my project:

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
    <FullPath>Debug</FullPath>
    <OutputPath>bin\Debug</OutputPath>
    <ErrorLevel>2</ErrorLevel>
    <OverwriteDatasets>True</OverwriteDatasets>
    <OverwriteDataSources>False</OverwriteDataSources>
    <TargetServerVersion>SSRS2016</TargetServerVersion>
    <Platform>Win32</Platform>
    <TargetReportFolder>My.Project.Reports</TargetReportFolder>
    <TargetDatasetFolder>Datasets</TargetDatasetFolder>
    <TargetDatasourceFolder>Data Sources</TargetDatasourceFolder>
    <TargetReportPartFolder>Report Parts</TargetReportPartFolder>
    <TargetServerURL>https://testing.domain.local/ReportServer</TargetServerURL>
    <StartItem>Report1.rdl</StartItem>
  </PropertyGroup>
  ...
  ...

...

IanLedzion commented 4 months ago

I think that the module targets old style rptproj files which have a different XML schema.