invoiced purchase amount ssrs report

hai all

i got error as

" query execution failed on dataset invoiceamount "

while running the invoiced purchase amount(Ax2009 ssrs report)

thn i try to edit the dataset in VS2008, that time i got error as

“query(54,20) has syntax error”

can anyone help me

how to solve this error, provide me some materials or some links

thanx in advance