Sorry if this has already been covered but the search on this thing is terrible.
Using Visual Studio 2015 Professional to write a report for Dynamics 365 Online. The report generates fine but will not import into Dynamics. I simply get errors.
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Only data source using fetch data provider is permitted on this report.Detail:<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts"><ActivityId>85099a00-1009-4efb-aca3-9aa9d6608679</ActivityId><ErrorCode>-2147187955</ErrorCode><ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" /><Message>Only data source using fetch data provider is permitted on this report.</Message><Timestamp>2017-07-18T13:45:05.0028937Z</Timestamp><ExceptionRetriable>false</ExceptionRetriable><ExceptionSource i:nil="true" /><InnerFault i:nil="true" /><OriginalException i:nil="true" /><TraceText i:nil="true" /></OrganizationServiceFault>
I have tried changing the "TargetServerVersion" but this made no difference. The error is,
I cannot see, for the life of me what I am doing wrong. I have attached the header section of the report to see if anyone can shed some light on this please?
<?xml version="1.0" encoding="utf-8"?><Report MustUnderstand="df" xmlns="schemas.microsoft.com/.../reportdefinition" xmlns:rd="schemas.microsoft.com/.../reportdesigner" xmlns:df="schemas.microsoft.com/.../defaultfontfamily"><df:DefaultFontFamily>Segoe UI</df:DefaultFontFamily><AutoRefresh>0</AutoRefresh><DataSources><DataSource Name="DataSource1"><DataSourceReference>DataSource1</DataSourceReference><rd:SecurityType>None</rd:SecurityType><rd:DataSourceID>b7d32851-327f-4c93-b4c8-e1159a63f957</rd:DataSourceID></DataSource></DataSources><DataSets><DataSet Name="DataSet1"><Query><DataSourceName>DataSource1</DataSourceName><QueryParameters><QueryParameter Name="days"><Value>=Parameters!days.Value</Value><rd:UserDefined>true</rd:UserDefined></QueryParameter></QueryParameters><CommandText><fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true"><entity name="lead"><attribute name="fullname" /><attribute name="companyname" /><attribute name="telephone1" /><attribute name="leadid" /><order attribute="fullname" descending="false" /><filter type="and"><condition attribute="createdon" operator="olderthan-x-days" value="7" /><condition attribute="uob_enquirystatus" operator="in"><value>183400000</value><value>183400001</value><value>183400007</value><value>183400004</value><value>183400003</value></condition></filter><link-entity name="activitypointer" from="regardingobjectid" to="leadid" alias="ag"><filter type="and"><condition attribute="createdon" operator="olderthan-x-days" value="14" /></filter></link-entity></entity></fetch></CommandText><rd:UseGenericDesigner>true</rd:UseGenericDesigner></Query><Fields><Field Name="fullname"><DataField>fullname</DataField><rd:TypeName>System.String</rd:TypeName></Field><Field Name="companyname"><DataField>companyname</DataField><rd:TypeName>System.String</rd:TypeName></Field><Field Name="telephone1"><DataField>telephone1</DataField><rd:TypeName>System.String</rd:TypeName></Field><Field Name="leadid"><DataField>leadid</DataField><rd:TypeName>System.String</rd:TypeName></Field></Fields></DataSet></DataSets><ReportSections><ReportSection><Body><ReportItems><...deleted...><Width>5in</Width><Page><LeftMargin>1in</LeftMargin><RightMargin>1in</RightMargin><TopMargin>1in</TopMargin><BottomMargin>1in</BottomMargin><Style /></Page></ReportSection></ReportSections><ReportParameters><ReportParameter Name="days"><DataType>Integer</DataType><Prompt>Days Old</Prompt><ValidValues><ParameterValues><ParameterValue><Value>5</Value><Label>5 Days</Label></ParameterValue></ParameterValues></ValidValues></ReportParameter></ReportParameters><ReportParametersLayout><GridLayoutDefinition><NumberOfColumns>4</NumberOfColumns><NumberOfRows>2</NumberOfRows><CellDefinitions><CellDefinition><ColumnIndex>0</ColumnIndex><RowIndex>0</RowIndex><ParameterName>days</ParameterName></CellDefinition></CellDefinitions></GridLayoutDefinition></ReportParametersLayout><Language>en-US</Language><ConsumeContainerWhitespace>true</ConsumeContainerWhitespace><rd:ReportUnitType>Inch</rd:ReportUnitType><rd:ReportID>3861fd8d-1820-49f9-b63c-0549d36d967a</rd:ReportID></Report>