Sign in with Microsoft
Sign in or create an account.
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.


Assume that you create a natively compiled stored procedure with a query that contains a large expression that has more than 256 operators in Microsoft SQL Server 2014. When you try to use showplan_xml on the query or procedure, you receive the following error:

Msg 41322, Level 16, State 33, Procedure <sp_name>, Line <line_number>
MAT/PIT export/import encountered a failure for memory optimized table or natively compiled stored procedure with object ID <ID Number>in database ID <ID Number>. The error code was 0x88000015.


The issue occurs because of a defect in SQL Server 2014.

Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. Check out the latest cumulative updates for SQL Server:


To work around the issue, use the following workarounds:

  • Break the expressions into multiple sub-expressions.

  • Use parenthesis to explicitly force nesting of expressions to make a wide but shallow expression tree instead of a deeply nested expression tree.


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!