The code for the non filtered report
SELECT
s.c.value('@user-number[1]' , 'VARCHAR(6)') as 'user-number',
h.c.value('@user-name[1]' , 'VARCHAR(100)') as 'user-name',
s.c.value('@record-type[1]' , 'VARCHAR(6)') as 'record-type',
CONVERT( SMALLDATETIME,s.c.value('@effective-date[1]' , 'VARCHAR(20)'))as 'effective-date',
s.c.value('@reference[1]' , 'VARCHAR(18)') as 'reference',
s.c.value('@payer-name[1]' , 'VARCHAR(18)') as 'payer-name',
s.c.value('@payer-account-number[1]' , 'VARCHAR(8)') as 'payer-account-number',
s.c.value('@payer-sort-code[1]' , 'VARCHAR(6)') as 'payer-sort-code' ,
CONVERT( SMALLDATETIME,s.c.value('@due-date[1]' , 'VARCHAR(20)'))as 'due-date',
s.c.value('@payment-frequency[1]' , 'VARCHAR(10)') as 'payment-frequency',
s.c.value('@amount-of-payment[1]' , 'VARCHAR(10)') as 'amount-of-payment',
s.c.value('@reason-code[1]' , 'VARCHAR(2)') as 'reason-code',
s.c.value('@payer-new-name[1]' , 'VARCHAR(18)') as 'payer-new-name' ,
s.c.value('@payer-new-account-number[1]' , 'VARCHAR(18)') as 'payer-new-account-number' ,
s.c.value('@payer-new-sort-code[1]' , 'VARCHAR(6)') as 'payer-new-sort-code',
CONVERT( SMALLDATETIME,s.c.value('@new-due-date[1]' , 'VARCHAR(20)'))as 'new-due-date',
s.c.value('@new-payment-frequency[1]' , 'VARCHAR(10)') as 'new-payment-frequency',
s.c.value('@amount-of-new-payment[1]' , 'VARCHAR(10)') as 'amount-of-new-payment',
CONVERT( SMALLDATETIME,h.c.value('@last-payment-date[1]' , 'VARCHAR(20)'))as 'last-payment-date',
s.c.value('@work-code[1]' , 'VARCHAR(10)') as 'work-code',
s.c.value('@aosn[1]' , 'VARCHAR(10)') as 'aosn'
FROM (SELECT CAST([new_xmlfile] as XML) AS Xmlreport FROM [xxx_MSCRM].[dbo].[new_bacsreportsprocessed] WHERE CAST([new_bacsreportsprocessedid] AS VARCHAR(100)) = @ReportID) d
CROSS APPLY Xmlreport.nodes('//Data/MessagingAdvices') AS a(c)
OUTER APPLY a.c.nodes('MessagingHeader') h(c)
OUTER APPLY a.c.nodes('MessagingAdvice') s(c)
I have tried with a non domain user and get the same result
The domain Admin and the non domain admin have full rights to the entities. If I call up reporting services under bot the users, I can run the report without any issues. It only seems to be when trying to run the report from CRM