{tocify} $title={Table of Contents}
Issue
Today got below error in a logic app at runtime
The variable 'isLogSent' of type 'Boolean' cannot be initialized or updated with value of type 'String'. The variable 'isLogSent' only supports values of types 'Boolean'.
Why it happened
In the logic app, have initialized a Boolean variable which is set to False and upon successful execution of an action it is set to True.
All look fine during design time and was able to save it to, very trivial thing.
However, at run time, it complained that the value used to initialized this variable is String and is not supported.
In logic app, False/True is not identified as Boolean value rather it is treated as String.
What to do
In my opinion, we should be able to initialize/set Boolean variables with either of the values
- false/true
- False/True
- 0/1
However, in Logic App only accepted value is false/true, so did the change.
Initialized the variable with false and set it with true where an action was successful.
If you have questions or suggestions, feel free to do in comments section below !!!
Do share if you find this helpful .......
Knowledge Sharing is Caring !!!!!!
Learn More about some more Logic App errors
- The request has both SAS authentication scheme and 'Bearer' authorization scheme. Only one scheme should be used
- Selected file must be between 1 and 2097152 bytes
- SplitOn property doesn't validate expression at design time
- The workflow with 'Response' action type should not have triggers with 'splitOn' property
- The template language function 'xpath' expects its first parameter to be an XML object
- The template language expression 'xxx' cannot be evaluated because property 'xxx' doesn't exist. Property selection is not supported on content of type 'application/xml'
Tags:
Azure Logic App Error