Our setup: CRM 4.0 plus both rolled up patches (November 2008, Jan 2009).
We're having issues getting our custom ISV.Config to synchronise to the offline client on our production machines. Weirdly the exact same ISV works fine on our development and testing machines.
The error itself is:
"An unexpected result was returned during Offline Synchronization. #tempIsvConfigBase count inserts 0!=All requested count inserts."
I've found references to this error around the place, it seems the table which it fails on is irrelevant to the error. We tried the many suggested fixes noted in
KB916165 without success.
Anyway, after much messing about, I determined that it was actually the contents of the ISV.Config which is causing the problem. There are two button defintions which are breaking the download. One is on a custom entity, the other is on an existing entity.
These are the offenders:
<configuration version="3.0.0000.0"> |
<Root /> |
<!-- Microsoft Customer Relationship Management Entities (Objects) --> |
<Entities> |
<Entity name="new_outletactivity"> |
<ToolBar ValidForCreate="0" ValidForUpdate="1"> |
<Button Client="Web, Outlook" AvailableOffline="true" Icon="/_imgs/ico_16_1088_d.gif" Url="/WORMS/CreateOrder.aspx" PassParams="1" WinParams="location=0,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=1" WinMode="0"> |
<Titles> |
<Title LCID="1033" Text="Create Order" /> |
</Titles> |
</Button> |
</ToolBar> |
</Entity> |
<Entity name="salesorder"> |
<ToolBar ValidForCreate="0" ValidForUpdate="1"> |
<Button Client="Web, Outlook" AvailableOffline="true" Icon="/_imgs/ico_18_debug.gif" Url="/WORMS/SubmitOrder.aspx" PassParams="1" WinParams="location=0,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=0,height=750,width=1200" WinMode="0"> |
<Titles> |
<Title LCID="1033" Text="Submit Order" /> |
</Titles> |
</Button> |
</ToolBar> |
</Entity> |
</Entities> |
<ServiceManagement /> |
</configuration> |
If these to buttons/entities are in the ISV.config, it won't download to an offline machine (this is an edited version of our ISV, there are about ten more buttons in it).
Weirdly, if I attach these exact buttons to other entities the offline sync works fine. The two entities in question are set to work offline, and the security role for the offline user has permission to see them.
Any suggetions?