Skip to main content
Solved

How to remove duplicate lines of Shipments on GI when the Order is not complete.

  • January 19, 2025
  • 6 replies
  • 150 views

Forum|alt.badge.img

I am writing a GI to show all sales order lines and any time we have created a shipment on a order that does not ship all the lines on the order the rest of the order lines are duplicated by the same number as the number of shipments we have made.   

Below we have made three shipments on this sales order and the remaining line on the order shows up 3 times. 

We made three shipments off of the order below. one shipment for line 1 and  line two split between two shipments. 

 Shipments are below 

In the GI i am using the following tables and Relation to get the Data requested.

 

I think it is somewhere in the shipment tables but on of the requests is to see the Shipment Status and i had to go to the SO Shipment to get Confirmed or Completed off of the shipment.   

Best answer by travislawson

I think this is going to be a little difficult for us to solve with a quick answer.  Typically the joins will cause your duplicate data.  I would uncheck all of your relationships down to the top one, SOLine and SOOrder.  Also undo any checks on your conditions, results, and row style that contain any of the unchecked relationship fields.  

Look at the data, see if duplicates exist.  If they do not, then move on to the next relationship.  See which relationship creates the duplication.  From that point then you’ll need to look at the DAC and determine how you can further refine the relationship parameters to give you only the data you need.  Also play with the left and inner join on the relationship to see if that changes the data where it’s duplicated. 

 

6 replies

Forum|alt.badge.img+2

Looks like there is a issue with SoOrderShipment table joint. Can you please share the both SOOrderShipment table.


DipakNilkanth
Pro III
Forum|alt.badge.img+13

Hi ​@rdillard64,

Could you please provide and GI xml to review?

What are the relations you have added to join the SOLine and SOShipment tables?

 


Forum|alt.badge.img
  • Author
  • Jr Varsity II
  • January 19, 2025

Thank you,  below is the GI.  in order to get the Shipment Status i joined the SOOrderShipment table to the SOLine Table then Jooin the SOShipment Table to the SOOrderShipment Table.

 

I am fairly new at this and i originally joined them  SOShipment joined left to the SOOrderShipment table and then SOOrderShipment table joined left to the SOLine table.   it did not seem to matter if i Joined left or inner the same duplication occured.

 

thank you again for the help.  


Forum|alt.badge.img
  • Author
  • Jr Varsity II
  • January 19, 2025

this is the SOOrderShipment Table i used  https://rsm.acumatica.com/dacBrowser/PX.Objects.SO/SOOrderShipment


Forum|alt.badge.img
  • Author
  • Jr Varsity II
  • January 25, 2025

@Nilkanth Dipak did the GI i shared help?  Thank you in advance if you can point me in the right direction. 


Forum|alt.badge.img+1
  • Answer
  • January 31, 2025

I think this is going to be a little difficult for us to solve with a quick answer.  Typically the joins will cause your duplicate data.  I would uncheck all of your relationships down to the top one, SOLine and SOOrder.  Also undo any checks on your conditions, results, and row style that contain any of the unchecked relationship fields.  

Look at the data, see if duplicates exist.  If they do not, then move on to the next relationship.  See which relationship creates the duplication.  From that point then you’ll need to look at the DAC and determine how you can further refine the relationship parameters to give you only the data you need.  Also play with the left and inner join on the relationship to see if that changes the data where it’s duplicated.