Troubleshooting
Problem
Errors occur using the string CAMID(\"":\"") as the search path in a VB.NET SDK application
Symptom
CM-REQ-4342 The client did something wrong
Using a soap trace tool
revealed the following underlying errors:
CM-REQ-4158 The search path
<search path> is invalid
CM-REQ-4078 The function
"CAMID" has an invalid argument
CM-REQ-4099 The syntax of the
search path is incorrect
Environment
Cognos 8
Windows
VB.NET
Resolving The Problem
Use correct syntax to specify the string CAMID(":")
Steps:Code snippet causing error...
spSingle.Value = "CAMID(\"":\"")"
Try
cmService.add(spSingle, bcaObject, ao)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
...
Use the following to properly set the value
spSingle.Value = "CAMID(" & Chr(34) & ":" & Chr(34) & ")"
Related Information
[{"Product":{"code":"SSEP7J","label":"Cognos Business Intelligence"},"Business Unit":{"code":"BU053","label":"Cloud \u0026 Data Platform"},"Component":"Install and Config","Platform":[{"code":"PF033","label":"Windows"}],"Version":"8.1","Edition":"","Line of Business":{"code":"","label":""}},{"Product":{"code":"SSEP7J","label":"Cognos Business Intelligence"},"Business Unit":{"code":"BU053","label":"Cloud \u0026 Data Platform"},"Component":"Software Development Kit","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"","label":""}}]
Historical Number
1029598
Was this topic helpful?
Document Information
Modified date:
28 November 2022
UID
swg21341535