Pushed the new flow to mypurecloud.com.au last night and the Agent Scripting block won’t parse the local +61 format. The /api/v2/architect/flows endpoint throws a 502 when the script hits the ACMA compliance check, latency from the LA pipeline sitting at 140ms. Console just dumps a timeout payload and it’s dropping the call.
The 502 isn’t from the edge latency. It’s the script parser choking on the regex for the +61 prefix before it even hits the validation API. Architect scripting blocks are strict about format. You’re probably passing the raw string with the plus sign directly into a numeric validation node. Strip the prefix first. Use a Set Variable block to clean it, then validate. Also, check your flow’s region settings. Sydney edge doesn’t always cache the latest ACMA rules if the flow was created in a different region. Here’s the quick fix for the variable prep:
// In the Set Variable block, use this expression to strip non-digits
${input.phoneNumber.replace(/[^0-9]/g, '')}
Make sure the target variable is a string. If you force it to integer, you lose the leading zeros on mobile numbers and the ACMA check fails silently with a bad gateway. Restart the flow after the change. Don’t just save it.