Sentinel Smart Deployment cannot push csv file to Azure DevOps

Ha Nguyen 10 Reputation points
2024-04-05T06:33:36.0033333+00:00

When I deploy content to sentinel using Azure DevOps, the content deploys successfully but when smart deployment enabled, it cannot push csv tracking file to Azure Repo with error

[Warning] API call failed: {"$id":"1","innerException":null,"message":"The body of the request contains invalid Json.\r\nParameter name: contentStream","typeName":"Microsoft.TeamFoundation.SourceControl.WebServer.InvalidArgumentValueException, Microsoft.TeamFoundation.SourceControl.WebServer","typeKey":"InvalidArgumentValueException","errorCode":0,"eventId":0}.
 Conducting retry #0.
[Warning] API call failed: {"$id":"1","innerException":null,"message":"The body of the request contains invalid Json.\r\nParameter name: contentStream","typeName":"Microsoft.TeamFoundation.SourceControl.WebServer.InvalidArgumentValueException, Microsoft.TeamFoundation.SourceControl.WebServer","typeKey":"InvalidArgumentValueException","errorCode":0,"eventId":0}.
 Conducting retry #1.
[Warning] API call failed: {"$id":"1","innerException":null,"message":"The body of the request contains invalid Json.\r\nParameter name: contentStream","typeName":"Microsoft.TeamFoundation.SourceControl.WebServer.InvalidArgumentValueException, Microsoft.TeamFoundation.SourceControl.WebServer","typeKey":"InvalidArgumentValueException","errorCode":0,"eventId":0}.
 Conducting retry #2.
[Warning] API call failed: {"$id":"1","innerException":null,"message":"The body of the request contains invalid Json.\r\nParameter name: contentStream","typeName":"Microsoft.TeamFoundation.SourceControl.WebServer.InvalidArgumentValueException, Microsoft.TeamFoundation.SourceControl.WebServer","typeKey":"InvalidArgumentValueException","errorCode":0,"eventId":0}.
 Conducting retry #3.
[Error] API call failed after 4 retries: {"$id":"1","innerException":null,"message":"The body of the request contains invalid Json.\r\nParameter name: contentStream","typeName":"Microsoft.TeamFoundation.SourceControl.WebServer.InvalidArgumentValueException, Microsoft.TeamFoundation.SourceControl.WebServer","typeKey":"InvalidArgumentValueException","errorCode":0,"eventId":0}

This error occurs only on specific branch, when I deploy the same content on another branch csv file pushed successfully.

Microsoft Sentinel
Microsoft Sentinel
A scalable, cloud-native solution for security information event management and security orchestration automated response. Previously known as Azure Sentinel.
1,172 questions
{count} vote

1 answer

Sort by: Most helpful
  1. James Hamil 25,786 Reputation points Microsoft Employee
    2024-04-08T20:04:21.6133333+00:00

    Hi @Ha Nguyen , based on the error message you provided, it seems that the issue is related to the content of the CSV file that is being pushed to Azure Repo. The error message states that "The body of the request contains invalid Json". This suggests that the content of the CSV file may not be in the correct format or may contain invalid characters.

    Since the error occurs only on a specific branch, it is possible that the CSV file on that branch is different from the CSV file on the other branch where the deployment was successful. You may want to compare the CSV files on both branches to see if there are any differences.

    Another possible cause of the issue could be related to the encoding of the CSV file. Make sure that the CSV file is encoded in UTF-8 format, which is the recommended encoding for Azure DevOps.

    Please let me know if you have any questions and I can help you further.

    If this answer helps you please mark "Accept Answer" so other users can reference it.

    Thank you,

    James

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.