Error while adding flow using flow scripting sdk

I'm using the javascript flow scripting sdk to add flows and until now, it was working properly.

Now, I'm getting the following error when I try to add a flow (I was able to add this same flow without any issue before)

ERROR! ArchActionCallData.setIntegrationActionByIdAsync - Caught unhandled exception during callback function execution. Ending session. Exception info: - Parameter 'actionDefId' in 'ArchBaseFactory.validateActionDefId' is invalid. Reason: ERROR! invalid action definition because 'SetLocaleAction' cannot be used in flows of type 'inboundcall' -- ARCH_CORE_FACTORY

I can't understand this error, any help would be really appreciated.

Thanks in advance

Hi athuldilip,
Thank you for your question. Have you recently updated Architect Scripting? What version of Architect Scripting are you currently using? We are looking into this issue on our side as well.

Just to verify, you are seeing this issue when calling ArchFactoryActions.addActionSetLanguage? If you have any sample code at all to share to help debug this issue that would be great.

Does this issue happen every time or is the failure intermittent?

Thanks,
Jon

Hi athuldilip,

I am working on reproducing your issue and am not able to with Architect Scripting version 0.3.2.

Thanks,
Jon

1 Like

athuldilip,

Could you send me a PM with the region you are seeing this issue in, which org you are in, and the timeframe of when you are/were seeing this issue?

Thanks,
Jon

Hi Jon,
I'm using the version 0.2.0, haven't updated it recently.

I'm seeing the issue while calling addActionSetLanguage.

let lang = languages.getByLanguageTag('en-us');
actionFactory.addActionSetLanguage(langTask, 'Set language', lang);

The issue happens every time. I will PM you the other details

Edit: It's working properly when I updated to version 0.3.2, I will switch to that.
Thanks a lot for the answer Jon :smiley:

Hi athuldilip,
Glad that it is working for you now after updating! Please let us know if you run into any more issues.

Thanks,
Jon

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.