SAP Knowledge Base Article - Public

1182666 - Error: "The syntax of the value for prompt <parameter name> is incorrect"

Symptom

When using http://<machine name>/crystalreportviewers115/viewrpt.asp with parameters passed in the URL, values that have hyphens (-) are not recognized and the following error message appears:

"The syntax of the value for prompt <parameter name> is incorrect".

Cause

Parameters that have special characters should be put inside double quotes (" " ) or (%22).
 

Resolution

Modify the URL. Instead of:

http://machine name/crystalreportviewers115/viewrpt.asp?id=748&apsuser=administrator&apspassword=&promptex-MyParameter=Phil-Am

URL should be like so:

http://machine name/crystalreportviewers115/viewrpt.asp?id=748&apsuser=administrator&apspassword=&promptex-MyParameter="Phil-Am"

OR

http://machine name/crystalreportviewers115/viewrpt.asp?id=748&apsuser=administrator&apspassword=&promptex-MyParameter=%22Phil-Am%22

Keywords

viewrpt.asp, hyphen , 1632503 , KBA , BI-BIP , Business intelligence platform , Problem

Product

Crystal Reports Server XI R2 ; Crystal Reports Server XI R2, OEM edition ; SAP Crystal Server XI