SymptomsThe following error is returned during a client migration from Parallels Plesk Panel on Windows platform to Parallels Plesk Panel on Linux platform:
ERROR: (client object 'testclient') Execution of /opt/psa/admin/plib/api-cli/client.php --update testclient -phone +44.466032321 -city Testcity -address Test\ 66\ bus\ 4 -company Testcompany -country GB -zip 1234 -state Test failed with return code 1.
Unable to update a user account:
Wrong syntax for command's '-phone' parameter.
CauseThere is a difference between the format of a phone number accepted in Parallels Plesk Panel for Windows and in Parallels Plesk Panel for Linux. The following regexp is used to validate a phone number on these platforms
Linux: /^[\d\(\) +-]*$/
In the above example, a phone number can contain a '+' sign in Parallels Plesk Panel for Windows, but cannot contain it in Parallels Plesk Panel for Linux.