QueryRun and Query Objects - Binding operation failed to allocate buffer space
So if you ever work with the QueryRun and Query objects within X++, and I mean work with them a lot. You might come across an issue.
If for some reason, your start to see the following in thrown errors or in the event viewer, Application event log on the AOS, then you have an issue most likely with the QueryRun and Query Objects.:
Binding operation failed to allocate buffer space
The issue that your facing is the query that your creating. The query your creating, to make use with your QueryRun object is causing the AOS to hit a buffer limit. You can increase the buffer limit at the AOS. But most likely what you will need to do is force literals for the query your building in X++.
It's simple to do, after your create an instance of the Query object simply do a: Query.literal(1); call.
This will 'force the hand' of the AOS to accept the buffer allocation requirement, and allow your advanced query to run. Therefore allowing your QueryRun operation to finish as desired.
Well that's all for now. Ran into this, and thought it would be worth putting out here. If anyone has ran into this before, and wants to share feel free to leave a comment. Also if you have more details about literals and the use as described above, feel free to share that as well.
Check back soon!
"Visit the Dynamics AX Community Page today!"
If for some reason, your start to see the following in thrown errors or in the event viewer, Application event log on the AOS, then you have an issue most likely with the QueryRun and Query Objects.:
The issue that your facing is the query that your creating. The query your creating, to make use with your QueryRun object is causing the AOS to hit a buffer limit. You can increase the buffer limit at the AOS. But most likely what you will need to do is force literals for the query your building in X++.
It's simple to do, after your create an instance of the Query object simply do a: Query.literal(1); call.
This will 'force the hand' of the AOS to accept the buffer allocation requirement, and allow your advanced query to run. Therefore allowing your QueryRun operation to finish as desired.
Well that's all for now. Ran into this, and thought it would be worth putting out here. If anyone has ran into this before, and wants to share feel free to leave a comment. Also if you have more details about literals and the use as described above, feel free to share that as well.
Check back soon!
"Visit the Dynamics AX Community Page today!"
Labels: Binding operation failed, buffer space, Dynamics, Dynamics AX, Literal, Literals, Query, Query.Literal, QueryRun
2 Comments:
Thank you very much for the solution.
Thanks & Regards,
Debashish Ghosh
I see the mentioned error message in my Object server's event log. However, I can't seem to find what is causing the entry. Do you know of a way to track down what is causing this entry to be made?
Post a Comment
<< Home