Skip to main content

Salesforce admin gotchas

After coming across some of these for the hundredth time, I've decided to keep a list of bizarre inconsistencies / gotchas in Salesforce.


  • Editable list views for certain objects don't allow editing of record owner field, even though certain object types (e.g. Cases) have a "Change owner" or "Assign" option right there on the list view which does the same thing, so something exactly like this is obviously already implemented.
  • It's possible to mass-edit most things in list views, but not tasks.  There's no explanation why, official response from Salesforce is "install an AppExchange package" - at least there's a community that building what should be basic functionality (and already is, for other objects!).
  • You can mass transfer ownership of accounts, but not contacts. It's because of this.
  • The force.com cli's export-to-csv functionality (force query --format:csv) creates a file that its own CSV parsing functions consider invalid if you try to re-import it (force bulk update whatevs.csv).
  • Bulk data load jobs refuse to parse CSV files encoded with UTF-8, so you have to re-save them all in ASCII and hope there's nobody named José in there. How the heck do they use it in Asian countries?
  • Adding a custom field to a standard object does not add it to any report types for that object.  But adding a custom field to a custom object does.
  • Unlike every other programming, scripting and query language, SOQL doesn't have a comment character.  Not even a single-line one.
  • Rather than updating existing features, Salesforce sometimes makes a completely separate, "enhanced" version of that feature but preserves the old one too (probably for legacy compatibility etc). This would be great if the "enhanced" version was at least at feature parity with the old stuff, but there are plenty of cases where you have to switch back and forth betwen both versions, as certain functionality only exists in the old version and is just never implemented.  In most other SaaS stuff this would be completely insane. Examples below
  • The old "Flows" functionality is pretty nasty but has some useful features (like error handling and iterating) that were never added to the "Process Builder" feature, which tries to be a partial replacement for it but really, really isn't
  • Old profile editor vs "enhanced" profile editor:  the old profile editor allowed you to update settings for multiple objects simultaneously, which is required in certain situations such as the following ridiculous situation from this blog post:
    "... as soon as I went to remove access to the Account Brands object, Salesforce presented an error: I couldn't remove those permissions until I first removed permission from the Scorecard Associations object. Similarly, if I tried to remove permissions from Scorecard Association, I got an error saying I had to first resolve the access permissions on the Account Brands object...You need to revert back to the old Profile Editor, since it allows permission changes to multiple objects before a Save operation is committed"


Comments

Popular posts from this blog

"A section using 'configSource' may contain no other attributes or elements" error after installing Application Insights

After installing the Application Insights nuget package to an Umbraco solution, you'll get this error:

A section using 'configSource' may contain no other attributes or elements

<ExamineLuceneIndexSets configSource="config\ExamineIndex.config" />
     <log4net configSource="config\log4net.config">
         <root>
             <level value="ALL" />
             <appender-ref ref="aiAppender" />
Source File: \project\web.config

This happens because part of the Application Insights installation process adds a <log4net> section to web.config.  Which would make sense, except Umbraco already has a <log4net> section in /config/log4net.config.  So as you can imagine, the solution is to manually move everything its added into that file. Unfortunately you can't just copy/paste the whole lot, but it's not particularly complicated:


Move <appender-ref ref="aiAppender" /> into the lo…

Using WiX to create an event source during install of a .NET framework project

Edit: so I guess I wasn't the only one confused with this stuff, as it's been my most popular post by far!  If I've helped you out or saved you some time, please let me know in the comments :)

In order for this to work, you have to add references to WixUtilExtension and WixNetFxExtension to your WiX project.  Once that's done, add this inside a <Component> element:

<Util:EventSourcexmlns:Util="http://schemas.microsoft.com/wix/UtilExtension"Name="EVENTSOURCEGOESHERE"Log="Application"EventMessageFile="[NETFRAMEWORK40FULLINSTALLROOTDIR]EventLogMessages.dll" />
Obviously replace EVENTSOURCEGOESHERE with your event source name.  NETFRAMEWORK40FULLINSTALLROOTDIR is a property set by the WixNetFxExtension which stores the path to the .NET framework v4 directory, but you can replace this with the corresponding property for the directory containing the relevant EventLogMessages.dll file.  So if you're using the .NET framewo…

How to make yourself a Dynamics CRM 2011 Deployment Administrator

Today I needed to deactivate one of our Dynamics organisations, but when I opened the Dynamics Deployment Manager, I received the following error:

"Only the Deployment Administrators are able to use Deployment Manager. You are not a Deployment Administrator."
Bummer. I did a bit of Googling and found this post by Ronald Lemmen (thanks for pointing me in the right direction!).  Since the Dynamics Deployment Manager is obviously checking the MSCRM_CONFIG database for this information I attached a database trace to it and found that it's executing these queries (among many others):

exec sp_executesql N'SELECT  Id, [DefaultOrganizationId], [IsDisabled], [Name]   FROM [SystemUser]   WHERE ((([Name] = @Name0)) ) AND (IsDeleted = 0) ', N'@Name0 nvarchar(41)',@Name0=N'{My windows domain account}'
exec sp_executesql N'SELECT  Id, [Name], [UniqueifierId]   FROM [SecurityRole]   WHERE ((([Name] = @Name0)) ) AND (IsDeleted = 0) ', N'@Name0 nvarchar…