<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
Workflows Card Input Has Red Error Text and Cannot Save the Flow - "invalid type conversion"
Okta Classic Engine
Workflows
Okta Identity Engine
Overview

If a flow will not save and red text appears that indicates something is failing, validate the input to the card to ensure that the data type matches what is expected.

  • This may be apparent when trying to save a Flow but unable to and receiving an Error message: 

Save Failure Your Flow cannot be saved because it is invalid. Correct the problems and try again.

 

Hover over the red text on a card to see further details.

  • Example: Invalid type conversion can be seen when an action or function card expects a specific type of input but receives another that it cannot convert. In this example, List to Text is expecting a List of Text however, a List of Objects is being passed in.

 

Applies To
  • Okta Workflows
Cause
Cards are validated when inputs are added and also during the validation process when flows are saved. If the system detects a data type mismatch, it will not allow saving the flow as it will create an error.
Solution

To prevent issues while saving flows or adding inputs to cards:

  1. After discovering the card(s) with red text, as shown above, the data type being passed in must have the expected data type.

  2. Update the output data type to match the expected input type will allow the text to turn black to allow saving the flow. ​

    1. In this instance, the List-Construct output can be changed as needed; however, depending on the flow design/usage, it may be necessary to leverage other Function cards to get the needed format.

      1. Here is an article on a different example to reference as well: Send Mail Action for Office 365 Mail - Cannot Add Attachments - Error Received when Trying to Save the Flow

      1. Now that the Input/Output types match, the red text is gone, and the flow can be saved

Related References

Loading
Workflows Card Input Has Red Error Text and Cannot Save the Flow - "invalid type conversion"