# Missing Blame Information for the

**URL:** <https://community.sonarsource.com/t/missing-blame-information-for-the/64842>\
**Category:** SonarQube Server / Community Build\
**Tags:** sonarqube\
**Created:** [June 15, 2022, 10:35am UTC](https://community.sonarsource.com/t/missing-blame-information-for-the/64842 "2022-06-15T10:35:55Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prakashiks](https://avatars.discourse-cdn.com/v4/letter/p/c6cbf5/32.png) [@Prakashiks](https://community.sonarsource.com/u/Prakashiks)\
**Post date:** [June 15, 2022, 10:35am UTC](https://community.sonarsource.com/t/missing-blame-information-for-the/64842/1 "2022-06-15T10:35:55Z")

</div>

SonarQube Version 8.9.8 Community Edition

We are unable to collect blame data information for the few files in the .NET application build.  
Although we have enabled blame information global settings in the Sonar.

We are unable to collect blame data for few files developed in the .NET application. This is observed only for single project(solution) where only 4 files are affected (files checked-in almost a yr back). Other files does show valid author and valid creation date check-in history but these 4 files appear in latest Creation Date filter with warning as “Missing blame information for 4 files. This may lead to some features not working correctly.” and missing author name.  
For other project it works fine just an issue with one of the project among 10 other projects. Please help us to get this rectified.

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [June 15, 2022, 6:53pm UTC](https://community.sonarsource.com/t/missing-blame-information-for-the/64842/2 "2022-06-15T18:53:49Z")

</div>

Hi,

Welcome to the community!

Are those files modified during your build/pipeline?

Can you share your full build logs?

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![Prakashiks](https://avatars.discourse-cdn.com/v4/letter/p/c6cbf5/32.png) [@Prakashiks](https://community.sonarsource.com/u/Prakashiks)\
**Post date:** [June 16, 2022, 12:16pm UTC](https://community.sonarsource.com/t/missing-blame-information-for-the/64842/3 "2022-06-16T12:16:06Z")

</div>

[jenkinsCI\_log.txt](https://community.sonarsource.com/uploads/short-url/z3KyJLxi8kHAXJwriREXUkE4KE7.txt) (6.1 MB)  
Hi Ann,  
I have attached Jenkins CI log file and we aren’t modifying the files which has issue with blame information as we aren’t doing any changes at runtime.

Thanks,  
Prakash

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [June 16, 2022, 1:14pm UTC](https://community.sonarsource.com/t/missing-blame-information-for-the/64842/4 "2022-06-16T13:14:42Z")

</div>

Hi Prakash,

Thanks for the log. When you run `git blame` on these files manually, what do you get?

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![Prakashiks](https://avatars.discourse-cdn.com/v4/letter/p/c6cbf5/32.png) [@Prakashiks](https://community.sonarsource.com/u/Prakashiks)\
**Post date:** [June 16, 2022, 1:55pm UTC](https://community.sonarsource.com/t/missing-blame-information-for-the/64842/5 "2022-06-16T13:55:34Z")

</div>

> [@ganncamp](#):
>
> Thanks for the log. When you run `git blame` on these files manually, what do you get?

Hi Ann,

We are getting the author information with exact date time blame data information.  
Thanks

---

<div class="post-metadata">

**Author:** ![Neha\_Dalal](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/neha_dalal/32/33824_2.png) [@Neha\_Dalal](https://community.sonarsource.com/u/Neha_Dalal)\
**Post date:** [June 16, 2022, 3:58pm UTC](https://community.sonarsource.com/t/missing-blame-information-for-the/64842/7 "2022-06-16T15:58:45Z")

</div>

Hi Ann,

I’m from Prakash team, Replying on his behalf. Git blame does provide that information but how to make it work from CI CD (build tool), can you please help us out? I get " Missing blame information for 4 files. This may lead to some features not working correctly. Please check the analysis logs and refer to [the documentation](http://sonarqube.ikshealth.com:9000/documentation/analysis/scm-integration/)." in warning on that project. please help.

---

<div class="post-metadata">

**Author:** ![dmeneses](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/dmeneses/32/2933_2.png) [@dmeneses](https://community.sonarsource.com/u/dmeneses)\
**Post date:** [June 16, 2022, 6:36pm UTC](https://community.sonarsource.com/t/missing-blame-information-for-the/64842/8 "2022-06-16T18:36:07Z")

</div>

Is there a chance the files got modified locally before running the scanner?

---

<div class="post-metadata">

**Author:** ![Neha\_Dalal](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/neha_dalal/32/33824_2.png) [@Neha\_Dalal](https://community.sonarsource.com/u/Neha_Dalal)\
**Post date:** [June 17, 2022, 4:18am UTC](https://community.sonarsource.com/t/missing-blame-information-for-the/64842/9 "2022-06-17T04:18:11Z")

</div>

According to me it is not, is there a way to identify it? When we go to bitbucket and check history for the file it shows 2021 dec. not sure why does it appear in latest search window and also shows as missing blame.

---

<div class="post-metadata">

**Author:** ![dmeneses](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/dmeneses/32/2933_2.png) [@dmeneses](https://community.sonarsource.com/u/dmeneses)\
**Post date:** [June 17, 2022, 6:36pm UTC](https://community.sonarsource.com/t/missing-blame-information-for-the/64842/10 "2022-06-17T18:36:42Z")

</div>

If you can modify your build script and add `git status` you should be able to tell.

---

<div class="post-metadata">

**Author:** ![dmeneses](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/dmeneses/32/2933_2.png) [@dmeneses](https://community.sonarsource.com/u/dmeneses)\
**Post date:** [June 17, 2022, 6:37pm UTC](https://community.sonarsource.com/t/missing-blame-information-for-the/64842/11 "2022-06-17T18:37:57Z")

</div>

Or if you enable debug logging in the scanner, you should see a message about uncommitted lines, if that’s the case.

---

<div class="post-metadata">

**Author:** ![Prakashiks](https://avatars.discourse-cdn.com/v4/letter/p/c6cbf5/32.png) [@Prakashiks](https://community.sonarsource.com/u/Prakashiks)\
**Post date:** [June 22, 2022, 11:37am UTC](https://community.sonarsource.com/t/missing-blame-information-for-the/64842/13 "2022-06-22T11:37:07Z")

</div>

Hi,

We got below details in Jenkins CI job where four files have missing blame information.  
Requesting you to help to get this resolve.

16:28:50 WARN: Missing blame information for the following files:  
16:28:50 WARN: \* XXXXX/XXXX/XXXXXX/AT\_Hanger\_MEDICARE\_DME\_Redetemination\_Request\_Form.cshtml  
16:28:50 WARN: \* XXXXX/XXXX/XXXXXX/AT\_CMM\_AmeriHealth\_Claims\_Determination.cshtml  
16:28:50 WARN: \* XXXXX/XXXX/EcsStatusCodeHelp.html  
16:28:50 WARN: \* XXXXX/XXXX/XXXXXXX/AT\_CMM\_Humana\_GRIEVANCE\_APPEAL\_REQUEST\_FORM.cshtml  
16:28:50 WARN: This may lead to missing/broken features in SonarQube

Thanks,  
Prakash

---

<div class="post-metadata">

**Author:** ![dmeneses](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/dmeneses/32/2933_2.png) [@dmeneses](https://community.sonarsource.com/u/dmeneses)\
**Post date:** [June 22, 2022, 6:57pm UTC](https://community.sonarsource.com/t/missing-blame-information-for-the/64842/14 "2022-06-22T18:57:41Z")

</div>

As posted above, please check if there are uncommitted changed in those files.

---

<div class="post-metadata">

**Author:** ![Prakashiks](https://avatars.discourse-cdn.com/v4/letter/p/c6cbf5/32.png) [@Prakashiks](https://community.sonarsource.com/u/Prakashiks)\
**Post date:** [June 27, 2022, 7:49am UTC](https://community.sonarsource.com/t/missing-blame-information-for-the/64842/15 "2022-06-27T07:49:08Z")

</div>

Hi,

We have tried your suggestion but still unable to resolve the issue.  
We have tried several ways and found JGit commands has proper blame information but we aren’t able to find how to integrate same with Jenkins CI or in Sonar.

Command we are using : /home/sonarqube/jgit.sh blame  
MyRepository/Views/MyViewDirectory/MyViewName.cshtml

 ![image (31)](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/7/a/7af67109da4875d8aaec748d8def72f4d08997a1.png)

Thank You!!

---

<div class="post-metadata">

**Author:** ![dmeneses](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/dmeneses/32/2933_2.png) [@dmeneses](https://community.sonarsource.com/u/dmeneses)\
**Post date:** [June 27, 2022, 2:19pm UTC](https://community.sonarsource.com/t/missing-blame-information-for-the/64842/16 "2022-06-27T14:19:38Z")

</div>

Hello,  
JGit won’t fail if some lines don’t have a blame info but it will show no commit sha1 or author for those lines. When that happens, SonarQube refuses to collect any blame information for the file.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/system/32/31083_2.png) [@system](https://community.sonarsource.com/u/system)\
**Post date:** [September 1, 2022, 2:08pm UTC](https://community.sonarsource.com/t/missing-blame-information-for-the/64842/17 "2022-09-01T14:08:33Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
