Skip to main content

Posts

Showing posts from May, 2018

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.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).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.

"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…