TFS Policy Failure

Ask general questions here.
Posts: 5
Joined: Mon Jun 05, 2017 2:10 pm

TFS Policy Failure

Post by moadipp » Mon Oct 16, 2017 3:37 pm


When i need to check In, i always get the Policy Failure pop-Up after the Check In - Policy Warning.

1- Right-click on the element i want to Check In
2- Click on Check In
3- I add comment and i click on Check In button
checkIn.png (41.21 KiB) Viewed 968 times
4- The Policy Failure Pop-Up appear
Policy Warning.png
Policy Warning.png (48.58 KiB) Viewed 968 times
5- I check Override
6- I add a reason
7- I click on Ok

I don't have the same issue on the Source control Explorer

Ranorex version:
Microsoft Visual Studio 2012 Shell (Integrated)
Version 11.0.61219.0 Q11REL
Microsoft .NET Framework
Version 4.6.01055
Installed Version: IDE Standard
Microsoft Team Explorer for Visual Studio 2012
PreEmptive Analytics Visualizer 1.0

User avatar
Posts: 324
Joined: Fri Jan 09, 2015 3:24 pm

Re: TFS Policy Failure

Post by RobinHood42 » Tue Oct 17, 2017 9:06 am

Hi moadipp,

First of all, is no longer supported and maintained. The current version is Ranorex 7.2.0, so please update to that version. Furthermore, the issue doesn't seem to be related to Ranorex at all. Unfortunately, one is not able to see the error message, but I would suggest just searching for the specific error message: -> I'm sure that there are many entries about possible causes of the issue.

I hope this helps.

Robin 8)

User avatar
Posts: 36
Joined: Tue Nov 21, 2017 12:51 pm

Re: TFS Policy Failure

Post by _KK_ » Wed Dec 06, 2017 1:50 pm

This issue is also encountered in the (newest) Version 7.2.1

I created a "customer"-ticket to let analyse and solve this.



User avatar
Ranorex Guru
Ranorex Guru
Posts: 6545
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: TFS Policy Failure

Post by odklizec » Wed Dec 06, 2017 2:37 pm


In my opinion, it's a pretty normal TFS warning, appearing in case a TFS company policy is not matched? I'm not using integrated TFS in Ranorex, but I'm getting a similar warning in Team Explorer always when I forgot to enter "code review" comment for some of our projects. Have you asked responsible people about company's TFS policies?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

User avatar
Posts: 36
Joined: Tue Nov 21, 2017 12:51 pm

Re: TFS Policy Failure

Post by _KK_ » Wed Dec 06, 2017 4:09 pm

The workflow behavior in Ranorex with TFS (plugin) is:
Give a "comment" in the "first" appearance of the flow.
This comment is accepted by the flow and THEN the policy-issue appears.

I was told by TFS-guy that I have to complain this issue within Ranorex-part.

The rule expects only that a "comment" is given.
But you have to overwrite the second popup because of Violation.

Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: TFS Policy Failure

Post by krstcs » Wed Dec 06, 2017 7:58 pm

This is not a Ranorex issue.

This issue has to do specifically with TFS and the MS TFS MSSCCI module. MSSCCI is notoriously problematic and slow. You should use the MS TFS stand-alone integration instead. If you continue to have issues then the problem is your TFS implementation. If you don't continue to have the issue, then the problem is the MSSCCI plugin. Ranorex just uses that plugin and has nothing to do with the problems you are experiencing.
Shortcuts usually aren't...