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
surenssurens 

Some codes run in one developer org but the same code doesn't run in another one developer org.

Hi All,

 I have found some code for creating customer portal user . But unfortunately that code run in one developer account the same codedoesn't run in another one developer org. (I do only the copy & paste work)

 

The code available like:

    http://wiki.developerforce.com/page/ExampleApexCustomerPortalUser


Error: Compile Error: Invalid constructor syntax, name=value pairs can only be used for Subjects at line 106 column 18 

 

please help

Suresh RaghuramSuresh Raghuram

dont do copy you may be miss some dependencies like any field or labels you created specific to that program.

 

Bettter prefer change sets or eclipse

 

 

If this answers your question make it as solution.

craigmhcraigmh

It's trying to use a constructor for something besides the User sObject.

 

I bet in the instance where it doesn't work, there's an Apex class named "User"