Bad Parameter in refreshable Excel report query

Microsoft Dynamics GPOver the last few months, I’ve been doing work with clients on creating some refreshable Excel reports. Working on one of them, we had parameters for dates and added one for Vendor ID, which is when I encountered an error:

Excel error message

Microsoft Excel

Bad parameter type. Microsoft Excel is expecting a different ind of value than what was provided.

The Excel sheet looked fine with the three parameters all containing valid data:

Excel report

Looking at the query in Connection Properties had the question marks denoting the parameters in the correct place in the queries:

Connection Properties

It took me a while before I twigged that the problem was the order of the parameters. From the Connection Properties window, click the Parameters… button to view the parameter configuration. The parameters were set to read from specific cells and I had, without thinking it through, create the date parameters, tested the report and then added the Vendor ID to the third row and then moved it to the first row.

The order in which I’d taken these actions, left Excel set with the Vendor ID in cell B£ when it was now in cell B1:

Parameter setup

Once I corrected the parameters, the error was resolved and the report successfully ran.

What should we write about next?

If there is a topic which fits the typical ones of this site, which you would like to see me write about, please use the form, below, to submit your idea.

Your Name

Your Email

Suggested Topic

Suggestion Details

Looking for support or consultancy with Microsoft Dynamics GP?

I no longer work with Microsoft Dynamics GP, but the last company I worked for was ISC Software in the UK; if you’re looking for support or consultancy services with Microsoft Dynamics GP you can contact them here.

Leave a Reply

Your email address will not be published. Required fields are marked *