• iris
  • NEWBIE
  • 0 Points
  • Member since 2007

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hi,
 
I am getting INVALID_FIELD: No such column 'meifYouCan' on entity 'case'. when I try to update the case Object.    SaveResult[] saveResults = binding.update(cases);
I am using API version 7.0
 
Any pointers in helping to resolve this?
 
thanks
Iris
 
  • May 24, 2007
  • Like
  • 0

I am attempting to move sharing rules from one account to another, but when my code (in Java) runs, I get the following error:

Code: INVALID_FIELD_FOR_INSERT_UPDATE

Message: bad field names on insert/update call: AccountId

Here is my code (in Java using the code generated by Axis and our enterprise wsdl file, and using the 2.5 API):

- - - - -

    public SaveResult[] moveAccountSharingRules(ID po_share_id, ID po_to_account_id)
         throws RemoteException
    {  
         AccountShare updateAccountShare = new AccountShare();
         updateAccountShare.setId(po_share_id);
         updateAccountShare.setAccountId(po_to_account_id);
  
         SObject[] o_obj = new SObject[] { updateAccountShare };
  
         return go_conn.update(o_obj); 
    }

- - - - - -

Am I just not allowed to move sharing rules from one account to another?  Or is there some other possible reason?

FYI, I am doing this because a subset of our accounts were imported twice into Salesforce.com with separated sets of sharing rules that we now need combined, and duplicates removed.

 

 

Message Edited by Mauman on 12-19-2003 10:17 AM

  • December 19, 2003
  • Like
  • 0