Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Msg 104381 when running INSERT...SELECT statement in Analytics Platform System 2016 or later


View products that this article applies to.

Symptoms

When you run an INSERT ... SELECT statement in Microsoft Analytics Platform System (APS) 2016 or a later version of APS and that statement includes an ORDER BY clause, you receive an error message that resembles the following:

 

↑ Back to the top


Cause

This issue occurs because sort operations aren't valid with the INSERT ... SELECT statement. This is by design.

↑ Back to the top


Resolution

To fix this problem, remove the ORDER BY clause from the statement.

↑ Back to the top


More Information

In earlier versions of APS, no error may have been returned. However, the ORDER BY clause was not honored.

↑ Back to the top


Keywords: kbContentAuto, kbtshoot, kbExpertiseAdvanced, kb, Msg 104381, the order by clause is invalid in views analytics platform system

↑ Back to the top

Article Info
Article ID : 4038456
Revision : 15
Created on : 8/24/2017
Published on : 8/24/2017
Exists online : False
Views : 55