You need to sign in to do that
Don't have an account?

URGENT -- Error please help
Hi all,
I added a new custom field to Opportunities and in then in Downloaded the new wsdl, saved it to my project and updated the Web Reference. Now when I try to run my code I get this error. What else do I need to do?
INVALID_FIELD: Pricebook2Id,Competitor__c,Discount__c,K2Partner__c,K2_Maintenance__c,K2_Maintenance_Notes__c ^ ERROR at Row:1:Column:162 No such column 'K2Partner__c' on entity 'Opportunity'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.
The weird thing is when I reference the filed this way, it sees that it exists.
sForce.Opportunity obj = (sForce.Opportunity)qrOpp.records[i];
strAccountID = obj.AccountId;
strK2Partner = obj.K2Partner__c.ToString();
Thanks in advance for you help.
Rhonda
When I created the field, I made sure that visible was checked in Step 3. I just went back and checked it and it is still checked.
Thanks,
Rhonda
umm how do I do that?
Rhonda
Ok so I found the AppExchange Explorer and tried to query. The custom field does not appear. It is a lookup field to a custom table if that helps.
Thanks,
Rhonda
So I just discovered that custome fields for some reason doesn't like lookup fields although you can create it. I deleted the field and recreated it as a text field and it works. Is this a bug or feature?
Rhonda