Giter VIP home page Giter VIP logo

Comments (4)

parthsha avatar parthsha commented on May 18, 2024

Thank you very much for the quick turnaround Claudio!

from reportingservicestools.

vytux-com avatar vytux-com commented on May 18, 2024

I was still getting this error:

New-RsFolder -ReportServerUri $ReportServerUri -Credential $rptLogin -RsFolder '/' -FolderName "Test"
New-RsFolder -ReportServerUri $ReportServerUri -Credential $rptLogin -RsFolder "/Test" -FolderName "Other"
Grant-RsCatalogItemRole -ReportServerUri $ReportServerUri -Credential $rptLogin -Identity "User" -Path "/Test" -RoleName "Browser"
Grant-RsCatalogItemRole -ReportServerUri $ReportServerUri -Credential $rptLogin -Identity "User" -Path "/Test/Other" -RoleName "Content Manager"

The reason was if you specify the Identity as "User" it will work for the first call however it converts the Identity to "SERVER_NAME\User" on second run it does not pickup the fact that the Identity already exists and produces the same error.

No sure if there should be a warning about this or if the module should be modified to check for SERVER_NAME\ prefix and if it does not exist then add it.

from reportingservicestools.

VickyWinner avatar VickyWinner commented on May 18, 2024

I am on 0.0.4.9, Was it fixed as part of this version? I am still getting this error while adding more than one role for same user:

Error occurred while granting System User to xxxx! Exception calling "SetSystemPolicies" with "1" argument(s):
"System.Web.Services.Protocols.SoapException: The policy for 'xxxx' user or group is not valid. The role assignment is either empty,
specifies a user or group name that is already used in an existing role assignment for the current item, or specifies duplicate roles for the same user or
group. ---> Microsoft.ReportingServices.Diagnostics.Utilities.InvalidPolicyDefinitionException: The policy for 'xxxx' user or group is not
valid. The role assignment is either empty, specifies a user or group name that is already used in an existing role assignment for the current item, or
specifies duplicate roles for the same user or group.
at Microsoft.ReportingServices.Library.ReportingService2005Impl.SetSystemPolicies(Policy[] Policies, Guid batchId)
at Microsoft.ReportingServices.Library.ReportingService2005Impl.SetSystemPolicies(Policy[] Policies)
at Microsoft.ReportingServices.WebServer.ReportingService2010.SetSystemPolicies(Policy[] Policies)"
+ CategoryInfo : OperationStopped: (:) [], Exception
+ FullyQualifiedErrorId : Error occurred while granting System User to xxxx! Exception calling "SetSystemPolicies" with "1" argument(s):
"System.Web.Services.Protocols.SoapException: The policy for 'xxxx' user or group is not valid. The role assignment is either empty, spec
ifies a user or group name that is already used in an existing role assignment for the current item, or specifies duplicate roles for the same user or
group. ---> Microsoft.ReportingServices.Diagnostics.Utilities.InvalidPolicyDefinitionException: The policy for 'xxxx' user or group is no
t valid. The role assignment is either empty, specifies a user or group name that is already used in an existing role assignment for the current item,
or specifies duplicate roles for the same user or group.
at Microsoft.ReportingServices.Library.ReportingService2005Impl.SetSystemPolicies(Policy[] Policies, Guid batchId)
at Microsoft.ReportingServices.Library.ReportingService2005Impl.SetSystemPolicies(Policy[] Policies)
at Microsoft.ReportingServices.WebServer.ReportingService2010.SetSystemPolicies(Policy[] Policies)"

from reportingservicestools.

jtarquino avatar jtarquino commented on May 18, 2024

No new changes have been submitted in that area

from reportingservicestools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.