Skip to main content
Solved

Work Centers: query error

  • April 30, 2024
  • 4 replies
  • 114 views

Forum|alt.badge.img

Anyone familiar with this?

The correlation name 'InnerQuery_INSite' is specified multiple times in a FROM clause.

 

Best answer by NicholasBova52

swartzfeger wrote:
Dipak Nilkanth wrote:

Hi @swartzfeger,

Could you please check joins used in th GI?

I belive you have used INSite table more than once in table relations in GI.

 

Sorry Dipak, I’m not a SQL guy but this is what I found --

 

 

@swartzfeger You should be able to remove one of the rows where the “Child Table” is set to “INSite” and it will work! Looking at the XML file you provided, both relations will join based on the SiteID field from both tables. If you keep the row with the “Inner” join type, it will only return results where the Work Center’s site ID is matched an INSite. If you keep the row with the “Left” join type, it will return all Work Centers even if they don’t match with an INSite, and these Work Center returned from the query will then be used in the other joins listed here. What you decide to use will depend on the purpose of the GI.

View original
Did this topic help you find an answer to your question?

4 replies

Nilkanth Dipak
Semi-Pro I
Forum|alt.badge.img+10

Hi @swartzfeger,

Could you please check joins used in th GI?

I belive you have used INSite table more than once in table relations in GI.


Forum|alt.badge.img
  • Author
  • Freshman II
  • 167 replies
  • April 30, 2024
Dipak Nilkanth wrote:

Hi @swartzfeger,

Could you please check joins used in th GI?

I belive you have used INSite table more than once in table relations in GI.

 

Sorry Dipak, I’m not a SQL guy but this is what I found --

 

 


NicholasBova52
Acumatica Employee
Forum|alt.badge.img+1
  • Acumatica Employee
  • 27 replies
  • Answer
  • May 1, 2024
swartzfeger wrote:
Dipak Nilkanth wrote:

Hi @swartzfeger,

Could you please check joins used in th GI?

I belive you have used INSite table more than once in table relations in GI.

 

Sorry Dipak, I’m not a SQL guy but this is what I found --

 

 

@swartzfeger You should be able to remove one of the rows where the “Child Table” is set to “INSite” and it will work! Looking at the XML file you provided, both relations will join based on the SiteID field from both tables. If you keep the row with the “Inner” join type, it will only return results where the Work Center’s site ID is matched an INSite. If you keep the row with the “Left” join type, it will return all Work Centers even if they don’t match with an INSite, and these Work Center returned from the query will then be used in the other joins listed here. What you decide to use will depend on the purpose of the GI.


Forum|alt.badge.img
  • Author
  • Freshman II
  • 167 replies
  • May 1, 2024
NicholasBova52 wrote:
swartzfeger wrote:
Dipak Nilkanth wrote:

Hi @swartzfeger,

Could you please check joins used in th GI?

I belive you have used INSite table more than once in table relations in GI.

 

Sorry Dipak, I’m not a SQL guy but this is what I found --

 

 

@swartzfeger You should be able to remove one of the rows where the “Child Table” is set to “INSite” and it will work! Looking at the XML file you provided, both relations will join based on the SiteID field from both tables. If you keep the row with the “Inner” join type, it will only return results where the Work Center’s site ID is matched an INSite. If you keep the row with the “Left” join type, it will return all Work Centers even if they don’t match with an INSite, and these Work Center returned from the query will then be used in the other joins listed here. What you decide to use will depend on the purpose of the GI.

Nicholas, thank you sir -- that did the trick! Thank you for the help, it’s appreciated!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings