function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
BPOORBPOOR 

Visual Studio Code Deploy Issue

I am trying to deploy an utility class by adding a small method. The method implementation is below.
public static boolean isId(String strValue) {                                  
        return strValue InstanceOf Id;                                                  
    }
When I try the option "Deploy to Source Org", I am getting the following error message.
 
19:53:04.627 Starting Deploy (Beta)
When retrieving results with Metadata or FullName fields, the query qualificatio​ns must specify no more than one row for retrieval. Result size: 2

Has anyone experienced this? In my package.xml, I only have few apex classes and nothing else.

Can someone help?


 
Caleb Kuester 27Caleb Kuester 27

I would try something like:

try{
    Id.valueOf(strValue);
}catch{
    return false;
}
return true;