Salesforce trouble shooting
イシュー
- Salesforceのエラー対応メモ
変更セット使用時
Cannot set sharingModel to ControlledByParent on a CustomObject without a MasterDetail relationship field
- Metadata API: Cannot set sharingModel to ControlledByParent on a CustomObject without a MasterDetail relationship field - Salesforce Developer Community
- エラー内容は、カスタムオブジェクトの各項目であるカスタム項目がないためにエラーとなっている。なので、カスタム項目を追加する必要があります。
デプロイ時
Unknown User Permission
- サンドボックスから本番にプロファイルを反映する場合に、Unknownのパーミッションが存在する場合がある。(その場合はプロファイルから削除する)
- ManageCustomPermissions
- ManageExchangeConfig
- MergeTopics
- ShareInternalArticles
- ViewEventLogFiles
参考
- Summer 14- Force.com project fails with "Unknown user permission"
- たいていのことは、「気合い」と「根性」で乗り越えられるものだ!!:【salesforce】デプロイしたらUnknown user permission: ViewHelpLinkってエラーがでた。
インナークラス使用時
OuterClass.InnerClass: Instance method clashes with static method: outerMethod(String): from:
NG
- static methodからインナークラスのmethodをコールする場合に、同じ名称だと clashする
global with sharing class OuterClass { @RemoteAction global static String outerMethod(String inputString) { return new InnerClass().outerMethod(inputString); // NG } // Inner Class private without sharing class InnerClass { public String outerMethod(String inputString){ return inputString; } } }
OK
- static methodからインナークラスのmethodをコールする場合に、別の名称だと OK
global with sharing class OuterClass { @RemoteAction global static String outerMethod(String inputString) { return new InnerClass().innerMethod(inputString); // OK } // Inner Class private without sharing class InnerClass { public String innerMethod(String inputString){ return inputString; } } }
Visualfoceコンポーネントに、favicon.ico を設定しても表示されない
キーワード
- 不具合
- トラブルシューティング