The CreatorCon Call for Content is officially open! Get started here.

Warning message when Publishing Flow Designer Action w/ Script step

GoBucks
Mega Sage

I am relatively new to developing with Flow Designer.  I recently created a simple Flow that contains a custom Action.  The Action has one input that is a Reference to the Contract table (ast_contract):

find_real_file.png

There is then one Script step in this Action and that's it.

Upon publishing the action, I get the following warning:

  • Reference type field 'contract_record' in table '' inserted with a max length of 32. Reference type fields hold the sys_id of the reference record which is a 32-character GUID
  • Maximum length cannot be increased on a Reference type field. Column 'contract_record' in table 'var__m_sys_hub_action_input_e9a99b87dbbf8410b8400c65ca9619b2' not modified.

Here's a screenshot of where the warning pops up:

find_real_file.png

I can see this is establishing that reference input I defined above, but what is this warning me about?  Would there be something in my Script step in this Action that needs addressed that caused this warning?  What is wrong here?

4 REPLIES 4

Priyanka Vasant
Tera Guru

Hello,

 

i have found the similar scenario that might help you to get solution for the same issue.

https://community.servicenow.com/community?id=community_question&sys_id=da3807addb1cdbc01dcaf3231f96...

Mark helpful or coreect based on impact.

 

Regards,

Priyanka A.

I never even tried to modify the length of any field though.  The Input I created was done simply by providing a label, a name, and then choosing the data type.  I chose Reference which required me to select a table and I chose Contract.  Upon publishing I get that warning.

I basically configured what was a configurable option. That input is the input to a script step that follows it in this Action.  Could the warning be about how I'm using the Input object (possibly incorrectly?) in the script step?  The test results are successful when I test this Action though.  And even the Flow where I use this Action appears to work fine.

Priya Shid1
Kilo Guru

Hi GoBucks,

 

'contract_record' returning the value to the reference field is of size greater that size specified to the reference field.you can check with that value first .

 

Please mark if that helps you!!

When creating the Input I simply provided a label and a name.  I was never even given an option to modify any field length.  I just simply made the Type a Reference field as it was presented as a valid option to me.