cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Shagoul
Helper I
Helper I

Invalid type. Expected String but got Null

Hi All,

 

Am very new to MS flow please help me one this.

 

Here I am triggered bot from MS flow when a new message enters on teams.

 

After that, I am running the bot with the UiPath orchestrator which working fine.

 

After sucessfull run the bot I want to reply to that message the task is done or NOT. So I’ve used parse JSON and below is my schema.

 

Sometimes it’s working fine some time I am getting errors inflow  "message": "Invalid type. Expected String but got Null.",

 

Can someone help me why sometimes it’s working fine and sometimes it’s not working fine, please advise how to resolve it.

 

Note: I’ve manually edit the JSON Parser allowing null type still this is not working some time.

 

"type": [

              "string",

              "null"

            ]

 

schema:

{

  "type": "object",

  "properties": {

    "value": {

      "type": "array",

      "items": {

        "type": "object",

        "properties": {

          "Key": {

            "type": "string"

          },

          "StartTime": {

            "type": "string"

          },

          "EndTime": {

            "type": "string"

          },

          "State": {

            "type": "string"

          },

          "JobPriority": {

            "type": "string"

          },

          "Source": {

            "type": "string"

          },

          "SourceType": {

            "type": "string"

          },

          "BatchExecutionKey": {

            "type": "string"

          },

          "Info": {

            "type": "string"

          },

          "CreationTime": {

            "type": "string"

          },

          "StartingScheduleId": {},

          "ReleaseName": {

            "type": "string"

          },

          "Type": {

            "type": "string"

          },

          "InputArguments": {

            "type": "string"

          },

          "OutputArguments": {

            "type": "string"

          },

          "HostMachineName": {

            "type": "string"

          },

          "HasMediaRecorded": {

            "type": "boolean"

          },

          "PersistenceId": {},

          "ResumeVersion": {},

          "StopStrategy": {},

          "RuntimeType": {

            "type": "string"

          },

          "RequiresUserInteraction": {

            "type": "boolean"

          },

          "ReleaseVersionId": {

            "type": "integer"

          },

          "EntryPointPath": {

            "type": "string"

          },

          "OrganizationUnitId": {

            "type": "integer"

          },

          "OrganizationUnitFullyQualifiedName": {

            "type": "string"

          },

          "Reference": {

            "type": "string"

          },

          "ProcessType": {

            "type": "string"

          },

          "ProfilingOptions": {},

          "Id": {

            "type": "integer"

          }

        },

        "required": [

          "Key",

          "StartTime",

          "EndTime",

          "State",

          "JobPriority",

          "Source",

          "SourceType",

          "BatchExecutionKey",

          "Info",

          "CreationTime",

          "StartingScheduleId",

          "ReleaseName",

          "Type",

          "InputArguments",

          "OutputArguments",

          "HostMachineName",

          "HasMediaRecorded",

          "PersistenceId",

          "ResumeVersion",

          "StopStrategy",

          "RuntimeType",

          "RequiresUserInteraction",

          "ReleaseVersionId",

          "EntryPointPath",

          "OrganizationUnitId",

          "OrganizationUnitFullyQualifiedName",

          "Reference",

          "ProcessType",

          "ProfilingOptions",

          "Id"

        ]

      }

    },

    "@odata.context": {

      "type": "string"

    },

    "@odata.count": {

      "type": "integer"

    }

  }

}

 

 

Thanks & Regards,

shagoul 

23 REPLIES 23

Dear miyukiamino,

 

This will never as null always I am getting value.

 

Actually am tiggering the bot using input arguments and getting output argument as result see below I got result as expected.

 

But Only power automat showing as null but I’ve value in (output argument ) Job Details.

 

 

Shagoul_0-1627987229973.png

 

 

 

Shagoul_1-1627987229987.png

 

 

MiyukiAmino
Microsoft
Microsoft

Hi. @Shagoul .

Sorry for late reply. This is a problem on the API side. You'll need to check with the team that provides the API.

Thank you, however, I find a solution by default I assigned some value in my argument now working fine. 

 

Every time when new value comes it will overwitire. 

View solution in original post

Good to hear that!

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,040)